filename | configure |
changeset | 521:33d2d92784c7 |
prev | 509:d72564edc482 |
next | 526:ba3da45b5754 |
author | nkeynes |
date | Sat Nov 17 01:13:41 2007 +0000 (16 years ago) |
permissions | -rwxr-xr-x |
last change | Detect presence of SH4 + ARM cross-compilers, and disable the system tests if we don't find the sh-elf environment. Detect build host to see if we can make a working translator |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
27 fi
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
252 fi
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
273 fi
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
325 test $exitcode = 0) || { (exit 1); exit 1; }
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
336 fi
338 fi
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
360 fi
362 fi
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 AMTAR
665 install_sh
666 STRIP
667 INSTALL_STRIP_PROGRAM
668 AWK
669 SET_MAKE
670 am__leading_dot
671 MAINTAINER_MODE_TRUE
672 MAINTAINER_MODE_FALSE
673 MAINT
674 CC
675 CFLAGS
676 LDFLAGS
677 CPPFLAGS
678 ac_ct_CC
679 EXEEXT
680 OBJEXT
681 DEPDIR
682 am__include
683 am__quote
684 AMDEP_TRUE
685 AMDEP_FALSE
686 AMDEPBACKSLASH
687 CCDEPMODE
688 am__fastdepCC_TRUE
689 am__fastdepCC_FALSE
690 CPP
691 GREP
692 EGREP
693 build
694 build_cpu
695 build_vendor
696 build_os
697 host
698 host_cpu
699 host_vendor
700 host_os
701 PKG_CONFIG
702 PACKAGE_CFLAGS
703 PACKAGE_LIBS
704 BUILD_SH4X86_TRUE
705 BUILD_SH4X86_FALSE
706 CDROM_LINUX_TRUE
707 CDROM_LINUX_FALSE
708 SHCC
709 SHLD
710 SHOBJCOPY
711 ARMCC
712 ARMLD
713 ARMOBJCOPY
714 BUILD_SYSTEST_TRUE
715 BUILD_SYSTEST_FALSE
716 BUILD_ARMTEST_TRUE
717 BUILD_ARMTEST_FALSE
718 GETTEXT_PACKAGE
719 USE_NLS
720 MSGFMT
721 GMSGFMT
722 XGETTEXT
723 CATALOGS
724 CATOBJEXT
725 DATADIRNAME
726 GMOFILES
727 INSTOBJEXT
728 INTLLIBS
729 PO_IN_DATADIR_TRUE
730 PO_IN_DATADIR_FALSE
731 POFILES
732 POSUB
733 MKINSTALLDIRS
734 LIBOBJS
735 LTLIBOBJS'
736 ac_subst_files=''
737 ac_precious_vars='build_alias
738 host_alias
739 target_alias
740 CC
741 CFLAGS
742 LDFLAGS
743 LIBS
744 CPPFLAGS
745 CPP
746 PKG_CONFIG
747 PACKAGE_CFLAGS
748 PACKAGE_LIBS'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
800 do
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
806 fi
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
816 --)
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1106 ;;
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1117 *)
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123 ;;
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1132 fi
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1139 do
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1164 fi
1165 fi
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\).*/{
1206 s//\1/
1207 q
1208 }
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1213 fi
1214 else
1215 ac_srcdir_defaulted=no
1216 fi
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1221 fi
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1230 fi
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1244 #
1245 # Report the --help message.
1246 #
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures this package to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 System types:
1314 --build=BUILD configure for building on BUILD [guessed]
1315 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1316 _ACEOF
1317 fi
1319 if test -n "$ac_init_help"; then
1321 cat <<\_ACEOF
1323 Optional Features:
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --enable-maintainer-mode enable make rules and dependencies not useful
1327 (and sometimes confusing) to the casual installer
1328 --disable-dependency-tracking Speeds up one-time builds
1329 --enable-dependency-tracking Do not reject slow dependency extractors
1331 Some influential environment variables:
1332 CC C compiler command
1333 CFLAGS C compiler flags
1334 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1335 nonstandard directory <lib dir>
1336 LIBS libraries to pass to the linker, e.g. -l<library>
1337 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1338 you have headers in a nonstandard directory <include dir>
1339 CPP C preprocessor
1340 PKG_CONFIG path to pkg-config utility
1341 PACKAGE_CFLAGS
1342 C compiler flags for PACKAGE, overriding pkg-config
1343 PACKAGE_LIBS
1344 linker flags for PACKAGE, overriding pkg-config
1346 Use these variables to override the choices made by `configure' or to help
1347 it to find libraries and programs with nonstandard names/locations.
1349 _ACEOF
1350 ac_status=$?
1351 fi
1353 if test "$ac_init_help" = "recursive"; then
1354 # If there are subdirs, report their specific --help.
1355 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1356 test -d "$ac_dir" || continue
1357 ac_builddir=.
1359 case "$ac_dir" in
1360 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361 *)
1362 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1363 # A ".." for each directory in $ac_dir_suffix.
1364 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1365 case $ac_top_builddir_sub in
1366 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1368 esac ;;
1369 esac
1370 ac_abs_top_builddir=$ac_pwd
1371 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1372 # for backward compatibility:
1373 ac_top_builddir=$ac_top_build_prefix
1375 case $srcdir in
1376 .) # We are building in place.
1377 ac_srcdir=.
1378 ac_top_srcdir=$ac_top_builddir_sub
1379 ac_abs_top_srcdir=$ac_pwd ;;
1380 [\\/]* | ?:[\\/]* ) # Absolute name.
1381 ac_srcdir=$srcdir$ac_dir_suffix;
1382 ac_top_srcdir=$srcdir
1383 ac_abs_top_srcdir=$srcdir ;;
1384 *) # Relative name.
1385 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1386 ac_top_srcdir=$ac_top_build_prefix$srcdir
1387 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1388 esac
1389 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1391 cd "$ac_dir" || { ac_status=$?; continue; }
1392 # Check for guested configure.
1393 if test -f "$ac_srcdir/configure.gnu"; then
1394 echo &&
1395 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1396 elif test -f "$ac_srcdir/configure"; then
1397 echo &&
1398 $SHELL "$ac_srcdir/configure" --help=recursive
1399 else
1400 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1401 fi || ac_status=$?
1402 cd "$ac_pwd" || { ac_status=$?; break; }
1403 done
1404 fi
1406 test -n "$ac_init_help" && exit $ac_status
1407 if $ac_init_version; then
1408 cat <<\_ACEOF
1409 configure
1410 generated by GNU Autoconf 2.61
1412 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1413 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1414 This configure script is free software; the Free Software Foundation
1415 gives unlimited permission to copy, distribute and modify it.
1416 _ACEOF
1417 exit
1418 fi
1419 cat >config.log <<_ACEOF
1420 This file contains any messages produced by compilers while
1421 running configure, to aid debugging if configure makes a mistake.
1423 It was created by $as_me, which was
1424 generated by GNU Autoconf 2.61. Invocation command line was
1426 $ $0 $@
1428 _ACEOF
1429 exec 5>>config.log
1430 {
1431 cat <<_ASUNAME
1432 ## --------- ##
1433 ## Platform. ##
1434 ## --------- ##
1436 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1437 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1438 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1439 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1440 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1442 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1443 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1445 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1446 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1447 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1448 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1449 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1450 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1451 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1453 _ASUNAME
1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456 for as_dir in $PATH
1457 do
1458 IFS=$as_save_IFS
1459 test -z "$as_dir" && as_dir=.
1460 echo "PATH: $as_dir"
1461 done
1462 IFS=$as_save_IFS
1464 } >&5
1466 cat >&5 <<_ACEOF
1469 ## ----------- ##
1470 ## Core tests. ##
1471 ## ----------- ##
1473 _ACEOF
1476 # Keep a trace of the command line.
1477 # Strip out --no-create and --no-recursion so they do not pile up.
1478 # Strip out --silent because we don't want to record it for future runs.
1479 # Also quote any args containing shell meta-characters.
1480 # Make two passes to allow for proper duplicate-argument suppression.
1481 ac_configure_args=
1482 ac_configure_args0=
1483 ac_configure_args1=
1484 ac_must_keep_next=false
1485 for ac_pass in 1 2
1486 do
1487 for ac_arg
1488 do
1489 case $ac_arg in
1490 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1492 | -silent | --silent | --silen | --sile | --sil)
1493 continue ;;
1494 *\'*)
1495 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 esac
1497 case $ac_pass in
1498 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1499 2)
1500 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1501 if test $ac_must_keep_next = true; then
1502 ac_must_keep_next=false # Got value, back to normal.
1503 else
1504 case $ac_arg in
1505 *=* | --config-cache | -C | -disable-* | --disable-* \
1506 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1507 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1508 | -with-* | --with-* | -without-* | --without-* | --x)
1509 case "$ac_configure_args0 " in
1510 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1511 esac
1512 ;;
1513 -* ) ac_must_keep_next=true ;;
1514 esac
1515 fi
1516 ac_configure_args="$ac_configure_args '$ac_arg'"
1517 ;;
1518 esac
1519 done
1520 done
1521 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1522 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1524 # When interrupted or exit'd, cleanup temporary files, and complete
1525 # config.log. We remove comments because anyway the quotes in there
1526 # would cause problems or look ugly.
1527 # WARNING: Use '\'' to represent an apostrophe within the trap.
1528 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1529 trap 'exit_status=$?
1530 # Save into config.log some information that might help in debugging.
1531 {
1532 echo
1534 cat <<\_ASBOX
1535 ## ---------------- ##
1536 ## Cache variables. ##
1537 ## ---------------- ##
1538 _ASBOX
1539 echo
1540 # The following way of writing the cache mishandles newlines in values,
1541 (
1542 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1543 eval ac_val=\$$ac_var
1544 case $ac_val in #(
1545 *${as_nl}*)
1546 case $ac_var in #(
1547 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1548 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1549 esac
1550 case $ac_var in #(
1551 _ | IFS | as_nl) ;; #(
1552 *) $as_unset $ac_var ;;
1553 esac ;;
1554 esac
1555 done
1556 (set) 2>&1 |
1557 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1558 *${as_nl}ac_space=\ *)
1559 sed -n \
1560 "s/'\''/'\''\\\\'\'''\''/g;
1561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1562 ;; #(
1563 *)
1564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1565 ;;
1566 esac |
1567 sort
1568 )
1569 echo
1571 cat <<\_ASBOX
1572 ## ----------------- ##
1573 ## Output variables. ##
1574 ## ----------------- ##
1575 _ASBOX
1576 echo
1577 for ac_var in $ac_subst_vars
1578 do
1579 eval ac_val=\$$ac_var
1580 case $ac_val in
1581 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1582 esac
1583 echo "$ac_var='\''$ac_val'\''"
1584 done | sort
1585 echo
1587 if test -n "$ac_subst_files"; then
1588 cat <<\_ASBOX
1589 ## ------------------- ##
1590 ## File substitutions. ##
1591 ## ------------------- ##
1592 _ASBOX
1593 echo
1594 for ac_var in $ac_subst_files
1595 do
1596 eval ac_val=\$$ac_var
1597 case $ac_val in
1598 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 esac
1600 echo "$ac_var='\''$ac_val'\''"
1601 done | sort
1602 echo
1603 fi
1605 if test -s confdefs.h; then
1606 cat <<\_ASBOX
1607 ## ----------- ##
1608 ## confdefs.h. ##
1609 ## ----------- ##
1610 _ASBOX
1611 echo
1612 cat confdefs.h
1613 echo
1614 fi
1615 test "$ac_signal" != 0 &&
1616 echo "$as_me: caught signal $ac_signal"
1617 echo "$as_me: exit $exit_status"
1618 } >&5
1619 rm -f core *.core core.conftest.* &&
1620 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1621 exit $exit_status
1622 ' 0
1623 for ac_signal in 1 2 13 15; do
1624 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1625 done
1626 ac_signal=0
1628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1629 rm -f -r conftest* confdefs.h
1631 # Predefined preprocessor variables.
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_NAME "$PACKAGE_NAME"
1635 _ACEOF
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1640 _ACEOF
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1645 _ACEOF
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_STRING "$PACKAGE_STRING"
1650 _ACEOF
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1655 _ACEOF
1658 # Let the site file select an alternate cache file if it wants to.
1659 # Prefer explicitly selected file to automatically selected ones.
1660 if test -n "$CONFIG_SITE"; then
1661 set x "$CONFIG_SITE"
1662 elif test "x$prefix" != xNONE; then
1663 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1664 else
1665 set x "$ac_default_prefix/share/config.site" \
1666 "$ac_default_prefix/etc/config.site"
1667 fi
1668 shift
1669 for ac_site_file
1670 do
1671 if test -r "$ac_site_file"; then
1672 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1673 echo "$as_me: loading site script $ac_site_file" >&6;}
1674 sed 's/^/| /' "$ac_site_file" >&5
1675 . "$ac_site_file"
1676 fi
1677 done
1679 if test -r "$cache_file"; then
1680 # Some versions of bash will fail to source /dev/null (special
1681 # files actually), so we avoid doing that.
1682 if test -f "$cache_file"; then
1683 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1684 echo "$as_me: loading cache $cache_file" >&6;}
1685 case $cache_file in
1686 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1687 *) . "./$cache_file";;
1688 esac
1689 fi
1690 else
1691 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1692 echo "$as_me: creating cache $cache_file" >&6;}
1693 >$cache_file
1694 fi
1696 # Check that the precious variables saved in the cache have kept the same
1697 # value.
1698 ac_cache_corrupted=false
1699 for ac_var in $ac_precious_vars; do
1700 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1701 eval ac_new_set=\$ac_env_${ac_var}_set
1702 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1703 eval ac_new_val=\$ac_env_${ac_var}_value
1704 case $ac_old_set,$ac_new_set in
1705 set,)
1706 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1707 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1708 ac_cache_corrupted=: ;;
1709 ,set)
1710 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1711 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1712 ac_cache_corrupted=: ;;
1713 ,);;
1714 *)
1715 if test "x$ac_old_val" != "x$ac_new_val"; then
1716 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1717 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1718 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1719 echo "$as_me: former value: $ac_old_val" >&2;}
1720 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1721 echo "$as_me: current value: $ac_new_val" >&2;}
1722 ac_cache_corrupted=:
1723 fi;;
1724 esac
1725 # Pass precious variables to config.status.
1726 if test "$ac_new_set" = set; then
1727 case $ac_new_val in
1728 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1729 *) ac_arg=$ac_var=$ac_new_val ;;
1730 esac
1731 case " $ac_configure_args " in
1732 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1733 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1734 esac
1735 fi
1736 done
1737 if $ac_cache_corrupted; then
1738 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1739 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1740 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1741 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1742 { (exit 1); exit 1; }; }
1743 fi
1761 ac_ext=c
1762 ac_cpp='$CPP $CPPFLAGS'
1763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 am__api_version="1.7"
1769 ac_aux_dir=
1770 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1771 if test -f "$ac_dir/install-sh"; then
1772 ac_aux_dir=$ac_dir
1773 ac_install_sh="$ac_aux_dir/install-sh -c"
1774 break
1775 elif test -f "$ac_dir/install.sh"; then
1776 ac_aux_dir=$ac_dir
1777 ac_install_sh="$ac_aux_dir/install.sh -c"
1778 break
1779 elif test -f "$ac_dir/shtool"; then
1780 ac_aux_dir=$ac_dir
1781 ac_install_sh="$ac_aux_dir/shtool install -c"
1782 break
1783 fi
1784 done
1785 if test -z "$ac_aux_dir"; then
1786 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1787 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1788 { (exit 1); exit 1; }; }
1789 fi
1791 # These three variables are undocumented and unsupported,
1792 # and are intended to be withdrawn in a future Autoconf release.
1793 # They can cause serious problems if a builder's source tree is in a directory
1794 # whose full name contains unusual characters.
1795 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1796 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1797 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1800 # Find a good install program. We prefer a C program (faster),
1801 # so one script is as good as another. But avoid the broken or
1802 # incompatible versions:
1803 # SysV /etc/install, /usr/sbin/install
1804 # SunOS /usr/etc/install
1805 # IRIX /sbin/install
1806 # AIX /bin/install
1807 # AmigaOS /C/install, which installs bootblocks on floppy discs
1808 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1809 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1810 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1811 # OS/2's system install, which has a completely different semantic
1812 # ./install, which can be erroneously created by make from ./install.sh.
1813 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1814 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1815 if test -z "$INSTALL"; then
1816 if test "${ac_cv_path_install+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1818 else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1821 do
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 # Account for people who put trailing slashes in PATH elements.
1825 case $as_dir/ in
1826 ./ | .// | /cC/* | \
1827 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1828 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1829 /usr/ucb/* ) ;;
1830 *)
1831 # OSF1 and SCO ODT 3.0 have their own names for install.
1832 # Don't use installbsd from OSF since it installs stuff as root
1833 # by default.
1834 for ac_prog in ginstall scoinst install; do
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1837 if test $ac_prog = install &&
1838 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1839 # AIX install. It has an incompatible calling convention.
1840 :
1841 elif test $ac_prog = install &&
1842 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1843 # program-specific install script used by HP pwplus--don't use.
1844 :
1845 else
1846 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1847 break 3
1848 fi
1849 fi
1850 done
1851 done
1852 ;;
1853 esac
1854 done
1855 IFS=$as_save_IFS
1858 fi
1859 if test "${ac_cv_path_install+set}" = set; then
1860 INSTALL=$ac_cv_path_install
1861 else
1862 # As a last resort, use the slow shell script. Don't cache a
1863 # value for INSTALL within a source directory, because that will
1864 # break other packages using the cache if that directory is
1865 # removed, or if the value is a relative name.
1866 INSTALL=$ac_install_sh
1867 fi
1868 fi
1869 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1870 echo "${ECHO_T}$INSTALL" >&6; }
1872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1873 # It thinks the first close brace ends the variable substitution.
1874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1880 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1881 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1882 # Just in case
1883 sleep 1
1884 echo timestamp > conftest.file
1885 # Do `set' in a subshell so we don't clobber the current shell's
1886 # arguments. Must try -L first in case configure is actually a
1887 # symlink; some systems play weird games with the mod time of symlinks
1888 # (eg FreeBSD returns the mod time of the symlink's containing
1889 # directory).
1890 if (
1891 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1892 if test "$*" = "X"; then
1893 # -L didn't work.
1894 set X `ls -t $srcdir/configure conftest.file`
1895 fi
1896 rm -f conftest.file
1897 if test "$*" != "X $srcdir/configure conftest.file" \
1898 && test "$*" != "X conftest.file $srcdir/configure"; then
1900 # If neither matched, then we have a broken ls. This can happen
1901 # if, for instance, CONFIG_SHELL is bash and it inherits a
1902 # broken ls alias from the environment. This has actually
1903 # happened. Such a system could not be considered "sane".
1904 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1905 alias in your environment" >&5
1906 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1907 alias in your environment" >&2;}
1908 { (exit 1); exit 1; }; }
1909 fi
1911 test "$2" = conftest.file
1912 )
1913 then
1914 # Ok.
1915 :
1916 else
1917 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1918 Check your system clock" >&5
1919 echo "$as_me: error: newly created file is older than distributed files!
1920 Check your system clock" >&2;}
1921 { (exit 1); exit 1; }; }
1922 fi
1923 { echo "$as_me:$LINENO: result: yes" >&5
1924 echo "${ECHO_T}yes" >&6; }
1925 test "$program_prefix" != NONE &&
1926 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1927 # Use a double $ so make ignores it.
1928 test "$program_suffix" != NONE &&
1929 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1930 # Double any \ or $. echo might interpret backslashes.
1931 # By default was `s,x,x', remove it if useless.
1932 cat <<\_ACEOF >conftest.sed
1933 s/[\\$]/&&/g;s/;s,x,x,$//
1934 _ACEOF
1935 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1936 rm -f conftest.sed
1939 # expand $ac_aux_dir to an absolute path
1940 am_aux_dir=`cd $ac_aux_dir && pwd`
1942 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1943 # Use eval to expand $SHELL
1944 if eval "$MISSING --run true"; then
1945 am_missing_run="$MISSING --run "
1946 else
1947 am_missing_run=
1948 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1949 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1950 fi
1952 for ac_prog in gawk mawk nawk awk
1953 do
1954 # Extract the first word of "$ac_prog", so it can be a program name with args.
1955 set dummy $ac_prog; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_AWK+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$AWK"; then
1962 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1963 else
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 for as_dir in $PATH
1966 do
1967 IFS=$as_save_IFS
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_AWK="$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1973 break 2
1974 fi
1975 done
1976 done
1977 IFS=$as_save_IFS
1979 fi
1980 fi
1981 AWK=$ac_cv_prog_AWK
1982 if test -n "$AWK"; then
1983 { echo "$as_me:$LINENO: result: $AWK" >&5
1984 echo "${ECHO_T}$AWK" >&6; }
1985 else
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1988 fi
1991 test -n "$AWK" && break
1992 done
1994 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1995 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1996 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1997 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
1999 else
2000 cat >conftest.make <<\_ACEOF
2001 SHELL = /bin/sh
2002 all:
2003 @echo '@@@%%%=$(MAKE)=@@@%%%'
2004 _ACEOF
2005 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2006 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2007 *@@@%%%=?*=@@@%%%*)
2008 eval ac_cv_prog_make_${ac_make}_set=yes;;
2009 *)
2010 eval ac_cv_prog_make_${ac_make}_set=no;;
2011 esac
2012 rm -f conftest.make
2013 fi
2014 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2015 { echo "$as_me:$LINENO: result: yes" >&5
2016 echo "${ECHO_T}yes" >&6; }
2017 SET_MAKE=
2018 else
2019 { echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6; }
2021 SET_MAKE="MAKE=${MAKE-make}"
2022 fi
2024 rm -rf .tst 2>/dev/null
2025 mkdir .tst 2>/dev/null
2026 if test -d .tst; then
2027 am__leading_dot=.
2028 else
2029 am__leading_dot=_
2030 fi
2031 rmdir .tst 2>/dev/null
2033 # test to see if srcdir already configured
2034 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2035 test -f $srcdir/config.status; then
2036 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2037 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2038 { (exit 1); exit 1; }; }
2039 fi
2041 # test whether we have cygpath
2042 if test -z "$CYGPATH_W"; then
2043 if (cygpath --version) >/dev/null 2>/dev/null; then
2044 CYGPATH_W='cygpath -w'
2045 else
2046 CYGPATH_W=echo
2047 fi
2048 fi
2051 # Define the identity of the package.
2052 PACKAGE=lxdream
2053 VERSION=0.8.1
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE "$PACKAGE"
2058 _ACEOF
2061 cat >>confdefs.h <<_ACEOF
2062 #define VERSION "$VERSION"
2063 _ACEOF
2065 # Some tools Automake needs.
2067 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2070 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2073 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2076 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2079 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2082 AMTAR=${AMTAR-"${am_missing_run}tar"}
2084 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2086 # Installed binaries are usually stripped using `strip' when the user
2087 # run `make install-strip'. However `strip' might not be the right
2088 # tool to use in cross-compilation environments, therefore Automake
2089 # will honor the `STRIP' environment variable to overrule this program.
2090 if test "$cross_compiling" != no; then
2091 if test -n "$ac_tool_prefix"; then
2092 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2093 set dummy ${ac_tool_prefix}strip; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_STRIP+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 if test -n "$STRIP"; then
2100 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2101 else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2109 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 break 2
2112 fi
2113 done
2114 done
2115 IFS=$as_save_IFS
2117 fi
2118 fi
2119 STRIP=$ac_cv_prog_STRIP
2120 if test -n "$STRIP"; then
2121 { echo "$as_me:$LINENO: result: $STRIP" >&5
2122 echo "${ECHO_T}$STRIP" >&6; }
2123 else
2124 { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2126 fi
2129 fi
2130 if test -z "$ac_cv_prog_STRIP"; then
2131 ac_ct_STRIP=$STRIP
2132 # Extract the first word of "strip", so it can be a program name with args.
2133 set dummy strip; ac_word=$2
2134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2136 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 else
2139 if test -n "$ac_ct_STRIP"; then
2140 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2141 else
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 for as_dir in $PATH
2144 do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149 ac_cv_prog_ac_ct_STRIP="strip"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 break 2
2152 fi
2153 done
2154 done
2155 IFS=$as_save_IFS
2157 fi
2158 fi
2159 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2160 if test -n "$ac_ct_STRIP"; then
2161 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2162 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2163 else
2164 { echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6; }
2166 fi
2168 if test "x$ac_ct_STRIP" = x; then
2169 STRIP=":"
2170 else
2171 case $cross_compiling:$ac_tool_warned in
2172 yes:)
2173 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2174 whose name does not start with the host triplet. If you think this
2175 configuration is useful to you, please write to autoconf@gnu.org." >&5
2176 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2177 whose name does not start with the host triplet. If you think this
2178 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2179 ac_tool_warned=yes ;;
2180 esac
2181 STRIP=$ac_ct_STRIP
2182 fi
2183 else
2184 STRIP="$ac_cv_prog_STRIP"
2185 fi
2187 fi
2188 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2190 # We need awk for the "check" target. The system "awk" is bad on
2191 # some platforms.
2195 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2196 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2197 # Check whether --enable-maintainer-mode was given.
2198 if test "${enable_maintainer_mode+set}" = set; then
2199 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2200 else
2201 USE_MAINTAINER_MODE=no
2202 fi
2204 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2205 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2208 if test $USE_MAINTAINER_MODE = yes; then
2209 MAINTAINER_MODE_TRUE=
2210 MAINTAINER_MODE_FALSE='#'
2211 else
2212 MAINTAINER_MODE_TRUE='#'
2213 MAINTAINER_MODE_FALSE=
2214 fi
2216 MAINT=$MAINTAINER_MODE_TRUE
2219 ac_config_headers="$ac_config_headers config.h"
2222 DEPDIR="${am__leading_dot}deps"
2224 ac_config_commands="$ac_config_commands depfiles"
2227 am_make=${MAKE-make}
2228 cat > confinc << 'END'
2229 am__doit:
2230 @echo done
2231 .PHONY: am__doit
2232 END
2233 # If we don't find an include directive, just comment out the code.
2234 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2235 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2236 am__include="#"
2237 am__quote=
2238 _am_result=none
2239 # First try GNU make style include.
2240 echo "include confinc" > confmf
2241 # We grep out `Entering directory' and `Leaving directory'
2242 # messages which can occur if `w' ends up in MAKEFLAGS.
2243 # In particular we don't look at `^make:' because GNU make might
2244 # be invoked under some other name (usually "gmake"), in which
2245 # case it prints its new name instead of `make'.
2246 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2247 am__include=include
2248 am__quote=
2249 _am_result=GNU
2250 fi
2251 # Now try BSD make style include.
2252 if test "$am__include" = "#"; then
2253 echo '.include "confinc"' > confmf
2254 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2255 am__include=.include
2256 am__quote="\""
2257 _am_result=BSD
2258 fi
2259 fi
2262 { echo "$as_me:$LINENO: result: $_am_result" >&5
2263 echo "${ECHO_T}$_am_result" >&6; }
2264 rm -f confinc confmf
2266 # Check whether --enable-dependency-tracking was given.
2267 if test "${enable_dependency_tracking+set}" = set; then
2268 enableval=$enable_dependency_tracking;
2269 fi
2271 if test "x$enable_dependency_tracking" != xno; then
2272 am_depcomp="$ac_aux_dir/depcomp"
2273 AMDEPBACKSLASH='\'
2274 fi
2277 if test "x$enable_dependency_tracking" != xno; then
2278 AMDEP_TRUE=
2279 AMDEP_FALSE='#'
2280 else
2281 AMDEP_TRUE='#'
2282 AMDEP_FALSE=
2283 fi
2287 ac_ext=c
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2294 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 break 2
2313 fi
2314 done
2315 done
2316 IFS=$as_save_IFS
2318 fi
2319 fi
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322 { echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6; }
2324 else
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2327 fi
2330 fi
2331 if test -z "$ac_cv_prog_CC"; then
2332 ac_ct_CC=$CC
2333 # Extract the first word of "gcc", so it can be a program name with args.
2334 set dummy gcc; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 else
2340 if test -n "$ac_ct_CC"; then
2341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2342 else
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_ac_ct_CC="gcc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 break 2
2353 fi
2354 done
2355 done
2356 IFS=$as_save_IFS
2358 fi
2359 fi
2360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2361 if test -n "$ac_ct_CC"; then
2362 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2363 echo "${ECHO_T}$ac_ct_CC" >&6; }
2364 else
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2367 fi
2369 if test "x$ac_ct_CC" = x; then
2370 CC=""
2371 else
2372 case $cross_compiling:$ac_tool_warned in
2373 yes:)
2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet. If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet. If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380 ac_tool_warned=yes ;;
2381 esac
2382 CC=$ac_ct_CC
2383 fi
2384 else
2385 CC="$ac_cv_prog_CC"
2386 fi
2388 if test -z "$CC"; then
2389 if test -n "$ac_tool_prefix"; then
2390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2391 set dummy ${ac_tool_prefix}cc; ac_word=$2
2392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394 if test "${ac_cv_prog_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397 if test -n "$CC"; then
2398 ac_cv_prog_CC="$CC" # Let the user override the test.
2399 else
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 for as_dir in $PATH
2402 do
2403 IFS=$as_save_IFS
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407 ac_cv_prog_CC="${ac_tool_prefix}cc"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 break 2
2410 fi
2411 done
2412 done
2413 IFS=$as_save_IFS
2415 fi
2416 fi
2417 CC=$ac_cv_prog_CC
2418 if test -n "$CC"; then
2419 { echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6; }
2421 else
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2424 fi
2427 fi
2428 fi
2429 if test -z "$CC"; then
2430 # Extract the first word of "cc", so it can be a program name with args.
2431 set dummy cc; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 else
2440 ac_prog_rejected=no
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2442 for as_dir in $PATH
2443 do
2444 IFS=$as_save_IFS
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2449 ac_prog_rejected=yes
2450 continue
2451 fi
2452 ac_cv_prog_CC="cc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2455 fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2460 if test $ac_prog_rejected = yes; then
2461 # We found a bogon in the path, so make sure we never use it.
2462 set dummy $ac_cv_prog_CC
2463 shift
2464 if test $# != 0; then
2465 # We chose a different compiler from the bogus one.
2466 # However, it has the same basename, so the bogon will be chosen
2467 # first if we set CC to just the basename; use the full file name.
2468 shift
2469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2470 fi
2471 fi
2472 fi
2473 fi
2474 CC=$ac_cv_prog_CC
2475 if test -n "$CC"; then
2476 { echo "$as_me:$LINENO: result: $CC" >&5
2477 echo "${ECHO_T}$CC" >&6; }
2478 else
2479 { echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6; }
2481 fi
2484 fi
2485 if test -z "$CC"; then
2486 if test -n "$ac_tool_prefix"; then
2487 for ac_prog in cl.exe
2488 do
2489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502 IFS=$as_save_IFS
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508 break 2
2509 fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2514 fi
2515 fi
2516 CC=$ac_cv_prog_CC
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2520 else
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2523 fi
2526 test -n "$CC" && break
2527 done
2528 fi
2529 if test -z "$CC"; then
2530 ac_ct_CC=$CC
2531 for ac_prog in cl.exe
2532 do
2533 # Extract the first word of "$ac_prog", so it can be a program name with args.
2534 set dummy $ac_prog; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 else
2540 if test -n "$ac_ct_CC"; then
2541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_ac_ct_CC="$ac_prog"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554 done
2555 done
2556 IFS=$as_save_IFS
2558 fi
2559 fi
2560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561 if test -n "$ac_ct_CC"; then
2562 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2563 echo "${ECHO_T}$ac_ct_CC" >&6; }
2564 else
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2567 fi
2570 test -n "$ac_ct_CC" && break
2571 done
2573 if test "x$ac_ct_CC" = x; then
2574 CC=""
2575 else
2576 case $cross_compiling:$ac_tool_warned in
2577 yes:)
2578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2579 whose name does not start with the host triplet. If you think this
2580 configuration is useful to you, please write to autoconf@gnu.org." >&5
2581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2582 whose name does not start with the host triplet. If you think this
2583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2584 ac_tool_warned=yes ;;
2585 esac
2586 CC=$ac_ct_CC
2587 fi
2588 fi
2590 fi
2593 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2594 See \`config.log' for more details." >&5
2595 echo "$as_me: error: no acceptable C compiler found in \$PATH
2596 See \`config.log' for more details." >&2;}
2597 { (exit 1); exit 1; }; }
2599 # Provide some information about the compiler.
2600 echo "$as_me:$LINENO: checking for C compiler version" >&5
2601 ac_compiler=`set X $ac_compile; echo $2`
2602 { (ac_try="$ac_compiler --version >&5"
2603 case "(($ac_try" in
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2606 esac
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compiler --version >&5") 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2612 { (ac_try="$ac_compiler -v >&5"
2613 case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_compiler -v >&5") 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2622 { (ac_try="$ac_compiler -V >&5"
2623 case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2626 esac
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_compiler -V >&5") 2>&5
2629 ac_status=$?
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }
2633 cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h. */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2640 int
2641 main ()
2642 {
2644 ;
2645 return 0;
2646 }
2647 _ACEOF
2648 ac_clean_files_save=$ac_clean_files
2649 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2650 # Try to create an executable without -o first, disregard a.out.
2651 # It will help us diagnose broken compilers, and finding out an intuition
2652 # of exeext.
2653 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2654 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2655 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2656 #
2657 # List of possible output files, starting from the most likely.
2658 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2659 # only as a last resort. b.out is created by i960 compilers.
2660 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2661 #
2662 # The IRIX 6 linker writes into existing files which may not be
2663 # executable, retaining their permissions. Remove them first so a
2664 # subsequent execution test works.
2665 ac_rmfiles=
2666 for ac_file in $ac_files
2667 do
2668 case $ac_file in
2669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2670 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2671 esac
2672 done
2673 rm -f $ac_rmfiles
2675 if { (ac_try="$ac_link_default"
2676 case "(($ac_try" in
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2679 esac
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_link_default") 2>&5
2682 ac_status=$?
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; then
2685 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2686 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2687 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2688 # so that the user can short-circuit this test for compilers unknown to
2689 # Autoconf.
2690 for ac_file in $ac_files ''
2691 do
2692 test -f "$ac_file" || continue
2693 case $ac_file in
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2695 ;;
2696 [ab].out )
2697 # We found the default executable, but exeext='' is most
2698 # certainly right.
2699 break;;
2700 *.* )
2701 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2702 then :; else
2703 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2704 fi
2705 # We set ac_cv_exeext here because the later test for it is not
2706 # safe: cross compilers may not add the suffix if given an `-o'
2707 # argument, so we may need to know it at that point already.
2708 # Even if this section looks crufty: it has the advantage of
2709 # actually working.
2710 break;;
2711 * )
2712 break;;
2713 esac
2714 done
2715 test "$ac_cv_exeext" = no && ac_cv_exeext=
2717 else
2718 ac_file=''
2719 fi
2721 { echo "$as_me:$LINENO: result: $ac_file" >&5
2722 echo "${ECHO_T}$ac_file" >&6; }
2723 if test -z "$ac_file"; then
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2727 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2728 See \`config.log' for more details." >&5
2729 echo "$as_me: error: C compiler cannot create executables
2730 See \`config.log' for more details." >&2;}
2731 { (exit 77); exit 77; }; }
2732 fi
2734 ac_exeext=$ac_cv_exeext
2736 # Check that the compiler produces executables we can run. If not, either
2737 # the compiler is broken, or we cross compile.
2738 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2739 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2740 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2741 # If not cross compiling, check that we can run a simple program.
2742 if test "$cross_compiling" != yes; then
2743 if { ac_try='./$ac_file'
2744 { (case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2747 esac
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_try") 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 cross_compiling=no
2754 else
2755 if test "$cross_compiling" = maybe; then
2756 cross_compiling=yes
2757 else
2758 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2759 If you meant to cross compile, use \`--host'.
2760 See \`config.log' for more details." >&5
2761 echo "$as_me: error: cannot run C compiled programs.
2762 If you meant to cross compile, use \`--host'.
2763 See \`config.log' for more details." >&2;}
2764 { (exit 1); exit 1; }; }
2765 fi
2766 fi
2767 fi
2768 { echo "$as_me:$LINENO: result: yes" >&5
2769 echo "${ECHO_T}yes" >&6; }
2771 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2772 ac_clean_files=$ac_clean_files_save
2773 # Check that the compiler produces executables we can run. If not, either
2774 # the compiler is broken, or we cross compile.
2775 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2776 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2777 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2778 echo "${ECHO_T}$cross_compiling" >&6; }
2780 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2781 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2782 if { (ac_try="$ac_link"
2783 case "(($ac_try" in
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2786 esac
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_link") 2>&5
2789 ac_status=$?
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; then
2792 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2793 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2794 # work properly (i.e., refer to `conftest.exe'), while it won't with
2795 # `rm'.
2796 for ac_file in conftest.exe conftest conftest.*; do
2797 test -f "$ac_file" || continue
2798 case $ac_file in
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2801 break;;
2802 * ) break;;
2803 esac
2804 done
2805 else
2806 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2807 See \`config.log' for more details." >&5
2808 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2809 See \`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }
2811 fi
2813 rm -f conftest$ac_cv_exeext
2814 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2815 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2817 rm -f conftest.$ac_ext
2818 EXEEXT=$ac_cv_exeext
2819 ac_exeext=$EXEEXT
2820 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2821 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2822 if test "${ac_cv_objext+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 else
2825 cat >conftest.$ac_ext <<_ACEOF
2826 /* confdefs.h. */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2832 int
2833 main ()
2834 {
2836 ;
2837 return 0;
2838 }
2839 _ACEOF
2840 rm -f conftest.o conftest.obj
2841 if { (ac_try="$ac_compile"
2842 case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compile") 2>&5
2848 ac_status=$?
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; then
2851 for ac_file in conftest.o conftest.obj conftest.*; do
2852 test -f "$ac_file" || continue;
2853 case $ac_file in
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2856 break;;
2857 esac
2858 done
2859 else
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2864 See \`config.log' for more details." >&5
2865 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2866 See \`config.log' for more details." >&2;}
2867 { (exit 1); exit 1; }; }
2868 fi
2870 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2871 fi
2872 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2873 echo "${ECHO_T}$ac_cv_objext" >&6; }
2874 OBJEXT=$ac_cv_objext
2875 ac_objext=$OBJEXT
2876 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2877 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2878 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 cat >conftest.$ac_ext <<_ACEOF
2882 /* confdefs.h. */
2883 _ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2888 int
2889 main ()
2890 {
2891 #ifndef __GNUC__
2892 choke me
2893 #endif
2895 ;
2896 return 0;
2897 }
2898 _ACEOF
2899 rm -f conftest.$ac_objext
2900 if { (ac_try="$ac_compile"
2901 case "(($ac_try" in
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2904 esac
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compile") 2>conftest.er1
2907 ac_status=$?
2908 grep -v '^ *+' conftest.er1 >conftest.err
2909 rm -f conftest.er1
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } && {
2913 test -z "$ac_c_werror_flag" ||
2914 test ! -s conftest.err
2915 } && test -s conftest.$ac_objext; then
2916 ac_compiler_gnu=yes
2917 else
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 ac_compiler_gnu=no
2922 fi
2924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2927 fi
2928 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2929 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2930 GCC=`test $ac_compiler_gnu = yes && echo yes`
2931 ac_test_CFLAGS=${CFLAGS+set}
2932 ac_save_CFLAGS=$CFLAGS
2933 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2934 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2935 if test "${ac_cv_prog_cc_g+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2937 else
2938 ac_save_c_werror_flag=$ac_c_werror_flag
2939 ac_c_werror_flag=yes
2940 ac_cv_prog_cc_g=no
2941 CFLAGS="-g"
2942 cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h. */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2949 int
2950 main ()
2951 {
2953 ;
2954 return 0;
2955 }
2956 _ACEOF
2957 rm -f conftest.$ac_objext
2958 if { (ac_try="$ac_compile"
2959 case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2962 esac
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_compile") 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } && {
2971 test -z "$ac_c_werror_flag" ||
2972 test ! -s conftest.err
2973 } && test -s conftest.$ac_objext; then
2974 ac_cv_prog_cc_g=yes
2975 else
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 CFLAGS=""
2980 cat >conftest.$ac_ext <<_ACEOF
2981 /* confdefs.h. */
2982 _ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2987 int
2988 main ()
2989 {
2991 ;
2992 return 0;
2993 }
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3003 ac_status=$?
3004 grep -v '^ *+' conftest.er1 >conftest.err
3005 rm -f conftest.er1
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } && {
3009 test -z "$ac_c_werror_flag" ||
3010 test ! -s conftest.err
3011 } && test -s conftest.$ac_objext; then
3012 :
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 ac_c_werror_flag=$ac_save_c_werror_flag
3018 CFLAGS="-g"
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h. */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3026 int
3027 main ()
3028 {
3030 ;
3031 return 0;
3032 }
3033 _ACEOF
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3036 case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3042 ac_status=$?
3043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } && {
3048 test -z "$ac_c_werror_flag" ||
3049 test ! -s conftest.err
3050 } && test -s conftest.$ac_objext; then
3051 ac_cv_prog_cc_g=yes
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3057 fi
3059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 fi
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3063 fi
3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 ac_c_werror_flag=$ac_save_c_werror_flag
3067 fi
3068 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3069 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3070 if test "$ac_test_CFLAGS" = set; then
3071 CFLAGS=$ac_save_CFLAGS
3072 elif test $ac_cv_prog_cc_g = yes; then
3073 if test "$GCC" = yes; then
3074 CFLAGS="-g -O2"
3075 else
3076 CFLAGS="-g"
3077 fi
3078 else
3079 if test "$GCC" = yes; then
3080 CFLAGS="-O2"
3081 else
3082 CFLAGS=
3083 fi
3084 fi
3085 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3086 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_cc_c89+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090 ac_cv_prog_cc_c89=no
3091 ac_save_CC=$CC
3092 cat >conftest.$ac_ext <<_ACEOF
3093 /* confdefs.h. */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3098 #include <stdarg.h>
3099 #include <stdio.h>
3100 #include <sys/types.h>
3101 #include <sys/stat.h>
3102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3103 struct buf { int x; };
3104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3105 static char *e (p, i)
3106 char **p;
3107 int i;
3108 {
3109 return p[i];
3110 }
3111 static char *f (char * (*g) (char **, int), char **p, ...)
3112 {
3113 char *s;
3114 va_list v;
3115 va_start (v,p);
3116 s = g (p, va_arg (v,int));
3117 va_end (v);
3118 return s;
3119 }
3121 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3122 function prototypes and stuff, but not '\xHH' hex character constants.
3123 These don't provoke an error unfortunately, instead are silently treated
3124 as 'x'. The following induces an error, until -std is added to get
3125 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3126 array size at least. It's necessary to write '\x00'==0 to get something
3127 that's true only with -std. */
3128 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3130 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3131 inside strings and character constants. */
3132 #define FOO(x) 'x'
3133 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3135 int test (int i, double x);
3136 struct s1 {int (*f) (int a);};
3137 struct s2 {int (*f) (double a);};
3138 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3139 int argc;
3140 char **argv;
3141 int
3142 main ()
3143 {
3144 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3145 ;
3146 return 0;
3147 }
3148 _ACEOF
3149 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3150 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3151 do
3152 CC="$ac_save_CC $ac_arg"
3153 rm -f conftest.$ac_objext
3154 if { (ac_try="$ac_compile"
3155 case "(($ac_try" in
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3158 esac
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_compile") 2>conftest.er1
3161 ac_status=$?
3162 grep -v '^ *+' conftest.er1 >conftest.err
3163 rm -f conftest.er1
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } && {
3167 test -z "$ac_c_werror_flag" ||
3168 test ! -s conftest.err
3169 } && test -s conftest.$ac_objext; then
3170 ac_cv_prog_cc_c89=$ac_arg
3171 else
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3176 fi
3178 rm -f core conftest.err conftest.$ac_objext
3179 test "x$ac_cv_prog_cc_c89" != "xno" && break
3180 done
3181 rm -f conftest.$ac_ext
3182 CC=$ac_save_CC
3184 fi
3185 # AC_CACHE_VAL
3186 case "x$ac_cv_prog_cc_c89" in
3187 x)
3188 { echo "$as_me:$LINENO: result: none needed" >&5
3189 echo "${ECHO_T}none needed" >&6; } ;;
3190 xno)
3191 { echo "$as_me:$LINENO: result: unsupported" >&5
3192 echo "${ECHO_T}unsupported" >&6; } ;;
3193 *)
3194 CC="$CC $ac_cv_prog_cc_c89"
3195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3196 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3197 esac
3200 ac_ext=c
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 depcc="$CC" am_compiler_list=
3208 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3209 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3210 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3214 # We make a subdir and do the tests there. Otherwise we can end up
3215 # making bogus files that we don't know about and never remove. For
3216 # instance it was reported that on HP-UX the gcc test will end up
3217 # making a dummy file named `D' -- because `-MD' means `put the output
3218 # in D'.
3219 mkdir conftest.dir
3220 # Copy depcomp to subdir because otherwise we won't find it if we're
3221 # using a relative directory.
3222 cp "$am_depcomp" conftest.dir
3223 cd conftest.dir
3224 # We will build objects and dependencies in a subdirectory because
3225 # it helps to detect inapplicable dependency modes. For instance
3226 # both Tru64's cc and ICC support -MD to output dependencies as a
3227 # side effect of compilation, but ICC will put the dependencies in
3228 # the current directory while Tru64 will put them in the object
3229 # directory.
3230 mkdir sub
3232 am_cv_CC_dependencies_compiler_type=none
3233 if test "$am_compiler_list" = ""; then
3234 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3235 fi
3236 for depmode in $am_compiler_list; do
3237 # Setup a source with many dependencies, because some compilers
3238 # like to wrap large dependency lists on column 80 (with \), and
3239 # we should not choose a depcomp mode which is confused by this.
3240 #
3241 # We need to recreate these files for each test, as the compiler may
3242 # overwrite some of them when testing with obscure command lines.
3243 # This happens at least with the AIX C compiler.
3244 : > sub/conftest.c
3245 for i in 1 2 3 4 5 6; do
3246 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3247 : > sub/conftst$i.h
3248 done
3249 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3251 case $depmode in
3252 nosideeffect)
3253 # after this tag, mechanisms are not by side-effect, so they'll
3254 # only be used when explicitly requested
3255 if test "x$enable_dependency_tracking" = xyes; then
3256 continue
3257 else
3258 break
3259 fi
3260 ;;
3261 none) break ;;
3262 esac
3263 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3264 # mode. It turns out that the SunPro C++ compiler does not properly
3265 # handle `-M -o', and we need to detect this.
3266 if depmode=$depmode \
3267 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3268 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3269 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3270 >/dev/null 2>conftest.err &&
3271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3272 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3274 # icc doesn't choke on unknown options, it will just issue warnings
3275 # (even with -Werror). So we grep stderr for any message
3276 # that says an option was ignored.
3277 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3278 am_cv_CC_dependencies_compiler_type=$depmode
3279 break
3280 fi
3281 fi
3282 done
3284 cd ..
3285 rm -rf conftest.dir
3286 else
3287 am_cv_CC_dependencies_compiler_type=none
3288 fi
3290 fi
3291 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3292 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3293 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3297 if
3298 test "x$enable_dependency_tracking" != xno \
3299 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3300 am__fastdepCC_TRUE=
3301 am__fastdepCC_FALSE='#'
3302 else
3303 am__fastdepCC_TRUE='#'
3304 am__fastdepCC_FALSE=
3305 fi
3309 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3310 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3311 if test "${ac_cv_search_strerror+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314 ac_func_search_save_LIBS=$LIBS
3315 cat >conftest.$ac_ext <<_ACEOF
3316 /* confdefs.h. */
3317 _ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3322 /* Override any GCC internal prototype to avoid an error.
3323 Use char because int might match the return type of a GCC
3324 builtin and then its argument prototype would still apply. */
3325 #ifdef __cplusplus
3326 extern "C"
3327 #endif
3328 char strerror ();
3329 int
3330 main ()
3331 {
3332 return strerror ();
3333 ;
3334 return 0;
3335 }
3336 _ACEOF
3337 for ac_lib in '' cposix; do
3338 if test -z "$ac_lib"; then
3339 ac_res="none required"
3340 else
3341 ac_res=-l$ac_lib
3342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3343 fi
3344 rm -f conftest.$ac_objext conftest$ac_exeext
3345 if { (ac_try="$ac_link"
3346 case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349 esac
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_link") 2>conftest.er1
3352 ac_status=$?
3353 grep -v '^ *+' conftest.er1 >conftest.err
3354 rm -f conftest.er1
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } && {
3358 test -z "$ac_c_werror_flag" ||
3359 test ! -s conftest.err
3360 } && test -s conftest$ac_exeext &&
3361 $as_test_x conftest$ac_exeext; then
3362 ac_cv_search_strerror=$ac_res
3363 else
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3368 fi
3370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3371 conftest$ac_exeext
3372 if test "${ac_cv_search_strerror+set}" = set; then
3373 break
3374 fi
3375 done
3376 if test "${ac_cv_search_strerror+set}" = set; then
3377 :
3378 else
3379 ac_cv_search_strerror=no
3380 fi
3381 rm conftest.$ac_ext
3382 LIBS=$ac_func_search_save_LIBS
3383 fi
3384 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3385 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3386 ac_res=$ac_cv_search_strerror
3387 if test "$ac_res" != no; then
3388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3390 fi
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 if test -n "$ac_tool_prefix"; then
3398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3402 if test "${ac_cv_prog_CC+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405 if test -n "$CC"; then
3406 ac_cv_prog_CC="$CC" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419 done
3420 done
3421 IFS=$as_save_IFS
3423 fi
3424 fi
3425 CC=$ac_cv_prog_CC
3426 if test -n "$CC"; then
3427 { echo "$as_me:$LINENO: result: $CC" >&5
3428 echo "${ECHO_T}$CC" >&6; }
3429 else
3430 { echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6; }
3432 fi
3435 fi
3436 if test -z "$ac_cv_prog_CC"; then
3437 ac_ct_CC=$CC
3438 # Extract the first word of "gcc", so it can be a program name with args.
3439 set dummy gcc; ac_word=$2
3440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 if test -n "$ac_ct_CC"; then
3446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3447 else
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 for as_dir in $PATH
3450 do
3451 IFS=$as_save_IFS
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_ac_ct_CC="gcc"
3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 break 2
3458 fi
3459 done
3460 done
3461 IFS=$as_save_IFS
3463 fi
3464 fi
3465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3466 if test -n "$ac_ct_CC"; then
3467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3468 echo "${ECHO_T}$ac_ct_CC" >&6; }
3469 else
3470 { echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6; }
3472 fi
3474 if test "x$ac_ct_CC" = x; then
3475 CC=""
3476 else
3477 case $cross_compiling:$ac_tool_warned in
3478 yes:)
3479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3480 whose name does not start with the host triplet. If you think this
3481 configuration is useful to you, please write to autoconf@gnu.org." >&5
3482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3483 whose name does not start with the host triplet. If you think this
3484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3485 ac_tool_warned=yes ;;
3486 esac
3487 CC=$ac_ct_CC
3488 fi
3489 else
3490 CC="$ac_cv_prog_CC"
3491 fi
3493 if test -z "$CC"; then
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}cc; ac_word=$2
3497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508 IFS=$as_save_IFS
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="${ac_tool_prefix}cc"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3514 break 2
3515 fi
3516 done
3517 done
3518 IFS=$as_save_IFS
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { echo "$as_me:$LINENO: result: $CC" >&5
3525 echo "${ECHO_T}$CC" >&6; }
3526 else
3527 { echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6; }
3529 fi
3532 fi
3533 fi
3534 if test -z "$CC"; then
3535 # Extract the first word of "cc", so it can be a program name with args.
3536 set dummy cc; ac_word=$2
3537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3539 if test "${ac_cv_prog_CC+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 ac_prog_rejected=no
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3554 ac_prog_rejected=yes
3555 continue
3556 fi
3557 ac_cv_prog_CC="cc"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3560 fi
3561 done
3562 done
3563 IFS=$as_save_IFS
3565 if test $ac_prog_rejected = yes; then
3566 # We found a bogon in the path, so make sure we never use it.
3567 set dummy $ac_cv_prog_CC
3568 shift
3569 if test $# != 0; then
3570 # We chose a different compiler from the bogus one.
3571 # However, it has the same basename, so the bogon will be chosen
3572 # first if we set CC to just the basename; use the full file name.
3573 shift
3574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3575 fi
3576 fi
3577 fi
3578 fi
3579 CC=$ac_cv_prog_CC
3580 if test -n "$CC"; then
3581 { echo "$as_me:$LINENO: result: $CC" >&5
3582 echo "${ECHO_T}$CC" >&6; }
3583 else
3584 { echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6; }
3586 fi
3589 fi
3590 if test -z "$CC"; then
3591 if test -n "$ac_tool_prefix"; then
3592 for ac_prog in cl.exe
3593 do
3594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3598 if test "${ac_cv_prog_CC+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 else
3601 if test -n "$CC"; then
3602 ac_cv_prog_CC="$CC" # Let the user override the test.
3603 else
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 for as_dir in $PATH
3606 do
3607 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2
3614 fi
3615 done
3616 done
3617 IFS=$as_save_IFS
3619 fi
3620 fi
3621 CC=$ac_cv_prog_CC
3622 if test -n "$CC"; then
3623 { echo "$as_me:$LINENO: result: $CC" >&5
3624 echo "${ECHO_T}$CC" >&6; }
3625 else
3626 { echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6; }
3628 fi
3631 test -n "$CC" && break
3632 done
3633 fi
3634 if test -z "$CC"; then
3635 ac_ct_CC=$CC
3636 for ac_prog in cl.exe
3637 do
3638 # Extract the first word of "$ac_prog", so it can be a program name with args.
3639 set dummy $ac_prog; ac_word=$2
3640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 else
3645 if test -n "$ac_ct_CC"; then
3646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3647 else
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_ac_ct_CC="$ac_prog"
3656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3657 break 2
3658 fi
3659 done
3660 done
3661 IFS=$as_save_IFS
3663 fi
3664 fi
3665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3666 if test -n "$ac_ct_CC"; then
3667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3668 echo "${ECHO_T}$ac_ct_CC" >&6; }
3669 else
3670 { echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6; }
3672 fi
3675 test -n "$ac_ct_CC" && break
3676 done
3678 if test "x$ac_ct_CC" = x; then
3679 CC=""
3680 else
3681 case $cross_compiling:$ac_tool_warned in
3682 yes:)
3683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3684 whose name does not start with the host triplet. If you think this
3685 configuration is useful to you, please write to autoconf@gnu.org." >&5
3686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3687 whose name does not start with the host triplet. If you think this
3688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3689 ac_tool_warned=yes ;;
3690 esac
3691 CC=$ac_ct_CC
3692 fi
3693 fi
3695 fi
3698 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3699 See \`config.log' for more details." >&5
3700 echo "$as_me: error: no acceptable C compiler found in \$PATH
3701 See \`config.log' for more details." >&2;}
3702 { (exit 1); exit 1; }; }
3704 # Provide some information about the compiler.
3705 echo "$as_me:$LINENO: checking for C compiler version" >&5
3706 ac_compiler=`set X $ac_compile; echo $2`
3707 { (ac_try="$ac_compiler --version >&5"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_compiler --version >&5") 2>&5
3714 ac_status=$?
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }
3717 { (ac_try="$ac_compiler -v >&5"
3718 case "(($ac_try" in
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_compiler -v >&5") 2>&5
3724 ac_status=$?
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }
3727 { (ac_try="$ac_compiler -V >&5"
3728 case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731 esac
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733 (eval "$ac_compiler -V >&5") 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }
3738 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3739 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743 cat >conftest.$ac_ext <<_ACEOF
3744 /* confdefs.h. */
3745 _ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3750 int
3751 main ()
3752 {
3753 #ifndef __GNUC__
3754 choke me
3755 #endif
3757 ;
3758 return 0;
3759 }
3760 _ACEOF
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3763 case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_compile") 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } && {
3775 test -z "$ac_c_werror_flag" ||
3776 test ! -s conftest.err
3777 } && test -s conftest.$ac_objext; then
3778 ac_compiler_gnu=yes
3779 else
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3783 ac_compiler_gnu=no
3784 fi
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3789 fi
3790 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3791 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3792 GCC=`test $ac_compiler_gnu = yes && echo yes`
3793 ac_test_CFLAGS=${CFLAGS+set}
3794 ac_save_CFLAGS=$CFLAGS
3795 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3796 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3797 if test "${ac_cv_prog_cc_g+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 else
3800 ac_save_c_werror_flag=$ac_c_werror_flag
3801 ac_c_werror_flag=yes
3802 ac_cv_prog_cc_g=no
3803 CFLAGS="-g"
3804 cat >conftest.$ac_ext <<_ACEOF
3805 /* confdefs.h. */
3806 _ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3811 int
3812 main ()
3813 {
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 rm -f conftest.$ac_objext
3820 if { (ac_try="$ac_compile"
3821 case "(($ac_try" in
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3824 esac
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_compile") 2>conftest.er1
3827 ac_status=$?
3828 grep -v '^ *+' conftest.er1 >conftest.err
3829 rm -f conftest.er1
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } && {
3833 test -z "$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3835 } && test -s conftest.$ac_objext; then
3836 ac_cv_prog_cc_g=yes
3837 else
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 CFLAGS=""
3842 cat >conftest.$ac_ext <<_ACEOF
3843 /* confdefs.h. */
3844 _ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3849 int
3850 main ()
3851 {
3853 ;
3854 return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3859 case "(($ac_try" in
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3862 esac
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_compile") 2>conftest.er1
3865 ac_status=$?
3866 grep -v '^ *+' conftest.er1 >conftest.err
3867 rm -f conftest.er1
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && {
3871 test -z "$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 } && test -s conftest.$ac_objext; then
3874 :
3875 else
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 ac_c_werror_flag=$ac_save_c_werror_flag
3880 CFLAGS="-g"
3881 cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h. */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3888 int
3889 main ()
3890 {
3892 ;
3893 return 0;
3894 }
3895 _ACEOF
3896 rm -f conftest.$ac_objext
3897 if { (ac_try="$ac_compile"
3898 case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903 (eval "$ac_compile") 2>conftest.er1
3904 ac_status=$?
3905 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1
3907 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } && {
3910 test -z "$ac_c_werror_flag" ||
3911 test ! -s conftest.err
3912 } && test -s conftest.$ac_objext; then
3913 ac_cv_prog_cc_g=yes
3914 else
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3919 fi
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 fi
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 ac_c_werror_flag=$ac_save_c_werror_flag
3929 fi
3930 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3931 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3932 if test "$ac_test_CFLAGS" = set; then
3933 CFLAGS=$ac_save_CFLAGS
3934 elif test $ac_cv_prog_cc_g = yes; then
3935 if test "$GCC" = yes; then
3936 CFLAGS="-g -O2"
3937 else
3938 CFLAGS="-g"
3939 fi
3940 else
3941 if test "$GCC" = yes; then
3942 CFLAGS="-O2"
3943 else
3944 CFLAGS=
3945 fi
3946 fi
3947 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3948 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3949 if test "${ac_cv_prog_cc_c89+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952 ac_cv_prog_cc_c89=no
3953 ac_save_CC=$CC
3954 cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h. */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3960 #include <stdarg.h>
3961 #include <stdio.h>
3962 #include <sys/types.h>
3963 #include <sys/stat.h>
3964 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3965 struct buf { int x; };
3966 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3967 static char *e (p, i)
3968 char **p;
3969 int i;
3970 {
3971 return p[i];
3972 }
3973 static char *f (char * (*g) (char **, int), char **p, ...)
3974 {
3975 char *s;
3976 va_list v;
3977 va_start (v,p);
3978 s = g (p, va_arg (v,int));
3979 va_end (v);
3980 return s;
3981 }
3983 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3984 function prototypes and stuff, but not '\xHH' hex character constants.
3985 These don't provoke an error unfortunately, instead are silently treated
3986 as 'x'. The following induces an error, until -std is added to get
3987 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3988 array size at least. It's necessary to write '\x00'==0 to get something
3989 that's true only with -std. */
3990 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3992 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3993 inside strings and character constants. */
3994 #define FOO(x) 'x'
3995 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3997 int test (int i, double x);
3998 struct s1 {int (*f) (int a);};
3999 struct s2 {int (*f) (double a);};
4000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4001 int argc;
4002 char **argv;
4003 int
4004 main ()
4005 {
4006 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4007 ;
4008 return 0;
4009 }
4010 _ACEOF
4011 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4012 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4013 do
4014 CC="$ac_save_CC $ac_arg"
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4017 case "(($ac_try" in
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4020 esac
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.$ac_objext; then
4032 ac_cv_prog_cc_c89=$ac_arg
4033 else
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4038 fi
4040 rm -f core conftest.err conftest.$ac_objext
4041 test "x$ac_cv_prog_cc_c89" != "xno" && break
4042 done
4043 rm -f conftest.$ac_ext
4044 CC=$ac_save_CC
4046 fi
4047 # AC_CACHE_VAL
4048 case "x$ac_cv_prog_cc_c89" in
4049 x)
4050 { echo "$as_me:$LINENO: result: none needed" >&5
4051 echo "${ECHO_T}none needed" >&6; } ;;
4052 xno)
4053 { echo "$as_me:$LINENO: result: unsupported" >&5
4054 echo "${ECHO_T}unsupported" >&6; } ;;
4055 *)
4056 CC="$CC $ac_cv_prog_cc_c89"
4057 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4058 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4059 esac
4062 ac_ext=c
4063 ac_cpp='$CPP $CPPFLAGS'
4064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 depcc="$CC" am_compiler_list=
4070 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4071 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4072 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4076 # We make a subdir and do the tests there. Otherwise we can end up
4077 # making bogus files that we don't know about and never remove. For
4078 # instance it was reported that on HP-UX the gcc test will end up
4079 # making a dummy file named `D' -- because `-MD' means `put the output
4080 # in D'.
4081 mkdir conftest.dir
4082 # Copy depcomp to subdir because otherwise we won't find it if we're
4083 # using a relative directory.
4084 cp "$am_depcomp" conftest.dir
4085 cd conftest.dir
4086 # We will build objects and dependencies in a subdirectory because
4087 # it helps to detect inapplicable dependency modes. For instance
4088 # both Tru64's cc and ICC support -MD to output dependencies as a
4089 # side effect of compilation, but ICC will put the dependencies in
4090 # the current directory while Tru64 will put them in the object
4091 # directory.
4092 mkdir sub
4094 am_cv_CC_dependencies_compiler_type=none
4095 if test "$am_compiler_list" = ""; then
4096 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4097 fi
4098 for depmode in $am_compiler_list; do
4099 # Setup a source with many dependencies, because some compilers
4100 # like to wrap large dependency lists on column 80 (with \), and
4101 # we should not choose a depcomp mode which is confused by this.
4102 #
4103 # We need to recreate these files for each test, as the compiler may
4104 # overwrite some of them when testing with obscure command lines.
4105 # This happens at least with the AIX C compiler.
4106 : > sub/conftest.c
4107 for i in 1 2 3 4 5 6; do
4108 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4109 : > sub/conftst$i.h
4110 done
4111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4113 case $depmode in
4114 nosideeffect)
4115 # after this tag, mechanisms are not by side-effect, so they'll
4116 # only be used when explicitly requested
4117 if test "x$enable_dependency_tracking" = xyes; then
4118 continue
4119 else
4120 break
4121 fi
4122 ;;
4123 none) break ;;
4124 esac
4125 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4126 # mode. It turns out that the SunPro C++ compiler does not properly
4127 # handle `-M -o', and we need to detect this.
4128 if depmode=$depmode \
4129 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4131 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4132 >/dev/null 2>conftest.err &&
4133 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4134 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4136 # icc doesn't choke on unknown options, it will just issue warnings
4137 # (even with -Werror). So we grep stderr for any message
4138 # that says an option was ignored.
4139 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4140 am_cv_CC_dependencies_compiler_type=$depmode
4141 break
4142 fi
4143 fi
4144 done
4146 cd ..
4147 rm -rf conftest.dir
4148 else
4149 am_cv_CC_dependencies_compiler_type=none
4150 fi
4152 fi
4153 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4154 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4155 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4159 if
4160 test "x$enable_dependency_tracking" != xno \
4161 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4162 am__fastdepCC_TRUE=
4163 am__fastdepCC_FALSE='#'
4164 else
4165 am__fastdepCC_TRUE='#'
4166 am__fastdepCC_FALSE=
4167 fi
4173 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4174 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4175 if test "${am_cv_prog_cc_stdc+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 else
4178 am_cv_prog_cc_stdc=no
4179 ac_save_CC="$CC"
4180 # Don't try gcc -ansi; that turns off useful extensions and
4181 # breaks some systems' header files.
4182 # AIX -qlanglvl=ansi
4183 # Ultrix and OSF/1 -std1
4184 # HP-UX 10.20 and later -Ae
4185 # HP-UX older versions -Aa -D_HPUX_SOURCE
4186 # SVR4 -Xc -D__EXTENSIONS__
4187 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4188 do
4189 CC="$ac_save_CC $ac_arg"
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <stdarg.h>
4197 #include <stdio.h>
4198 #include <sys/types.h>
4199 #include <sys/stat.h>
4200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4201 struct buf { int x; };
4202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4203 static char *e (p, i)
4204 char **p;
4205 int i;
4206 {
4207 return p[i];
4208 }
4209 static char *f (char * (*g) (char **, int), char **p, ...)
4210 {
4211 char *s;
4212 va_list v;
4213 va_start (v,p);
4214 s = g (p, va_arg (v,int));
4215 va_end (v);
4216 return s;
4217 }
4218 int test (int i, double x);
4219 struct s1 {int (*f) (int a);};
4220 struct s2 {int (*f) (double a);};
4221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4222 int argc;
4223 char **argv;
4225 int
4226 main ()
4227 {
4229 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4231 ;
4232 return 0;
4233 }
4234 _ACEOF
4235 rm -f conftest.$ac_objext
4236 if { (ac_try="$ac_compile"
4237 case "(($ac_try" in
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4240 esac
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_compile") 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } && {
4249 test -z "$ac_c_werror_flag" ||
4250 test ! -s conftest.err
4251 } && test -s conftest.$ac_objext; then
4252 am_cv_prog_cc_stdc="$ac_arg"; break
4253 else
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4258 fi
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 done
4262 CC="$ac_save_CC"
4264 fi
4266 if test -z "$am_cv_prog_cc_stdc"; then
4267 { echo "$as_me:$LINENO: result: none needed" >&5
4268 echo "${ECHO_T}none needed" >&6; }
4269 else
4270 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4271 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4272 fi
4273 case "x$am_cv_prog_cc_stdc" in
4274 x|xno) ;;
4275 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4276 esac
4278 ac_ext=c
4279 ac_cpp='$CPP $CPPFLAGS'
4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4284 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4285 # On Suns, sometimes $CPP names a directory.
4286 if test -n "$CPP" && test -d "$CPP"; then
4287 CPP=
4288 fi
4289 if test -z "$CPP"; then
4290 if test "${ac_cv_prog_CPP+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 # Double quotes because CPP needs to be expanded
4294 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4295 do
4296 ac_preproc_ok=false
4297 for ac_c_preproc_warn_flag in '' yes
4298 do
4299 # Use a header file that comes with gcc, so configuring glibc
4300 # with a fresh cross-compiler works.
4301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 # <limits.h> exists even on freestanding compilers.
4303 # On the NeXT, cc -E runs the code through the compiler's parser,
4304 # not just through cpp. "Syntax error" is here to catch this case.
4305 cat >conftest.$ac_ext <<_ACEOF
4306 /* confdefs.h. */
4307 _ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4311 #ifdef __STDC__
4312 # include <limits.h>
4313 #else
4314 # include <assert.h>
4315 #endif
4316 Syntax error
4317 _ACEOF
4318 if { (ac_try="$ac_cpp conftest.$ac_ext"
4319 case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4325 ac_status=$?
4326 grep -v '^ *+' conftest.er1 >conftest.err
4327 rm -f conftest.er1
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } >/dev/null && {
4331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4332 test ! -s conftest.err
4333 }; then
4334 :
4335 else
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4339 # Broken: fails on valid input.
4340 continue
4341 fi
4343 rm -f conftest.err conftest.$ac_ext
4345 # OK, works on sane cases. Now check whether nonexistent headers
4346 # can be detected and how.
4347 cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h. */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <ac_nonexistent.h>
4354 _ACEOF
4355 if { (ac_try="$ac_cpp conftest.$ac_ext"
4356 case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } >/dev/null && {
4368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4370 }; then
4371 # Broken: success on invalid input.
4372 continue
4373 else
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4377 # Passes both tests.
4378 ac_preproc_ok=:
4379 break
4380 fi
4382 rm -f conftest.err conftest.$ac_ext
4384 done
4385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4386 rm -f conftest.err conftest.$ac_ext
4387 if $ac_preproc_ok; then
4388 break
4389 fi
4391 done
4392 ac_cv_prog_CPP=$CPP
4394 fi
4395 CPP=$ac_cv_prog_CPP
4396 else
4397 ac_cv_prog_CPP=$CPP
4398 fi
4399 { echo "$as_me:$LINENO: result: $CPP" >&5
4400 echo "${ECHO_T}$CPP" >&6; }
4401 ac_preproc_ok=false
4402 for ac_c_preproc_warn_flag in '' yes
4403 do
4404 # Use a header file that comes with gcc, so configuring glibc
4405 # with a fresh cross-compiler works.
4406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4407 # <limits.h> exists even on freestanding compilers.
4408 # On the NeXT, cc -E runs the code through the compiler's parser,
4409 # not just through cpp. "Syntax error" is here to catch this case.
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 #ifdef __STDC__
4417 # include <limits.h>
4418 #else
4419 # include <assert.h>
4420 #endif
4421 Syntax error
4422 _ACEOF
4423 if { (ac_try="$ac_cpp conftest.$ac_ext"
4424 case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427 esac
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4430 ac_status=$?
4431 grep -v '^ *+' conftest.er1 >conftest.err
4432 rm -f conftest.er1
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } >/dev/null && {
4436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4437 test ! -s conftest.err
4438 }; then
4439 :
4440 else
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 # Broken: fails on valid input.
4445 continue
4446 fi
4448 rm -f conftest.err conftest.$ac_ext
4450 # OK, works on sane cases. Now check whether nonexistent headers
4451 # can be detected and how.
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <ac_nonexistent.h>
4459 _ACEOF
4460 if { (ac_try="$ac_cpp conftest.$ac_ext"
4461 case "(($ac_try" in
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4464 esac
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4467 ac_status=$?
4468 grep -v '^ *+' conftest.er1 >conftest.err
4469 rm -f conftest.er1
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null && {
4473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4474 test ! -s conftest.err
4475 }; then
4476 # Broken: success on invalid input.
4477 continue
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 # Passes both tests.
4483 ac_preproc_ok=:
4484 break
4485 fi
4487 rm -f conftest.err conftest.$ac_ext
4489 done
4490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4491 rm -f conftest.err conftest.$ac_ext
4492 if $ac_preproc_ok; then
4493 :
4494 else
4495 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4496 See \`config.log' for more details." >&5
4497 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4498 See \`config.log' for more details." >&2;}
4499 { (exit 1); exit 1; }; }
4500 fi
4502 ac_ext=c
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4510 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4511 if test "${ac_cv_path_GREP+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 # Extract the first word of "grep ggrep" to use in msg output
4515 if test -z "$GREP"; then
4516 set dummy grep ggrep; ac_prog_name=$2
4517 if test "${ac_cv_path_GREP+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 else
4520 ac_path_GREP_found=false
4521 # Loop through the user's path and test for each of PROGNAME-LIST
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4524 do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_prog in grep ggrep; do
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4530 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4531 # Check for GNU ac_path_GREP and select it if it is found.
4532 # Check for GNU $ac_path_GREP
4533 case `"$ac_path_GREP" --version 2>&1` in
4534 *GNU*)
4535 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4536 *)
4537 ac_count=0
4538 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4539 while :
4540 do
4541 cat "conftest.in" "conftest.in" >"conftest.tmp"
4542 mv "conftest.tmp" "conftest.in"
4543 cp "conftest.in" "conftest.nl"
4544 echo 'GREP' >> "conftest.nl"
4545 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4547 ac_count=`expr $ac_count + 1`
4548 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4549 # Best one so far, save it but keep looking for a better one
4550 ac_cv_path_GREP="$ac_path_GREP"
4551 ac_path_GREP_max=$ac_count
4552 fi
4553 # 10*(2^10) chars as input seems more than enough
4554 test $ac_count -gt 10 && break
4555 done
4556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4557 esac
4560 $ac_path_GREP_found && break 3
4561 done
4562 done
4564 done
4565 IFS=$as_save_IFS
4568 fi
4570 GREP="$ac_cv_path_GREP"
4571 if test -z "$GREP"; then
4572 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4573 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4574 { (exit 1); exit 1; }; }
4575 fi
4577 else
4578 ac_cv_path_GREP=$GREP
4579 fi
4582 fi
4583 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4584 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4585 GREP="$ac_cv_path_GREP"
4588 { echo "$as_me:$LINENO: checking for egrep" >&5
4589 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4590 if test "${ac_cv_path_EGREP+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4594 then ac_cv_path_EGREP="$GREP -E"
4595 else
4596 # Extract the first word of "egrep" to use in msg output
4597 if test -z "$EGREP"; then
4598 set dummy egrep; ac_prog_name=$2
4599 if test "${ac_cv_path_EGREP+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 else
4602 ac_path_EGREP_found=false
4603 # Loop through the user's path and test for each of PROGNAME-LIST
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_prog in egrep; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4612 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4613 # Check for GNU ac_path_EGREP and select it if it is found.
4614 # Check for GNU $ac_path_EGREP
4615 case `"$ac_path_EGREP" --version 2>&1` in
4616 *GNU*)
4617 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4618 *)
4619 ac_count=0
4620 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4621 while :
4622 do
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
4624 mv "conftest.tmp" "conftest.in"
4625 cp "conftest.in" "conftest.nl"
4626 echo 'EGREP' >> "conftest.nl"
4627 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629 ac_count=`expr $ac_count + 1`
4630 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_EGREP="$ac_path_EGREP"
4633 ac_path_EGREP_max=$ac_count
4634 fi
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
4637 done
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 esac
4642 $ac_path_EGREP_found && break 3
4643 done
4644 done
4646 done
4647 IFS=$as_save_IFS
4650 fi
4652 EGREP="$ac_cv_path_EGREP"
4653 if test -z "$EGREP"; then
4654 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4655 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4656 { (exit 1); exit 1; }; }
4657 fi
4659 else
4660 ac_cv_path_EGREP=$EGREP
4661 fi
4664 fi
4665 fi
4666 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4667 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4668 EGREP="$ac_cv_path_EGREP"
4671 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4672 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4673 if test "${ac_cv_header_stdc+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4675 else
4676 cat >conftest.$ac_ext <<_ACEOF
4677 /* confdefs.h. */
4678 _ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4682 #include <stdlib.h>
4683 #include <stdarg.h>
4684 #include <string.h>
4685 #include <float.h>
4687 int
4688 main ()
4689 {
4691 ;
4692 return 0;
4693 }
4694 _ACEOF
4695 rm -f conftest.$ac_objext
4696 if { (ac_try="$ac_compile"
4697 case "(($ac_try" in
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4700 esac
4701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4702 (eval "$ac_compile") 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } && {
4709 test -z "$ac_c_werror_flag" ||
4710 test ! -s conftest.err
4711 } && test -s conftest.$ac_objext; then
4712 ac_cv_header_stdc=yes
4713 else
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 ac_cv_header_stdc=no
4718 fi
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 if test $ac_cv_header_stdc = yes; then
4723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h. */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 #include <string.h>
4732 _ACEOF
4733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734 $EGREP "memchr" >/dev/null 2>&1; then
4735 :
4736 else
4737 ac_cv_header_stdc=no
4738 fi
4739 rm -f conftest*
4741 fi
4743 if test $ac_cv_header_stdc = yes; then
4744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4745 cat >conftest.$ac_ext <<_ACEOF
4746 /* confdefs.h. */
4747 _ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4751 #include <stdlib.h>
4753 _ACEOF
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 $EGREP "free" >/dev/null 2>&1; then
4756 :
4757 else
4758 ac_cv_header_stdc=no
4759 fi
4760 rm -f conftest*
4762 fi
4764 if test $ac_cv_header_stdc = yes; then
4765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4766 if test "$cross_compiling" = yes; then
4767 :
4768 else
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h. */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 #include <ctype.h>
4776 #include <stdlib.h>
4777 #if ((' ' & 0x0FF) == 0x020)
4778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4780 #else
4781 # define ISLOWER(c) \
4782 (('a' <= (c) && (c) <= 'i') \
4783 || ('j' <= (c) && (c) <= 'r') \
4784 || ('s' <= (c) && (c) <= 'z'))
4785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4786 #endif
4788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4789 int
4790 main ()
4791 {
4792 int i;
4793 for (i = 0; i < 256; i++)
4794 if (XOR (islower (i), ISLOWER (i))
4795 || toupper (i) != TOUPPER (i))
4796 return 2;
4797 return 0;
4798 }
4799 _ACEOF
4800 rm -f conftest$ac_exeext
4801 if { (ac_try="$ac_link"
4802 case "(($ac_try" in
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4805 esac
4806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4807 (eval "$ac_link") 2>&5
4808 ac_status=$?
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4811 { (case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4814 esac
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_try") 2>&5
4817 ac_status=$?
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 :
4821 else
4822 echo "$as_me: program exited with status $ac_status" >&5
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ( exit $ac_status )
4827 ac_cv_header_stdc=no
4828 fi
4829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4830 fi
4833 fi
4834 fi
4835 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4836 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4837 if test $ac_cv_header_stdc = yes; then
4839 cat >>confdefs.h <<\_ACEOF
4840 #define STDC_HEADERS 1
4841 _ACEOF
4843 fi
4845 # Make sure we can run config.sub.
4846 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4847 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4848 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4849 { (exit 1); exit 1; }; }
4851 { echo "$as_me:$LINENO: checking build system type" >&5
4852 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4853 if test "${ac_cv_build+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 ac_build_alias=$build_alias
4857 test "x$ac_build_alias" = x &&
4858 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4859 test "x$ac_build_alias" = x &&
4860 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4861 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4862 { (exit 1); exit 1; }; }
4863 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4864 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4865 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4866 { (exit 1); exit 1; }; }
4868 fi
4869 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4870 echo "${ECHO_T}$ac_cv_build" >&6; }
4871 case $ac_cv_build in
4872 *-*-*) ;;
4873 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4874 echo "$as_me: error: invalid value of canonical build" >&2;}
4875 { (exit 1); exit 1; }; };;
4876 esac
4877 build=$ac_cv_build
4878 ac_save_IFS=$IFS; IFS='-'
4879 set x $ac_cv_build
4880 shift
4881 build_cpu=$1
4882 build_vendor=$2
4883 shift; shift
4884 # Remember, the first character of IFS is used to create $*,
4885 # except with old shells:
4886 build_os=$*
4887 IFS=$ac_save_IFS
4888 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4891 { echo "$as_me:$LINENO: checking host system type" >&5
4892 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4893 if test "${ac_cv_host+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896 if test "x$host_alias" = x; then
4897 ac_cv_host=$ac_cv_build
4898 else
4899 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4900 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4901 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4902 { (exit 1); exit 1; }; }
4903 fi
4905 fi
4906 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4907 echo "${ECHO_T}$ac_cv_host" >&6; }
4908 case $ac_cv_host in
4909 *-*-*) ;;
4910 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4911 echo "$as_me: error: invalid value of canonical host" >&2;}
4912 { (exit 1); exit 1; }; };;
4913 esac
4914 host=$ac_cv_host
4915 ac_save_IFS=$IFS; IFS='-'
4916 set x $ac_cv_host
4917 shift
4918 host_cpu=$1
4919 host_vendor=$2
4920 shift; shift
4921 # Remember, the first character of IFS is used to create $*,
4922 # except with old shells:
4923 host_os=$*
4924 IFS=$ac_save_IFS
4925 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4931 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4932 if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4934 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940 case $PKG_CONFIG in
4941 [\\/]* | ?:[\\/]*)
4942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4943 ;;
4944 *)
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4955 fi
4956 done
4957 done
4958 IFS=$as_save_IFS
4960 ;;
4961 esac
4962 fi
4963 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4964 if test -n "$PKG_CONFIG"; then
4965 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4966 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4967 else
4968 { echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6; }
4970 fi
4973 fi
4974 if test -z "$ac_cv_path_PKG_CONFIG"; then
4975 ac_pt_PKG_CONFIG=$PKG_CONFIG
4976 # Extract the first word of "pkg-config", so it can be a program name with args.
4977 set dummy pkg-config; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983 case $ac_pt_PKG_CONFIG in
4984 [\\/]* | ?:[\\/]*)
4985 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4986 ;;
4987 *)
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5003 ;;
5004 esac
5005 fi
5006 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5007 if test -n "$ac_pt_PKG_CONFIG"; then
5008 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5009 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5010 else
5011 { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5013 fi
5015 if test "x$ac_pt_PKG_CONFIG" = x; then
5016 PKG_CONFIG=""
5017 else
5018 case $cross_compiling:$ac_tool_warned in
5019 yes:)
5020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5021 whose name does not start with the host triplet. If you think this
5022 configuration is useful to you, please write to autoconf@gnu.org." >&5
5023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5024 whose name does not start with the host triplet. If you think this
5025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5026 ac_tool_warned=yes ;;
5027 esac
5028 PKG_CONFIG=$ac_pt_PKG_CONFIG
5029 fi
5030 else
5031 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5032 fi
5034 fi
5035 if test -n "$PKG_CONFIG"; then
5036 _pkg_min_version=0.9.0
5037 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5038 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5039 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5040 { echo "$as_me:$LINENO: result: yes" >&5
5041 echo "${ECHO_T}yes" >&6; }
5042 else
5043 { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5045 PKG_CONFIG=""
5046 fi
5048 fi
5050 pkg_failed=no
5051 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
5052 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
5054 if test -n "$PKG_CONFIG"; then
5055 if test -n "$PACKAGE_CFLAGS"; then
5056 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
5057 else
5058 if test -n "$PKG_CONFIG" && \
5059 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 esound libpng \"") >&5
5060 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 esound libpng ") 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; then
5064 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags " gtk+-2.0 esound libpng " 2>/dev/null`
5065 else
5066 pkg_failed=yes
5067 fi
5068 fi
5069 else
5070 pkg_failed=untried
5071 fi
5072 if test -n "$PKG_CONFIG"; then
5073 if test -n "$PACKAGE_LIBS"; then
5074 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
5075 else
5076 if test -n "$PKG_CONFIG" && \
5077 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 esound libpng \"") >&5
5078 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 esound libpng ") 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; then
5082 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs " gtk+-2.0 esound libpng " 2>/dev/null`
5083 else
5084 pkg_failed=yes
5085 fi
5086 fi
5087 else
5088 pkg_failed=untried
5089 fi
5093 if test $pkg_failed = yes; then
5095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5096 _pkg_short_errors_supported=yes
5097 else
5098 _pkg_short_errors_supported=no
5099 fi
5100 if test $_pkg_short_errors_supported = yes; then
5101 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " gtk+-2.0 esound libpng "`
5102 else
5103 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " gtk+-2.0 esound libpng "`
5104 fi
5105 # Put the nasty error message in config.log where it belongs
5106 echo "$PACKAGE_PKG_ERRORS" >&5
5108 { { echo "$as_me:$LINENO: error: Package requirements ( gtk+-2.0 esound libpng ) were not met:
5110 $PACKAGE_PKG_ERRORS
5112 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5113 installed software in a non-standard prefix.
5115 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5116 and PACKAGE_LIBS to avoid the need to call pkg-config.
5117 See the pkg-config man page for more details.
5118 " >&5
5119 echo "$as_me: error: Package requirements ( gtk+-2.0 esound libpng ) were not met:
5121 $PACKAGE_PKG_ERRORS
5123 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5124 installed software in a non-standard prefix.
5126 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5127 and PACKAGE_LIBS to avoid the need to call pkg-config.
5128 See the pkg-config man page for more details.
5129 " >&2;}
5130 { (exit 1); exit 1; }; }
5131 elif test $pkg_failed = untried; then
5132 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5133 is in your PATH or set the PKG_CONFIG environment variable to the full
5134 path to pkg-config.
5136 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5137 and PACKAGE_LIBS to avoid the need to call pkg-config.
5138 See the pkg-config man page for more details.
5140 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5141 See \`config.log' for more details." >&5
5142 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5143 is in your PATH or set the PKG_CONFIG environment variable to the full
5144 path to pkg-config.
5146 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5147 and PACKAGE_LIBS to avoid the need to call pkg-config.
5148 See the pkg-config man page for more details.
5150 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5151 See \`config.log' for more details." >&2;}
5152 { (exit 1); exit 1; }; }
5153 else
5154 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
5155 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
5156 { echo "$as_me:$LINENO: result: yes" >&5
5157 echo "${ECHO_T}yes" >&6; }
5158 :
5159 fi
5161 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
5162 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
5163 if test "${ac_cv_lib_z_uncompress+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166 ac_check_lib_save_LIBS=$LIBS
5167 LIBS="-lz $LIBS"
5168 cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h. */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5175 /* Override any GCC internal prototype to avoid an error.
5176 Use char because int might match the return type of a GCC
5177 builtin and then its argument prototype would still apply. */
5178 #ifdef __cplusplus
5179 extern "C"
5180 #endif
5181 char uncompress ();
5182 int
5183 main ()
5184 {
5185 return uncompress ();
5186 ;
5187 return 0;
5188 }
5189 _ACEOF
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (ac_try="$ac_link"
5192 case "(($ac_try" in
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5195 esac
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_link") 2>conftest.er1
5198 ac_status=$?
5199 grep -v '^ *+' conftest.er1 >conftest.err
5200 rm -f conftest.er1
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } && {
5204 test -z "$ac_c_werror_flag" ||
5205 test ! -s conftest.err
5206 } && test -s conftest$ac_exeext &&
5207 $as_test_x conftest$ac_exeext; then
5208 ac_cv_lib_z_uncompress=yes
5209 else
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 ac_cv_lib_z_uncompress=no
5214 fi
5216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5217 conftest$ac_exeext conftest.$ac_ext
5218 LIBS=$ac_check_lib_save_LIBS
5219 fi
5220 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
5221 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
5222 if test $ac_cv_lib_z_uncompress = yes; then
5223 cat >>confdefs.h <<_ACEOF
5224 #define HAVE_LIBZ 1
5225 _ACEOF
5227 LIBS="-lz $LIBS"
5229 else
5231 echo "Zlib (libz.so) could not be found, but is required."
5232 exit 1
5233 fi
5236 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5237 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5238 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 ac_check_lib_save_LIBS=$LIBS
5242 LIBS="-lGL $LIBS"
5243 cat >conftest.$ac_ext <<_ACEOF
5244 /* confdefs.h. */
5245 _ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5250 /* Override any GCC internal prototype to avoid an error.
5251 Use char because int might match the return type of a GCC
5252 builtin and then its argument prototype would still apply. */
5253 #ifdef __cplusplus
5254 extern "C"
5255 #endif
5256 char glXQueryVersion ();
5257 int
5258 main ()
5259 {
5260 return glXQueryVersion ();
5261 ;
5262 return 0;
5263 }
5264 _ACEOF
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (ac_try="$ac_link"
5267 case "(($ac_try" in
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_link") 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && {
5279 test -z "$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest$ac_exeext &&
5282 $as_test_x conftest$ac_exeext; then
5283 ac_cv_lib_GL_glXQueryVersion=yes
5284 else
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 ac_cv_lib_GL_glXQueryVersion=no
5289 fi
5291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5292 conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_check_lib_save_LIBS
5294 fi
5295 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5296 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5297 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5298 cat >>confdefs.h <<_ACEOF
5299 #define HAVE_LIBGL 1
5300 _ACEOF
5302 LIBS="-lGL $LIBS"
5304 else
5306 echo "The OpenGL library (libGL.so) could not be found, but is required."
5307 exit 1
5308 fi
5310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5321 inttypes.h stdint.h unistd.h
5322 do
5323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 else
5329 cat >conftest.$ac_ext <<_ACEOF
5330 /* confdefs.h. */
5331 _ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 $ac_includes_default
5337 #include <$ac_header>
5338 _ACEOF
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5341 case "(($ac_try" in
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5344 esac
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5347 ac_status=$?
5348 grep -v '^ *+' conftest.er1 >conftest.err
5349 rm -f conftest.er1
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } && {
5353 test -z "$ac_c_werror_flag" ||
5354 test ! -s conftest.err
5355 } && test -s conftest.$ac_objext; then
5356 eval "$as_ac_Header=yes"
5357 else
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 eval "$as_ac_Header=no"
5362 fi
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5365 fi
5366 ac_res=`eval echo '${'$as_ac_Header'}'`
5367 { echo "$as_me:$LINENO: result: $ac_res" >&5
5368 echo "${ECHO_T}$ac_res" >&6; }
5369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5370 cat >>confdefs.h <<_ACEOF
5371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5372 _ACEOF
5374 fi
5376 done
5379 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5380 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5381 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5382 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 fi
5385 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5386 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5387 else
5388 # Is the header compilable?
5389 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
5390 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
5391 cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h. */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 $ac_includes_default
5398 #include <GL/gl.h>
5399 _ACEOF
5400 rm -f conftest.$ac_objext
5401 if { (ac_try="$ac_compile"
5402 case "(($ac_try" in
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5405 esac
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5408 ac_status=$?
5409 grep -v '^ *+' conftest.er1 >conftest.err
5410 rm -f conftest.er1
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && {
5414 test -z "$ac_c_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
5417 ac_header_compiler=yes
5418 else
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 ac_header_compiler=no
5423 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5427 echo "${ECHO_T}$ac_header_compiler" >&6; }
5429 # Is the header present?
5430 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
5431 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
5432 cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h. */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 #include <GL/gl.h>
5439 _ACEOF
5440 if { (ac_try="$ac_cpp conftest.$ac_ext"
5441 case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } >/dev/null && {
5453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 }; then
5456 ac_header_preproc=yes
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 ac_header_preproc=no
5462 fi
5464 rm -f conftest.err conftest.$ac_ext
5465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5466 echo "${ECHO_T}$ac_header_preproc" >&6; }
5468 # So? What about this header?
5469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5470 yes:no: )
5471 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5472 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
5474 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
5475 ac_header_preproc=yes
5476 ;;
5477 no:yes:* )
5478 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
5479 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
5481 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
5482 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
5483 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
5484 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
5485 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5486 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
5487 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
5488 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
5489 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
5491 ;;
5492 esac
5493 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5494 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5495 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498 ac_cv_header_GL_gl_h=$ac_header_preproc
5499 fi
5500 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5501 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5503 fi
5504 if test $ac_cv_header_GL_gl_h = yes; then
5505 :
5506 else
5508 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
5509 exit 1
5510 fi
5514 case $host_cpu in
5515 i386|i486|i586|i686|x86_64)
5516 TRANSLATOR="x86";;
5517 *)
5518 echo "Warning: No translator available for $host. Building emulation core only";;
5519 esac
5522 if test "$TRANSLATOR"="x86"; then
5523 BUILD_SH4X86_TRUE=
5524 BUILD_SH4X86_FALSE='#'
5525 else
5526 BUILD_SH4X86_TRUE='#'
5527 BUILD_SH4X86_FALSE=
5528 fi
5531 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5532 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
5533 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
5534 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5536 fi
5537 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
5538 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
5539 else
5540 # Is the header compilable?
5541 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
5542 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
5543 cat >conftest.$ac_ext <<_ACEOF
5544 /* confdefs.h. */
5545 _ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5549 $ac_includes_default
5550 #include <linux/cdrom.h>
5551 _ACEOF
5552 rm -f conftest.$ac_objext
5553 if { (ac_try="$ac_compile"
5554 case "(($ac_try" in
5555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5556 *) ac_try_echo=$ac_try;;
5557 esac
5558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5559 (eval "$ac_compile") 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } && {
5566 test -z "$ac_c_werror_flag" ||
5567 test ! -s conftest.err
5568 } && test -s conftest.$ac_objext; then
5569 ac_header_compiler=yes
5570 else
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 ac_header_compiler=no
5575 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5579 echo "${ECHO_T}$ac_header_compiler" >&6; }
5581 # Is the header present?
5582 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
5583 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
5584 cat >conftest.$ac_ext <<_ACEOF
5585 /* confdefs.h. */
5586 _ACEOF
5587 cat confdefs.h >>conftest.$ac_ext
5588 cat >>conftest.$ac_ext <<_ACEOF
5589 /* end confdefs.h. */
5590 #include <linux/cdrom.h>
5591 _ACEOF
5592 if { (ac_try="$ac_cpp conftest.$ac_ext"
5593 case "(($ac_try" in
5594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595 *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5599 ac_status=$?
5600 grep -v '^ *+' conftest.er1 >conftest.err
5601 rm -f conftest.er1
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } >/dev/null && {
5605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5606 test ! -s conftest.err
5607 }; then
5608 ac_header_preproc=yes
5609 else
5610 echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5613 ac_header_preproc=no
5614 fi
5616 rm -f conftest.err conftest.$ac_ext
5617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5618 echo "${ECHO_T}$ac_header_preproc" >&6; }
5620 # So? What about this header?
5621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5622 yes:no: )
5623 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
5624 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5625 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
5626 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
5627 ac_header_preproc=yes
5628 ;;
5629 no:yes:* )
5630 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
5631 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
5632 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
5633 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
5634 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
5635 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
5636 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
5637 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
5638 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
5639 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
5640 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
5641 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
5643 ;;
5644 esac
5645 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
5646 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
5647 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 ac_cv_header_linux_cdrom_h=$ac_header_preproc
5651 fi
5652 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
5653 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
5655 fi
5656 if test $ac_cv_header_linux_cdrom_h = yes; then
5657 HAVE_LINUX_CDROM_H=yes
5658 else
5660 echo "Linux CDROM support not found, building without it."
5661 fi
5666 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
5667 CDROM_LINUX_TRUE=
5668 CDROM_LINUX_FALSE='#'
5669 else
5670 CDROM_LINUX_TRUE='#'
5671 CDROM_LINUX_FALSE=
5672 fi
5675 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
5676 set dummy sh-elf-gcc; ac_word=$2
5677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5679 if test "${ac_cv_path_SHCC+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682 case $SHCC in
5683 [\\/]* | ?:[\\/]*)
5684 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
5685 ;;
5686 *)
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5694 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
5695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698 done
5699 done
5700 IFS=$as_save_IFS
5702 ;;
5703 esac
5704 fi
5705 SHCC=$ac_cv_path_SHCC
5706 if test -n "$SHCC"; then
5707 { echo "$as_me:$LINENO: result: $SHCC" >&5
5708 echo "${ECHO_T}$SHCC" >&6; }
5709 else
5710 { echo "$as_me:$LINENO: result: no" >&5
5711 echo "${ECHO_T}no" >&6; }
5712 fi
5715 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
5716 set dummy sh-elf-ld; ac_word=$2
5717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5719 if test "${ac_cv_path_SHLD+set}" = set; then
5720 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 else
5722 case $SHLD in
5723 [\\/]* | ?:[\\/]*)
5724 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
5725 ;;
5726 *)
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5734 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
5735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738 done
5739 done
5740 IFS=$as_save_IFS
5742 ;;
5743 esac
5744 fi
5745 SHLD=$ac_cv_path_SHLD
5746 if test -n "$SHLD"; then
5747 { echo "$as_me:$LINENO: result: $SHLD" >&5
5748 echo "${ECHO_T}$SHLD" >&6; }
5749 else
5750 { echo "$as_me:$LINENO: result: no" >&5
5751 echo "${ECHO_T}no" >&6; }
5752 fi
5755 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
5756 set dummy sh-elf-objcopy; ac_word=$2
5757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5759 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 case $SHOBJCOPY in
5763 [\\/]* | ?:[\\/]*)
5764 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
5765 ;;
5766 *)
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 for as_dir in $PATH
5769 do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5774 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
5775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5776 break 2
5777 fi
5778 done
5779 done
5780 IFS=$as_save_IFS
5782 ;;
5783 esac
5784 fi
5785 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
5786 if test -n "$SHOBJCOPY"; then
5787 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
5788 echo "${ECHO_T}$SHOBJCOPY" >&6; }
5789 else
5790 { echo "$as_me:$LINENO: result: no" >&5
5791 echo "${ECHO_T}no" >&6; }
5792 fi
5795 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
5796 set dummy arm-elf-gcc; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_path_ARMCC+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802 case $ARMCC in
5803 [\\/]* | ?:[\\/]*)
5804 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
5805 ;;
5806 *)
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 for as_dir in $PATH
5809 do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_exec_ext in '' $ac_executable_extensions; do
5813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5814 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
5815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 break 2
5817 fi
5818 done
5819 done
5820 IFS=$as_save_IFS
5822 ;;
5823 esac
5824 fi
5825 ARMCC=$ac_cv_path_ARMCC
5826 if test -n "$ARMCC"; then
5827 { echo "$as_me:$LINENO: result: $ARMCC" >&5
5828 echo "${ECHO_T}$ARMCC" >&6; }
5829 else
5830 { echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6; }
5832 fi
5835 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
5836 set dummy arm-elf-ld; ac_word=$2
5837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5839 if test "${ac_cv_path_ARMLD+set}" = set; then
5840 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 else
5842 case $ARMLD in
5843 [\\/]* | ?:[\\/]*)
5844 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
5845 ;;
5846 *)
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5854 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
5855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5857 fi
5858 done
5859 done
5860 IFS=$as_save_IFS
5862 ;;
5863 esac
5864 fi
5865 ARMLD=$ac_cv_path_ARMLD
5866 if test -n "$ARMLD"; then
5867 { echo "$as_me:$LINENO: result: $ARMLD" >&5
5868 echo "${ECHO_T}$ARMLD" >&6; }
5869 else
5870 { echo "$as_me:$LINENO: result: no" >&5
5871 echo "${ECHO_T}no" >&6; }
5872 fi
5875 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
5876 set dummy arm-elf-objcopy; ac_word=$2
5877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5879 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 else
5882 case $ARMOBJCOPY in
5883 [\\/]* | ?:[\\/]*)
5884 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
5885 ;;
5886 *)
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
5895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5902 ;;
5903 esac
5904 fi
5905 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
5906 if test -n "$ARMOBJCOPY"; then
5907 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
5908 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
5909 else
5910 { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5912 fi
5916 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
5917 BUILD_SH="no"
5918 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
5919 else
5920 BUILD_SH="yes"
5921 fi
5922 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
5923 BUILD_ARM="no"
5924 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
5925 else
5926 BUILD_ARM="yes"
5927 fi
5930 if test "$BUILD_SH" = "yes"; then
5931 BUILD_SYSTEST_TRUE=
5932 BUILD_SYSTEST_FALSE='#'
5933 else
5934 BUILD_SYSTEST_TRUE='#'
5935 BUILD_SYSTEST_FALSE=
5936 fi
5940 if test "$BUILD_ARM" = "yes"; then
5941 BUILD_ARMTEST_TRUE=
5942 BUILD_ARMTEST_FALSE='#'
5943 else
5944 BUILD_ARMTEST_TRUE='#'
5945 BUILD_ARMTEST_FALSE=
5946 fi
5949 GETTEXT_PACKAGE=lxdream
5951 cat >>confdefs.h <<_ACEOF
5952 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
5953 _ACEOF
5959 ALL_LINGUAS="de pt_BR"
5962 for ac_header in locale.h
5963 do
5964 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5966 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 fi
5971 ac_res=`eval echo '${'$as_ac_Header'}'`
5972 { echo "$as_me:$LINENO: result: $ac_res" >&5
5973 echo "${ECHO_T}$ac_res" >&6; }
5974 else
5975 # Is the header compilable?
5976 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5977 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5984 $ac_includes_default
5985 #include <$ac_header>
5986 _ACEOF
5987 rm -f conftest.$ac_objext
5988 if { (ac_try="$ac_compile"
5989 case "(($ac_try" in
5990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5992 esac
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_compile") 2>conftest.er1
5995 ac_status=$?
5996 grep -v '^ *+' conftest.er1 >conftest.err
5997 rm -f conftest.er1
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } && {
6001 test -z "$ac_c_werror_flag" ||
6002 test ! -s conftest.err
6003 } && test -s conftest.$ac_objext; then
6004 ac_header_compiler=yes
6005 else
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6009 ac_header_compiler=no
6010 fi
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6014 echo "${ECHO_T}$ac_header_compiler" >&6; }
6016 # Is the header present?
6017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6019 cat >conftest.$ac_ext <<_ACEOF
6020 /* confdefs.h. */
6021 _ACEOF
6022 cat confdefs.h >>conftest.$ac_ext
6023 cat >>conftest.$ac_ext <<_ACEOF
6024 /* end confdefs.h. */
6025 #include <$ac_header>
6026 _ACEOF
6027 if { (ac_try="$ac_cpp conftest.$ac_ext"
6028 case "(($ac_try" in
6029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6031 esac
6032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } >/dev/null && {
6040 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6041 test ! -s conftest.err
6042 }; then
6043 ac_header_preproc=yes
6044 else
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6048 ac_header_preproc=no
6049 fi
6051 rm -f conftest.err conftest.$ac_ext
6052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6053 echo "${ECHO_T}$ac_header_preproc" >&6; }
6055 # So? What about this header?
6056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6057 yes:no: )
6058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6062 ac_header_preproc=yes
6063 ;;
6064 no:yes:* )
6065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6078 ;;
6079 esac
6080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6084 else
6085 eval "$as_ac_Header=\$ac_header_preproc"
6086 fi
6087 ac_res=`eval echo '${'$as_ac_Header'}'`
6088 { echo "$as_me:$LINENO: result: $ac_res" >&5
6089 echo "${ECHO_T}$ac_res" >&6; }
6091 fi
6092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6093 cat >>confdefs.h <<_ACEOF
6094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6095 _ACEOF
6097 fi
6099 done
6101 if test $ac_cv_header_locale_h = yes; then
6102 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6103 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
6104 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107 cat >conftest.$ac_ext <<_ACEOF
6108 /* confdefs.h. */
6109 _ACEOF
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 #include <locale.h>
6114 int
6115 main ()
6116 {
6117 return LC_MESSAGES
6118 ;
6119 return 0;
6120 }
6121 _ACEOF
6122 rm -f conftest.$ac_objext conftest$ac_exeext
6123 if { (ac_try="$ac_link"
6124 case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127 esac
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_link") 2>conftest.er1
6130 ac_status=$?
6131 grep -v '^ *+' conftest.er1 >conftest.err
6132 rm -f conftest.er1
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } && {
6136 test -z "$ac_c_werror_flag" ||
6137 test ! -s conftest.err
6138 } && test -s conftest$ac_exeext &&
6139 $as_test_x conftest$ac_exeext; then
6140 am_cv_val_LC_MESSAGES=yes
6141 else
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6145 am_cv_val_LC_MESSAGES=no
6146 fi
6148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6149 conftest$ac_exeext conftest.$ac_ext
6150 fi
6151 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6152 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
6153 if test $am_cv_val_LC_MESSAGES = yes; then
6155 cat >>confdefs.h <<\_ACEOF
6156 #define HAVE_LC_MESSAGES 1
6157 _ACEOF
6159 fi
6160 fi
6161 USE_NLS=yes
6164 gt_cv_have_gettext=no
6166 CATOBJEXT=NONE
6167 XGETTEXT=:
6168 INTLLIBS=
6170 if test "${ac_cv_header_libintl_h+set}" = set; then
6171 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6172 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6173 if test "${ac_cv_header_libintl_h+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 fi
6176 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6177 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6178 else
6179 # Is the header compilable?
6180 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
6181 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
6182 cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h. */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h. */
6188 $ac_includes_default
6189 #include <libintl.h>
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (ac_try="$ac_compile"
6193 case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196 esac
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_compile") 2>conftest.er1
6199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } && {
6205 test -z "$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 } && test -s conftest.$ac_objext; then
6208 ac_header_compiler=yes
6209 else
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 ac_header_compiler=no
6214 fi
6216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6218 echo "${ECHO_T}$ac_header_compiler" >&6; }
6220 # Is the header present?
6221 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
6222 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 #include <libintl.h>
6230 _ACEOF
6231 if { (ac_try="$ac_cpp conftest.$ac_ext"
6232 case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235 esac
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6238 ac_status=$?
6239 grep -v '^ *+' conftest.er1 >conftest.err
6240 rm -f conftest.er1
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } >/dev/null && {
6244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6246 }; then
6247 ac_header_preproc=yes
6248 else
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 ac_header_preproc=no
6253 fi
6255 rm -f conftest.err conftest.$ac_ext
6256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6257 echo "${ECHO_T}$ac_header_preproc" >&6; }
6259 # So? What about this header?
6260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6261 yes:no: )
6262 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6263 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6264 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6265 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6266 ac_header_preproc=yes
6267 ;;
6268 no:yes:* )
6269 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6270 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6271 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6272 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6273 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6274 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6275 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6276 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6277 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6278 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6279 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6280 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6282 ;;
6283 esac
6284 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6285 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6286 if test "${ac_cv_header_libintl_h+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289 ac_cv_header_libintl_h=$ac_header_preproc
6290 fi
6291 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6292 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6294 fi
6295 if test $ac_cv_header_libintl_h = yes; then
6296 gt_cv_func_dgettext_libintl="no"
6297 libintl_extra_libs=""
6299 #
6300 # First check in libc
6301 #
6302 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6303 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
6304 if test "${gt_cv_func_ngettext_libc+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 /* confdefs.h. */
6309 _ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6314 #include <libintl.h>
6316 int
6317 main ()
6318 {
6319 return !ngettext ("","", 1)
6320 ;
6321 return 0;
6322 }
6323 _ACEOF
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (ac_try="$ac_link"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_link") 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } && {
6338 test -z "$ac_c_werror_flag" ||
6339 test ! -s conftest.err
6340 } && test -s conftest$ac_exeext &&
6341 $as_test_x conftest$ac_exeext; then
6342 gt_cv_func_ngettext_libc=yes
6343 else
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6347 gt_cv_func_ngettext_libc=no
6348 fi
6350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6351 conftest$ac_exeext conftest.$ac_ext
6353 fi
6354 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6355 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
6357 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6358 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6359 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
6360 if test "${gt_cv_func_dgettext_libc+set}" = set; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 else
6363 cat >conftest.$ac_ext <<_ACEOF
6364 /* confdefs.h. */
6365 _ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6370 #include <libintl.h>
6372 int
6373 main ()
6374 {
6375 return !dgettext ("","")
6376 ;
6377 return 0;
6378 }
6379 _ACEOF
6380 rm -f conftest.$ac_objext conftest$ac_exeext
6381 if { (ac_try="$ac_link"
6382 case "(($ac_try" in
6383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6385 esac
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_link") 2>conftest.er1
6388 ac_status=$?
6389 grep -v '^ *+' conftest.er1 >conftest.err
6390 rm -f conftest.er1
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest$ac_exeext &&
6397 $as_test_x conftest$ac_exeext; then
6398 gt_cv_func_dgettext_libc=yes
6399 else
6400 echo "$as_me: failed program was:" >&5
6401 sed 's/^/| /' conftest.$ac_ext >&5
6403 gt_cv_func_dgettext_libc=no
6404 fi
6406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6407 conftest$ac_exeext conftest.$ac_ext
6409 fi
6410 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6411 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
6412 fi
6414 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6416 for ac_func in bind_textdomain_codeset
6417 do
6418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6422 echo $ECHO_N "(cached) $ECHO_C" >&6
6423 else
6424 cat >conftest.$ac_ext <<_ACEOF
6425 /* confdefs.h. */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h. */
6430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6432 #define $ac_func innocuous_$ac_func
6434 /* System header to define __stub macros and hopefully few prototypes,
6435 which can conflict with char $ac_func (); below.
6436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6437 <limits.h> exists even on freestanding compilers. */
6439 #ifdef __STDC__
6440 # include <limits.h>
6441 #else
6442 # include <assert.h>
6443 #endif
6445 #undef $ac_func
6447 /* Override any GCC internal prototype to avoid an error.
6448 Use char because int might match the return type of a GCC
6449 builtin and then its argument prototype would still apply. */
6450 #ifdef __cplusplus
6451 extern "C"
6452 #endif
6453 char $ac_func ();
6454 /* The GNU C library defines this for functions which it implements
6455 to always fail with ENOSYS. Some functions are actually named
6456 something starting with __ and the normal name is an alias. */
6457 #if defined __stub_$ac_func || defined __stub___$ac_func
6458 choke me
6459 #endif
6461 int
6462 main ()
6463 {
6464 return $ac_func ();
6465 ;
6466 return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (ac_try="$ac_link"
6471 case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_link") 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } && {
6483 test -z "$ac_c_werror_flag" ||
6484 test ! -s conftest.err
6485 } && test -s conftest$ac_exeext &&
6486 $as_test_x conftest$ac_exeext; then
6487 eval "$as_ac_var=yes"
6488 else
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 eval "$as_ac_var=no"
6493 fi
6495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6496 conftest$ac_exeext conftest.$ac_ext
6497 fi
6498 ac_res=`eval echo '${'$as_ac_var'}'`
6499 { echo "$as_me:$LINENO: result: $ac_res" >&5
6500 echo "${ECHO_T}$ac_res" >&6; }
6501 if test `eval echo '${'$as_ac_var'}'` = yes; then
6502 cat >>confdefs.h <<_ACEOF
6503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6504 _ACEOF
6506 fi
6507 done
6509 fi
6511 #
6512 # If we don't have everything we want, check in libintl
6513 #
6514 if test "$gt_cv_func_dgettext_libc" != "yes" \
6515 || test "$gt_cv_func_ngettext_libc" != "yes" \
6516 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6518 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6519 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
6520 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6521 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 else
6523 ac_check_lib_save_LIBS=$LIBS
6524 LIBS="-lintl $LIBS"
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6532 /* Override any GCC internal prototype to avoid an error.
6533 Use char because int might match the return type of a GCC
6534 builtin and then its argument prototype would still apply. */
6535 #ifdef __cplusplus
6536 extern "C"
6537 #endif
6538 char bindtextdomain ();
6539 int
6540 main ()
6541 {
6542 return bindtextdomain ();
6543 ;
6544 return 0;
6545 }
6546 _ACEOF
6547 rm -f conftest.$ac_objext conftest$ac_exeext
6548 if { (ac_try="$ac_link"
6549 case "(($ac_try" in
6550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_link") 2>conftest.er1
6555 ac_status=$?
6556 grep -v '^ *+' conftest.er1 >conftest.err
6557 rm -f conftest.er1
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } && {
6561 test -z "$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6563 } && test -s conftest$ac_exeext &&
6564 $as_test_x conftest$ac_exeext; then
6565 ac_cv_lib_intl_bindtextdomain=yes
6566 else
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 ac_cv_lib_intl_bindtextdomain=no
6571 fi
6573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6574 conftest$ac_exeext conftest.$ac_ext
6575 LIBS=$ac_check_lib_save_LIBS
6576 fi
6577 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6578 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
6579 if test $ac_cv_lib_intl_bindtextdomain = yes; then
6580 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6581 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6582 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585 ac_check_lib_save_LIBS=$LIBS
6586 LIBS="-lintl $LIBS"
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6594 /* Override any GCC internal prototype to avoid an error.
6595 Use char because int might match the return type of a GCC
6596 builtin and then its argument prototype would still apply. */
6597 #ifdef __cplusplus
6598 extern "C"
6599 #endif
6600 char ngettext ();
6601 int
6602 main ()
6603 {
6604 return ngettext ();
6605 ;
6606 return 0;
6607 }
6608 _ACEOF
6609 rm -f conftest.$ac_objext conftest$ac_exeext
6610 if { (ac_try="$ac_link"
6611 case "(($ac_try" in
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6614 esac
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_link") 2>conftest.er1
6617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && {
6623 test -z "$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 } && test -s conftest$ac_exeext &&
6626 $as_test_x conftest$ac_exeext; then
6627 ac_cv_lib_intl_ngettext=yes
6628 else
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 ac_cv_lib_intl_ngettext=no
6633 fi
6635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6636 conftest$ac_exeext conftest.$ac_ext
6637 LIBS=$ac_check_lib_save_LIBS
6638 fi
6639 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6640 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6641 if test $ac_cv_lib_intl_ngettext = yes; then
6642 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
6643 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
6644 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6646 else
6647 ac_check_lib_save_LIBS=$LIBS
6648 LIBS="-lintl $LIBS"
6649 cat >conftest.$ac_ext <<_ACEOF
6650 /* confdefs.h. */
6651 _ACEOF
6652 cat confdefs.h >>conftest.$ac_ext
6653 cat >>conftest.$ac_ext <<_ACEOF
6654 /* end confdefs.h. */
6656 /* Override any GCC internal prototype to avoid an error.
6657 Use char because int might match the return type of a GCC
6658 builtin and then its argument prototype would still apply. */
6659 #ifdef __cplusplus
6660 extern "C"
6661 #endif
6662 char dgettext ();
6663 int
6664 main ()
6665 {
6666 return dgettext ();
6667 ;
6668 return 0;
6669 }
6670 _ACEOF
6671 rm -f conftest.$ac_objext conftest$ac_exeext
6672 if { (ac_try="$ac_link"
6673 case "(($ac_try" in
6674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6675 *) ac_try_echo=$ac_try;;
6676 esac
6677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6678 (eval "$ac_link") 2>conftest.er1
6679 ac_status=$?
6680 grep -v '^ *+' conftest.er1 >conftest.err
6681 rm -f conftest.er1
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } && {
6685 test -z "$ac_c_werror_flag" ||
6686 test ! -s conftest.err
6687 } && test -s conftest$ac_exeext &&
6688 $as_test_x conftest$ac_exeext; then
6689 ac_cv_lib_intl_dgettext=yes
6690 else
6691 echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6694 ac_cv_lib_intl_dgettext=no
6695 fi
6697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6698 conftest$ac_exeext conftest.$ac_ext
6699 LIBS=$ac_check_lib_save_LIBS
6700 fi
6701 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6702 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
6703 if test $ac_cv_lib_intl_dgettext = yes; then
6704 gt_cv_func_dgettext_libintl=yes
6705 fi
6707 fi
6709 fi
6712 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6713 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6714 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
6715 { echo "$as_me:$LINENO: result: " >&5
6716 echo "${ECHO_T}" >&6; }
6717 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6718 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6719 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 ac_check_lib_save_LIBS=$LIBS
6723 LIBS="-lintl -liconv $LIBS"
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6731 /* Override any GCC internal prototype to avoid an error.
6732 Use char because int might match the return type of a GCC
6733 builtin and then its argument prototype would still apply. */
6734 #ifdef __cplusplus
6735 extern "C"
6736 #endif
6737 char ngettext ();
6738 int
6739 main ()
6740 {
6741 return ngettext ();
6742 ;
6743 return 0;
6744 }
6745 _ACEOF
6746 rm -f conftest.$ac_objext conftest$ac_exeext
6747 if { (ac_try="$ac_link"
6748 case "(($ac_try" in
6749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6751 esac
6752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753 (eval "$ac_link") 2>conftest.er1
6754 ac_status=$?
6755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } && {
6760 test -z "$ac_c_werror_flag" ||
6761 test ! -s conftest.err
6762 } && test -s conftest$ac_exeext &&
6763 $as_test_x conftest$ac_exeext; then
6764 ac_cv_lib_intl_ngettext=yes
6765 else
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 ac_cv_lib_intl_ngettext=no
6770 fi
6772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6773 conftest$ac_exeext conftest.$ac_ext
6774 LIBS=$ac_check_lib_save_LIBS
6775 fi
6776 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6777 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6778 if test $ac_cv_lib_intl_ngettext = yes; then
6779 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
6780 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
6781 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 else
6784 ac_check_lib_save_LIBS=$LIBS
6785 LIBS="-lintl -liconv $LIBS"
6786 cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h. */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6793 /* Override any GCC internal prototype to avoid an error.
6794 Use char because int might match the return type of a GCC
6795 builtin and then its argument prototype would still apply. */
6796 #ifdef __cplusplus
6797 extern "C"
6798 #endif
6799 char dcgettext ();
6800 int
6801 main ()
6802 {
6803 return dcgettext ();
6804 ;
6805 return 0;
6806 }
6807 _ACEOF
6808 rm -f conftest.$ac_objext conftest$ac_exeext
6809 if { (ac_try="$ac_link"
6810 case "(($ac_try" in
6811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6812 *) ac_try_echo=$ac_try;;
6813 esac
6814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6815 (eval "$ac_link") 2>conftest.er1
6816 ac_status=$?
6817 grep -v '^ *+' conftest.er1 >conftest.err
6818 rm -f conftest.er1
6819 cat conftest.err >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && {
6822 test -z "$ac_c_werror_flag" ||
6823 test ! -s conftest.err
6824 } && test -s conftest$ac_exeext &&
6825 $as_test_x conftest$ac_exeext; then
6826 ac_cv_lib_intl_dcgettext=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_lib_intl_dcgettext=no
6832 fi
6834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6835 conftest$ac_exeext conftest.$ac_ext
6836 LIBS=$ac_check_lib_save_LIBS
6837 fi
6838 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
6839 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
6840 if test $ac_cv_lib_intl_dcgettext = yes; then
6841 gt_cv_func_dgettext_libintl=yes
6842 libintl_extra_libs=-liconv
6843 else
6844 :
6845 fi
6847 else
6848 :
6849 fi
6851 fi
6853 #
6854 # If we found libintl, then check in it for bind_textdomain_codeset();
6855 # we'll prefer libc if neither have bind_textdomain_codeset(),
6856 # and both have dgettext and ngettext
6857 #
6858 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
6859 glib_save_LIBS="$LIBS"
6860 LIBS="$LIBS -lintl $libintl_extra_libs"
6861 unset ac_cv_func_bind_textdomain_codeset
6863 for ac_func in bind_textdomain_codeset
6864 do
6865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6869 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871 cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h. */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h. */
6877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6879 #define $ac_func innocuous_$ac_func
6881 /* System header to define __stub macros and hopefully few prototypes,
6882 which can conflict with char $ac_func (); below.
6883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6884 <limits.h> exists even on freestanding compilers. */
6886 #ifdef __STDC__
6887 # include <limits.h>
6888 #else
6889 # include <assert.h>
6890 #endif
6892 #undef $ac_func
6894 /* Override any GCC internal prototype to avoid an error.
6895 Use char because int might match the return type of a GCC
6896 builtin and then its argument prototype would still apply. */
6897 #ifdef __cplusplus
6898 extern "C"
6899 #endif
6900 char $ac_func ();
6901 /* The GNU C library defines this for functions which it implements
6902 to always fail with ENOSYS. Some functions are actually named
6903 something starting with __ and the normal name is an alias. */
6904 #if defined __stub_$ac_func || defined __stub___$ac_func
6905 choke me
6906 #endif
6908 int
6909 main ()
6910 {
6911 return $ac_func ();
6912 ;
6913 return 0;
6914 }
6915 _ACEOF
6916 rm -f conftest.$ac_objext conftest$ac_exeext
6917 if { (ac_try="$ac_link"
6918 case "(($ac_try" in
6919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920 *) ac_try_echo=$ac_try;;
6921 esac
6922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923 (eval "$ac_link") 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } && {
6930 test -z "$ac_c_werror_flag" ||
6931 test ! -s conftest.err
6932 } && test -s conftest$ac_exeext &&
6933 $as_test_x conftest$ac_exeext; then
6934 eval "$as_ac_var=yes"
6935 else
6936 echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6939 eval "$as_ac_var=no"
6940 fi
6942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6943 conftest$ac_exeext conftest.$ac_ext
6944 fi
6945 ac_res=`eval echo '${'$as_ac_var'}'`
6946 { echo "$as_me:$LINENO: result: $ac_res" >&5
6947 echo "${ECHO_T}$ac_res" >&6; }
6948 if test `eval echo '${'$as_ac_var'}'` = yes; then
6949 cat >>confdefs.h <<_ACEOF
6950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6951 _ACEOF
6953 fi
6954 done
6956 LIBS="$glib_save_LIBS"
6958 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
6959 gt_cv_func_dgettext_libc=no
6960 else
6961 if test "$gt_cv_func_dgettext_libc" = "yes" \
6962 && test "$gt_cv_func_ngettext_libc" = "yes"; then
6963 gt_cv_func_dgettext_libintl=no
6964 fi
6965 fi
6966 fi
6967 fi
6969 if test "$gt_cv_func_dgettext_libc" = "yes" \
6970 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
6971 gt_cv_have_gettext=yes
6972 fi
6974 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
6975 INTLLIBS="-lintl $libintl_extra_libs"
6976 fi
6978 if test "$gt_cv_have_gettext" = "yes"; then
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_GETTEXT 1
6982 _ACEOF
6984 # Extract the first word of "msgfmt", so it can be a program name with args.
6985 set dummy msgfmt; ac_word=$2
6986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6988 if test "${ac_cv_path_MSGFMT+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 case "$MSGFMT" in
6992 /*)
6993 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6994 ;;
6995 *)
6996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6997 for ac_dir in $PATH; do
6998 test -z "$ac_dir" && ac_dir=.
6999 if test -f $ac_dir/$ac_word; then
7000 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
7001 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7002 break
7003 fi
7004 fi
7005 done
7006 IFS="$ac_save_ifs"
7007 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
7008 ;;
7009 esac
7010 fi
7011 MSGFMT="$ac_cv_path_MSGFMT"
7012 if test "$MSGFMT" != "no"; then
7013 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7014 echo "${ECHO_T}$MSGFMT" >&6; }
7015 else
7016 { echo "$as_me:$LINENO: result: no" >&5
7017 echo "${ECHO_T}no" >&6; }
7018 fi
7019 if test "$MSGFMT" != "no"; then
7020 glib_save_LIBS="$LIBS"
7021 LIBS="$LIBS $INTLLIBS"
7023 for ac_func in dcgettext
7024 do
7025 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7026 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7027 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7028 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7039 #define $ac_func innocuous_$ac_func
7041 /* System header to define __stub macros and hopefully few prototypes,
7042 which can conflict with char $ac_func (); below.
7043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7044 <limits.h> exists even on freestanding compilers. */
7046 #ifdef __STDC__
7047 # include <limits.h>
7048 #else
7049 # include <assert.h>
7050 #endif
7052 #undef $ac_func
7054 /* Override any GCC internal prototype to avoid an error.
7055 Use char because int might match the return type of a GCC
7056 builtin and then its argument prototype would still apply. */
7057 #ifdef __cplusplus
7058 extern "C"
7059 #endif
7060 char $ac_func ();
7061 /* The GNU C library defines this for functions which it implements
7062 to always fail with ENOSYS. Some functions are actually named
7063 something starting with __ and the normal name is an alias. */
7064 #if defined __stub_$ac_func || defined __stub___$ac_func
7065 choke me
7066 #endif
7068 int
7069 main ()
7070 {
7071 return $ac_func ();
7072 ;
7073 return 0;
7074 }
7075 _ACEOF
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (ac_try="$ac_link"
7078 case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081 esac
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_link") 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest$ac_exeext &&
7093 $as_test_x conftest$ac_exeext; then
7094 eval "$as_ac_var=yes"
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 eval "$as_ac_var=no"
7100 fi
7102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7103 conftest$ac_exeext conftest.$ac_ext
7104 fi
7105 ac_res=`eval echo '${'$as_ac_var'}'`
7106 { echo "$as_me:$LINENO: result: $ac_res" >&5
7107 echo "${ECHO_T}$ac_res" >&6; }
7108 if test `eval echo '${'$as_ac_var'}'` = yes; then
7109 cat >>confdefs.h <<_ACEOF
7110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7111 _ACEOF
7113 fi
7114 done
7116 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7117 set dummy gmsgfmt; ac_word=$2
7118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7120 if test "${ac_cv_path_GMSGFMT+set}" = set; then
7121 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 else
7123 case $GMSGFMT in
7124 [\\/]* | ?:[\\/]*)
7125 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7126 ;;
7127 *)
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7143 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7144 ;;
7145 esac
7146 fi
7147 GMSGFMT=$ac_cv_path_GMSGFMT
7148 if test -n "$GMSGFMT"; then
7149 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
7150 echo "${ECHO_T}$GMSGFMT" >&6; }
7151 else
7152 { echo "$as_me:$LINENO: result: no" >&5
7153 echo "${ECHO_T}no" >&6; }
7154 fi
7157 # Extract the first word of "xgettext", so it can be a program name with args.
7158 set dummy xgettext; ac_word=$2
7159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7161 if test "${ac_cv_path_XGETTEXT+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 case "$XGETTEXT" in
7165 /*)
7166 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7167 ;;
7168 *)
7169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7170 for ac_dir in $PATH; do
7171 test -z "$ac_dir" && ac_dir=.
7172 if test -f $ac_dir/$ac_word; then
7173 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
7174 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7175 break
7176 fi
7177 fi
7178 done
7179 IFS="$ac_save_ifs"
7180 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7181 ;;
7182 esac
7183 fi
7184 XGETTEXT="$ac_cv_path_XGETTEXT"
7185 if test "$XGETTEXT" != ":"; then
7186 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
7187 echo "${ECHO_T}$XGETTEXT" >&6; }
7188 else
7189 { echo "$as_me:$LINENO: result: no" >&5
7190 echo "${ECHO_T}no" >&6; }
7191 fi
7193 cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h. */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h. */
7200 int
7201 main ()
7202 {
7203 extern int _nl_msg_cat_cntr;
7204 return _nl_msg_cat_cntr
7205 ;
7206 return 0;
7207 }
7208 _ACEOF
7209 rm -f conftest.$ac_objext conftest$ac_exeext
7210 if { (ac_try="$ac_link"
7211 case "(($ac_try" in
7212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7213 *) ac_try_echo=$ac_try;;
7214 esac
7215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7216 (eval "$ac_link") 2>conftest.er1
7217 ac_status=$?
7218 grep -v '^ *+' conftest.er1 >conftest.err
7219 rm -f conftest.er1
7220 cat conftest.err >&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } && {
7223 test -z "$ac_c_werror_flag" ||
7224 test ! -s conftest.err
7225 } && test -s conftest$ac_exeext &&
7226 $as_test_x conftest$ac_exeext; then
7227 CATOBJEXT=.gmo
7228 DATADIRNAME=share
7229 else
7230 echo "$as_me: failed program was:" >&5
7231 sed 's/^/| /' conftest.$ac_ext >&5
7233 case $host in
7234 *-*-solaris*)
7235 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
7236 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
7237 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240 cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h. */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
7247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7248 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
7250 /* System header to define __stub macros and hopefully few prototypes,
7251 which can conflict with char bind_textdomain_codeset (); below.
7252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7253 <limits.h> exists even on freestanding compilers. */
7255 #ifdef __STDC__
7256 # include <limits.h>
7257 #else
7258 # include <assert.h>
7259 #endif
7261 #undef bind_textdomain_codeset
7263 /* Override any GCC internal prototype to avoid an error.
7264 Use char because int might match the return type of a GCC
7265 builtin and then its argument prototype would still apply. */
7266 #ifdef __cplusplus
7267 extern "C"
7268 #endif
7269 char bind_textdomain_codeset ();
7270 /* The GNU C library defines this for functions which it implements
7271 to always fail with ENOSYS. Some functions are actually named
7272 something starting with __ and the normal name is an alias. */
7273 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
7274 choke me
7275 #endif
7277 int
7278 main ()
7279 {
7280 return bind_textdomain_codeset ();
7281 ;
7282 return 0;
7283 }
7284 _ACEOF
7285 rm -f conftest.$ac_objext conftest$ac_exeext
7286 if { (ac_try="$ac_link"
7287 case "(($ac_try" in
7288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289 *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292 (eval "$ac_link") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest$ac_exeext &&
7302 $as_test_x conftest$ac_exeext; then
7303 ac_cv_func_bind_textdomain_codeset=yes
7304 else
7305 echo "$as_me: failed program was:" >&5
7306 sed 's/^/| /' conftest.$ac_ext >&5
7308 ac_cv_func_bind_textdomain_codeset=no
7309 fi
7311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7312 conftest$ac_exeext conftest.$ac_ext
7313 fi
7314 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
7315 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
7316 if test $ac_cv_func_bind_textdomain_codeset = yes; then
7317 CATOBJEXT=.gmo
7318 DATADIRNAME=share
7319 else
7320 CATOBJEXT=.mo
7321 DATADIRNAME=lib
7322 fi
7324 ;;
7325 *)
7326 CATOBJEXT=.mo
7327 DATADIRNAME=lib
7328 ;;
7329 esac
7330 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7333 conftest$ac_exeext conftest.$ac_ext
7334 LIBS="$glib_save_LIBS"
7335 INSTOBJEXT=.mo
7336 else
7337 gt_cv_have_gettext=no
7338 fi
7339 fi
7341 fi
7345 if test "$gt_cv_have_gettext" = "yes" ; then
7347 cat >>confdefs.h <<\_ACEOF
7348 #define ENABLE_NLS 1
7349 _ACEOF
7351 fi
7353 if test "$XGETTEXT" != ":"; then
7354 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
7355 : ;
7356 else
7357 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
7358 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
7359 XGETTEXT=":"
7360 fi
7361 fi
7363 # We need to process the po/ directory.
7364 POSUB=po
7366 ac_config_commands="$ac_config_commands default-1"
7369 for lang in $ALL_LINGUAS; do
7370 GMOFILES="$GMOFILES $lang.gmo"
7371 POFILES="$POFILES $lang.po"
7372 done
7386 if test "$gt_cv_have_gettext" = "yes"; then
7387 if test "x$ALL_LINGUAS" = "x"; then
7388 LINGUAS=
7389 else
7390 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
7391 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
7392 NEW_LINGUAS=
7393 for presentlang in $ALL_LINGUAS; do
7394 useit=no
7395 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
7396 desiredlanguages="$LINGUAS"
7397 else
7398 desiredlanguages="$ALL_LINGUAS"
7399 fi
7400 for desiredlang in $desiredlanguages; do
7401 # Use the presentlang catalog if desiredlang is
7402 # a. equal to presentlang, or
7403 # b. a variant of presentlang (because in this case,
7404 # presentlang can be used as a fallback for messages
7405 # which are not translated in the desiredlang catalog).
7406 case "$desiredlang" in
7407 "$presentlang"*) useit=yes;;
7408 esac
7409 done
7410 if test $useit = yes; then
7411 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7412 fi
7413 done
7414 LINGUAS=$NEW_LINGUAS
7415 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
7416 echo "${ECHO_T}$LINGUAS" >&6; }
7417 fi
7419 if test -n "$LINGUAS"; then
7420 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7421 fi
7422 fi
7424 MKINSTALLDIRS=
7425 if test -n "$ac_aux_dir"; then
7426 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7427 fi
7428 if test -z "$MKINSTALLDIRS"; then
7429 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7430 fi
7433 test -d po || mkdir po
7434 if test "x$srcdir" != "x."; then
7435 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
7436 posrcprefix="$srcdir/"
7437 else
7438 posrcprefix="../$srcdir/"
7439 fi
7440 else
7441 posrcprefix="../"
7442 fi
7443 rm -f po/POTFILES
7444 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
7445 < $srcdir/po/POTFILES.in > po/POTFILES
7448 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
7450 cat >confcache <<\_ACEOF
7451 # This file is a shell script that caches the results of configure
7452 # tests run on this system so they can be shared between configure
7453 # scripts and configure runs, see configure's option --config-cache.
7454 # It is not useful on other systems. If it contains results you don't
7455 # want to keep, you may remove or edit it.
7456 #
7457 # config.status only pays attention to the cache file if you give it
7458 # the --recheck option to rerun configure.
7459 #
7460 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7461 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7462 # following values.
7464 _ACEOF
7466 # The following way of writing the cache mishandles newlines in values,
7467 # but we know of no workaround that is simple, portable, and efficient.
7468 # So, we kill variables containing newlines.
7469 # Ultrix sh set writes to stderr and can't be redirected directly,
7470 # and sets the high bit in the cache file unless we assign to the vars.
7471 (
7472 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7473 eval ac_val=\$$ac_var
7474 case $ac_val in #(
7475 *${as_nl}*)
7476 case $ac_var in #(
7477 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7478 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7479 esac
7480 case $ac_var in #(
7481 _ | IFS | as_nl) ;; #(
7482 *) $as_unset $ac_var ;;
7483 esac ;;
7484 esac
7485 done
7487 (set) 2>&1 |
7488 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7489 *${as_nl}ac_space=\ *)
7490 # `set' does not quote correctly, so add quotes (double-quote
7491 # substitution turns \\\\ into \\, and sed turns \\ into \).
7492 sed -n \
7493 "s/'/'\\\\''/g;
7494 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7495 ;; #(
7496 *)
7497 # `set' quotes correctly as required by POSIX, so do not add quotes.
7498 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7499 ;;
7500 esac |
7501 sort
7502 ) |
7503 sed '
7504 /^ac_cv_env_/b end
7505 t clear
7506 :clear
7507 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7508 t end
7509 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7510 :end' >>confcache
7511 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7512 if test -w "$cache_file"; then
7513 test "x$cache_file" != "x/dev/null" &&
7514 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7515 echo "$as_me: updating cache $cache_file" >&6;}
7516 cat confcache >$cache_file
7517 else
7518 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7519 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7520 fi
7521 fi
7522 rm -f confcache
7524 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7525 # Let make expand exec_prefix.
7526 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7528 DEFS=-DHAVE_CONFIG_H
7530 ac_libobjs=
7531 ac_ltlibobjs=
7532 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7533 # 1. Remove the extension, and $U if already installed.
7534 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7535 ac_i=`echo "$ac_i" | sed "$ac_script"`
7536 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7537 # will be set to the directory where LIBOBJS objects are built.
7538 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7539 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7540 done
7541 LIBOBJS=$ac_libobjs
7543 LTLIBOBJS=$ac_ltlibobjs
7546 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7547 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7548 Usually this means the macro was only invoked conditionally." >&5
7549 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7550 Usually this means the macro was only invoked conditionally." >&2;}
7551 { (exit 1); exit 1; }; }
7552 fi
7553 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7554 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7555 Usually this means the macro was only invoked conditionally." >&5
7556 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7557 Usually this means the macro was only invoked conditionally." >&2;}
7558 { (exit 1); exit 1; }; }
7559 fi
7560 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7561 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7562 Usually this means the macro was only invoked conditionally." >&5
7563 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7564 Usually this means the macro was only invoked conditionally." >&2;}
7565 { (exit 1); exit 1; }; }
7566 fi
7567 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7568 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7569 Usually this means the macro was only invoked conditionally." >&5
7570 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7571 Usually this means the macro was only invoked conditionally." >&2;}
7572 { (exit 1); exit 1; }; }
7573 fi
7574 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
7575 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
7576 Usually this means the macro was only invoked conditionally." >&5
7577 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
7578 Usually this means the macro was only invoked conditionally." >&2;}
7579 { (exit 1); exit 1; }; }
7580 fi
7581 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
7582 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
7583 Usually this means the macro was only invoked conditionally." >&5
7584 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
7585 Usually this means the macro was only invoked conditionally." >&2;}
7586 { (exit 1); exit 1; }; }
7587 fi
7588 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
7589 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
7590 Usually this means the macro was only invoked conditionally." >&5
7591 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
7592 Usually this means the macro was only invoked conditionally." >&2;}
7593 { (exit 1); exit 1; }; }
7594 fi
7595 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
7596 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
7597 Usually this means the macro was only invoked conditionally." >&5
7598 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
7599 Usually this means the macro was only invoked conditionally." >&2;}
7600 { (exit 1); exit 1; }; }
7601 fi
7603 : ${CONFIG_STATUS=./config.status}
7604 ac_clean_files_save=$ac_clean_files
7605 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7606 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7607 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7608 cat >$CONFIG_STATUS <<_ACEOF
7609 #! $SHELL
7610 # Generated by $as_me.
7611 # Run this file to recreate the current configuration.
7612 # Compiler output produced by configure, useful for debugging
7613 # configure, is in config.log if it exists.
7615 debug=false
7616 ac_cs_recheck=false
7617 ac_cs_silent=false
7618 SHELL=\${CONFIG_SHELL-$SHELL}
7619 _ACEOF
7621 cat >>$CONFIG_STATUS <<\_ACEOF
7622 ## --------------------- ##
7623 ## M4sh Initialization. ##
7624 ## --------------------- ##
7626 # Be more Bourne compatible
7627 DUALCASE=1; export DUALCASE # for MKS sh
7628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7629 emulate sh
7630 NULLCMD=:
7631 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7632 # is contrary to our usage. Disable this feature.
7633 alias -g '${1+"$@"}'='"$@"'
7634 setopt NO_GLOB_SUBST
7635 else
7636 case `(set -o) 2>/dev/null` in
7637 *posix*) set -o posix ;;
7638 esac
7640 fi
7645 # PATH needs CR
7646 # Avoid depending upon Character Ranges.
7647 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7648 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7649 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7650 as_cr_digits='0123456789'
7651 as_cr_alnum=$as_cr_Letters$as_cr_digits
7653 # The user is always right.
7654 if test "${PATH_SEPARATOR+set}" != set; then
7655 echo "#! /bin/sh" >conf$$.sh
7656 echo "exit 0" >>conf$$.sh
7657 chmod +x conf$$.sh
7658 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7659 PATH_SEPARATOR=';'
7660 else
7661 PATH_SEPARATOR=:
7662 fi
7663 rm -f conf$$.sh
7664 fi
7666 # Support unset when possible.
7667 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7668 as_unset=unset
7669 else
7670 as_unset=false
7671 fi
7674 # IFS
7675 # We need space, tab and new line, in precisely that order. Quoting is
7676 # there to prevent editors from complaining about space-tab.
7677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7678 # splitting by setting IFS to empty value.)
7679 as_nl='
7680 '
7681 IFS=" "" $as_nl"
7683 # Find who we are. Look in the path if we contain no directory separator.
7684 case $0 in
7685 *[\\/]* ) as_myself=$0 ;;
7686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687 for as_dir in $PATH
7688 do
7689 IFS=$as_save_IFS
7690 test -z "$as_dir" && as_dir=.
7691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7692 done
7693 IFS=$as_save_IFS
7695 ;;
7696 esac
7697 # We did not find ourselves, most probably we were run as `sh COMMAND'
7698 # in which case we are not to be found in the path.
7699 if test "x$as_myself" = x; then
7700 as_myself=$0
7701 fi
7702 if test ! -f "$as_myself"; then
7703 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7704 { (exit 1); exit 1; }
7705 fi
7707 # Work around bugs in pre-3.0 UWIN ksh.
7708 for as_var in ENV MAIL MAILPATH
7709 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7710 done
7711 PS1='$ '
7712 PS2='> '
7713 PS4='+ '
7715 # NLS nuisances.
7716 for as_var in \
7717 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7718 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7719 LC_TELEPHONE LC_TIME
7720 do
7721 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7722 eval $as_var=C; export $as_var
7723 else
7724 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7725 fi
7726 done
7728 # Required to use basename.
7729 if expr a : '\(a\)' >/dev/null 2>&1 &&
7730 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7731 as_expr=expr
7732 else
7733 as_expr=false
7734 fi
7736 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7737 as_basename=basename
7738 else
7739 as_basename=false
7740 fi
7743 # Name of the executable.
7744 as_me=`$as_basename -- "$0" ||
7745 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7746 X"$0" : 'X\(//\)$' \| \
7747 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7748 echo X/"$0" |
7749 sed '/^.*\/\([^/][^/]*\)\/*$/{
7750 s//\1/
7751 q
7752 }
7753 /^X\/\(\/\/\)$/{
7754 s//\1/
7755 q
7756 }
7757 /^X\/\(\/\).*/{
7758 s//\1/
7759 q
7760 }
7761 s/.*/./; q'`
7763 # CDPATH.
7764 $as_unset CDPATH
7768 as_lineno_1=$LINENO
7769 as_lineno_2=$LINENO
7770 test "x$as_lineno_1" != "x$as_lineno_2" &&
7771 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7773 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7774 # uniformly replaced by the line number. The first 'sed' inserts a
7775 # line-number line after each line using $LINENO; the second 'sed'
7776 # does the real work. The second script uses 'N' to pair each
7777 # line-number line with the line containing $LINENO, and appends
7778 # trailing '-' during substitution so that $LINENO is not a special
7779 # case at line end.
7780 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7781 # scripts with optimization help from Paolo Bonzini. Blame Lee
7782 # E. McMahon (1931-1989) for sed's syntax. :-)
7783 sed -n '
7784 p
7785 /[$]LINENO/=
7786 ' <$as_myself |
7787 sed '
7788 s/[$]LINENO.*/&-/
7789 t lineno
7790 b
7791 :lineno
7792 N
7793 :loop
7794 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7795 t loop
7796 s/-\n.*//
7797 ' >$as_me.lineno &&
7798 chmod +x "$as_me.lineno" ||
7799 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7800 { (exit 1); exit 1; }; }
7802 # Don't try to exec as it changes $[0], causing all sort of problems
7803 # (the dirname of $[0] is not the place where we might find the
7804 # original and so on. Autoconf is especially sensitive to this).
7805 . "./$as_me.lineno"
7806 # Exit status is that of the last command.
7807 exit
7808 }
7811 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7812 as_dirname=dirname
7813 else
7814 as_dirname=false
7815 fi
7817 ECHO_C= ECHO_N= ECHO_T=
7818 case `echo -n x` in
7819 -n*)
7820 case `echo 'x\c'` in
7821 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7822 *) ECHO_C='\c';;
7823 esac;;
7824 *)
7825 ECHO_N='-n';;
7826 esac
7828 if expr a : '\(a\)' >/dev/null 2>&1 &&
7829 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7830 as_expr=expr
7831 else
7832 as_expr=false
7833 fi
7835 rm -f conf$$ conf$$.exe conf$$.file
7836 if test -d conf$$.dir; then
7837 rm -f conf$$.dir/conf$$.file
7838 else
7839 rm -f conf$$.dir
7840 mkdir conf$$.dir
7841 fi
7842 echo >conf$$.file
7843 if ln -s conf$$.file conf$$ 2>/dev/null; then
7844 as_ln_s='ln -s'
7845 # ... but there are two gotchas:
7846 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7847 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7848 # In both cases, we have to default to `cp -p'.
7849 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7850 as_ln_s='cp -p'
7851 elif ln conf$$.file conf$$ 2>/dev/null; then
7852 as_ln_s=ln
7853 else
7854 as_ln_s='cp -p'
7855 fi
7856 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7857 rmdir conf$$.dir 2>/dev/null
7859 if mkdir -p . 2>/dev/null; then
7860 as_mkdir_p=:
7861 else
7862 test -d ./-p && rmdir ./-p
7863 as_mkdir_p=false
7864 fi
7866 if test -x / >/dev/null 2>&1; then
7867 as_test_x='test -x'
7868 else
7869 if ls -dL / >/dev/null 2>&1; then
7870 as_ls_L_option=L
7871 else
7872 as_ls_L_option=
7873 fi
7874 as_test_x='
7875 eval sh -c '\''
7876 if test -d "$1"; then
7877 test -d "$1/.";
7878 else
7879 case $1 in
7880 -*)set "./$1";;
7881 esac;
7882 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7883 ???[sx]*):;;*)false;;esac;fi
7884 '\'' sh
7885 '
7886 fi
7887 as_executable_p=$as_test_x
7889 # Sed expression to map a string onto a valid CPP name.
7890 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7892 # Sed expression to map a string onto a valid variable name.
7893 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7896 exec 6>&1
7898 # Save the log message, to keep $[0] and so on meaningful, and to
7899 # report actual input values of CONFIG_FILES etc. instead of their
7900 # values after options handling.
7901 ac_log="
7902 This file was extended by $as_me, which was
7903 generated by GNU Autoconf 2.61. Invocation command line was
7905 CONFIG_FILES = $CONFIG_FILES
7906 CONFIG_HEADERS = $CONFIG_HEADERS
7907 CONFIG_LINKS = $CONFIG_LINKS
7908 CONFIG_COMMANDS = $CONFIG_COMMANDS
7909 $ $0 $@
7911 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7912 "
7914 _ACEOF
7916 cat >>$CONFIG_STATUS <<_ACEOF
7917 # Files that config.status was made for.
7918 config_files="$ac_config_files"
7919 config_headers="$ac_config_headers"
7920 config_commands="$ac_config_commands"
7922 _ACEOF
7924 cat >>$CONFIG_STATUS <<\_ACEOF
7925 ac_cs_usage="\
7926 \`$as_me' instantiates files from templates according to the
7927 current configuration.
7929 Usage: $0 [OPTIONS] [FILE]...
7931 -h, --help print this help, then exit
7932 -V, --version print version number and configuration settings, then exit
7933 -q, --quiet do not print progress messages
7934 -d, --debug don't remove temporary files
7935 --recheck update $as_me by reconfiguring in the same conditions
7936 --file=FILE[:TEMPLATE]
7937 instantiate the configuration file FILE
7938 --header=FILE[:TEMPLATE]
7939 instantiate the configuration header FILE
7941 Configuration files:
7942 $config_files
7944 Configuration headers:
7945 $config_headers
7947 Configuration commands:
7948 $config_commands
7950 Report bugs to <bug-autoconf@gnu.org>."
7952 _ACEOF
7953 cat >>$CONFIG_STATUS <<_ACEOF
7954 ac_cs_version="\\
7955 config.status
7956 configured by $0, generated by GNU Autoconf 2.61,
7957 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7959 Copyright (C) 2006 Free Software Foundation, Inc.
7960 This config.status script is free software; the Free Software Foundation
7961 gives unlimited permission to copy, distribute and modify it."
7963 ac_pwd='$ac_pwd'
7964 srcdir='$srcdir'
7965 INSTALL='$INSTALL'
7966 _ACEOF
7968 cat >>$CONFIG_STATUS <<\_ACEOF
7969 # If no file are specified by the user, then we need to provide default
7970 # value. By we need to know if files were specified by the user.
7971 ac_need_defaults=:
7972 while test $# != 0
7973 do
7974 case $1 in
7975 --*=*)
7976 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7977 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7978 ac_shift=:
7979 ;;
7980 *)
7981 ac_option=$1
7982 ac_optarg=$2
7983 ac_shift=shift
7984 ;;
7985 esac
7987 case $ac_option in
7988 # Handling of the options.
7989 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7990 ac_cs_recheck=: ;;
7991 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7992 echo "$ac_cs_version"; exit ;;
7993 --debug | --debu | --deb | --de | --d | -d )
7994 debug=: ;;
7995 --file | --fil | --fi | --f )
7996 $ac_shift
7997 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7998 ac_need_defaults=false;;
7999 --header | --heade | --head | --hea )
8000 $ac_shift
8001 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8002 ac_need_defaults=false;;
8003 --he | --h)
8004 # Conflict between --help and --header
8005 { echo "$as_me: error: ambiguous option: $1
8006 Try \`$0 --help' for more information." >&2
8007 { (exit 1); exit 1; }; };;
8008 --help | --hel | -h )
8009 echo "$ac_cs_usage"; exit ;;
8010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8011 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8012 ac_cs_silent=: ;;
8014 # This is an error.
8015 -*) { echo "$as_me: error: unrecognized option: $1
8016 Try \`$0 --help' for more information." >&2
8017 { (exit 1); exit 1; }; } ;;
8019 *) ac_config_targets="$ac_config_targets $1"
8020 ac_need_defaults=false ;;
8022 esac
8023 shift
8024 done
8026 ac_configure_extra_args=
8028 if $ac_cs_silent; then
8029 exec 6>/dev/null
8030 ac_configure_extra_args="$ac_configure_extra_args --silent"
8031 fi
8033 _ACEOF
8034 cat >>$CONFIG_STATUS <<_ACEOF
8035 if \$ac_cs_recheck; then
8036 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8037 CONFIG_SHELL=$SHELL
8038 export CONFIG_SHELL
8039 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8040 fi
8042 _ACEOF
8043 cat >>$CONFIG_STATUS <<\_ACEOF
8044 exec 5>>config.log
8045 {
8046 echo
8047 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8048 ## Running $as_me. ##
8049 _ASBOX
8050 echo "$ac_log"
8051 } >&5
8053 _ACEOF
8054 cat >>$CONFIG_STATUS <<_ACEOF
8055 #
8056 # INIT-COMMANDS
8057 #
8058 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8061 _ACEOF
8063 cat >>$CONFIG_STATUS <<\_ACEOF
8065 # Handling of arguments.
8066 for ac_config_target in $ac_config_targets
8067 do
8068 case $ac_config_target in
8069 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8070 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8071 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8072 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8073 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8074 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8075 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
8077 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8078 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8079 { (exit 1); exit 1; }; };;
8080 esac
8081 done
8084 # If the user did not use the arguments to specify the items to instantiate,
8085 # then the envvar interface is used. Set only those that are not.
8086 # We use the long form for the default assignment because of an extremely
8087 # bizarre bug on SunOS 4.1.3.
8088 if $ac_need_defaults; then
8089 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8090 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8091 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8092 fi
8094 # Have a temporary directory for convenience. Make it in the build tree
8095 # simply because there is no reason against having it here, and in addition,
8096 # creating and moving files from /tmp can sometimes cause problems.
8097 # Hook for its removal unless debugging.
8098 # Note that there is a small window in which the directory will not be cleaned:
8099 # after its creation but before its name has been assigned to `$tmp'.
8100 $debug ||
8101 {
8102 tmp=
8103 trap 'exit_status=$?
8104 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8105 ' 0
8106 trap '{ (exit 1); exit 1; }' 1 2 13 15
8107 }
8108 # Create a (secure) tmp directory for tmp files.
8110 {
8111 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8112 test -n "$tmp" && test -d "$tmp"
8113 } ||
8114 {
8115 tmp=./conf$$-$RANDOM
8116 (umask 077 && mkdir "$tmp")
8117 } ||
8118 {
8119 echo "$me: cannot create a temporary directory in ." >&2
8120 { (exit 1); exit 1; }
8121 }
8123 #
8124 # Set up the sed scripts for CONFIG_FILES section.
8125 #
8127 # No need to generate the scripts if there are no CONFIG_FILES.
8128 # This happens for instance when ./config.status config.h
8129 if test -n "$CONFIG_FILES"; then
8131 _ACEOF
8135 ac_delim='%!_!# '
8136 for ac_last_try in false false false false false :; do
8137 cat >conf$$subs.sed <<_ACEOF
8138 SHELL!$SHELL$ac_delim
8139 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
8140 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
8141 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
8142 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
8143 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
8144 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
8145 exec_prefix!$exec_prefix$ac_delim
8146 prefix!$prefix$ac_delim
8147 program_transform_name!$program_transform_name$ac_delim
8148 bindir!$bindir$ac_delim
8149 sbindir!$sbindir$ac_delim
8150 libexecdir!$libexecdir$ac_delim
8151 datarootdir!$datarootdir$ac_delim
8152 datadir!$datadir$ac_delim
8153 sysconfdir!$sysconfdir$ac_delim
8154 sharedstatedir!$sharedstatedir$ac_delim
8155 localstatedir!$localstatedir$ac_delim
8156 includedir!$includedir$ac_delim
8157 oldincludedir!$oldincludedir$ac_delim
8158 docdir!$docdir$ac_delim
8159 infodir!$infodir$ac_delim
8160 htmldir!$htmldir$ac_delim
8161 dvidir!$dvidir$ac_delim
8162 pdfdir!$pdfdir$ac_delim
8163 psdir!$psdir$ac_delim
8164 libdir!$libdir$ac_delim
8165 localedir!$localedir$ac_delim
8166 mandir!$mandir$ac_delim
8167 DEFS!$DEFS$ac_delim
8168 ECHO_C!$ECHO_C$ac_delim
8169 ECHO_N!$ECHO_N$ac_delim
8170 ECHO_T!$ECHO_T$ac_delim
8171 LIBS!$LIBS$ac_delim
8172 build_alias!$build_alias$ac_delim
8173 host_alias!$host_alias$ac_delim
8174 target_alias!$target_alias$ac_delim
8175 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8176 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8177 INSTALL_DATA!$INSTALL_DATA$ac_delim
8178 CYGPATH_W!$CYGPATH_W$ac_delim
8179 PACKAGE!$PACKAGE$ac_delim
8180 VERSION!$VERSION$ac_delim
8181 ACLOCAL!$ACLOCAL$ac_delim
8182 AUTOCONF!$AUTOCONF$ac_delim
8183 AUTOMAKE!$AUTOMAKE$ac_delim
8184 AUTOHEADER!$AUTOHEADER$ac_delim
8185 MAKEINFO!$MAKEINFO$ac_delim
8186 AMTAR!$AMTAR$ac_delim
8187 install_sh!$install_sh$ac_delim
8188 STRIP!$STRIP$ac_delim
8189 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
8190 AWK!$AWK$ac_delim
8191 SET_MAKE!$SET_MAKE$ac_delim
8192 am__leading_dot!$am__leading_dot$ac_delim
8193 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
8194 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
8195 MAINT!$MAINT$ac_delim
8196 CC!$CC$ac_delim
8197 CFLAGS!$CFLAGS$ac_delim
8198 LDFLAGS!$LDFLAGS$ac_delim
8199 CPPFLAGS!$CPPFLAGS$ac_delim
8200 ac_ct_CC!$ac_ct_CC$ac_delim
8201 EXEEXT!$EXEEXT$ac_delim
8202 OBJEXT!$OBJEXT$ac_delim
8203 DEPDIR!$DEPDIR$ac_delim
8204 am__include!$am__include$ac_delim
8205 am__quote!$am__quote$ac_delim
8206 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
8207 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
8208 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
8209 CCDEPMODE!$CCDEPMODE$ac_delim
8210 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
8211 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
8212 CPP!$CPP$ac_delim
8213 GREP!$GREP$ac_delim
8214 EGREP!$EGREP$ac_delim
8215 build!$build$ac_delim
8216 build_cpu!$build_cpu$ac_delim
8217 build_vendor!$build_vendor$ac_delim
8218 build_os!$build_os$ac_delim
8219 host!$host$ac_delim
8220 host_cpu!$host_cpu$ac_delim
8221 host_vendor!$host_vendor$ac_delim
8222 host_os!$host_os$ac_delim
8223 PKG_CONFIG!$PKG_CONFIG$ac_delim
8224 PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim
8225 PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim
8226 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
8227 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
8228 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
8229 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
8230 SHCC!$SHCC$ac_delim
8231 SHLD!$SHLD$ac_delim
8232 SHOBJCOPY!$SHOBJCOPY$ac_delim
8233 ARMCC!$ARMCC$ac_delim
8234 ARMLD!$ARMLD$ac_delim
8235 _ACEOF
8237 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
8238 break
8239 elif $ac_last_try; then
8240 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8241 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8242 { (exit 1); exit 1; }; }
8243 else
8244 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8245 fi
8246 done
8248 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8249 if test -n "$ac_eof"; then
8250 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8251 ac_eof=`expr $ac_eof + 1`
8252 fi
8254 cat >>$CONFIG_STATUS <<_ACEOF
8255 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8257 _ACEOF
8258 sed '
8259 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8260 s/^/s,@/; s/!/@,|#_!!_#|/
8261 :n
8262 t n
8263 s/'"$ac_delim"'$/,g/; t
8264 s/$/\\/; p
8265 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8266 ' >>$CONFIG_STATUS <conf$$subs.sed
8267 rm -f conf$$subs.sed
8268 cat >>$CONFIG_STATUS <<_ACEOF
8269 CEOF$ac_eof
8270 _ACEOF
8273 ac_delim='%!_!# '
8274 for ac_last_try in false false false false false :; do
8275 cat >conf$$subs.sed <<_ACEOF
8276 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
8277 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
8278 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
8279 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
8280 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
8281 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
8282 USE_NLS!$USE_NLS$ac_delim
8283 MSGFMT!$MSGFMT$ac_delim
8284 GMSGFMT!$GMSGFMT$ac_delim
8285 XGETTEXT!$XGETTEXT$ac_delim
8286 CATALOGS!$CATALOGS$ac_delim
8287 CATOBJEXT!$CATOBJEXT$ac_delim
8288 DATADIRNAME!$DATADIRNAME$ac_delim
8289 GMOFILES!$GMOFILES$ac_delim
8290 INSTOBJEXT!$INSTOBJEXT$ac_delim
8291 INTLLIBS!$INTLLIBS$ac_delim
8292 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
8293 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
8294 POFILES!$POFILES$ac_delim
8295 POSUB!$POSUB$ac_delim
8296 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
8297 LIBOBJS!$LIBOBJS$ac_delim
8298 LTLIBOBJS!$LTLIBOBJS$ac_delim
8299 _ACEOF
8301 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
8302 break
8303 elif $ac_last_try; then
8304 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8305 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8306 { (exit 1); exit 1; }; }
8307 else
8308 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8309 fi
8310 done
8312 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8313 if test -n "$ac_eof"; then
8314 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8315 ac_eof=`expr $ac_eof + 1`
8316 fi
8318 cat >>$CONFIG_STATUS <<_ACEOF
8319 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
8320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8321 _ACEOF
8322 sed '
8323 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8324 s/^/s,@/; s/!/@,|#_!!_#|/
8325 :n
8326 t n
8327 s/'"$ac_delim"'$/,g/; t
8328 s/$/\\/; p
8329 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8330 ' >>$CONFIG_STATUS <conf$$subs.sed
8331 rm -f conf$$subs.sed
8332 cat >>$CONFIG_STATUS <<_ACEOF
8333 :end
8334 s/|#_!!_#|//g
8335 CEOF$ac_eof
8336 _ACEOF
8339 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8340 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8341 # trailing colons and then remove the whole line if VPATH becomes empty
8342 # (actually we leave an empty line to preserve line numbers).
8343 if test "x$srcdir" = x.; then
8344 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8345 s/:*\$(srcdir):*/:/
8346 s/:*\${srcdir}:*/:/
8347 s/:*@srcdir@:*/:/
8348 s/^\([^=]*=[ ]*\):*/\1/
8349 s/:*$//
8350 s/^[^=]*=[ ]*$//
8351 }'
8352 fi
8354 cat >>$CONFIG_STATUS <<\_ACEOF
8355 fi # test -n "$CONFIG_FILES"
8358 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
8359 do
8360 case $ac_tag in
8361 :[FHLC]) ac_mode=$ac_tag; continue;;
8362 esac
8363 case $ac_mode$ac_tag in
8364 :[FHL]*:*);;
8365 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8366 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8367 { (exit 1); exit 1; }; };;
8368 :[FH]-) ac_tag=-:-;;
8369 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8370 esac
8371 ac_save_IFS=$IFS
8372 IFS=:
8373 set x $ac_tag
8374 IFS=$ac_save_IFS
8375 shift
8376 ac_file=$1
8377 shift
8379 case $ac_mode in
8380 :L) ac_source=$1;;
8381 :[FH])
8382 ac_file_inputs=
8383 for ac_f
8384 do
8385 case $ac_f in
8386 -) ac_f="$tmp/stdin";;
8387 *) # Look for the file first in the build tree, then in the source tree
8388 # (if the path is not absolute). The absolute path cannot be DOS-style,
8389 # because $ac_f cannot contain `:'.
8390 test -f "$ac_f" ||
8391 case $ac_f in
8392 [\\/$]*) false;;
8393 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8394 esac ||
8395 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8396 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8397 { (exit 1); exit 1; }; };;
8398 esac
8399 ac_file_inputs="$ac_file_inputs $ac_f"
8400 done
8402 # Let's still pretend it is `configure' which instantiates (i.e., don't
8403 # use $as_me), people would be surprised to read:
8404 # /* config.h. Generated by config.status. */
8405 configure_input="Generated from "`IFS=:
8406 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8407 if test x"$ac_file" != x-; then
8408 configure_input="$ac_file. $configure_input"
8409 { echo "$as_me:$LINENO: creating $ac_file" >&5
8410 echo "$as_me: creating $ac_file" >&6;}
8411 fi
8413 case $ac_tag in
8414 *:-:* | *:-) cat >"$tmp/stdin";;
8415 esac
8416 ;;
8417 esac
8419 ac_dir=`$as_dirname -- "$ac_file" ||
8420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8421 X"$ac_file" : 'X\(//\)[^/]' \| \
8422 X"$ac_file" : 'X\(//\)$' \| \
8423 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8424 echo X"$ac_file" |
8425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8426 s//\1/
8427 q
8428 }
8429 /^X\(\/\/\)[^/].*/{
8430 s//\1/
8431 q
8432 }
8433 /^X\(\/\/\)$/{
8434 s//\1/
8435 q
8436 }
8437 /^X\(\/\).*/{
8438 s//\1/
8439 q
8440 }
8441 s/.*/./; q'`
8442 { as_dir="$ac_dir"
8443 case $as_dir in #(
8444 -*) as_dir=./$as_dir;;
8445 esac
8446 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8447 as_dirs=
8448 while :; do
8449 case $as_dir in #(
8450 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8451 *) as_qdir=$as_dir;;
8452 esac
8453 as_dirs="'$as_qdir' $as_dirs"
8454 as_dir=`$as_dirname -- "$as_dir" ||
8455 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8456 X"$as_dir" : 'X\(//\)[^/]' \| \
8457 X"$as_dir" : 'X\(//\)$' \| \
8458 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8459 echo X"$as_dir" |
8460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8461 s//\1/
8462 q
8463 }
8464 /^X\(\/\/\)[^/].*/{
8465 s//\1/
8466 q
8467 }
8468 /^X\(\/\/\)$/{
8469 s//\1/
8470 q
8471 }
8472 /^X\(\/\).*/{
8473 s//\1/
8474 q
8475 }
8476 s/.*/./; q'`
8477 test -d "$as_dir" && break
8478 done
8479 test -z "$as_dirs" || eval "mkdir $as_dirs"
8480 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8481 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8482 { (exit 1); exit 1; }; }; }
8483 ac_builddir=.
8485 case "$ac_dir" in
8486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8487 *)
8488 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8489 # A ".." for each directory in $ac_dir_suffix.
8490 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8491 case $ac_top_builddir_sub in
8492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8494 esac ;;
8495 esac
8496 ac_abs_top_builddir=$ac_pwd
8497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8498 # for backward compatibility:
8499 ac_top_builddir=$ac_top_build_prefix
8501 case $srcdir in
8502 .) # We are building in place.
8503 ac_srcdir=.
8504 ac_top_srcdir=$ac_top_builddir_sub
8505 ac_abs_top_srcdir=$ac_pwd ;;
8506 [\\/]* | ?:[\\/]* ) # Absolute name.
8507 ac_srcdir=$srcdir$ac_dir_suffix;
8508 ac_top_srcdir=$srcdir
8509 ac_abs_top_srcdir=$srcdir ;;
8510 *) # Relative name.
8511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8512 ac_top_srcdir=$ac_top_build_prefix$srcdir
8513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8514 esac
8515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8518 case $ac_mode in
8519 :F)
8520 #
8521 # CONFIG_FILE
8522 #
8524 case $INSTALL in
8525 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8526 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8527 esac
8528 _ACEOF
8530 cat >>$CONFIG_STATUS <<\_ACEOF
8531 # If the template does not know about datarootdir, expand it.
8532 # FIXME: This hack should be removed a few years after 2.60.
8533 ac_datarootdir_hack=; ac_datarootdir_seen=
8535 case `sed -n '/datarootdir/ {
8536 p
8537 q
8538 }
8539 /@datadir@/p
8540 /@docdir@/p
8541 /@infodir@/p
8542 /@localedir@/p
8543 /@mandir@/p
8544 ' $ac_file_inputs` in
8545 *datarootdir*) ac_datarootdir_seen=yes;;
8546 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8547 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8548 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8549 _ACEOF
8550 cat >>$CONFIG_STATUS <<_ACEOF
8551 ac_datarootdir_hack='
8552 s&@datadir@&$datadir&g
8553 s&@docdir@&$docdir&g
8554 s&@infodir@&$infodir&g
8555 s&@localedir@&$localedir&g
8556 s&@mandir@&$mandir&g
8557 s&\\\${datarootdir}&$datarootdir&g' ;;
8558 esac
8559 _ACEOF
8561 # Neutralize VPATH when `$srcdir' = `.'.
8562 # Shell code in configure.ac might set extrasub.
8563 # FIXME: do we really want to maintain this feature?
8564 cat >>$CONFIG_STATUS <<_ACEOF
8565 sed "$ac_vpsub
8566 $extrasub
8567 _ACEOF
8568 cat >>$CONFIG_STATUS <<\_ACEOF
8569 :t
8570 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8571 s&@configure_input@&$configure_input&;t t
8572 s&@top_builddir@&$ac_top_builddir_sub&;t t
8573 s&@srcdir@&$ac_srcdir&;t t
8574 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8575 s&@top_srcdir@&$ac_top_srcdir&;t t
8576 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8577 s&@builddir@&$ac_builddir&;t t
8578 s&@abs_builddir@&$ac_abs_builddir&;t t
8579 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8580 s&@INSTALL@&$ac_INSTALL&;t t
8581 $ac_datarootdir_hack
8582 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
8584 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8585 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8586 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8587 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8588 which seems to be undefined. Please make sure it is defined." >&5
8589 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8590 which seems to be undefined. Please make sure it is defined." >&2;}
8592 rm -f "$tmp/stdin"
8593 case $ac_file in
8594 -) cat "$tmp/out"; rm -f "$tmp/out";;
8595 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8596 esac
8597 ;;
8598 :H)
8599 #
8600 # CONFIG_HEADER
8601 #
8602 _ACEOF
8604 # Transform confdefs.h into a sed script `conftest.defines', that
8605 # substitutes the proper values into config.h.in to produce config.h.
8606 rm -f conftest.defines conftest.tail
8607 # First, append a space to every undef/define line, to ease matching.
8608 echo 's/$/ /' >conftest.defines
8609 # Then, protect against being on the right side of a sed subst, or in
8610 # an unquoted here document, in config.status. If some macros were
8611 # called several times there might be several #defines for the same
8612 # symbol, which is useless. But do not sort them, since the last
8613 # AC_DEFINE must be honored.
8614 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8615 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8616 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8617 # PARAMS is the parameter list in the macro definition--in most cases, it's
8618 # just an empty string.
8619 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
8620 ac_dB='\\)[ (].*,\\1define\\2'
8621 ac_dC=' '
8622 ac_dD=' ,'
8624 uniq confdefs.h |
8625 sed -n '
8626 t rset
8627 :rset
8628 s/^[ ]*#[ ]*define[ ][ ]*//
8629 t ok
8630 d
8631 :ok
8632 s/[\\&,]/\\&/g
8633 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8634 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8635 ' >>conftest.defines
8637 # Remove the space that was appended to ease matching.
8638 # Then replace #undef with comments. This is necessary, for
8639 # example, in the case of _POSIX_SOURCE, which is predefined and required
8640 # on some systems where configure will not decide to define it.
8641 # (The regexp can be short, since the line contains either #define or #undef.)
8642 echo 's/ $//
8643 s,^[ #]*u.*,/* & */,' >>conftest.defines
8645 # Break up conftest.defines:
8646 ac_max_sed_lines=50
8648 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8649 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8650 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8651 # et cetera.
8652 ac_in='$ac_file_inputs'
8653 ac_out='"$tmp/out1"'
8654 ac_nxt='"$tmp/out2"'
8656 while :
8657 do
8658 # Write a here document:
8659 cat >>$CONFIG_STATUS <<_ACEOF
8660 # First, check the format of the line:
8661 cat >"\$tmp/defines.sed" <<\\CEOF
8662 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
8663 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
8664 b
8665 :def
8666 _ACEOF
8667 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8668 echo 'CEOF
8669 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8670 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8671 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8672 grep . conftest.tail >/dev/null || break
8673 rm -f conftest.defines
8674 mv conftest.tail conftest.defines
8675 done
8676 rm -f conftest.defines conftest.tail
8678 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8679 cat >>$CONFIG_STATUS <<\_ACEOF
8680 if test x"$ac_file" != x-; then
8681 echo "/* $configure_input */" >"$tmp/config.h"
8682 cat "$ac_result" >>"$tmp/config.h"
8683 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8684 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8685 echo "$as_me: $ac_file is unchanged" >&6;}
8686 else
8687 rm -f $ac_file
8688 mv "$tmp/config.h" $ac_file
8689 fi
8690 else
8691 echo "/* $configure_input */"
8692 cat "$ac_result"
8693 fi
8694 rm -f "$tmp/out12"
8695 # Compute $ac_file's index in $config_headers.
8696 _am_stamp_count=1
8697 for _am_header in $config_headers :; do
8698 case $_am_header in
8699 $ac_file | $ac_file:* )
8700 break ;;
8701 * )
8702 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8703 esac
8704 done
8705 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
8706 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8707 X$ac_file : 'X\(//\)[^/]' \| \
8708 X$ac_file : 'X\(//\)$' \| \
8709 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
8710 echo X$ac_file |
8711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8712 s//\1/
8713 q
8714 }
8715 /^X\(\/\/\)[^/].*/{
8716 s//\1/
8717 q
8718 }
8719 /^X\(\/\/\)$/{
8720 s//\1/
8721 q
8722 }
8723 /^X\(\/\).*/{
8724 s//\1/
8725 q
8726 }
8727 s/.*/./; q'`/stamp-h$_am_stamp_count
8728 ;;
8730 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
8731 echo "$as_me: executing $ac_file commands" >&6;}
8732 ;;
8733 esac
8736 case $ac_file$ac_mode in
8737 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
8738 # Strip MF so we end up with the name of the file.
8739 mf=`echo "$mf" | sed -e 's/:.*$//'`
8740 # Check whether this is an Automake generated Makefile or not.
8741 # We used to match only the files named `Makefile.in', but
8742 # some people rename them; so instead we look at the file content.
8743 # Grep'ing the first line is not enough: some people post-process
8744 # each Makefile.in and add a new line on top of each file to say so.
8745 # So let's grep whole file.
8746 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8747 dirpart=`$as_dirname -- "$mf" ||
8748 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8749 X"$mf" : 'X\(//\)[^/]' \| \
8750 X"$mf" : 'X\(//\)$' \| \
8751 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8752 echo X"$mf" |
8753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8754 s//\1/
8755 q
8756 }
8757 /^X\(\/\/\)[^/].*/{
8758 s//\1/
8759 q
8760 }
8761 /^X\(\/\/\)$/{
8762 s//\1/
8763 q
8764 }
8765 /^X\(\/\).*/{
8766 s//\1/
8767 q
8768 }
8769 s/.*/./; q'`
8770 else
8771 continue
8772 fi
8773 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
8774 # Extract the definition of DEP_FILES from the Makefile without
8775 # running `make'.
8776 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
8777 test -z "$DEPDIR" && continue
8778 # When using ansi2knr, U may be empty or an underscore; expand it
8779 U=`sed -n -e '/^U = / s///p' < "$mf"`
8780 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
8781 # We invoke sed twice because it is the simplest approach to
8782 # changing $(DEPDIR) to its actual value in the expansion.
8783 for file in `sed -n -e '
8784 /^DEP_FILES = .*\\\\$/ {
8785 s/^DEP_FILES = //
8786 :loop
8787 s/\\\\$//
8788 p
8789 n
8790 /\\\\$/ b loop
8791 p
8792 }
8793 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
8794 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8795 # Make sure the directory exists.
8796 test -f "$dirpart/$file" && continue
8797 fdir=`$as_dirname -- "$file" ||
8798 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8799 X"$file" : 'X\(//\)[^/]' \| \
8800 X"$file" : 'X\(//\)$' \| \
8801 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8802 echo X"$file" |
8803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8804 s//\1/
8805 q
8806 }
8807 /^X\(\/\/\)[^/].*/{
8808 s//\1/
8809 q
8810 }
8811 /^X\(\/\/\)$/{
8812 s//\1/
8813 q
8814 }
8815 /^X\(\/\).*/{
8816 s//\1/
8817 q
8818 }
8819 s/.*/./; q'`
8820 { as_dir=$dirpart/$fdir
8821 case $as_dir in #(
8822 -*) as_dir=./$as_dir;;
8823 esac
8824 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8825 as_dirs=
8826 while :; do
8827 case $as_dir in #(
8828 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8829 *) as_qdir=$as_dir;;
8830 esac
8831 as_dirs="'$as_qdir' $as_dirs"
8832 as_dir=`$as_dirname -- "$as_dir" ||
8833 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8834 X"$as_dir" : 'X\(//\)[^/]' \| \
8835 X"$as_dir" : 'X\(//\)$' \| \
8836 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8837 echo X"$as_dir" |
8838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8839 s//\1/
8840 q
8841 }
8842 /^X\(\/\/\)[^/].*/{
8843 s//\1/
8844 q
8845 }
8846 /^X\(\/\/\)$/{
8847 s//\1/
8848 q
8849 }
8850 /^X\(\/\).*/{
8851 s//\1/
8852 q
8853 }
8854 s/.*/./; q'`
8855 test -d "$as_dir" && break
8856 done
8857 test -z "$as_dirs" || eval "mkdir $as_dirs"
8858 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8859 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8860 { (exit 1); exit 1; }; }; }
8861 # echo "creating $dirpart/$file"
8862 echo '# dummy' > "$dirpart/$file"
8863 done
8864 done
8865 ;;
8866 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
8867 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8868 esac ;;
8870 esac
8871 done # for ac_tag
8874 { (exit 0); exit 0; }
8875 _ACEOF
8876 chmod +x $CONFIG_STATUS
8877 ac_clean_files=$ac_clean_files_save
8880 # configure is writing to config.log, and then calls config.status.
8881 # config.status does its own redirection, appending to config.log.
8882 # Unfortunately, on DOS this fails, as config.log is still kept open
8883 # by configure, so config.status won't be able to write to it; its
8884 # output is simply discarded. So we exec the FD to /dev/null,
8885 # effectively closing config.log, so it can be properly (re)opened and
8886 # appended to by config.status. When coming back to configure, we
8887 # need to make the FD available again.
8888 if test "$no_create" != yes; then
8889 ac_cs_success=:
8890 ac_config_status_args=
8891 test "$silent" = yes &&
8892 ac_config_status_args="$ac_config_status_args --quiet"
8893 exec 5>/dev/null
8894 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8895 exec 5>>config.log
8896 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8897 # would make configure fail if this is the last instruction.
8898 $ac_cs_success || { (exit 1); exit 1; }
8899 fi
.