filename | configure |
changeset | 688:8a13dabbdced |
prev | 681:1755a126b109 |
next | 697:479b8c213f61 |
author | nkeynes |
date | Thu Jun 19 04:40:37 2008 +0000 (15 years ago) |
permissions | -rwxr-xr-x |
last change | Refactor the gd-rom list management out of the GUI (devices, recent files, etc). Add gd-rom list to the cocoa UI. |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
118 fi
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
140 fi
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
146 fi
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
229 test \$exitcode = 0) || { (exit 1); exit 1; }
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
271 fi
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
292 fi
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
344 test $exitcode = 0) || { (exit 1); exit 1; }
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
355 fi
357 fi
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
379 fi
381 fi
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
467 N
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
483 }
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499 *)
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
529 fi
530 else
531 as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541 fi
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
563 fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="configure.in"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='SHELL
639 PATH_SEPARATOR
640 PACKAGE_NAME
641 PACKAGE_TARNAME
642 PACKAGE_VERSION
643 PACKAGE_STRING
644 PACKAGE_BUGREPORT
645 exec_prefix
646 prefix
647 program_transform_name
648 bindir
649 sbindir
650 libexecdir
651 datarootdir
652 datadir
653 sysconfdir
654 sharedstatedir
655 localstatedir
656 includedir
657 oldincludedir
658 docdir
659 infodir
660 htmldir
661 dvidir
662 pdfdir
663 psdir
664 libdir
665 localedir
666 mandir
667 DEFS
668 ECHO_C
669 ECHO_N
670 ECHO_T
671 LIBS
672 build_alias
673 host_alias
674 target_alias
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 CYGPATH_W
679 PACKAGE
680 VERSION
681 ACLOCAL
682 AUTOCONF
683 AUTOMAKE
684 AUTOHEADER
685 MAKEINFO
686 install_sh
687 STRIP
688 INSTALL_STRIP_PROGRAM
689 mkdir_p
690 AWK
691 SET_MAKE
692 am__leading_dot
693 AMTAR
694 am__tar
695 am__untar
696 MAINTAINER_MODE_TRUE
697 MAINTAINER_MODE_FALSE
698 MAINT
699 CC
700 CFLAGS
701 LDFLAGS
702 CPPFLAGS
703 ac_ct_CC
704 EXEEXT
705 OBJEXT
706 DEPDIR
707 am__include
708 am__quote
709 AMDEP_TRUE
710 AMDEP_FALSE
711 AMDEPBACKSLASH
712 CCDEPMODE
713 am__fastdepCC_TRUE
714 am__fastdepCC_FALSE
715 CCAS
716 CCASFLAGS
717 CPP
718 GREP
719 EGREP
720 build
721 build_cpu
722 build_vendor
723 build_os
724 host
725 host_cpu
726 host_vendor
727 host_os
728 GUI_COCOA_TRUE
729 GUI_COCOA_FALSE
730 PKG_CONFIG
731 LIBPNG_CFLAGS
732 LIBPNG_LIBS
733 GLIB_CFLAGS
734 GLIB_LIBS
735 GTK_CFLAGS
736 GTK_LIBS
737 GUI_GTK_TRUE
738 GUI_GTK_FALSE
739 VIDEO_OSMESA_TRUE
740 VIDEO_OSMESA_FALSE
741 VIDEO_GLX_TRUE
742 VIDEO_GLX_FALSE
743 VIDEO_NSGL_TRUE
744 VIDEO_NSGL_FALSE
745 BUILD_SH4X86_TRUE
746 BUILD_SH4X86_FALSE
747 BUILD_X86_64_TRUE
748 BUILD_X86_64_FALSE
749 PULSE_CFLAGS
750 PULSE_LIBS
751 AUDIO_PULSE_TRUE
752 AUDIO_PULSE_FALSE
753 ESOUND_CFLAGS
754 ESOUND_LIBS
755 AUDIO_ESOUND_TRUE
756 AUDIO_ESOUND_FALSE
757 ALSA_CFLAGS
758 ALSA_LIBS
759 AUDIO_ALSA_TRUE
760 AUDIO_ALSA_FALSE
761 CDROM_LINUX_TRUE
762 CDROM_LINUX_FALSE
763 JOY_LINUX_TRUE
764 JOY_LINUX_FALSE
765 SHCC
766 SHLD
767 SHOBJCOPY
768 ARMCC
769 ARMLD
770 ARMOBJCOPY
771 BUILD_SYSTEST_TRUE
772 BUILD_SYSTEST_FALSE
773 BUILD_ARMTEST_TRUE
774 BUILD_ARMTEST_FALSE
775 GETTEXT_PACKAGE
776 USE_NLS
777 MSGFMT
778 MSGFMT_OPTS
779 GMSGFMT
780 XGETTEXT
781 CATALOGS
782 CATOBJEXT
783 DATADIRNAME
784 GMOFILES
785 INSTOBJEXT
786 INTLLIBS
787 PO_IN_DATADIR_TRUE
788 PO_IN_DATADIR_FALSE
789 POFILES
790 POSUB
791 MKINSTALLDIRS
792 LIBOBJS
793 LTLIBOBJS'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_maintainer_mode
798 enable_dependency_tracking
799 enable_trace
800 enable_watch
801 enable_sh4stats
802 with_osmesa
803 with_gtk
804 '
805 ac_precious_vars='build_alias
806 host_alias
807 target_alias
808 CC
809 CFLAGS
810 LDFLAGS
811 LIBS
812 CPPFLAGS
813 CCAS
814 CCASFLAGS
815 CPP
816 PKG_CONFIG
817 LIBPNG_CFLAGS
818 LIBPNG_LIBS
819 GLIB_CFLAGS
820 GLIB_LIBS
821 GTK_CFLAGS
822 GTK_LIBS
823 PULSE_CFLAGS
824 PULSE_LIBS
825 ESOUND_CFLAGS
826 ESOUND_LIBS
827 ALSA_CFLAGS
828 ALSA_LIBS'
831 # Initialize some variables set by options.
832 ac_init_help=
833 ac_init_version=false
834 ac_unrecognized_opts=
835 ac_unrecognized_sep=
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
879 ac_prev=
880 ac_dashdash=
881 for ac_option
882 do
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
888 fi
890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
918 --config-cache | -C)
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
938 { (exit 1); exit 1; }; }
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
965 { (exit 1); exit 1; }; }
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=\$ac_optarg ;;
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
984 exec_prefix=$ac_optarg ;;
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
997 -host | --host | --hos | --ho)
998 ac_prev=host_alias ;;
999 -host=* | --host=* | --hos=* | --ho=*)
1000 host_alias=$ac_optarg ;;
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1013 includedir=$ac_optarg ;;
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1018 infodir=$ac_optarg ;;
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1023 libdir=$ac_optarg ;;
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1030 libexecdir=$ac_optarg ;;
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
1038 | --localstate | --localstat | --localsta | --localst | --locals)
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1042 localstatedir=$ac_optarg ;;
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1047 mandir=$ac_optarg ;;
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1054 | --no-cr | --no-c | -n)
1055 no_create=yes ;;
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1068 oldincludedir=$ac_optarg ;;
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1073 prefix=$ac_optarg ;;
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1080 program_prefix=$ac_optarg ;;
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1087 program_suffix=$ac_optarg ;;
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1104 program_transform_name=$ac_optarg ;;
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1124 sbindir=$ac_optarg ;;
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1135 sharedstatedir=$ac_optarg ;;
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1140 site=$ac_optarg ;;
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1145 srcdir=$ac_optarg ;;
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1152 sysconfdir=$ac_optarg ;;
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1155 ac_prev=target_alias ;;
1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1157 target_alias=$ac_optarg ;;
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
1165 -with-* | --with-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1170 { (exit 1); exit 1; }; }
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=no ;;
1199 --x)
1200 # Obsolete; use --with-x.
1201 with_x=yes ;;
1203 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1204 | --x-incl | --x-inc | --x-in | --x-i)
1205 ac_prev=x_includes ;;
1206 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1207 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1208 x_includes=$ac_optarg ;;
1210 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1211 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1212 ac_prev=x_libraries ;;
1213 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1214 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1215 x_libraries=$ac_optarg ;;
1217 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1218 Try \`$0 --help' for more information." >&2
1219 { (exit 1); exit 1; }; }
1220 ;;
1222 *=*)
1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1226 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1227 { (exit 1); exit 1; }; }
1228 eval $ac_envvar=\$ac_optarg
1229 export $ac_envvar ;;
1231 *)
1232 # FIXME: should be removed in autoconf 3.0.
1233 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1234 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1235 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1236 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1237 ;;
1239 esac
1240 done
1242 if test -n "$ac_prev"; then
1243 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1244 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1245 { (exit 1); exit 1; }; }
1246 fi
1248 if test -n "$ac_unrecognized_opts"; then
1249 case $enable_option_checking in
1250 no) ;;
1251 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1252 { (exit 1); exit 1; }; } ;;
1253 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1255 fi
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1262 do
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1276 { (exit 1); exit 1; }; }
1277 done
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295 fi
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1307 { (exit 1); exit 1; }; }
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1310 { (exit 1); exit 1; }; }
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
1340 srcdir=$ac_confdir
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1342 srcdir=..
1343 fi
1344 else
1345 ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1350 { (exit 1); exit 1; }; }
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1355 { (exit 1); exit 1; }; }
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1360 fi
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1374 #
1375 # Report the --help message.
1376 #
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381 \`configure' configures this package to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1390 Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434 _ACEOF
1436 cat <<\_ACEOF
1438 Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443 System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 _ACEOF
1447 fi
1449 if test -n "$ac_init_help"; then
1451 cat <<\_ACEOF
1453 Optional Features:
1454 --disable-option-checking ignore unrecognized --enable/--with options
1455 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1456 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1457 --enable-maintainer-mode enable make rules and dependencies not useful
1458 (and sometimes confusing) to the casual installer
1459 --disable-dependency-tracking speeds up one-time build
1460 --enable-dependency-tracking do not reject slow dependency extractors
1461 --enable-trace Enable generation of IO traces (warning: hurts
1462 performance)
1463 --enable-watch Enable watchpoints in the debugger (warning: hurts
1464 performance)
1465 --enable-sh4stats Enable statistics on executed sh4 instructions
1467 Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1470 --with-osmesa Build with the osmesa GL library (software
1471 rendering)
1472 --with-gtk Build with the GTK UI. Default on X11 systems
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CCAS assembler compiler command (defaults to CC)
1483 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1484 CPP C preprocessor
1485 PKG_CONFIG path to pkg-config utility
1486 LIBPNG_CFLAGS
1487 C compiler flags for LIBPNG, overriding pkg-config
1488 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1489 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1490 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1491 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1492 GTK_LIBS linker flags for GTK, overriding pkg-config
1493 PULSE_CFLAGS
1494 C compiler flags for PULSE, overriding pkg-config
1495 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1496 ESOUND_CFLAGS
1497 C compiler flags for ESOUND, overriding pkg-config
1498 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1499 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1500 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1502 Use these variables to override the choices made by `configure' or to help
1503 it to find libraries and programs with nonstandard names/locations.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1562 fi
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 configure
1568 generated by GNU Autoconf 2.62
1570 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1571 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1572 This configure script is free software; the Free Software Foundation
1573 gives unlimited permission to copy, distribute and modify it.
1574 _ACEOF
1575 exit
1576 fi
1577 cat >config.log <<_ACEOF
1578 This file contains any messages produced by compilers while
1579 running configure, to aid debugging if configure makes a mistake.
1581 It was created by $as_me, which was
1582 generated by GNU Autoconf 2.62. Invocation command line was
1584 $ $0 $@
1586 _ACEOF
1587 exec 5>>config.log
1588 {
1589 cat <<_ASUNAME
1590 ## --------- ##
1591 ## Platform. ##
1592 ## --------- ##
1594 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1595 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1596 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1597 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1598 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1600 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1601 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1603 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1604 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1605 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1606 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1607 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1608 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1609 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1611 _ASUNAME
1613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1614 for as_dir in $PATH
1615 do
1616 IFS=$as_save_IFS
1617 test -z "$as_dir" && as_dir=.
1618 $as_echo "PATH: $as_dir"
1619 done
1620 IFS=$as_save_IFS
1622 } >&5
1624 cat >&5 <<_ACEOF
1627 ## ----------- ##
1628 ## Core tests. ##
1629 ## ----------- ##
1631 _ACEOF
1634 # Keep a trace of the command line.
1635 # Strip out --no-create and --no-recursion so they do not pile up.
1636 # Strip out --silent because we don't want to record it for future runs.
1637 # Also quote any args containing shell meta-characters.
1638 # Make two passes to allow for proper duplicate-argument suppression.
1639 ac_configure_args=
1640 ac_configure_args0=
1641 ac_configure_args1=
1642 ac_must_keep_next=false
1643 for ac_pass in 1 2
1644 do
1645 for ac_arg
1646 do
1647 case $ac_arg in
1648 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1650 | -silent | --silent | --silen | --sile | --sil)
1651 continue ;;
1652 *\'*)
1653 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1654 esac
1655 case $ac_pass in
1656 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 2)
1658 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1659 if test $ac_must_keep_next = true; then
1660 ac_must_keep_next=false # Got value, back to normal.
1661 else
1662 case $ac_arg in
1663 *=* | --config-cache | -C | -disable-* | --disable-* \
1664 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1665 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1666 | -with-* | --with-* | -without-* | --without-* | --x)
1667 case "$ac_configure_args0 " in
1668 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1669 esac
1670 ;;
1671 -* ) ac_must_keep_next=true ;;
1672 esac
1673 fi
1674 ac_configure_args="$ac_configure_args '$ac_arg'"
1675 ;;
1676 esac
1677 done
1678 done
1679 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1680 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1682 # When interrupted or exit'd, cleanup temporary files, and complete
1683 # config.log. We remove comments because anyway the quotes in there
1684 # would cause problems or look ugly.
1685 # WARNING: Use '\'' to represent an apostrophe within the trap.
1686 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1687 trap 'exit_status=$?
1688 # Save into config.log some information that might help in debugging.
1689 {
1690 echo
1692 cat <<\_ASBOX
1693 ## ---------------- ##
1694 ## Cache variables. ##
1695 ## ---------------- ##
1696 _ASBOX
1697 echo
1698 # The following way of writing the cache mishandles newlines in values,
1699 (
1700 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1701 eval ac_val=\$$ac_var
1702 case $ac_val in #(
1703 *${as_nl}*)
1704 case $ac_var in #(
1705 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1706 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1707 esac
1708 case $ac_var in #(
1709 _ | IFS | as_nl) ;; #(
1710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1711 *) $as_unset $ac_var ;;
1712 esac ;;
1713 esac
1714 done
1715 (set) 2>&1 |
1716 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1717 *${as_nl}ac_space=\ *)
1718 sed -n \
1719 "s/'\''/'\''\\\\'\'''\''/g;
1720 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1721 ;; #(
1722 *)
1723 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1724 ;;
1725 esac |
1726 sort
1727 )
1728 echo
1730 cat <<\_ASBOX
1731 ## ----------------- ##
1732 ## Output variables. ##
1733 ## ----------------- ##
1734 _ASBOX
1735 echo
1736 for ac_var in $ac_subst_vars
1737 do
1738 eval ac_val=\$$ac_var
1739 case $ac_val in
1740 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1741 esac
1742 $as_echo "$ac_var='\''$ac_val'\''"
1743 done | sort
1744 echo
1746 if test -n "$ac_subst_files"; then
1747 cat <<\_ASBOX
1748 ## ------------------- ##
1749 ## File substitutions. ##
1750 ## ------------------- ##
1751 _ASBOX
1752 echo
1753 for ac_var in $ac_subst_files
1754 do
1755 eval ac_val=\$$ac_var
1756 case $ac_val in
1757 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 esac
1759 $as_echo "$ac_var='\''$ac_val'\''"
1760 done | sort
1761 echo
1762 fi
1764 if test -s confdefs.h; then
1765 cat <<\_ASBOX
1766 ## ----------- ##
1767 ## confdefs.h. ##
1768 ## ----------- ##
1769 _ASBOX
1770 echo
1771 cat confdefs.h
1772 echo
1773 fi
1774 test "$ac_signal" != 0 &&
1775 $as_echo "$as_me: caught signal $ac_signal"
1776 $as_echo "$as_me: exit $exit_status"
1777 } >&5
1778 rm -f core *.core core.conftest.* &&
1779 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1780 exit $exit_status
1781 ' 0
1782 for ac_signal in 1 2 13 15; do
1783 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1784 done
1785 ac_signal=0
1787 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1788 rm -f -r conftest* confdefs.h
1790 # Predefined preprocessor variables.
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_NAME "$PACKAGE_NAME"
1794 _ACEOF
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1799 _ACEOF
1802 cat >>confdefs.h <<_ACEOF
1803 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1804 _ACEOF
1807 cat >>confdefs.h <<_ACEOF
1808 #define PACKAGE_STRING "$PACKAGE_STRING"
1809 _ACEOF
1812 cat >>confdefs.h <<_ACEOF
1813 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1814 _ACEOF
1817 # Let the site file select an alternate cache file if it wants to.
1818 # Prefer an explicitly selected file to automatically selected ones.
1819 ac_site_file1=NONE
1820 ac_site_file2=NONE
1821 if test -n "$CONFIG_SITE"; then
1822 ac_site_file1=$CONFIG_SITE
1823 elif test "x$prefix" != xNONE; then
1824 ac_site_file1=$prefix/share/config.site
1825 ac_site_file2=$prefix/etc/config.site
1826 else
1827 ac_site_file1=$ac_default_prefix/share/config.site
1828 ac_site_file2=$ac_default_prefix/etc/config.site
1829 fi
1830 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1831 do
1832 test "x$ac_site_file" = xNONE && continue
1833 if test -r "$ac_site_file"; then
1834 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1836 sed 's/^/| /' "$ac_site_file" >&5
1837 . "$ac_site_file"
1838 fi
1839 done
1841 if test -r "$cache_file"; then
1842 # Some versions of bash will fail to source /dev/null (special
1843 # files actually), so we avoid doing that.
1844 if test -f "$cache_file"; then
1845 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 $as_echo "$as_me: loading cache $cache_file" >&6;}
1847 case $cache_file in
1848 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1849 *) . "./$cache_file";;
1850 esac
1851 fi
1852 else
1853 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 $as_echo "$as_me: creating cache $cache_file" >&6;}
1855 >$cache_file
1856 fi
1858 # Check that the precious variables saved in the cache have kept the same
1859 # value.
1860 ac_cache_corrupted=false
1861 for ac_var in $ac_precious_vars; do
1862 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1863 eval ac_new_set=\$ac_env_${ac_var}_set
1864 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1865 eval ac_new_val=\$ac_env_${ac_var}_value
1866 case $ac_old_set,$ac_new_set in
1867 set,)
1868 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1871 ,set)
1872 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1874 ac_cache_corrupted=: ;;
1875 ,);;
1876 *)
1877 if test "x$ac_old_val" != "x$ac_new_val"; then
1878 # differences in whitespace do not lead to failure.
1879 ac_old_val_w=`echo x $ac_old_val`
1880 ac_new_val_w=`echo x $ac_new_val`
1881 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1882 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1883 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1884 ac_cache_corrupted=:
1885 else
1886 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1887 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1888 eval $ac_var=\$ac_old_val
1889 fi
1890 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1891 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1892 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1893 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1894 fi;;
1895 esac
1896 # Pass precious variables to config.status.
1897 if test "$ac_new_set" = set; then
1898 case $ac_new_val in
1899 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 *) ac_arg=$ac_var=$ac_new_val ;;
1901 esac
1902 case " $ac_configure_args " in
1903 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1904 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1905 esac
1906 fi
1907 done
1908 if $ac_cache_corrupted; then
1909 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1910 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1911 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1912 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1913 { (exit 1); exit 1; }; }
1914 fi
1932 ac_ext=c
1933 ac_cpp='$CPP $CPPFLAGS'
1934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1939 am__api_version="1.9"
1940 ac_aux_dir=
1941 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1942 if test -f "$ac_dir/install-sh"; then
1943 ac_aux_dir=$ac_dir
1944 ac_install_sh="$ac_aux_dir/install-sh -c"
1945 break
1946 elif test -f "$ac_dir/install.sh"; then
1947 ac_aux_dir=$ac_dir
1948 ac_install_sh="$ac_aux_dir/install.sh -c"
1949 break
1950 elif test -f "$ac_dir/shtool"; then
1951 ac_aux_dir=$ac_dir
1952 ac_install_sh="$ac_aux_dir/shtool install -c"
1953 break
1954 fi
1955 done
1956 if test -z "$ac_aux_dir"; then
1957 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1958 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1959 { (exit 1); exit 1; }; }
1960 fi
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1971 # Find a good install program. We prefer a C program (faster),
1972 # so one script is as good as another. But avoid the broken or
1973 # incompatible versions:
1974 # SysV /etc/install, /usr/sbin/install
1975 # SunOS /usr/etc/install
1976 # IRIX /sbin/install
1977 # AIX /bin/install
1978 # AmigaOS /C/install, which installs bootblocks on floppy discs
1979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1982 # OS/2's system install, which has a completely different semantic
1983 # ./install, which can be erroneously created by make from ./install.sh.
1984 # Reject install programs that cannot install multiple files.
1985 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1986 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1987 if test -z "$INSTALL"; then
1988 if test "${ac_cv_path_install+set}" = set; then
1989 $as_echo_n "(cached) " >&6
1990 else
1991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1992 for as_dir in $PATH
1993 do
1994 IFS=$as_save_IFS
1995 test -z "$as_dir" && as_dir=.
1996 # Account for people who put trailing slashes in PATH elements.
1997 case $as_dir/ in
1998 ./ | .// | /cC/* | \
1999 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2000 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2001 /usr/ucb/* ) ;;
2002 *)
2003 # OSF1 and SCO ODT 3.0 have their own names for install.
2004 # Don't use installbsd from OSF since it installs stuff as root
2005 # by default.
2006 for ac_prog in ginstall scoinst install; do
2007 for ac_exec_ext in '' $ac_executable_extensions; do
2008 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2009 if test $ac_prog = install &&
2010 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2011 # AIX install. It has an incompatible calling convention.
2012 :
2013 elif test $ac_prog = install &&
2014 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2015 # program-specific install script used by HP pwplus--don't use.
2016 :
2017 else
2018 rm -rf conftest.one conftest.two conftest.dir
2019 echo one > conftest.one
2020 echo two > conftest.two
2021 mkdir conftest.dir
2022 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2023 test -s conftest.one && test -s conftest.two &&
2024 test -s conftest.dir/conftest.one &&
2025 test -s conftest.dir/conftest.two
2026 then
2027 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2028 break 3
2029 fi
2030 fi
2031 fi
2032 done
2033 done
2034 ;;
2035 esac
2037 done
2038 IFS=$as_save_IFS
2040 rm -rf conftest.one conftest.two conftest.dir
2042 fi
2043 if test "${ac_cv_path_install+set}" = set; then
2044 INSTALL=$ac_cv_path_install
2045 else
2046 # As a last resort, use the slow shell script. Don't cache a
2047 # value for INSTALL within a source directory, because that will
2048 # break other packages using the cache if that directory is
2049 # removed, or if the value is a relative name.
2050 INSTALL=$ac_install_sh
2051 fi
2052 fi
2053 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2054 $as_echo "$INSTALL" >&6; }
2056 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2057 # It thinks the first close brace ends the variable substitution.
2058 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2060 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2062 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2064 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2065 $as_echo_n "checking whether build environment is sane... " >&6; }
2066 # Just in case
2067 sleep 1
2068 echo timestamp > conftest.file
2069 # Do `set' in a subshell so we don't clobber the current shell's
2070 # arguments. Must try -L first in case configure is actually a
2071 # symlink; some systems play weird games with the mod time of symlinks
2072 # (eg FreeBSD returns the mod time of the symlink's containing
2073 # directory).
2074 if (
2075 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2076 if test "$*" = "X"; then
2077 # -L didn't work.
2078 set X `ls -t $srcdir/configure conftest.file`
2079 fi
2080 rm -f conftest.file
2081 if test "$*" != "X $srcdir/configure conftest.file" \
2082 && test "$*" != "X conftest.file $srcdir/configure"; then
2084 # If neither matched, then we have a broken ls. This can happen
2085 # if, for instance, CONFIG_SHELL is bash and it inherits a
2086 # broken ls alias from the environment. This has actually
2087 # happened. Such a system could not be considered "sane".
2088 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2089 alias in your environment" >&5
2090 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2091 alias in your environment" >&2;}
2092 { (exit 1); exit 1; }; }
2093 fi
2095 test "$2" = conftest.file
2096 )
2097 then
2098 # Ok.
2099 :
2100 else
2101 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2102 Check your system clock" >&5
2103 $as_echo "$as_me: error: newly created file is older than distributed files!
2104 Check your system clock" >&2;}
2105 { (exit 1); exit 1; }; }
2106 fi
2107 { $as_echo "$as_me:$LINENO: result: yes" >&5
2108 $as_echo "yes" >&6; }
2109 test "$program_prefix" != NONE &&
2110 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2111 # Use a double $ so make ignores it.
2112 test "$program_suffix" != NONE &&
2113 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2114 # Double any \ or $.
2115 # By default was `s,x,x', remove it if useless.
2116 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2117 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2119 # expand $ac_aux_dir to an absolute path
2120 am_aux_dir=`cd $ac_aux_dir && pwd`
2122 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2123 # Use eval to expand $SHELL
2124 if eval "$MISSING --run true"; then
2125 am_missing_run="$MISSING --run "
2126 else
2127 am_missing_run=
2128 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2129 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2130 fi
2132 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2133 # We used to keeping the `.' as first argument, in order to
2134 # allow $(mkdir_p) to be used without argument. As in
2135 # $(mkdir_p) $(somedir)
2136 # where $(somedir) is conditionally defined. However this is wrong
2137 # for two reasons:
2138 # 1. if the package is installed by a user who cannot write `.'
2139 # make install will fail,
2140 # 2. the above comment should most certainly read
2141 # $(mkdir_p) $(DESTDIR)$(somedir)
2142 # so it does not work when $(somedir) is undefined and
2143 # $(DESTDIR) is not.
2144 # To support the latter case, we have to write
2145 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2146 # so the `.' trick is pointless.
2147 mkdir_p='mkdir -p --'
2148 else
2149 # On NextStep and OpenStep, the `mkdir' command does not
2150 # recognize any option. It will interpret all options as
2151 # directories to create, and then abort because `.' already
2152 # exists.
2153 for d in ./-p ./--version;
2154 do
2155 test -d $d && rmdir $d
2156 done
2157 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2158 if test -f "$ac_aux_dir/mkinstalldirs"; then
2159 mkdir_p='$(mkinstalldirs)'
2160 else
2161 mkdir_p='$(install_sh) -d'
2162 fi
2163 fi
2165 for ac_prog in gawk mawk nawk awk
2166 do
2167 # Extract the first word of "$ac_prog", so it can be a program name with args.
2168 set dummy $ac_prog; ac_word=$2
2169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 $as_echo_n "checking for $ac_word... " >&6; }
2171 if test "${ac_cv_prog_AWK+set}" = set; then
2172 $as_echo_n "(cached) " >&6
2173 else
2174 if test -n "$AWK"; then
2175 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_AWK="$ac_prog"
2185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 break 2
2187 fi
2188 done
2189 done
2190 IFS=$as_save_IFS
2192 fi
2193 fi
2194 AWK=$ac_cv_prog_AWK
2195 if test -n "$AWK"; then
2196 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2197 $as_echo "$AWK" >&6; }
2198 else
2199 { $as_echo "$as_me:$LINENO: result: no" >&5
2200 $as_echo "no" >&6; }
2201 fi
2204 test -n "$AWK" && break
2205 done
2207 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2208 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2209 set x ${MAKE-make}
2210 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2212 $as_echo_n "(cached) " >&6
2213 else
2214 cat >conftest.make <<\_ACEOF
2215 SHELL = /bin/sh
2216 all:
2217 @echo '@@@%%%=$(MAKE)=@@@%%%'
2218 _ACEOF
2219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2221 *@@@%%%=?*=@@@%%%*)
2222 eval ac_cv_prog_make_${ac_make}_set=yes;;
2223 *)
2224 eval ac_cv_prog_make_${ac_make}_set=no;;
2225 esac
2226 rm -f conftest.make
2227 fi
2228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2229 { $as_echo "$as_me:$LINENO: result: yes" >&5
2230 $as_echo "yes" >&6; }
2231 SET_MAKE=
2232 else
2233 { $as_echo "$as_me:$LINENO: result: no" >&5
2234 $as_echo "no" >&6; }
2235 SET_MAKE="MAKE=${MAKE-make}"
2236 fi
2238 rm -rf .tst 2>/dev/null
2239 mkdir .tst 2>/dev/null
2240 if test -d .tst; then
2241 am__leading_dot=.
2242 else
2243 am__leading_dot=_
2244 fi
2245 rmdir .tst 2>/dev/null
2247 # test to see if srcdir already configured
2248 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2249 test -f $srcdir/config.status; then
2250 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2251 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2252 { (exit 1); exit 1; }; }
2253 fi
2255 # test whether we have cygpath
2256 if test -z "$CYGPATH_W"; then
2257 if (cygpath --version) >/dev/null 2>/dev/null; then
2258 CYGPATH_W='cygpath -w'
2259 else
2260 CYGPATH_W=echo
2261 fi
2262 fi
2265 # Define the identity of the package.
2266 PACKAGE=lxdream
2267 VERSION=0.8.1
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE "$PACKAGE"
2272 _ACEOF
2275 cat >>confdefs.h <<_ACEOF
2276 #define VERSION "$VERSION"
2277 _ACEOF
2279 # Some tools Automake needs.
2281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2295 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2297 # Installed binaries are usually stripped using `strip' when the user
2298 # run `make install-strip'. However `strip' might not be the right
2299 # tool to use in cross-compilation environments, therefore Automake
2300 # will honor the `STRIP' environment variable to overrule this program.
2301 if test "$cross_compiling" != no; then
2302 if test -n "$ac_tool_prefix"; then
2303 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2304 set dummy ${ac_tool_prefix}strip; ac_word=$2
2305 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 $as_echo_n "checking for $ac_word... " >&6; }
2307 if test "${ac_cv_prog_STRIP+set}" = set; then
2308 $as_echo_n "(cached) " >&6
2309 else
2310 if test -n "$STRIP"; then
2311 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2315 do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2321 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324 done
2325 done
2326 IFS=$as_save_IFS
2328 fi
2329 fi
2330 STRIP=$ac_cv_prog_STRIP
2331 if test -n "$STRIP"; then
2332 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2333 $as_echo "$STRIP" >&6; }
2334 else
2335 { $as_echo "$as_me:$LINENO: result: no" >&5
2336 $as_echo "no" >&6; }
2337 fi
2340 fi
2341 if test -z "$ac_cv_prog_STRIP"; then
2342 ac_ct_STRIP=$STRIP
2343 # Extract the first word of "strip", so it can be a program name with args.
2344 set dummy strip; ac_word=$2
2345 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2346 $as_echo_n "checking for $ac_word... " >&6; }
2347 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2348 $as_echo_n "(cached) " >&6
2349 else
2350 if test -n "$ac_ct_STRIP"; then
2351 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2352 else
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_ac_ct_STRIP="strip"
2361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2362 break 2
2363 fi
2364 done
2365 done
2366 IFS=$as_save_IFS
2368 fi
2369 fi
2370 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2371 if test -n "$ac_ct_STRIP"; then
2372 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2373 $as_echo "$ac_ct_STRIP" >&6; }
2374 else
2375 { $as_echo "$as_me:$LINENO: result: no" >&5
2376 $as_echo "no" >&6; }
2377 fi
2379 if test "x$ac_ct_STRIP" = x; then
2380 STRIP=":"
2381 else
2382 case $cross_compiling:$ac_tool_warned in
2383 yes:)
2384 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2385 whose name does not start with the host triplet. If you think this
2386 configuration is useful to you, please write to autoconf@gnu.org." >&5
2387 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet. If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2390 ac_tool_warned=yes ;;
2391 esac
2392 STRIP=$ac_ct_STRIP
2393 fi
2394 else
2395 STRIP="$ac_cv_prog_STRIP"
2396 fi
2398 fi
2399 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2401 # We need awk for the "check" target. The system "awk" is bad on
2402 # some platforms.
2403 # Always define AMTAR for backward compatibility.
2405 AMTAR=${AMTAR-"${am_missing_run}tar"}
2407 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2413 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2414 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2415 # Check whether --enable-maintainer-mode was given.
2416 if test "${enable_maintainer_mode+set}" = set; then
2417 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2418 else
2419 USE_MAINTAINER_MODE=no
2420 fi
2422 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2423 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2426 if test $USE_MAINTAINER_MODE = yes; then
2427 MAINTAINER_MODE_TRUE=
2428 MAINTAINER_MODE_FALSE='#'
2429 else
2430 MAINTAINER_MODE_TRUE='#'
2431 MAINTAINER_MODE_FALSE=
2432 fi
2434 MAINT=$MAINTAINER_MODE_TRUE
2437 ac_config_headers="$ac_config_headers config.h"
2440 DEPDIR="${am__leading_dot}deps"
2442 ac_config_commands="$ac_config_commands depfiles"
2445 am_make=${MAKE-make}
2446 cat > confinc << 'END'
2447 am__doit:
2448 @echo done
2449 .PHONY: am__doit
2450 END
2451 # If we don't find an include directive, just comment out the code.
2452 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2453 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2454 am__include="#"
2455 am__quote=
2456 _am_result=none
2457 # First try GNU make style include.
2458 echo "include confinc" > confmf
2459 # We grep out `Entering directory' and `Leaving directory'
2460 # messages which can occur if `w' ends up in MAKEFLAGS.
2461 # In particular we don't look at `^make:' because GNU make might
2462 # be invoked under some other name (usually "gmake"), in which
2463 # case it prints its new name instead of `make'.
2464 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2465 am__include=include
2466 am__quote=
2467 _am_result=GNU
2468 fi
2469 # Now try BSD make style include.
2470 if test "$am__include" = "#"; then
2471 echo '.include "confinc"' > confmf
2472 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2473 am__include=.include
2474 am__quote="\""
2475 _am_result=BSD
2476 fi
2477 fi
2480 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2481 $as_echo "$_am_result" >&6; }
2482 rm -f confinc confmf
2484 # Check whether --enable-dependency-tracking was given.
2485 if test "${enable_dependency_tracking+set}" = set; then
2486 enableval=$enable_dependency_tracking;
2487 fi
2489 if test "x$enable_dependency_tracking" != xno; then
2490 am_depcomp="$ac_aux_dir/depcomp"
2491 AMDEPBACKSLASH='\'
2492 fi
2495 if test "x$enable_dependency_tracking" != xno; then
2496 AMDEP_TRUE=
2497 AMDEP_FALSE='#'
2498 else
2499 AMDEP_TRUE='#'
2500 AMDEP_FALSE=
2501 fi
2505 ac_ext=c
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2513 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if test "${ac_cv_prog_CC+set}" = set; then
2516 $as_echo_n "(cached) " >&6
2517 else
2518 if test -n "$CC"; then
2519 ac_cv_prog_CC="$CC" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2529 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2536 fi
2537 fi
2538 CC=$ac_cv_prog_CC
2539 if test -n "$CC"; then
2540 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2541 $as_echo "$CC" >&6; }
2542 else
2543 { $as_echo "$as_me:$LINENO: result: no" >&5
2544 $as_echo "no" >&6; }
2545 fi
2548 fi
2549 if test -z "$ac_cv_prog_CC"; then
2550 ac_ct_CC=$CC
2551 # Extract the first word of "gcc", so it can be a program name with args.
2552 set dummy gcc; ac_word=$2
2553 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$ac_ct_CC"; then
2559 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_ac_ct_CC="gcc"
2569 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2576 fi
2577 fi
2578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2579 if test -n "$ac_ct_CC"; then
2580 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2581 $as_echo "$ac_ct_CC" >&6; }
2582 else
2583 { $as_echo "$as_me:$LINENO: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2587 if test "x$ac_ct_CC" = x; then
2588 CC=""
2589 else
2590 case $cross_compiling:$ac_tool_warned in
2591 yes:)
2592 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2593 whose name does not start with the host triplet. If you think this
2594 configuration is useful to you, please write to autoconf@gnu.org." >&5
2595 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2596 whose name does not start with the host triplet. If you think this
2597 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2598 ac_tool_warned=yes ;;
2599 esac
2600 CC=$ac_ct_CC
2601 fi
2602 else
2603 CC="$ac_cv_prog_CC"
2604 fi
2606 if test -z "$CC"; then
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}cc; ac_word=$2
2610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_prog_CC+set}" = set; then
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="${ac_tool_prefix}cc"
2626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2633 fi
2634 fi
2635 CC=$ac_cv_prog_CC
2636 if test -n "$CC"; then
2637 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2638 $as_echo "$CC" >&6; }
2639 else
2640 { $as_echo "$as_me:$LINENO: result: no" >&5
2641 $as_echo "no" >&6; }
2642 fi
2645 fi
2646 fi
2647 if test -z "$CC"; then
2648 # Extract the first word of "cc", so it can be a program name with args.
2649 set dummy cc; ac_word=$2
2650 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_CC+set}" = set; then
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$CC"; then
2656 ac_cv_prog_CC="$CC" # Let the user override the test.
2657 else
2658 ac_prog_rejected=no
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660 for as_dir in $PATH
2661 do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2667 ac_prog_rejected=yes
2668 continue
2669 fi
2670 ac_cv_prog_CC="cc"
2671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674 done
2675 done
2676 IFS=$as_save_IFS
2678 if test $ac_prog_rejected = yes; then
2679 # We found a bogon in the path, so make sure we never use it.
2680 set dummy $ac_cv_prog_CC
2681 shift
2682 if test $# != 0; then
2683 # We chose a different compiler from the bogus one.
2684 # However, it has the same basename, so the bogon will be chosen
2685 # first if we set CC to just the basename; use the full file name.
2686 shift
2687 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2688 fi
2689 fi
2690 fi
2691 fi
2692 CC=$ac_cv_prog_CC
2693 if test -n "$CC"; then
2694 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2695 $as_echo "$CC" >&6; }
2696 else
2697 { $as_echo "$as_me:$LINENO: result: no" >&5
2698 $as_echo "no" >&6; }
2699 fi
2702 fi
2703 if test -z "$CC"; then
2704 if test -n "$ac_tool_prefix"; then
2705 for ac_prog in cl.exe
2706 do
2707 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2708 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_CC+set}" = set; then
2712 $as_echo_n "(cached) " >&6
2713 else
2714 if test -n "$CC"; then
2715 ac_cv_prog_CC="$CC" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728 done
2729 done
2730 IFS=$as_save_IFS
2732 fi
2733 fi
2734 CC=$ac_cv_prog_CC
2735 if test -n "$CC"; then
2736 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2737 $as_echo "$CC" >&6; }
2738 else
2739 { $as_echo "$as_me:$LINENO: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2744 test -n "$CC" && break
2745 done
2746 fi
2747 if test -z "$CC"; then
2748 ac_ct_CC=$CC
2749 for ac_prog in cl.exe
2750 do
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752 set dummy $ac_prog; ac_word=$2
2753 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760 else
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762 for as_dir in $PATH
2763 do
2764 IFS=$as_save_IFS
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_CC="$ac_prog"
2769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2770 break 2
2771 fi
2772 done
2773 done
2774 IFS=$as_save_IFS
2776 fi
2777 fi
2778 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2779 if test -n "$ac_ct_CC"; then
2780 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2781 $as_echo "$ac_ct_CC" >&6; }
2782 else
2783 { $as_echo "$as_me:$LINENO: result: no" >&5
2784 $as_echo "no" >&6; }
2785 fi
2788 test -n "$ac_ct_CC" && break
2789 done
2791 if test "x$ac_ct_CC" = x; then
2792 CC=""
2793 else
2794 case $cross_compiling:$ac_tool_warned in
2795 yes:)
2796 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2797 whose name does not start with the host triplet. If you think this
2798 configuration is useful to you, please write to autoconf@gnu.org." >&5
2799 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2800 whose name does not start with the host triplet. If you think this
2801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2802 ac_tool_warned=yes ;;
2803 esac
2804 CC=$ac_ct_CC
2805 fi
2806 fi
2808 fi
2811 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2812 See \`config.log' for more details." >&5
2813 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2814 See \`config.log' for more details." >&2;}
2815 { (exit 1); exit 1; }; }
2817 # Provide some information about the compiler.
2818 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2819 set X $ac_compile
2820 ac_compiler=$2
2821 { (ac_try="$ac_compiler --version >&5"
2822 case "(($ac_try" in
2823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2824 *) ac_try_echo=$ac_try;;
2825 esac
2826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2827 $as_echo "$ac_try_echo") >&5
2828 (eval "$ac_compiler --version >&5") 2>&5
2829 ac_status=$?
2830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }
2832 { (ac_try="$ac_compiler -v >&5"
2833 case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836 esac
2837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2838 $as_echo "$ac_try_echo") >&5
2839 (eval "$ac_compiler -v >&5") 2>&5
2840 ac_status=$?
2841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); }
2843 { (ac_try="$ac_compiler -V >&5"
2844 case "(($ac_try" in
2845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846 *) ac_try_echo=$ac_try;;
2847 esac
2848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2849 $as_echo "$ac_try_echo") >&5
2850 (eval "$ac_compiler -V >&5") 2>&5
2851 ac_status=$?
2852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853 (exit $ac_status); }
2855 cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h. */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2862 int
2863 main ()
2864 {
2866 ;
2867 return 0;
2868 }
2869 _ACEOF
2870 ac_clean_files_save=$ac_clean_files
2871 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2872 # Try to create an executable without -o first, disregard a.out.
2873 # It will help us diagnose broken compilers, and finding out an intuition
2874 # of exeext.
2875 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2876 $as_echo_n "checking for C compiler default output file name... " >&6; }
2877 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2879 # The possible output files:
2880 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2882 ac_rmfiles=
2883 for ac_file in $ac_files
2884 do
2885 case $ac_file in
2886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2887 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2888 esac
2889 done
2890 rm -f $ac_rmfiles
2892 if { (ac_try="$ac_link_default"
2893 case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896 esac
2897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2898 $as_echo "$ac_try_echo") >&5
2899 (eval "$ac_link_default") 2>&5
2900 ac_status=$?
2901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; then
2903 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2904 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2905 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2906 # so that the user can short-circuit this test for compilers unknown to
2907 # Autoconf.
2908 for ac_file in $ac_files ''
2909 do
2910 test -f "$ac_file" || continue
2911 case $ac_file in
2912 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2913 ;;
2914 [ab].out )
2915 # We found the default executable, but exeext='' is most
2916 # certainly right.
2917 break;;
2918 *.* )
2919 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2920 then :; else
2921 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2922 fi
2923 # We set ac_cv_exeext here because the later test for it is not
2924 # safe: cross compilers may not add the suffix if given an `-o'
2925 # argument, so we may need to know it at that point already.
2926 # Even if this section looks crufty: it has the advantage of
2927 # actually working.
2928 break;;
2929 * )
2930 break;;
2931 esac
2932 done
2933 test "$ac_cv_exeext" = no && ac_cv_exeext=
2935 else
2936 ac_file=''
2937 fi
2939 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2940 $as_echo "$ac_file" >&6; }
2941 if test -z "$ac_file"; then
2942 $as_echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2945 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2946 See \`config.log' for more details." >&5
2947 $as_echo "$as_me: error: C compiler cannot create executables
2948 See \`config.log' for more details." >&2;}
2949 { (exit 77); exit 77; }; }
2950 fi
2952 ac_exeext=$ac_cv_exeext
2954 # Check that the compiler produces executables we can run. If not, either
2955 # the compiler is broken, or we cross compile.
2956 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2957 $as_echo_n "checking whether the C compiler works... " >&6; }
2958 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2959 # If not cross compiling, check that we can run a simple program.
2960 if test "$cross_compiling" != yes; then
2961 if { ac_try='./$ac_file'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965 esac
2966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2967 $as_echo "$ac_try_echo") >&5
2968 (eval "$ac_try") 2>&5
2969 ac_status=$?
2970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 cross_compiling=no
2973 else
2974 if test "$cross_compiling" = maybe; then
2975 cross_compiling=yes
2976 else
2977 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2978 If you meant to cross compile, use \`--host'.
2979 See \`config.log' for more details." >&5
2980 $as_echo "$as_me: error: cannot run C compiled programs.
2981 If you meant to cross compile, use \`--host'.
2982 See \`config.log' for more details." >&2;}
2983 { (exit 1); exit 1; }; }
2984 fi
2985 fi
2986 fi
2987 { $as_echo "$as_me:$LINENO: result: yes" >&5
2988 $as_echo "yes" >&6; }
2990 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2991 ac_clean_files=$ac_clean_files_save
2992 # Check that the compiler produces executables we can run. If not, either
2993 # the compiler is broken, or we cross compile.
2994 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2995 $as_echo_n "checking whether we are cross compiling... " >&6; }
2996 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2997 $as_echo "$cross_compiling" >&6; }
2999 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3000 $as_echo_n "checking for suffix of executables... " >&6; }
3001 if { (ac_try="$ac_link"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3007 $as_echo "$ac_try_echo") >&5
3008 (eval "$ac_link") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); }; then
3012 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3013 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3014 # work properly (i.e., refer to `conftest.exe'), while it won't with
3015 # `rm'.
3016 for ac_file in conftest.exe conftest conftest.*; do
3017 test -f "$ac_file" || continue
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3020 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3021 break;;
3022 * ) break;;
3023 esac
3024 done
3025 else
3026 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3027 See \`config.log' for more details." >&5
3028 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3029 See \`config.log' for more details." >&2;}
3030 { (exit 1); exit 1; }; }
3031 fi
3033 rm -f conftest$ac_cv_exeext
3034 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3035 $as_echo "$ac_cv_exeext" >&6; }
3037 rm -f conftest.$ac_ext
3038 EXEEXT=$ac_cv_exeext
3039 ac_exeext=$EXEEXT
3040 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3041 $as_echo_n "checking for suffix of object files... " >&6; }
3042 if test "${ac_cv_objext+set}" = set; then
3043 $as_echo_n "(cached) " >&6
3044 else
3045 cat >conftest.$ac_ext <<_ACEOF
3046 /* confdefs.h. */
3047 _ACEOF
3048 cat confdefs.h >>conftest.$ac_ext
3049 cat >>conftest.$ac_ext <<_ACEOF
3050 /* end confdefs.h. */
3052 int
3053 main ()
3054 {
3056 ;
3057 return 0;
3058 }
3059 _ACEOF
3060 rm -f conftest.o conftest.obj
3061 if { (ac_try="$ac_compile"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3067 $as_echo "$ac_try_echo") >&5
3068 (eval "$ac_compile") 2>&5
3069 ac_status=$?
3070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; then
3072 for ac_file in conftest.o conftest.obj conftest.*; do
3073 test -f "$ac_file" || continue;
3074 case $ac_file in
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3077 break;;
3078 esac
3079 done
3080 else
3081 $as_echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3085 See \`config.log' for more details." >&5
3086 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3087 See \`config.log' for more details." >&2;}
3088 { (exit 1); exit 1; }; }
3089 fi
3091 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3092 fi
3093 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3094 $as_echo "$ac_cv_objext" >&6; }
3095 OBJEXT=$ac_cv_objext
3096 ac_objext=$OBJEXT
3097 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3098 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3099 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3100 $as_echo_n "(cached) " >&6
3101 else
3102 cat >conftest.$ac_ext <<_ACEOF
3103 /* confdefs.h. */
3104 _ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3109 int
3110 main ()
3111 {
3112 #ifndef __GNUC__
3113 choke me
3114 #endif
3116 ;
3117 return 0;
3118 }
3119 _ACEOF
3120 rm -f conftest.$ac_objext
3121 if { (ac_try="$ac_compile"
3122 case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3125 esac
3126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3127 $as_echo "$ac_try_echo") >&5
3128 (eval "$ac_compile") 2>conftest.er1
3129 ac_status=$?
3130 grep -v '^ *+' conftest.er1 >conftest.err
3131 rm -f conftest.er1
3132 cat conftest.err >&5
3133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } && {
3135 test -z "$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3137 } && test -s conftest.$ac_objext; then
3138 ac_compiler_gnu=yes
3139 else
3140 $as_echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3143 ac_compiler_gnu=no
3144 fi
3146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3147 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3149 fi
3150 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3151 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3152 if test $ac_compiler_gnu = yes; then
3153 GCC=yes
3154 else
3155 GCC=
3156 fi
3157 ac_test_CFLAGS=${CFLAGS+set}
3158 ac_save_CFLAGS=$CFLAGS
3159 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3160 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3161 if test "${ac_cv_prog_cc_g+set}" = set; then
3162 $as_echo_n "(cached) " >&6
3163 else
3164 ac_save_c_werror_flag=$ac_c_werror_flag
3165 ac_c_werror_flag=yes
3166 ac_cv_prog_cc_g=no
3167 CFLAGS="-g"
3168 cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h. */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3175 int
3176 main ()
3177 {
3179 ;
3180 return 0;
3181 }
3182 _ACEOF
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3190 $as_echo "$ac_try_echo") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3192 ac_status=$?
3193 grep -v '^ *+' conftest.er1 >conftest.err
3194 rm -f conftest.er1
3195 cat conftest.err >&5
3196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_c_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3201 ac_cv_prog_cc_g=yes
3202 else
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3206 CFLAGS=""
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3214 int
3215 main ()
3216 {
3218 ;
3219 return 0;
3220 }
3221 _ACEOF
3222 rm -f conftest.$ac_objext
3223 if { (ac_try="$ac_compile"
3224 case "(($ac_try" in
3225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226 *) ac_try_echo=$ac_try;;
3227 esac
3228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3229 $as_echo "$ac_try_echo") >&5
3230 (eval "$ac_compile") 2>conftest.er1
3231 ac_status=$?
3232 grep -v '^ *+' conftest.er1 >conftest.err
3233 rm -f conftest.er1
3234 cat conftest.err >&5
3235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); } && {
3237 test -z "$ac_c_werror_flag" ||
3238 test ! -s conftest.err
3239 } && test -s conftest.$ac_objext; then
3240 :
3241 else
3242 $as_echo "$as_me: failed program was:" >&5
3243 sed 's/^/| /' conftest.$ac_ext >&5
3245 ac_c_werror_flag=$ac_save_c_werror_flag
3246 CFLAGS="-g"
3247 cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h. */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3254 int
3255 main ()
3256 {
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 rm -f conftest.$ac_objext
3263 if { (ac_try="$ac_compile"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3269 $as_echo "$ac_try_echo") >&5
3270 (eval "$ac_compile") 2>conftest.er1
3271 ac_status=$?
3272 grep -v '^ *+' conftest.er1 >conftest.err
3273 rm -f conftest.er1
3274 cat conftest.err >&5
3275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } && {
3277 test -z "$ac_c_werror_flag" ||
3278 test ! -s conftest.err
3279 } && test -s conftest.$ac_objext; then
3280 ac_cv_prog_cc_g=yes
3281 else
3282 $as_echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3286 fi
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 fi
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 fi
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3295 ac_c_werror_flag=$ac_save_c_werror_flag
3296 fi
3297 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3298 $as_echo "$ac_cv_prog_cc_g" >&6; }
3299 if test "$ac_test_CFLAGS" = set; then
3300 CFLAGS=$ac_save_CFLAGS
3301 elif test $ac_cv_prog_cc_g = yes; then
3302 if test "$GCC" = yes; then
3303 CFLAGS="-g -O2"
3304 else
3305 CFLAGS="-g"
3306 fi
3307 else
3308 if test "$GCC" = yes; then
3309 CFLAGS="-O2"
3310 else
3311 CFLAGS=
3312 fi
3313 fi
3314 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3315 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3316 if test "${ac_cv_prog_cc_c89+set}" = set; then
3317 $as_echo_n "(cached) " >&6
3318 else
3319 ac_cv_prog_cc_c89=no
3320 ac_save_CC=$CC
3321 cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h. */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3327 #include <stdarg.h>
3328 #include <stdio.h>
3329 #include <sys/types.h>
3330 #include <sys/stat.h>
3331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3332 struct buf { int x; };
3333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334 static char *e (p, i)
3335 char **p;
3336 int i;
3337 {
3338 return p[i];
3339 }
3340 static char *f (char * (*g) (char **, int), char **p, ...)
3341 {
3342 char *s;
3343 va_list v;
3344 va_start (v,p);
3345 s = g (p, va_arg (v,int));
3346 va_end (v);
3347 return s;
3348 }
3350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3351 function prototypes and stuff, but not '\xHH' hex character constants.
3352 These don't provoke an error unfortunately, instead are silently treated
3353 as 'x'. The following induces an error, until -std is added to get
3354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3355 array size at least. It's necessary to write '\x00'==0 to get something
3356 that's true only with -std. */
3357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360 inside strings and character constants. */
3361 #define FOO(x) 'x'
3362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368 int argc;
3369 char **argv;
3370 int
3371 main ()
3372 {
3373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3380 do
3381 CC="$ac_save_CC $ac_arg"
3382 rm -f conftest.$ac_objext
3383 if { (ac_try="$ac_compile"
3384 case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3389 $as_echo "$ac_try_echo") >&5
3390 (eval "$ac_compile") 2>conftest.er1
3391 ac_status=$?
3392 grep -v '^ *+' conftest.er1 >conftest.err
3393 rm -f conftest.er1
3394 cat conftest.err >&5
3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); } && {
3397 test -z "$ac_c_werror_flag" ||
3398 test ! -s conftest.err
3399 } && test -s conftest.$ac_objext; then
3400 ac_cv_prog_cc_c89=$ac_arg
3401 else
3402 $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3406 fi
3408 rm -f core conftest.err conftest.$ac_objext
3409 test "x$ac_cv_prog_cc_c89" != "xno" && break
3410 done
3411 rm -f conftest.$ac_ext
3412 CC=$ac_save_CC
3414 fi
3415 # AC_CACHE_VAL
3416 case "x$ac_cv_prog_cc_c89" in
3417 x)
3418 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3419 $as_echo "none needed" >&6; } ;;
3420 xno)
3421 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3422 $as_echo "unsupported" >&6; } ;;
3423 *)
3424 CC="$CC $ac_cv_prog_cc_c89"
3425 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3426 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3427 esac
3430 ac_ext=c
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 depcc="$CC" am_compiler_list=
3438 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3439 $as_echo_n "checking dependency style of $depcc... " >&6; }
3440 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3441 $as_echo_n "(cached) " >&6
3442 else
3443 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3444 # We make a subdir and do the tests there. Otherwise we can end up
3445 # making bogus files that we don't know about and never remove. For
3446 # instance it was reported that on HP-UX the gcc test will end up
3447 # making a dummy file named `D' -- because `-MD' means `put the output
3448 # in D'.
3449 mkdir conftest.dir
3450 # Copy depcomp to subdir because otherwise we won't find it if we're
3451 # using a relative directory.
3452 cp "$am_depcomp" conftest.dir
3453 cd conftest.dir
3454 # We will build objects and dependencies in a subdirectory because
3455 # it helps to detect inapplicable dependency modes. For instance
3456 # both Tru64's cc and ICC support -MD to output dependencies as a
3457 # side effect of compilation, but ICC will put the dependencies in
3458 # the current directory while Tru64 will put them in the object
3459 # directory.
3460 mkdir sub
3462 am_cv_CC_dependencies_compiler_type=none
3463 if test "$am_compiler_list" = ""; then
3464 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3465 fi
3466 for depmode in $am_compiler_list; do
3467 # Setup a source with many dependencies, because some compilers
3468 # like to wrap large dependency lists on column 80 (with \), and
3469 # we should not choose a depcomp mode which is confused by this.
3470 #
3471 # We need to recreate these files for each test, as the compiler may
3472 # overwrite some of them when testing with obscure command lines.
3473 # This happens at least with the AIX C compiler.
3474 : > sub/conftest.c
3475 for i in 1 2 3 4 5 6; do
3476 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3477 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3478 # Solaris 8's {/usr,}/bin/sh.
3479 touch sub/conftst$i.h
3480 done
3481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3483 case $depmode in
3484 nosideeffect)
3485 # after this tag, mechanisms are not by side-effect, so they'll
3486 # only be used when explicitly requested
3487 if test "x$enable_dependency_tracking" = xyes; then
3488 continue
3489 else
3490 break
3491 fi
3492 ;;
3493 none) break ;;
3494 esac
3495 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3496 # mode. It turns out that the SunPro C++ compiler does not properly
3497 # handle `-M -o', and we need to detect this.
3498 if depmode=$depmode \
3499 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3500 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3501 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3502 >/dev/null 2>conftest.err &&
3503 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3504 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3505 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3506 # icc doesn't choke on unknown options, it will just issue warnings
3507 # or remarks (even with -Werror). So we grep stderr for any message
3508 # that says an option was ignored or not supported.
3509 # When given -MP, icc 7.0 and 7.1 complain thusly:
3510 # icc: Command line warning: ignoring option '-M'; no argument required
3511 # The diagnosis changed in icc 8.0:
3512 # icc: Command line remark: option '-MP' not supported
3513 if (grep 'ignoring option' conftest.err ||
3514 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3515 am_cv_CC_dependencies_compiler_type=$depmode
3516 break
3517 fi
3518 fi
3519 done
3521 cd ..
3522 rm -rf conftest.dir
3523 else
3524 am_cv_CC_dependencies_compiler_type=none
3525 fi
3527 fi
3528 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3529 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3530 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3534 if
3535 test "x$enable_dependency_tracking" != xno \
3536 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3537 am__fastdepCC_TRUE=
3538 am__fastdepCC_FALSE='#'
3539 else
3540 am__fastdepCC_TRUE='#'
3541 am__fastdepCC_FALSE=
3542 fi
3547 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3548 $as_echo_n "checking for strerror in -lcposix... " >&6; }
3549 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3550 $as_echo_n "(cached) " >&6
3551 else
3552 ac_check_lib_save_LIBS=$LIBS
3553 LIBS="-lcposix $LIBS"
3554 cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h. */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3561 /* Override any GCC internal prototype to avoid an error.
3562 Use char because int might match the return type of a GCC
3563 builtin and then its argument prototype would still apply. */
3564 #ifdef __cplusplus
3565 extern "C"
3566 #endif
3567 char strerror ();
3568 int
3569 main ()
3570 {
3571 return strerror ();
3572 ;
3573 return 0;
3574 }
3575 _ACEOF
3576 rm -f conftest.$ac_objext conftest$ac_exeext
3577 if { (ac_try="$ac_link"
3578 case "(($ac_try" in
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3581 esac
3582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3583 $as_echo "$ac_try_echo") >&5
3584 (eval "$ac_link") 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } && {
3591 test -z "$ac_c_werror_flag" ||
3592 test ! -s conftest.err
3593 } && test -s conftest$ac_exeext && {
3594 test "$cross_compiling" = yes ||
3595 $as_test_x conftest$ac_exeext
3596 }; then
3597 ac_cv_lib_cposix_strerror=yes
3598 else
3599 $as_echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 ac_cv_lib_cposix_strerror=no
3603 fi
3605 rm -rf conftest.dSYM
3606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3607 conftest$ac_exeext conftest.$ac_ext
3608 LIBS=$ac_check_lib_save_LIBS
3609 fi
3610 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3611 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
3612 if test $ac_cv_lib_cposix_strerror = yes; then
3613 LIBS="$LIBS -lcposix"
3614 fi
3618 ac_ext=c
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 if test -n "$ac_tool_prefix"; then
3624 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3625 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3626 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_CC+set}" = set; then
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$CC"; then
3632 ac_cv_prog_CC="$CC" # Let the user override the test.
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3642 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645 done
3646 done
3647 IFS=$as_save_IFS
3649 fi
3650 fi
3651 CC=$ac_cv_prog_CC
3652 if test -n "$CC"; then
3653 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3654 $as_echo "$CC" >&6; }
3655 else
3656 { $as_echo "$as_me:$LINENO: result: no" >&5
3657 $as_echo "no" >&6; }
3658 fi
3661 fi
3662 if test -z "$ac_cv_prog_CC"; then
3663 ac_ct_CC=$CC
3664 # Extract the first word of "gcc", so it can be a program name with args.
3665 set dummy gcc; ac_word=$2
3666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3669 $as_echo_n "(cached) " >&6
3670 else
3671 if test -n "$ac_ct_CC"; then
3672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3673 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_ac_ct_CC="gcc"
3682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3684 fi
3685 done
3686 done
3687 IFS=$as_save_IFS
3689 fi
3690 fi
3691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then
3693 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3694 $as_echo "$ac_ct_CC" >&6; }
3695 else
3696 { $as_echo "$as_me:$LINENO: result: no" >&5
3697 $as_echo "no" >&6; }
3698 fi
3700 if test "x$ac_ct_CC" = x; then
3701 CC=""
3702 else
3703 case $cross_compiling:$ac_tool_warned in
3704 yes:)
3705 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3706 whose name does not start with the host triplet. If you think this
3707 configuration is useful to you, please write to autoconf@gnu.org." >&5
3708 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3709 whose name does not start with the host triplet. If you think this
3710 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3711 ac_tool_warned=yes ;;
3712 esac
3713 CC=$ac_ct_CC
3714 fi
3715 else
3716 CC="$ac_cv_prog_CC"
3717 fi
3719 if test -z "$CC"; then
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}cc; ac_word=$2
3723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if test "${ac_cv_prog_CC+set}" = set; then
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if test -n "$CC"; then
3729 ac_cv_prog_CC="$CC" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 ac_cv_prog_CC="${ac_tool_prefix}cc"
3739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3741 fi
3742 done
3743 done
3744 IFS=$as_save_IFS
3746 fi
3747 fi
3748 CC=$ac_cv_prog_CC
3749 if test -n "$CC"; then
3750 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3751 $as_echo "$CC" >&6; }
3752 else
3753 { $as_echo "$as_me:$LINENO: result: no" >&5
3754 $as_echo "no" >&6; }
3755 fi
3758 fi
3759 fi
3760 if test -z "$CC"; then
3761 # Extract the first word of "cc", so it can be a program name with args.
3762 set dummy cc; ac_word=$2
3763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if test "${ac_cv_prog_CC+set}" = set; then
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3770 else
3771 ac_prog_rejected=no
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3774 do
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3780 ac_prog_rejected=yes
3781 continue
3782 fi
3783 ac_cv_prog_CC="cc"
3784 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3786 fi
3787 done
3788 done
3789 IFS=$as_save_IFS
3791 if test $ac_prog_rejected = yes; then
3792 # We found a bogon in the path, so make sure we never use it.
3793 set dummy $ac_cv_prog_CC
3794 shift
3795 if test $# != 0; then
3796 # We chose a different compiler from the bogus one.
3797 # However, it has the same basename, so the bogon will be chosen
3798 # first if we set CC to just the basename; use the full file name.
3799 shift
3800 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3801 fi
3802 fi
3803 fi
3804 fi
3805 CC=$ac_cv_prog_CC
3806 if test -n "$CC"; then
3807 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3808 $as_echo "$CC" >&6; }
3809 else
3810 { $as_echo "$as_me:$LINENO: result: no" >&5
3811 $as_echo "no" >&6; }
3812 fi
3815 fi
3816 if test -z "$CC"; then
3817 if test -n "$ac_tool_prefix"; then
3818 for ac_prog in cl.exe
3819 do
3820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if test "${ac_cv_prog_CC+set}" = set; then
3825 $as_echo_n "(cached) " >&6
3826 else
3827 if test -n "$CC"; then
3828 ac_cv_prog_CC="$CC" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3837 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3838 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 break 2
3840 fi
3841 done
3842 done
3843 IFS=$as_save_IFS
3845 fi
3846 fi
3847 CC=$ac_cv_prog_CC
3848 if test -n "$CC"; then
3849 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3850 $as_echo "$CC" >&6; }
3851 else
3852 { $as_echo "$as_me:$LINENO: result: no" >&5
3853 $as_echo "no" >&6; }
3854 fi
3857 test -n "$CC" && break
3858 done
3859 fi
3860 if test -z "$CC"; then
3861 ac_ct_CC=$CC
3862 for ac_prog in cl.exe
3863 do
3864 # Extract the first word of "$ac_prog", so it can be a program name with args.
3865 set dummy $ac_prog; ac_word=$2
3866 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 $as_echo_n "checking for $ac_word... " >&6; }
3868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3869 $as_echo_n "(cached) " >&6
3870 else
3871 if test -n "$ac_ct_CC"; then
3872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3873 else
3874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875 for as_dir in $PATH
3876 do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3881 ac_cv_prog_ac_ct_CC="$ac_prog"
3882 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3883 break 2
3884 fi
3885 done
3886 done
3887 IFS=$as_save_IFS
3889 fi
3890 fi
3891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3892 if test -n "$ac_ct_CC"; then
3893 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3894 $as_echo "$ac_ct_CC" >&6; }
3895 else
3896 { $as_echo "$as_me:$LINENO: result: no" >&5
3897 $as_echo "no" >&6; }
3898 fi
3901 test -n "$ac_ct_CC" && break
3902 done
3904 if test "x$ac_ct_CC" = x; then
3905 CC=""
3906 else
3907 case $cross_compiling:$ac_tool_warned in
3908 yes:)
3909 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3910 whose name does not start with the host triplet. If you think this
3911 configuration is useful to you, please write to autoconf@gnu.org." >&5
3912 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3913 whose name does not start with the host triplet. If you think this
3914 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3915 ac_tool_warned=yes ;;
3916 esac
3917 CC=$ac_ct_CC
3918 fi
3919 fi
3921 fi
3924 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3925 See \`config.log' for more details." >&5
3926 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3927 See \`config.log' for more details." >&2;}
3928 { (exit 1); exit 1; }; }
3930 # Provide some information about the compiler.
3931 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3932 set X $ac_compile
3933 ac_compiler=$2
3934 { (ac_try="$ac_compiler --version >&5"
3935 case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3940 $as_echo "$ac_try_echo") >&5
3941 (eval "$ac_compiler --version >&5") 2>&5
3942 ac_status=$?
3943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3944 (exit $ac_status); }
3945 { (ac_try="$ac_compiler -v >&5"
3946 case "(($ac_try" in
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3949 esac
3950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3951 $as_echo "$ac_try_echo") >&5
3952 (eval "$ac_compiler -v >&5") 2>&5
3953 ac_status=$?
3954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }
3956 { (ac_try="$ac_compiler -V >&5"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3962 $as_echo "$ac_try_echo") >&5
3963 (eval "$ac_compiler -V >&5") 2>&5
3964 ac_status=$?
3965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }
3968 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3969 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3971 $as_echo_n "(cached) " >&6
3972 else
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3980 int
3981 main ()
3982 {
3983 #ifndef __GNUC__
3984 choke me
3985 #endif
3987 ;
3988 return 0;
3989 }
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3998 $as_echo "$ac_try_echo") >&5
3999 (eval "$ac_compile") 2>conftest.er1
4000 ac_status=$?
4001 grep -v '^ *+' conftest.er1 >conftest.err
4002 rm -f conftest.er1
4003 cat conftest.err >&5
4004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && {
4006 test -z "$ac_c_werror_flag" ||
4007 test ! -s conftest.err
4008 } && test -s conftest.$ac_objext; then
4009 ac_compiler_gnu=yes
4010 else
4011 $as_echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 ac_compiler_gnu=no
4015 fi
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4018 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4020 fi
4021 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4022 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4023 if test $ac_compiler_gnu = yes; then
4024 GCC=yes
4025 else
4026 GCC=
4027 fi
4028 ac_test_CFLAGS=${CFLAGS+set}
4029 ac_save_CFLAGS=$CFLAGS
4030 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4031 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4032 if test "${ac_cv_prog_cc_g+set}" = set; then
4033 $as_echo_n "(cached) " >&6
4034 else
4035 ac_save_c_werror_flag=$ac_c_werror_flag
4036 ac_c_werror_flag=yes
4037 ac_cv_prog_cc_g=no
4038 CFLAGS="-g"
4039 cat >conftest.$ac_ext <<_ACEOF
4040 /* confdefs.h. */
4041 _ACEOF
4042 cat confdefs.h >>conftest.$ac_ext
4043 cat >>conftest.$ac_ext <<_ACEOF
4044 /* end confdefs.h. */
4046 int
4047 main ()
4048 {
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 rm -f conftest.$ac_objext
4055 if { (ac_try="$ac_compile"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4061 $as_echo "$ac_try_echo") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && {
4069 test -z "$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.$ac_objext; then
4072 ac_cv_prog_cc_g=yes
4073 else
4074 $as_echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 CFLAGS=""
4078 cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h. */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4085 int
4086 main ()
4087 {
4089 ;
4090 return 0;
4091 }
4092 _ACEOF
4093 rm -f conftest.$ac_objext
4094 if { (ac_try="$ac_compile"
4095 case "(($ac_try" in
4096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4097 *) ac_try_echo=$ac_try;;
4098 esac
4099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4100 $as_echo "$ac_try_echo") >&5
4101 (eval "$ac_compile") 2>conftest.er1
4102 ac_status=$?
4103 grep -v '^ *+' conftest.er1 >conftest.err
4104 rm -f conftest.er1
4105 cat conftest.err >&5
4106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107 (exit $ac_status); } && {
4108 test -z "$ac_c_werror_flag" ||
4109 test ! -s conftest.err
4110 } && test -s conftest.$ac_objext; then
4111 :
4112 else
4113 $as_echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 ac_c_werror_flag=$ac_save_c_werror_flag
4117 CFLAGS="-g"
4118 cat >conftest.$ac_ext <<_ACEOF
4119 /* confdefs.h. */
4120 _ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4125 int
4126 main ()
4127 {
4129 ;
4130 return 0;
4131 }
4132 _ACEOF
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4135 case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4138 esac
4139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4140 $as_echo "$ac_try_echo") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4151 ac_cv_prog_cc_g=yes
4152 else
4153 $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4157 fi
4159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4160 fi
4162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163 fi
4165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4167 fi
4168 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4169 $as_echo "$ac_cv_prog_cc_g" >&6; }
4170 if test "$ac_test_CFLAGS" = set; then
4171 CFLAGS=$ac_save_CFLAGS
4172 elif test $ac_cv_prog_cc_g = yes; then
4173 if test "$GCC" = yes; then
4174 CFLAGS="-g -O2"
4175 else
4176 CFLAGS="-g"
4177 fi
4178 else
4179 if test "$GCC" = yes; then
4180 CFLAGS="-O2"
4181 else
4182 CFLAGS=
4183 fi
4184 fi
4185 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4186 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4187 if test "${ac_cv_prog_cc_c89+set}" = set; then
4188 $as_echo_n "(cached) " >&6
4189 else
4190 ac_cv_prog_cc_c89=no
4191 ac_save_CC=$CC
4192 cat >conftest.$ac_ext <<_ACEOF
4193 /* confdefs.h. */
4194 _ACEOF
4195 cat confdefs.h >>conftest.$ac_ext
4196 cat >>conftest.$ac_ext <<_ACEOF
4197 /* end confdefs.h. */
4198 #include <stdarg.h>
4199 #include <stdio.h>
4200 #include <sys/types.h>
4201 #include <sys/stat.h>
4202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4203 struct buf { int x; };
4204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4205 static char *e (p, i)
4206 char **p;
4207 int i;
4208 {
4209 return p[i];
4210 }
4211 static char *f (char * (*g) (char **, int), char **p, ...)
4212 {
4213 char *s;
4214 va_list v;
4215 va_start (v,p);
4216 s = g (p, va_arg (v,int));
4217 va_end (v);
4218 return s;
4219 }
4221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4222 function prototypes and stuff, but not '\xHH' hex character constants.
4223 These don't provoke an error unfortunately, instead are silently treated
4224 as 'x'. The following induces an error, until -std is added to get
4225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4226 array size at least. It's necessary to write '\x00'==0 to get something
4227 that's true only with -std. */
4228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4230 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4231 inside strings and character constants. */
4232 #define FOO(x) 'x'
4233 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4235 int test (int i, double x);
4236 struct s1 {int (*f) (int a);};
4237 struct s2 {int (*f) (double a);};
4238 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4239 int argc;
4240 char **argv;
4241 int
4242 main ()
4243 {
4244 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4245 ;
4246 return 0;
4247 }
4248 _ACEOF
4249 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4250 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4251 do
4252 CC="$ac_save_CC $ac_arg"
4253 rm -f conftest.$ac_objext
4254 if { (ac_try="$ac_compile"
4255 case "(($ac_try" in
4256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257 *) ac_try_echo=$ac_try;;
4258 esac
4259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4260 $as_echo "$ac_try_echo") >&5
4261 (eval "$ac_compile") 2>conftest.er1
4262 ac_status=$?
4263 grep -v '^ *+' conftest.er1 >conftest.err
4264 rm -f conftest.er1
4265 cat conftest.err >&5
4266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); } && {
4268 test -z "$ac_c_werror_flag" ||
4269 test ! -s conftest.err
4270 } && test -s conftest.$ac_objext; then
4271 ac_cv_prog_cc_c89=$ac_arg
4272 else
4273 $as_echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.$ac_ext >&5
4277 fi
4279 rm -f core conftest.err conftest.$ac_objext
4280 test "x$ac_cv_prog_cc_c89" != "xno" && break
4281 done
4282 rm -f conftest.$ac_ext
4283 CC=$ac_save_CC
4285 fi
4286 # AC_CACHE_VAL
4287 case "x$ac_cv_prog_cc_c89" in
4288 x)
4289 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4290 $as_echo "none needed" >&6; } ;;
4291 xno)
4292 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4293 $as_echo "unsupported" >&6; } ;;
4294 *)
4295 CC="$CC $ac_cv_prog_cc_c89"
4296 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4297 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4298 esac
4301 ac_ext=c
4302 ac_cpp='$CPP $CPPFLAGS'
4303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307 depcc="$CC" am_compiler_list=
4309 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4310 $as_echo_n "checking dependency style of $depcc... " >&6; }
4311 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4312 $as_echo_n "(cached) " >&6
4313 else
4314 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4315 # We make a subdir and do the tests there. Otherwise we can end up
4316 # making bogus files that we don't know about and never remove. For
4317 # instance it was reported that on HP-UX the gcc test will end up
4318 # making a dummy file named `D' -- because `-MD' means `put the output
4319 # in D'.
4320 mkdir conftest.dir
4321 # Copy depcomp to subdir because otherwise we won't find it if we're
4322 # using a relative directory.
4323 cp "$am_depcomp" conftest.dir
4324 cd conftest.dir
4325 # We will build objects and dependencies in a subdirectory because
4326 # it helps to detect inapplicable dependency modes. For instance
4327 # both Tru64's cc and ICC support -MD to output dependencies as a
4328 # side effect of compilation, but ICC will put the dependencies in
4329 # the current directory while Tru64 will put them in the object
4330 # directory.
4331 mkdir sub
4333 am_cv_CC_dependencies_compiler_type=none
4334 if test "$am_compiler_list" = ""; then
4335 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4336 fi
4337 for depmode in $am_compiler_list; do
4338 # Setup a source with many dependencies, because some compilers
4339 # like to wrap large dependency lists on column 80 (with \), and
4340 # we should not choose a depcomp mode which is confused by this.
4341 #
4342 # We need to recreate these files for each test, as the compiler may
4343 # overwrite some of them when testing with obscure command lines.
4344 # This happens at least with the AIX C compiler.
4345 : > sub/conftest.c
4346 for i in 1 2 3 4 5 6; do
4347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4349 # Solaris 8's {/usr,}/bin/sh.
4350 touch sub/conftst$i.h
4351 done
4352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4354 case $depmode in
4355 nosideeffect)
4356 # after this tag, mechanisms are not by side-effect, so they'll
4357 # only be used when explicitly requested
4358 if test "x$enable_dependency_tracking" = xyes; then
4359 continue
4360 else
4361 break
4362 fi
4363 ;;
4364 none) break ;;
4365 esac
4366 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4367 # mode. It turns out that the SunPro C++ compiler does not properly
4368 # handle `-M -o', and we need to detect this.
4369 if depmode=$depmode \
4370 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4371 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4372 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4373 >/dev/null 2>conftest.err &&
4374 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4375 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4376 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4377 # icc doesn't choke on unknown options, it will just issue warnings
4378 # or remarks (even with -Werror). So we grep stderr for any message
4379 # that says an option was ignored or not supported.
4380 # When given -MP, icc 7.0 and 7.1 complain thusly:
4381 # icc: Command line warning: ignoring option '-M'; no argument required
4382 # The diagnosis changed in icc 8.0:
4383 # icc: Command line remark: option '-MP' not supported
4384 if (grep 'ignoring option' conftest.err ||
4385 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4386 am_cv_CC_dependencies_compiler_type=$depmode
4387 break
4388 fi
4389 fi
4390 done
4392 cd ..
4393 rm -rf conftest.dir
4394 else
4395 am_cv_CC_dependencies_compiler_type=none
4396 fi
4398 fi
4399 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4400 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4401 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4405 if
4406 test "x$enable_dependency_tracking" != xno \
4407 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4408 am__fastdepCC_TRUE=
4409 am__fastdepCC_FALSE='#'
4410 else
4411 am__fastdepCC_TRUE='#'
4412 am__fastdepCC_FALSE=
4413 fi
4416 ac_ext=c
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 $as_echo_n "checking for $ac_word... " >&6; }
4426 if test "${ac_cv_prog_CC+set}" = set; then
4427 $as_echo_n "(cached) " >&6
4428 else
4429 if test -n "$CC"; then
4430 ac_cv_prog_CC="$CC" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435 IFS=$as_save_IFS
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4440 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441 break 2
4442 fi
4443 done
4444 done
4445 IFS=$as_save_IFS
4447 fi
4448 fi
4449 CC=$ac_cv_prog_CC
4450 if test -n "$CC"; then
4451 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4452 $as_echo "$CC" >&6; }
4453 else
4454 { $as_echo "$as_me:$LINENO: result: no" >&5
4455 $as_echo "no" >&6; }
4456 fi
4459 fi
4460 if test -z "$ac_cv_prog_CC"; then
4461 ac_ct_CC=$CC
4462 # Extract the first word of "gcc", so it can be a program name with args.
4463 set dummy gcc; ac_word=$2
4464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4467 $as_echo_n "(cached) " >&6
4468 else
4469 if test -n "$ac_ct_CC"; then
4470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4471 else
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 for as_dir in $PATH
4474 do
4475 IFS=$as_save_IFS
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 ac_cv_prog_ac_ct_CC="gcc"
4480 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 break 2
4482 fi
4483 done
4484 done
4485 IFS=$as_save_IFS
4487 fi
4488 fi
4489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4490 if test -n "$ac_ct_CC"; then
4491 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4492 $as_echo "$ac_ct_CC" >&6; }
4493 else
4494 { $as_echo "$as_me:$LINENO: result: no" >&5
4495 $as_echo "no" >&6; }
4496 fi
4498 if test "x$ac_ct_CC" = x; then
4499 CC=""
4500 else
4501 case $cross_compiling:$ac_tool_warned in
4502 yes:)
4503 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4504 whose name does not start with the host triplet. If you think this
4505 configuration is useful to you, please write to autoconf@gnu.org." >&5
4506 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4507 whose name does not start with the host triplet. If you think this
4508 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4509 ac_tool_warned=yes ;;
4510 esac
4511 CC=$ac_ct_CC
4512 fi
4513 else
4514 CC="$ac_cv_prog_CC"
4515 fi
4517 if test -z "$CC"; then
4518 if test -n "$ac_tool_prefix"; then
4519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4520 set dummy ${ac_tool_prefix}cc; ac_word=$2
4521 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4522 $as_echo_n "checking for $ac_word... " >&6; }
4523 if test "${ac_cv_prog_CC+set}" = set; then
4524 $as_echo_n "(cached) " >&6
4525 else
4526 if test -n "$CC"; then
4527 ac_cv_prog_CC="$CC" # Let the user override the test.
4528 else
4529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532 IFS=$as_save_IFS
4533 test -z "$as_dir" && as_dir=.
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536 ac_cv_prog_CC="${ac_tool_prefix}cc"
4537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 break 2
4539 fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4544 fi
4545 fi
4546 CC=$ac_cv_prog_CC
4547 if test -n "$CC"; then
4548 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4549 $as_echo "$CC" >&6; }
4550 else
4551 { $as_echo "$as_me:$LINENO: result: no" >&5
4552 $as_echo "no" >&6; }
4553 fi
4556 fi
4557 fi
4558 if test -z "$CC"; then
4559 # Extract the first word of "cc", so it can be a program name with args.
4560 set dummy cc; ac_word=$2
4561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if test "${ac_cv_prog_CC+set}" = set; then
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if test -n "$CC"; then
4567 ac_cv_prog_CC="$CC" # Let the user override the test.
4568 else
4569 ac_prog_rejected=no
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4578 ac_prog_rejected=yes
4579 continue
4580 fi
4581 ac_cv_prog_CC="cc"
4582 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583 break 2
4584 fi
4585 done
4586 done
4587 IFS=$as_save_IFS
4589 if test $ac_prog_rejected = yes; then
4590 # We found a bogon in the path, so make sure we never use it.
4591 set dummy $ac_cv_prog_CC
4592 shift
4593 if test $# != 0; then
4594 # We chose a different compiler from the bogus one.
4595 # However, it has the same basename, so the bogon will be chosen
4596 # first if we set CC to just the basename; use the full file name.
4597 shift
4598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4599 fi
4600 fi
4601 fi
4602 fi
4603 CC=$ac_cv_prog_CC
4604 if test -n "$CC"; then
4605 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4606 $as_echo "$CC" >&6; }
4607 else
4608 { $as_echo "$as_me:$LINENO: result: no" >&5
4609 $as_echo "no" >&6; }
4610 fi
4613 fi
4614 if test -z "$CC"; then
4615 if test -n "$ac_tool_prefix"; then
4616 for ac_prog in cl.exe
4617 do
4618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4620 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623 $as_echo_n "(cached) " >&6
4624 else
4625 if test -n "$CC"; then
4626 ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631 IFS=$as_save_IFS
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4636 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637 break 2
4638 fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4643 fi
4644 fi
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4648 $as_echo "$CC" >&6; }
4649 else
4650 { $as_echo "$as_me:$LINENO: result: no" >&5
4651 $as_echo "no" >&6; }
4652 fi
4655 test -n "$CC" && break
4656 done
4657 fi
4658 if test -z "$CC"; then
4659 ac_ct_CC=$CC
4660 for ac_prog in cl.exe
4661 do
4662 # Extract the first word of "$ac_prog", so it can be a program name with args.
4663 set dummy $ac_prog; ac_word=$2
4664 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4665 $as_echo_n "checking for $ac_word... " >&6; }
4666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4667 $as_echo_n "(cached) " >&6
4668 else
4669 if test -n "$ac_ct_CC"; then
4670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4671 else
4672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673 for as_dir in $PATH
4674 do
4675 IFS=$as_save_IFS
4676 test -z "$as_dir" && as_dir=.
4677 for ac_exec_ext in '' $ac_executable_extensions; do
4678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679 ac_cv_prog_ac_ct_CC="$ac_prog"
4680 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4681 break 2
4682 fi
4683 done
4684 done
4685 IFS=$as_save_IFS
4687 fi
4688 fi
4689 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4690 if test -n "$ac_ct_CC"; then
4691 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4692 $as_echo "$ac_ct_CC" >&6; }
4693 else
4694 { $as_echo "$as_me:$LINENO: result: no" >&5
4695 $as_echo "no" >&6; }
4696 fi
4699 test -n "$ac_ct_CC" && break
4700 done
4702 if test "x$ac_ct_CC" = x; then
4703 CC=""
4704 else
4705 case $cross_compiling:$ac_tool_warned in
4706 yes:)
4707 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4708 whose name does not start with the host triplet. If you think this
4709 configuration is useful to you, please write to autoconf@gnu.org." >&5
4710 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4711 whose name does not start with the host triplet. If you think this
4712 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4713 ac_tool_warned=yes ;;
4714 esac
4715 CC=$ac_ct_CC
4716 fi
4717 fi
4719 fi
4722 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4723 See \`config.log' for more details." >&5
4724 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4725 See \`config.log' for more details." >&2;}
4726 { (exit 1); exit 1; }; }
4728 # Provide some information about the compiler.
4729 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4730 set X $ac_compile
4731 ac_compiler=$2
4732 { (ac_try="$ac_compiler --version >&5"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4738 $as_echo "$ac_try_echo") >&5
4739 (eval "$ac_compiler --version >&5") 2>&5
4740 ac_status=$?
4741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }
4743 { (ac_try="$ac_compiler -v >&5"
4744 case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747 esac
4748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749 $as_echo "$ac_try_echo") >&5
4750 (eval "$ac_compiler -v >&5") 2>&5
4751 ac_status=$?
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }
4754 { (ac_try="$ac_compiler -V >&5"
4755 case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758 esac
4759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760 $as_echo "$ac_try_echo") >&5
4761 (eval "$ac_compiler -V >&5") 2>&5
4762 ac_status=$?
4763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); }
4766 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4767 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4768 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4769 $as_echo_n "(cached) " >&6
4770 else
4771 cat >conftest.$ac_ext <<_ACEOF
4772 /* confdefs.h. */
4773 _ACEOF
4774 cat confdefs.h >>conftest.$ac_ext
4775 cat >>conftest.$ac_ext <<_ACEOF
4776 /* end confdefs.h. */
4778 int
4779 main ()
4780 {
4781 #ifndef __GNUC__
4782 choke me
4783 #endif
4785 ;
4786 return 0;
4787 }
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4796 $as_echo "$ac_try_echo") >&5
4797 (eval "$ac_compile") 2>conftest.er1
4798 ac_status=$?
4799 grep -v '^ *+' conftest.er1 >conftest.err
4800 rm -f conftest.er1
4801 cat conftest.err >&5
4802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } && {
4804 test -z "$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4806 } && test -s conftest.$ac_objext; then
4807 ac_compiler_gnu=yes
4808 else
4809 $as_echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 ac_compiler_gnu=no
4813 fi
4815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4816 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4818 fi
4819 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4820 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4821 if test $ac_compiler_gnu = yes; then
4822 GCC=yes
4823 else
4824 GCC=
4825 fi
4826 ac_test_CFLAGS=${CFLAGS+set}
4827 ac_save_CFLAGS=$CFLAGS
4828 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4829 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4830 if test "${ac_cv_prog_cc_g+set}" = set; then
4831 $as_echo_n "(cached) " >&6
4832 else
4833 ac_save_c_werror_flag=$ac_c_werror_flag
4834 ac_c_werror_flag=yes
4835 ac_cv_prog_cc_g=no
4836 CFLAGS="-g"
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4844 int
4845 main ()
4846 {
4848 ;
4849 return 0;
4850 }
4851 _ACEOF
4852 rm -f conftest.$ac_objext
4853 if { (ac_try="$ac_compile"
4854 case "(($ac_try" in
4855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4856 *) ac_try_echo=$ac_try;;
4857 esac
4858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4859 $as_echo "$ac_try_echo") >&5
4860 (eval "$ac_compile") 2>conftest.er1
4861 ac_status=$?
4862 grep -v '^ *+' conftest.er1 >conftest.err
4863 rm -f conftest.er1
4864 cat conftest.err >&5
4865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && {
4867 test -z "$ac_c_werror_flag" ||
4868 test ! -s conftest.err
4869 } && test -s conftest.$ac_objext; then
4870 ac_cv_prog_cc_g=yes
4871 else
4872 $as_echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 CFLAGS=""
4876 cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h. */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4883 int
4884 main ()
4885 {
4887 ;
4888 return 0;
4889 }
4890 _ACEOF
4891 rm -f conftest.$ac_objext
4892 if { (ac_try="$ac_compile"
4893 case "(($ac_try" in
4894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4895 *) ac_try_echo=$ac_try;;
4896 esac
4897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4898 $as_echo "$ac_try_echo") >&5
4899 (eval "$ac_compile") 2>conftest.er1
4900 ac_status=$?
4901 grep -v '^ *+' conftest.er1 >conftest.err
4902 rm -f conftest.er1
4903 cat conftest.err >&5
4904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } && {
4906 test -z "$ac_c_werror_flag" ||
4907 test ! -s conftest.err
4908 } && test -s conftest.$ac_objext; then
4909 :
4910 else
4911 $as_echo "$as_me: failed program was:" >&5
4912 sed 's/^/| /' conftest.$ac_ext >&5
4914 ac_c_werror_flag=$ac_save_c_werror_flag
4915 CFLAGS="-g"
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4923 int
4924 main ()
4925 {
4927 ;
4928 return 0;
4929 }
4930 _ACEOF
4931 rm -f conftest.$ac_objext
4932 if { (ac_try="$ac_compile"
4933 case "(($ac_try" in
4934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935 *) ac_try_echo=$ac_try;;
4936 esac
4937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4938 $as_echo "$ac_try_echo") >&5
4939 (eval "$ac_compile") 2>conftest.er1
4940 ac_status=$?
4941 grep -v '^ *+' conftest.er1 >conftest.err
4942 rm -f conftest.er1
4943 cat conftest.err >&5
4944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); } && {
4946 test -z "$ac_c_werror_flag" ||
4947 test ! -s conftest.err
4948 } && test -s conftest.$ac_objext; then
4949 ac_cv_prog_cc_g=yes
4950 else
4951 $as_echo "$as_me: failed program was:" >&5
4952 sed 's/^/| /' conftest.$ac_ext >&5
4955 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4958 fi
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 ac_c_werror_flag=$ac_save_c_werror_flag
4965 fi
4966 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4967 $as_echo "$ac_cv_prog_cc_g" >&6; }
4968 if test "$ac_test_CFLAGS" = set; then
4969 CFLAGS=$ac_save_CFLAGS
4970 elif test $ac_cv_prog_cc_g = yes; then
4971 if test "$GCC" = yes; then
4972 CFLAGS="-g -O2"
4973 else
4974 CFLAGS="-g"
4975 fi
4976 else
4977 if test "$GCC" = yes; then
4978 CFLAGS="-O2"
4979 else
4980 CFLAGS=
4981 fi
4982 fi
4983 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4984 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4985 if test "${ac_cv_prog_cc_c89+set}" = set; then
4986 $as_echo_n "(cached) " >&6
4987 else
4988 ac_cv_prog_cc_c89=no
4989 ac_save_CC=$CC
4990 cat >conftest.$ac_ext <<_ACEOF
4991 /* confdefs.h. */
4992 _ACEOF
4993 cat confdefs.h >>conftest.$ac_ext
4994 cat >>conftest.$ac_ext <<_ACEOF
4995 /* end confdefs.h. */
4996 #include <stdarg.h>
4997 #include <stdio.h>
4998 #include <sys/types.h>
4999 #include <sys/stat.h>
5000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5001 struct buf { int x; };
5002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5003 static char *e (p, i)
5004 char **p;
5005 int i;
5006 {
5007 return p[i];
5008 }
5009 static char *f (char * (*g) (char **, int), char **p, ...)
5010 {
5011 char *s;
5012 va_list v;
5013 va_start (v,p);
5014 s = g (p, va_arg (v,int));
5015 va_end (v);
5016 return s;
5017 }
5019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5020 function prototypes and stuff, but not '\xHH' hex character constants.
5021 These don't provoke an error unfortunately, instead are silently treated
5022 as 'x'. The following induces an error, until -std is added to get
5023 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5024 array size at least. It's necessary to write '\x00'==0 to get something
5025 that's true only with -std. */
5026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5029 inside strings and character constants. */
5030 #define FOO(x) 'x'
5031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5033 int test (int i, double x);
5034 struct s1 {int (*f) (int a);};
5035 struct s2 {int (*f) (double a);};
5036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5037 int argc;
5038 char **argv;
5039 int
5040 main ()
5041 {
5042 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5043 ;
5044 return 0;
5045 }
5046 _ACEOF
5047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5048 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5049 do
5050 CC="$ac_save_CC $ac_arg"
5051 rm -f conftest.$ac_objext
5052 if { (ac_try="$ac_compile"
5053 case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056 esac
5057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5058 $as_echo "$ac_try_echo") >&5
5059 (eval "$ac_compile") 2>conftest.er1
5060 ac_status=$?
5061 grep -v '^ *+' conftest.er1 >conftest.err
5062 rm -f conftest.er1
5063 cat conftest.err >&5
5064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065 (exit $ac_status); } && {
5066 test -z "$ac_c_werror_flag" ||
5067 test ! -s conftest.err
5068 } && test -s conftest.$ac_objext; then
5069 ac_cv_prog_cc_c89=$ac_arg
5070 else
5071 $as_echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5075 fi
5077 rm -f core conftest.err conftest.$ac_objext
5078 test "x$ac_cv_prog_cc_c89" != "xno" && break
5079 done
5080 rm -f conftest.$ac_ext
5081 CC=$ac_save_CC
5083 fi
5084 # AC_CACHE_VAL
5085 case "x$ac_cv_prog_cc_c89" in
5086 x)
5087 { $as_echo "$as_me:$LINENO: result: none needed" >&5
5088 $as_echo "none needed" >&6; } ;;
5089 xno)
5090 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5091 $as_echo "unsupported" >&6; } ;;
5092 *)
5093 CC="$CC $ac_cv_prog_cc_c89"
5094 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5095 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5096 esac
5099 ac_ext=c
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5105 depcc="$CC" am_compiler_list=
5107 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5108 $as_echo_n "checking dependency style of $depcc... " >&6; }
5109 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5113 # We make a subdir and do the tests there. Otherwise we can end up
5114 # making bogus files that we don't know about and never remove. For
5115 # instance it was reported that on HP-UX the gcc test will end up
5116 # making a dummy file named `D' -- because `-MD' means `put the output
5117 # in D'.
5118 mkdir conftest.dir
5119 # Copy depcomp to subdir because otherwise we won't find it if we're
5120 # using a relative directory.
5121 cp "$am_depcomp" conftest.dir
5122 cd conftest.dir
5123 # We will build objects and dependencies in a subdirectory because
5124 # it helps to detect inapplicable dependency modes. For instance
5125 # both Tru64's cc and ICC support -MD to output dependencies as a
5126 # side effect of compilation, but ICC will put the dependencies in
5127 # the current directory while Tru64 will put them in the object
5128 # directory.
5129 mkdir sub
5131 am_cv_CC_dependencies_compiler_type=none
5132 if test "$am_compiler_list" = ""; then
5133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5134 fi
5135 for depmode in $am_compiler_list; do
5136 # Setup a source with many dependencies, because some compilers
5137 # like to wrap large dependency lists on column 80 (with \), and
5138 # we should not choose a depcomp mode which is confused by this.
5139 #
5140 # We need to recreate these files for each test, as the compiler may
5141 # overwrite some of them when testing with obscure command lines.
5142 # This happens at least with the AIX C compiler.
5143 : > sub/conftest.c
5144 for i in 1 2 3 4 5 6; do
5145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5146 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5147 # Solaris 8's {/usr,}/bin/sh.
5148 touch sub/conftst$i.h
5149 done
5150 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5152 case $depmode in
5153 nosideeffect)
5154 # after this tag, mechanisms are not by side-effect, so they'll
5155 # only be used when explicitly requested
5156 if test "x$enable_dependency_tracking" = xyes; then
5157 continue
5158 else
5159 break
5160 fi
5161 ;;
5162 none) break ;;
5163 esac
5164 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5165 # mode. It turns out that the SunPro C++ compiler does not properly
5166 # handle `-M -o', and we need to detect this.
5167 if depmode=$depmode \
5168 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5170 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5171 >/dev/null 2>conftest.err &&
5172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5173 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5175 # icc doesn't choke on unknown options, it will just issue warnings
5176 # or remarks (even with -Werror). So we grep stderr for any message
5177 # that says an option was ignored or not supported.
5178 # When given -MP, icc 7.0 and 7.1 complain thusly:
5179 # icc: Command line warning: ignoring option '-M'; no argument required
5180 # The diagnosis changed in icc 8.0:
5181 # icc: Command line remark: option '-MP' not supported
5182 if (grep 'ignoring option' conftest.err ||
5183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5184 am_cv_CC_dependencies_compiler_type=$depmode
5185 break
5186 fi
5187 fi
5188 done
5190 cd ..
5191 rm -rf conftest.dir
5192 else
5193 am_cv_CC_dependencies_compiler_type=none
5194 fi
5196 fi
5197 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5198 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5203 if
5204 test "x$enable_dependency_tracking" != xno \
5205 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5206 am__fastdepCC_TRUE=
5207 am__fastdepCC_FALSE='#'
5208 else
5209 am__fastdepCC_TRUE='#'
5210 am__fastdepCC_FALSE=
5211 fi
5215 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5217 # By default we simply use the C compiler to build assembly code.
5219 test "${CCAS+set}" = set || CCAS=$CC
5220 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
5224 ac_ext=c
5225 ac_cpp='$CPP $CPPFLAGS'
5226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5229 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5230 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5231 # On Suns, sometimes $CPP names a directory.
5232 if test -n "$CPP" && test -d "$CPP"; then
5233 CPP=
5234 fi
5235 if test -z "$CPP"; then
5236 if test "${ac_cv_prog_CPP+set}" = set; then
5237 $as_echo_n "(cached) " >&6
5238 else
5239 # Double quotes because CPP needs to be expanded
5240 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5241 do
5242 ac_preproc_ok=false
5243 for ac_c_preproc_warn_flag in '' yes
5244 do
5245 # Use a header file that comes with gcc, so configuring glibc
5246 # with a fresh cross-compiler works.
5247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5248 # <limits.h> exists even on freestanding compilers.
5249 # On the NeXT, cc -E runs the code through the compiler's parser,
5250 # not just through cpp. "Syntax error" is here to catch this case.
5251 cat >conftest.$ac_ext <<_ACEOF
5252 /* confdefs.h. */
5253 _ACEOF
5254 cat confdefs.h >>conftest.$ac_ext
5255 cat >>conftest.$ac_ext <<_ACEOF
5256 /* end confdefs.h. */
5257 #ifdef __STDC__
5258 # include <limits.h>
5259 #else
5260 # include <assert.h>
5261 #endif
5262 Syntax error
5263 _ACEOF
5264 if { (ac_try="$ac_cpp conftest.$ac_ext"
5265 case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268 esac
5269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5270 $as_echo "$ac_try_echo") >&5
5271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5272 ac_status=$?
5273 grep -v '^ *+' conftest.er1 >conftest.err
5274 rm -f conftest.er1
5275 cat conftest.err >&5
5276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); } >/dev/null && {
5278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5279 test ! -s conftest.err
5280 }; then
5281 :
5282 else
5283 $as_echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 # Broken: fails on valid input.
5287 continue
5288 fi
5290 rm -f conftest.err conftest.$ac_ext
5292 # OK, works on sane cases. Now check whether nonexistent headers
5293 # can be detected and how.
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h. */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h. */
5300 #include <ac_nonexistent.h>
5301 _ACEOF
5302 if { (ac_try="$ac_cpp conftest.$ac_ext"
5303 case "(($ac_try" in
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5306 esac
5307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5308 $as_echo "$ac_try_echo") >&5
5309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5310 ac_status=$?
5311 grep -v '^ *+' conftest.er1 >conftest.err
5312 rm -f conftest.er1
5313 cat conftest.err >&5
5314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); } >/dev/null && {
5316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5317 test ! -s conftest.err
5318 }; then
5319 # Broken: success on invalid input.
5320 continue
5321 else
5322 $as_echo "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.$ac_ext >&5
5325 # Passes both tests.
5326 ac_preproc_ok=:
5327 break
5328 fi
5330 rm -f conftest.err conftest.$ac_ext
5332 done
5333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5334 rm -f conftest.err conftest.$ac_ext
5335 if $ac_preproc_ok; then
5336 break
5337 fi
5339 done
5340 ac_cv_prog_CPP=$CPP
5342 fi
5343 CPP=$ac_cv_prog_CPP
5344 else
5345 ac_cv_prog_CPP=$CPP
5346 fi
5347 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5348 $as_echo "$CPP" >&6; }
5349 ac_preproc_ok=false
5350 for ac_c_preproc_warn_flag in '' yes
5351 do
5352 # Use a header file that comes with gcc, so configuring glibc
5353 # with a fresh cross-compiler works.
5354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5355 # <limits.h> exists even on freestanding compilers.
5356 # On the NeXT, cc -E runs the code through the compiler's parser,
5357 # not just through cpp. "Syntax error" is here to catch this case.
5358 cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 #ifdef __STDC__
5365 # include <limits.h>
5366 #else
5367 # include <assert.h>
5368 #endif
5369 Syntax error
5370 _ACEOF
5371 if { (ac_try="$ac_cpp conftest.$ac_ext"
5372 case "(($ac_try" in
5373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5374 *) ac_try_echo=$ac_try;;
5375 esac
5376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5377 $as_echo "$ac_try_echo") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null && {
5385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 }; then
5388 :
5389 else
5390 $as_echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 # Broken: fails on valid input.
5394 continue
5395 fi
5397 rm -f conftest.err conftest.$ac_ext
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat >conftest.$ac_ext <<_ACEOF
5402 /* confdefs.h. */
5403 _ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5408 _ACEOF
5409 if { (ac_try="$ac_cpp conftest.$ac_ext"
5410 case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413 esac
5414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5415 $as_echo "$ac_try_echo") >&5
5416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); } >/dev/null && {
5423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5424 test ! -s conftest.err
5425 }; then
5426 # Broken: success on invalid input.
5427 continue
5428 else
5429 $as_echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5432 # Passes both tests.
5433 ac_preproc_ok=:
5434 break
5435 fi
5437 rm -f conftest.err conftest.$ac_ext
5439 done
5440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5441 rm -f conftest.err conftest.$ac_ext
5442 if $ac_preproc_ok; then
5443 :
5444 else
5445 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5446 See \`config.log' for more details." >&5
5447 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5448 See \`config.log' for more details." >&2;}
5449 { (exit 1); exit 1; }; }
5450 fi
5452 ac_ext=c
5453 ac_cpp='$CPP $CPPFLAGS'
5454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5460 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5461 if test "${ac_cv_path_GREP+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5463 else
5464 if test -z "$GREP"; then
5465 ac_path_GREP_found=false
5466 # Loop through the user's path and test for each of PROGNAME-LIST
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5469 do
5470 IFS=$as_save_IFS
5471 test -z "$as_dir" && as_dir=.
5472 for ac_prog in grep ggrep; do
5473 for ac_exec_ext in '' $ac_executable_extensions; do
5474 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5475 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5476 # Check for GNU ac_path_GREP and select it if it is found.
5477 # Check for GNU $ac_path_GREP
5478 case `"$ac_path_GREP" --version 2>&1` in
5479 *GNU*)
5480 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5481 *)
5482 ac_count=0
5483 $as_echo_n 0123456789 >"conftest.in"
5484 while :
5485 do
5486 cat "conftest.in" "conftest.in" >"conftest.tmp"
5487 mv "conftest.tmp" "conftest.in"
5488 cp "conftest.in" "conftest.nl"
5489 $as_echo 'GREP' >> "conftest.nl"
5490 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5491 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5492 ac_count=`expr $ac_count + 1`
5493 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5494 # Best one so far, save it but keep looking for a better one
5495 ac_cv_path_GREP="$ac_path_GREP"
5496 ac_path_GREP_max=$ac_count
5497 fi
5498 # 10*(2^10) chars as input seems more than enough
5499 test $ac_count -gt 10 && break
5500 done
5501 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5502 esac
5504 $ac_path_GREP_found && break 3
5505 done
5506 done
5507 done
5508 IFS=$as_save_IFS
5509 if test -z "$ac_cv_path_GREP"; then
5510 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5511 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5512 { (exit 1); exit 1; }; }
5513 fi
5514 else
5515 ac_cv_path_GREP=$GREP
5516 fi
5518 fi
5519 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5520 $as_echo "$ac_cv_path_GREP" >&6; }
5521 GREP="$ac_cv_path_GREP"
5524 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5525 $as_echo_n "checking for egrep... " >&6; }
5526 if test "${ac_cv_path_EGREP+set}" = set; then
5527 $as_echo_n "(cached) " >&6
5528 else
5529 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5530 then ac_cv_path_EGREP="$GREP -E"
5531 else
5532 if test -z "$EGREP"; then
5533 ac_path_EGREP_found=false
5534 # Loop through the user's path and test for each of PROGNAME-LIST
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_prog in egrep; do
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5543 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5544 # Check for GNU ac_path_EGREP and select it if it is found.
5545 # Check for GNU $ac_path_EGREP
5546 case `"$ac_path_EGREP" --version 2>&1` in
5547 *GNU*)
5548 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5549 *)
5550 ac_count=0
5551 $as_echo_n 0123456789 >"conftest.in"
5552 while :
5553 do
5554 cat "conftest.in" "conftest.in" >"conftest.tmp"
5555 mv "conftest.tmp" "conftest.in"
5556 cp "conftest.in" "conftest.nl"
5557 $as_echo 'EGREP' >> "conftest.nl"
5558 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5559 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5560 ac_count=`expr $ac_count + 1`
5561 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5562 # Best one so far, save it but keep looking for a better one
5563 ac_cv_path_EGREP="$ac_path_EGREP"
5564 ac_path_EGREP_max=$ac_count
5565 fi
5566 # 10*(2^10) chars as input seems more than enough
5567 test $ac_count -gt 10 && break
5568 done
5569 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5570 esac
5572 $ac_path_EGREP_found && break 3
5573 done
5574 done
5575 done
5576 IFS=$as_save_IFS
5577 if test -z "$ac_cv_path_EGREP"; then
5578 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5579 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5580 { (exit 1); exit 1; }; }
5581 fi
5582 else
5583 ac_cv_path_EGREP=$EGREP
5584 fi
5586 fi
5587 fi
5588 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5589 $as_echo "$ac_cv_path_EGREP" >&6; }
5590 EGREP="$ac_cv_path_EGREP"
5593 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5594 $as_echo_n "checking for ANSI C header files... " >&6; }
5595 if test "${ac_cv_header_stdc+set}" = set; then
5596 $as_echo_n "(cached) " >&6
5597 else
5598 cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h. */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 #include <stdlib.h>
5605 #include <stdarg.h>
5606 #include <string.h>
5607 #include <float.h>
5609 int
5610 main ()
5611 {
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 rm -f conftest.$ac_objext
5618 if { (ac_try="$ac_compile"
5619 case "(($ac_try" in
5620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5622 esac
5623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5624 $as_echo "$ac_try_echo") >&5
5625 (eval "$ac_compile") 2>conftest.er1
5626 ac_status=$?
5627 grep -v '^ *+' conftest.er1 >conftest.err
5628 rm -f conftest.er1
5629 cat conftest.err >&5
5630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } && {
5632 test -z "$ac_c_werror_flag" ||
5633 test ! -s conftest.err
5634 } && test -s conftest.$ac_objext; then
5635 ac_cv_header_stdc=yes
5636 else
5637 $as_echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_cv_header_stdc=no
5641 fi
5643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 if test $ac_cv_header_stdc = yes; then
5646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5647 cat >conftest.$ac_ext <<_ACEOF
5648 /* confdefs.h. */
5649 _ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <string.h>
5655 _ACEOF
5656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5657 $EGREP "memchr" >/dev/null 2>&1; then
5658 :
5659 else
5660 ac_cv_header_stdc=no
5661 fi
5662 rm -f conftest*
5664 fi
5666 if test $ac_cv_header_stdc = yes; then
5667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5668 cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h. */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h. */
5674 #include <stdlib.h>
5676 _ACEOF
5677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5678 $EGREP "free" >/dev/null 2>&1; then
5679 :
5680 else
5681 ac_cv_header_stdc=no
5682 fi
5683 rm -f conftest*
5685 fi
5687 if test $ac_cv_header_stdc = yes; then
5688 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5689 if test "$cross_compiling" = yes; then
5690 :
5691 else
5692 cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h. */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 #include <ctype.h>
5699 #include <stdlib.h>
5700 #if ((' ' & 0x0FF) == 0x020)
5701 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5702 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5703 #else
5704 # define ISLOWER(c) \
5705 (('a' <= (c) && (c) <= 'i') \
5706 || ('j' <= (c) && (c) <= 'r') \
5707 || ('s' <= (c) && (c) <= 'z'))
5708 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5709 #endif
5711 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5712 int
5713 main ()
5714 {
5715 int i;
5716 for (i = 0; i < 256; i++)
5717 if (XOR (islower (i), ISLOWER (i))
5718 || toupper (i) != TOUPPER (i))
5719 return 2;
5720 return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest$ac_exeext
5724 if { (ac_try="$ac_link"
5725 case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728 esac
5729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5730 $as_echo "$ac_try_echo") >&5
5731 (eval "$ac_link") 2>&5
5732 ac_status=$?
5733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5735 { (case "(($ac_try" in
5736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5737 *) ac_try_echo=$ac_try;;
5738 esac
5739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5740 $as_echo "$ac_try_echo") >&5
5741 (eval "$ac_try") 2>&5
5742 ac_status=$?
5743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); }; }; then
5745 :
5746 else
5747 $as_echo "$as_me: program exited with status $ac_status" >&5
5748 $as_echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5751 ( exit $ac_status )
5752 ac_cv_header_stdc=no
5753 fi
5754 rm -rf conftest.dSYM
5755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5756 fi
5759 fi
5760 fi
5761 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5762 $as_echo "$ac_cv_header_stdc" >&6; }
5763 if test $ac_cv_header_stdc = yes; then
5765 cat >>confdefs.h <<\_ACEOF
5766 #define STDC_HEADERS 1
5767 _ACEOF
5769 fi
5771 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5781 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5782 inttypes.h stdint.h unistd.h
5783 do
5784 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5786 $as_echo_n "checking for $ac_header... " >&6; }
5787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5788 $as_echo_n "(cached) " >&6
5789 else
5790 cat >conftest.$ac_ext <<_ACEOF
5791 /* confdefs.h. */
5792 _ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 $ac_includes_default
5798 #include <$ac_header>
5799 _ACEOF
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5802 case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805 esac
5806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807 $as_echo "$ac_try_echo") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 eval "$as_ac_Header=yes"
5819 else
5820 $as_echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 eval "$as_ac_Header=no"
5824 fi
5826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 fi
5828 ac_res=`eval 'as_val=${'$as_ac_Header'}
5829 $as_echo "$as_val"'`
5830 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5831 $as_echo "$ac_res" >&6; }
5832 if test `eval 'as_val=${'$as_ac_Header'}
5833 $as_echo "$as_val"'` = yes; then
5834 cat >>confdefs.h <<_ACEOF
5835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5836 _ACEOF
5838 fi
5840 done
5843 # The cast to long int works around a bug in the HP C Compiler
5844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5846 # This bug is HP SR number 8606223364.
5847 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
5848 $as_echo_n "checking size of void *... " >&6; }
5849 if test "${ac_cv_sizeof_void_p+set}" = set; then
5850 $as_echo_n "(cached) " >&6
5851 else
5852 if test "$cross_compiling" = yes; then
5853 # Depending upon the size, compute the lo and hi bounds.
5854 cat >conftest.$ac_ext <<_ACEOF
5855 /* confdefs.h. */
5856 _ACEOF
5857 cat confdefs.h >>conftest.$ac_ext
5858 cat >>conftest.$ac_ext <<_ACEOF
5859 /* end confdefs.h. */
5860 $ac_includes_default
5861 int
5862 main ()
5863 {
5864 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
5865 test_array [0] = 0
5867 ;
5868 return 0;
5869 }
5870 _ACEOF
5871 rm -f conftest.$ac_objext
5872 if { (ac_try="$ac_compile"
5873 case "(($ac_try" in
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5876 esac
5877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5878 $as_echo "$ac_try_echo") >&5
5879 (eval "$ac_compile") 2>conftest.er1
5880 ac_status=$?
5881 grep -v '^ *+' conftest.er1 >conftest.err
5882 rm -f conftest.er1
5883 cat conftest.err >&5
5884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885 (exit $ac_status); } && {
5886 test -z "$ac_c_werror_flag" ||
5887 test ! -s conftest.err
5888 } && test -s conftest.$ac_objext; then
5889 ac_lo=0 ac_mid=0
5890 while :; do
5891 cat >conftest.$ac_ext <<_ACEOF
5892 /* confdefs.h. */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h. */
5897 $ac_includes_default
5898 int
5899 main ()
5900 {
5901 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
5902 test_array [0] = 0
5904 ;
5905 return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5910 case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913 esac
5914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5915 $as_echo "$ac_try_echo") >&5
5916 (eval "$ac_compile") 2>conftest.er1
5917 ac_status=$?
5918 grep -v '^ *+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } && {
5923 test -z "$ac_c_werror_flag" ||
5924 test ! -s conftest.err
5925 } && test -s conftest.$ac_objext; then
5926 ac_hi=$ac_mid; break
5927 else
5928 $as_echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 ac_lo=`expr $ac_mid + 1`
5932 if test $ac_lo -le $ac_mid; then
5933 ac_lo= ac_hi=
5934 break
5935 fi
5936 ac_mid=`expr 2 '*' $ac_mid + 1`
5937 fi
5939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5940 done
5941 else
5942 $as_echo "$as_me: failed program was:" >&5
5943 sed 's/^/| /' conftest.$ac_ext >&5
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 $ac_includes_default
5952 int
5953 main ()
5954 {
5955 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
5956 test_array [0] = 0
5958 ;
5959 return 0;
5960 }
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5964 case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967 esac
5968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5969 $as_echo "$ac_try_echo") >&5
5970 (eval "$ac_compile") 2>conftest.er1
5971 ac_status=$?
5972 grep -v '^ *+' conftest.er1 >conftest.err
5973 rm -f conftest.er1
5974 cat conftest.err >&5
5975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } && {
5977 test -z "$ac_c_werror_flag" ||
5978 test ! -s conftest.err
5979 } && test -s conftest.$ac_objext; then
5980 ac_hi=-1 ac_mid=-1
5981 while :; do
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 $ac_includes_default
5989 int
5990 main ()
5991 {
5992 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
5993 test_array [0] = 0
5995 ;
5996 return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest.$ac_objext
6000 if { (ac_try="$ac_compile"
6001 case "(($ac_try" in
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6004 esac
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6008 ac_status=$?
6009 grep -v '^ *+' conftest.er1 >conftest.err
6010 rm -f conftest.er1
6011 cat conftest.err >&5
6012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && {
6014 test -z "$ac_c_werror_flag" ||
6015 test ! -s conftest.err
6016 } && test -s conftest.$ac_objext; then
6017 ac_lo=$ac_mid; break
6018 else
6019 $as_echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_hi=`expr '(' $ac_mid ')' - 1`
6023 if test $ac_mid -le $ac_hi; then
6024 ac_lo= ac_hi=
6025 break
6026 fi
6027 ac_mid=`expr 2 '*' $ac_mid`
6028 fi
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6031 done
6032 else
6033 $as_echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_lo= ac_hi=
6037 fi
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040 fi
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 # Binary search between lo and hi bounds.
6044 while test "x$ac_lo" != "x$ac_hi"; do
6045 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6046 cat >conftest.$ac_ext <<_ACEOF
6047 /* confdefs.h. */
6048 _ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 $ac_includes_default
6053 int
6054 main ()
6055 {
6056 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6057 test_array [0] = 0
6059 ;
6060 return 0;
6061 }
6062 _ACEOF
6063 rm -f conftest.$ac_objext
6064 if { (ac_try="$ac_compile"
6065 case "(($ac_try" in
6066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6067 *) ac_try_echo=$ac_try;;
6068 esac
6069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6070 $as_echo "$ac_try_echo") >&5
6071 (eval "$ac_compile") 2>conftest.er1
6072 ac_status=$?
6073 grep -v '^ *+' conftest.er1 >conftest.err
6074 rm -f conftest.er1
6075 cat conftest.err >&5
6076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } && {
6078 test -z "$ac_c_werror_flag" ||
6079 test ! -s conftest.err
6080 } && test -s conftest.$ac_objext; then
6081 ac_hi=$ac_mid
6082 else
6083 $as_echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6086 ac_lo=`expr '(' $ac_mid ')' + 1`
6087 fi
6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090 done
6091 case $ac_lo in
6092 ?*) ac_cv_sizeof_void_p=$ac_lo;;
6093 '') if test "$ac_cv_type_void_p" = yes; then
6094 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6095 See \`config.log' for more details." >&5
6096 $as_echo "$as_me: error: cannot compute sizeof (void *)
6097 See \`config.log' for more details." >&2;}
6098 { (exit 77); exit 77; }; }
6099 else
6100 ac_cv_sizeof_void_p=0
6101 fi ;;
6102 esac
6103 else
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 $ac_includes_default
6111 static long int longval () { return (long int) (sizeof (void *)); }
6112 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
6113 #include <stdio.h>
6114 #include <stdlib.h>
6115 int
6116 main ()
6117 {
6119 FILE *f = fopen ("conftest.val", "w");
6120 if (! f)
6121 return 1;
6122 if (((long int) (sizeof (void *))) < 0)
6123 {
6124 long int i = longval ();
6125 if (i != ((long int) (sizeof (void *))))
6126 return 1;
6127 fprintf (f, "%ld", i);
6128 }
6129 else
6130 {
6131 unsigned long int i = ulongval ();
6132 if (i != ((long int) (sizeof (void *))))
6133 return 1;
6134 fprintf (f, "%lu", i);
6135 }
6136 /* Do not output a trailing newline, as this causes \r\n confusion
6137 on some platforms. */
6138 return ferror (f) || fclose (f) != 0;
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 rm -f conftest$ac_exeext
6145 if { (ac_try="$ac_link"
6146 case "(($ac_try" in
6147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6149 esac
6150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6151 $as_echo "$ac_try_echo") >&5
6152 (eval "$ac_link") 2>&5
6153 ac_status=$?
6154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6156 { (case "(($ac_try" in
6157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158 *) ac_try_echo=$ac_try;;
6159 esac
6160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6161 $as_echo "$ac_try_echo") >&5
6162 (eval "$ac_try") 2>&5
6163 ac_status=$?
6164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); }; }; then
6166 ac_cv_sizeof_void_p=`cat conftest.val`
6167 else
6168 $as_echo "$as_me: program exited with status $ac_status" >&5
6169 $as_echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6172 ( exit $ac_status )
6173 if test "$ac_cv_type_void_p" = yes; then
6174 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
6175 See \`config.log' for more details." >&5
6176 $as_echo "$as_me: error: cannot compute sizeof (void *)
6177 See \`config.log' for more details." >&2;}
6178 { (exit 77); exit 77; }; }
6179 else
6180 ac_cv_sizeof_void_p=0
6181 fi
6182 fi
6183 rm -rf conftest.dSYM
6184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6185 fi
6186 rm -f conftest.val
6187 fi
6188 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
6189 $as_echo "$ac_cv_sizeof_void_p" >&6; }
6193 cat >>confdefs.h <<_ACEOF
6194 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
6195 _ACEOF
6198 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6199 $as_echo_n "checking for ANSI C header files... " >&6; }
6200 if test "${ac_cv_header_stdc+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6202 else
6203 cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 #include <stdlib.h>
6210 #include <stdarg.h>
6211 #include <string.h>
6212 #include <float.h>
6214 int
6215 main ()
6216 {
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (ac_try="$ac_compile"
6224 case "(($ac_try" in
6225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226 *) ac_try_echo=$ac_try;;
6227 esac
6228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6229 $as_echo "$ac_try_echo") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6231 ac_status=$?
6232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
6235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 ac_cv_header_stdc=yes
6241 else
6242 $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 ac_cv_header_stdc=no
6246 fi
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250 if test $ac_cv_header_stdc = yes; then
6251 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h. */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 #include <string.h>
6260 _ACEOF
6261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6262 $EGREP "memchr" >/dev/null 2>&1; then
6263 :
6264 else
6265 ac_cv_header_stdc=no
6266 fi
6267 rm -f conftest*
6269 fi
6271 if test $ac_cv_header_stdc = yes; then
6272 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6273 cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h. */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 #include <stdlib.h>
6281 _ACEOF
6282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6283 $EGREP "free" >/dev/null 2>&1; then
6284 :
6285 else
6286 ac_cv_header_stdc=no
6287 fi
6288 rm -f conftest*
6290 fi
6292 if test $ac_cv_header_stdc = yes; then
6293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6294 if test "$cross_compiling" = yes; then
6295 :
6296 else
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 #include <ctype.h>
6304 #include <stdlib.h>
6305 #if ((' ' & 0x0FF) == 0x020)
6306 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6307 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6308 #else
6309 # define ISLOWER(c) \
6310 (('a' <= (c) && (c) <= 'i') \
6311 || ('j' <= (c) && (c) <= 'r') \
6312 || ('s' <= (c) && (c) <= 'z'))
6313 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6314 #endif
6316 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6317 int
6318 main ()
6319 {
6320 int i;
6321 for (i = 0; i < 256; i++)
6322 if (XOR (islower (i), ISLOWER (i))
6323 || toupper (i) != TOUPPER (i))
6324 return 2;
6325 return 0;
6326 }
6327 _ACEOF
6328 rm -f conftest$ac_exeext
6329 if { (ac_try="$ac_link"
6330 case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333 esac
6334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6335 $as_echo "$ac_try_echo") >&5
6336 (eval "$ac_link") 2>&5
6337 ac_status=$?
6338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6340 { (case "(($ac_try" in
6341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6343 esac
6344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6345 $as_echo "$ac_try_echo") >&5
6346 (eval "$ac_try") 2>&5
6347 ac_status=$?
6348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); }; }; then
6350 :
6351 else
6352 $as_echo "$as_me: program exited with status $ac_status" >&5
6353 $as_echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6356 ( exit $ac_status )
6357 ac_cv_header_stdc=no
6358 fi
6359 rm -rf conftest.dSYM
6360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6361 fi
6364 fi
6365 fi
6366 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6367 $as_echo "$ac_cv_header_stdc" >&6; }
6368 if test $ac_cv_header_stdc = yes; then
6370 cat >>confdefs.h <<\_ACEOF
6371 #define STDC_HEADERS 1
6372 _ACEOF
6374 fi
6376 # Make sure we can run config.sub.
6377 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6378 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6379 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6380 { (exit 1); exit 1; }; }
6382 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6383 $as_echo_n "checking build system type... " >&6; }
6384 if test "${ac_cv_build+set}" = set; then
6385 $as_echo_n "(cached) " >&6
6386 else
6387 ac_build_alias=$build_alias
6388 test "x$ac_build_alias" = x &&
6389 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6390 test "x$ac_build_alias" = x &&
6391 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6392 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6393 { (exit 1); exit 1; }; }
6394 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6395 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
6396 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
6397 { (exit 1); exit 1; }; }
6399 fi
6400 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6401 $as_echo "$ac_cv_build" >&6; }
6402 case $ac_cv_build in
6403 *-*-*) ;;
6404 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6405 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6406 { (exit 1); exit 1; }; };;
6407 esac
6408 build=$ac_cv_build
6409 ac_save_IFS=$IFS; IFS='-'
6410 set x $ac_cv_build
6411 shift
6412 build_cpu=$1
6413 build_vendor=$2
6414 shift; shift
6415 # Remember, the first character of IFS is used to create $*,
6416 # except with old shells:
6417 build_os=$*
6418 IFS=$ac_save_IFS
6419 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6422 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6423 $as_echo_n "checking host system type... " >&6; }
6424 if test "${ac_cv_host+set}" = set; then
6425 $as_echo_n "(cached) " >&6
6426 else
6427 if test "x$host_alias" = x; then
6428 ac_cv_host=$ac_cv_build
6429 else
6430 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6431 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
6432 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6433 { (exit 1); exit 1; }; }
6434 fi
6436 fi
6437 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6438 $as_echo "$ac_cv_host" >&6; }
6439 case $ac_cv_host in
6440 *-*-*) ;;
6441 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
6442 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
6443 { (exit 1); exit 1; }; };;
6444 esac
6445 host=$ac_cv_host
6446 ac_save_IFS=$IFS; IFS='-'
6447 set x $ac_cv_host
6448 shift
6449 host_cpu=$1
6450 host_vendor=$2
6451 shift; shift
6452 # Remember, the first character of IFS is used to create $*,
6453 # except with old shells:
6454 host_os=$*
6455 IFS=$ac_save_IFS
6456 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6459 # Check whether --enable-trace was given.
6460 if test "${enable_trace+set}" = set; then
6461 enableval=$enable_trace; if test "$enableval" == "yes"; then
6463 cat >>confdefs.h <<\_ACEOF
6464 #define ENABLE_TRACE_IO 1
6465 _ACEOF
6467 fi
6468 fi
6470 # Check whether --enable-watch was given.
6471 if test "${enable_watch+set}" = set; then
6472 enableval=$enable_watch; if test "$enableval" == "yes"; then
6474 cat >>confdefs.h <<\_ACEOF
6475 #define ENABLE_WATCH 1
6476 _ACEOF
6478 fi
6479 fi
6481 # Check whether --enable-sh4stats was given.
6482 if test "${enable_sh4stats+set}" = set; then
6483 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
6485 cat >>confdefs.h <<\_ACEOF
6486 #define ENABLE_SH4STATS 1
6487 _ACEOF
6489 fi
6490 fi
6493 # Check whether --with-osmesa was given.
6494 if test "${with_osmesa+set}" = set; then
6495 withval=$with_osmesa;
6496 else
6497 with_osmesa=no
6498 fi
6501 # Check whether --with-gtk was given.
6502 if test "${with_gtk+set}" = set; then
6503 withval=$with_gtk; with_gtk=yes
6504 else
6505 with_gtk=x11
6506 fi
6510 lxdream_save_cppflags="$CPPFLAGS"
6511 CPPFLAGS="$CPPFLAGS -x objective-c"
6512 cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h. */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518 @interface Foo @end
6519 int
6520 main ()
6521 {
6523 ;
6524 return 0;
6525 }
6526 _ACEOF
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6529 case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6532 esac
6533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6534 $as_echo "$ac_try_echo") >&5
6535 (eval "$ac_compile") 2>conftest.er1
6536 ac_status=$?
6537 grep -v '^ *+' conftest.er1 >conftest.err
6538 rm -f conftest.er1
6539 cat conftest.err >&5
6540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } && {
6542 test -z "$ac_c_werror_flag" ||
6543 test ! -s conftest.err
6544 } && test -s conftest.$ac_objext; then
6547 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6548 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6549 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6550 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6551 $as_echo_n "(cached) " >&6
6552 fi
6553 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6554 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6555 else
6556 # Is the header compilable?
6557 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h usability" >&5
6558 $as_echo_n "checking Cocoa/Cocoa.h usability... " >&6; }
6559 cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565 $ac_includes_default
6566 #include <Cocoa/Cocoa.h>
6567 _ACEOF
6568 rm -f conftest.$ac_objext
6569 if { (ac_try="$ac_compile"
6570 case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573 esac
6574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6575 $as_echo "$ac_try_echo") >&5
6576 (eval "$ac_compile") 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && {
6583 test -z "$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 } && test -s conftest.$ac_objext; then
6586 ac_header_compiler=yes
6587 else
6588 $as_echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 ac_header_compiler=no
6592 fi
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6596 $as_echo "$ac_header_compiler" >&6; }
6598 # Is the header present?
6599 { $as_echo "$as_me:$LINENO: checking Cocoa/Cocoa.h presence" >&5
6600 $as_echo_n "checking Cocoa/Cocoa.h presence... " >&6; }
6601 cat >conftest.$ac_ext <<_ACEOF
6602 /* confdefs.h. */
6603 _ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6607 #include <Cocoa/Cocoa.h>
6608 _ACEOF
6609 if { (ac_try="$ac_cpp conftest.$ac_ext"
6610 case "(($ac_try" in
6611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6612 *) ac_try_echo=$ac_try;;
6613 esac
6614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6615 $as_echo "$ac_try_echo") >&5
6616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6617 ac_status=$?
6618 grep -v '^ *+' conftest.er1 >conftest.err
6619 rm -f conftest.er1
6620 cat conftest.err >&5
6621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } >/dev/null && {
6623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 }; then
6626 ac_header_preproc=yes
6627 else
6628 $as_echo "$as_me: failed program was:" >&5
6629 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_header_preproc=no
6632 fi
6634 rm -f conftest.err conftest.$ac_ext
6635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6636 $as_echo "$ac_header_preproc" >&6; }
6638 # So? What about this header?
6639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6640 yes:no: )
6641 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&5
6642 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6643 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&5
6644 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the compiler's result" >&2;}
6645 ac_header_preproc=yes
6646 ;;
6647 no:yes:* )
6648 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&5
6649 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: present but cannot be compiled" >&2;}
6650 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&5
6651 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: check for missing prerequisite headers?" >&2;}
6652 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&5
6653 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: see the Autoconf documentation" >&2;}
6654 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&5
6655 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: section \"Present But Cannot Be Compiled\"" >&2;}
6656 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&5
6657 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: proceeding with the preprocessor's result" >&2;}
6658 { $as_echo "$as_me:$LINENO: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&5
6659 $as_echo "$as_me: WARNING: Cocoa/Cocoa.h: in the future, the compiler will take precedence" >&2;}
6661 ;;
6662 esac
6663 { $as_echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
6664 $as_echo_n "checking for Cocoa/Cocoa.h... " >&6; }
6665 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
6666 $as_echo_n "(cached) " >&6
6667 else
6668 ac_cv_header_Cocoa_Cocoa_h=$ac_header_preproc
6669 fi
6670 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
6671 $as_echo "$ac_cv_header_Cocoa_Cocoa_h" >&6; }
6673 fi
6674 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
6676 HAVE_COCOA='yes'
6677 APPLE_BUILD='yes'
6678 LIBS="$LIBS -framework AppKit"
6679 LIBS="$LIBS -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -framework OpenGL"
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_COCOA 1
6683 _ACEOF
6686 cat >>confdefs.h <<\_ACEOF
6687 #define APPLE_BUILD 1
6688 _ACEOF
6691 fi
6695 if test "x$with_gtk" = "xx11"; then
6696 with_gtk=no
6697 fi
6700 else
6701 $as_echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6704 CPPFLAGS="$lxdream_save_cppflags"
6705 fi
6707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
6711 GUI_COCOA_TRUE=
6712 GUI_COCOA_FALSE='#'
6713 else
6714 GUI_COCOA_TRUE='#'
6715 GUI_COCOA_FALSE=
6716 fi
6721 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6725 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6728 $as_echo_n "(cached) " >&6
6729 else
6730 case $PKG_CONFIG in
6731 [\\/]* | ?:[\\/]*)
6732 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6733 ;;
6734 *)
6735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6736 for as_dir in $PATH
6737 do
6738 IFS=$as_save_IFS
6739 test -z "$as_dir" && as_dir=.
6740 for ac_exec_ext in '' $ac_executable_extensions; do
6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6742 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6743 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6744 break 2
6745 fi
6746 done
6747 done
6748 IFS=$as_save_IFS
6750 ;;
6751 esac
6752 fi
6753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6754 if test -n "$PKG_CONFIG"; then
6755 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6756 $as_echo "$PKG_CONFIG" >&6; }
6757 else
6758 { $as_echo "$as_me:$LINENO: result: no" >&5
6759 $as_echo "no" >&6; }
6760 fi
6763 fi
6764 if test -z "$ac_cv_path_PKG_CONFIG"; then
6765 ac_pt_PKG_CONFIG=$PKG_CONFIG
6766 # Extract the first word of "pkg-config", so it can be a program name with args.
6767 set dummy pkg-config; ac_word=$2
6768 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6769 $as_echo_n "checking for $ac_word... " >&6; }
6770 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6771 $as_echo_n "(cached) " >&6
6772 else
6773 case $ac_pt_PKG_CONFIG in
6774 [\\/]* | ?:[\\/]*)
6775 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6776 ;;
6777 *)
6778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6779 for as_dir in $PATH
6780 do
6781 IFS=$as_save_IFS
6782 test -z "$as_dir" && as_dir=.
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6785 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 break 2
6788 fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6793 ;;
6794 esac
6795 fi
6796 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6797 if test -n "$ac_pt_PKG_CONFIG"; then
6798 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6799 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6800 else
6801 { $as_echo "$as_me:$LINENO: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6805 if test "x$ac_pt_PKG_CONFIG" = x; then
6806 PKG_CONFIG=""
6807 else
6808 case $cross_compiling:$ac_tool_warned in
6809 yes:)
6810 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6811 whose name does not start with the host triplet. If you think this
6812 configuration is useful to you, please write to autoconf@gnu.org." >&5
6813 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6814 whose name does not start with the host triplet. If you think this
6815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818 PKG_CONFIG=$ac_pt_PKG_CONFIG
6819 fi
6820 else
6821 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6822 fi
6824 fi
6825 if test -n "$PKG_CONFIG"; then
6826 _pkg_min_version=0.9.0
6827 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6828 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6829 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6830 { $as_echo "$as_me:$LINENO: result: yes" >&5
6831 $as_echo "yes" >&6; }
6832 else
6833 { $as_echo "$as_me:$LINENO: result: no" >&5
6834 $as_echo "no" >&6; }
6835 PKG_CONFIG=""
6836 fi
6838 fi
6840 pkg_failed=no
6841 { $as_echo "$as_me:$LINENO: checking for LIBPNG" >&5
6842 $as_echo_n "checking for LIBPNG... " >&6; }
6844 if test -n "$PKG_CONFIG"; then
6845 if test -n "$LIBPNG_CFLAGS"; then
6846 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
6847 else
6848 if test -n "$PKG_CONFIG" && \
6849 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6850 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6851 ac_status=$?
6852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; then
6854 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
6855 else
6856 pkg_failed=yes
6857 fi
6858 fi
6859 else
6860 pkg_failed=untried
6861 fi
6862 if test -n "$PKG_CONFIG"; then
6863 if test -n "$LIBPNG_LIBS"; then
6864 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
6865 else
6866 if test -n "$PKG_CONFIG" && \
6867 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
6868 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
6869 ac_status=$?
6870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; then
6872 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
6873 else
6874 pkg_failed=yes
6875 fi
6876 fi
6877 else
6878 pkg_failed=untried
6879 fi
6883 if test $pkg_failed = yes; then
6885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6886 _pkg_short_errors_supported=yes
6887 else
6888 _pkg_short_errors_supported=no
6889 fi
6890 if test $_pkg_short_errors_supported = yes; then
6891 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
6892 else
6893 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
6894 fi
6895 # Put the nasty error message in config.log where it belongs
6896 echo "$LIBPNG_PKG_ERRORS" >&5
6898 { { $as_echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
6900 $LIBPNG_PKG_ERRORS
6902 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6903 installed software in a non-standard prefix.
6905 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6906 and LIBPNG_LIBS to avoid the need to call pkg-config.
6907 See the pkg-config man page for more details.
6908 " >&5
6909 $as_echo "$as_me: error: Package requirements (libpng ) were not met:
6911 $LIBPNG_PKG_ERRORS
6913 Consider adjusting the PKG_CONFIG_PATH environment variable if you
6914 installed software in a non-standard prefix.
6916 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6917 and LIBPNG_LIBS to avoid the need to call pkg-config.
6918 See the pkg-config man page for more details.
6919 " >&2;}
6920 { (exit 1); exit 1; }; }
6921 elif test $pkg_failed = untried; then
6922 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
6923 is in your PATH or set the PKG_CONFIG environment variable to the full
6924 path to pkg-config.
6926 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6927 and LIBPNG_LIBS to avoid the need to call pkg-config.
6928 See the pkg-config man page for more details.
6930 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6931 See \`config.log' for more details." >&5
6932 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
6933 is in your PATH or set the PKG_CONFIG environment variable to the full
6934 path to pkg-config.
6936 Alternatively, you may set the environment variables LIBPNG_CFLAGS
6937 and LIBPNG_LIBS to avoid the need to call pkg-config.
6938 See the pkg-config man page for more details.
6940 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6941 See \`config.log' for more details." >&2;}
6942 { (exit 1); exit 1; }; }
6943 else
6944 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
6945 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
6946 { $as_echo "$as_me:$LINENO: result: yes" >&5
6947 $as_echo "yes" >&6; }
6948 :
6949 fi
6952 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
6953 $as_echo_n "checking for uncompress in -lz... " >&6; }
6954 if test "${ac_cv_lib_z_uncompress+set}" = set; then
6955 $as_echo_n "(cached) " >&6
6956 else
6957 ac_check_lib_save_LIBS=$LIBS
6958 LIBS="-lz $LIBS"
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h. */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6966 /* Override any GCC internal prototype to avoid an error.
6967 Use char because int might match the return type of a GCC
6968 builtin and then its argument prototype would still apply. */
6969 #ifdef __cplusplus
6970 extern "C"
6971 #endif
6972 char uncompress ();
6973 int
6974 main ()
6975 {
6976 return uncompress ();
6977 ;
6978 return 0;
6979 }
6980 _ACEOF
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (ac_try="$ac_link"
6983 case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6988 $as_echo "$ac_try_echo") >&5
6989 (eval "$ac_link") 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } && {
6996 test -z "$ac_c_werror_flag" ||
6997 test ! -s conftest.err
6998 } && test -s conftest$ac_exeext && {
6999 test "$cross_compiling" = yes ||
7000 $as_test_x conftest$ac_exeext
7001 }; then
7002 ac_cv_lib_z_uncompress=yes
7003 else
7004 $as_echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ac_cv_lib_z_uncompress=no
7008 fi
7010 rm -rf conftest.dSYM
7011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7012 conftest$ac_exeext conftest.$ac_ext
7013 LIBS=$ac_check_lib_save_LIBS
7014 fi
7015 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
7016 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
7017 if test $ac_cv_lib_z_uncompress = yes; then
7018 cat >>confdefs.h <<_ACEOF
7019 #define HAVE_LIBZ 1
7020 _ACEOF
7022 LIBS="-lz $LIBS"
7024 else
7026 echo "Zlib (libz.so) could not be found, but is required."
7027 exit 1
7028 fi
7031 if test "x$with_gtk" = "xno"; then
7033 pkg_failed=no
7034 { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
7035 $as_echo_n "checking for GLIB... " >&6; }
7037 if test -n "$PKG_CONFIG"; then
7038 if test -n "$GLIB_CFLAGS"; then
7039 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
7040 else
7041 if test -n "$PKG_CONFIG" && \
7042 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7043 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7044 ac_status=$?
7045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; then
7047 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
7048 else
7049 pkg_failed=yes
7050 fi
7051 fi
7052 else
7053 pkg_failed=untried
7054 fi
7055 if test -n "$PKG_CONFIG"; then
7056 if test -n "$GLIB_LIBS"; then
7057 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
7058 else
7059 if test -n "$PKG_CONFIG" && \
7060 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
7061 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7062 ac_status=$?
7063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; then
7065 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
7066 else
7067 pkg_failed=yes
7068 fi
7069 fi
7070 else
7071 pkg_failed=untried
7072 fi
7076 if test $pkg_failed = yes; then
7078 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7079 _pkg_short_errors_supported=yes
7080 else
7081 _pkg_short_errors_supported=no
7082 fi
7083 if test $_pkg_short_errors_supported = yes; then
7084 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
7085 else
7086 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
7087 fi
7088 # Put the nasty error message in config.log where it belongs
7089 echo "$GLIB_PKG_ERRORS" >&5
7091 { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
7093 $GLIB_PKG_ERRORS
7095 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7096 installed software in a non-standard prefix.
7098 Alternatively, you may set the environment variables GLIB_CFLAGS
7099 and GLIB_LIBS to avoid the need to call pkg-config.
7100 See the pkg-config man page for more details.
7101 " >&5
7102 $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
7104 $GLIB_PKG_ERRORS
7106 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7107 installed software in a non-standard prefix.
7109 Alternatively, you may set the environment variables GLIB_CFLAGS
7110 and GLIB_LIBS to avoid the need to call pkg-config.
7111 See the pkg-config man page for more details.
7112 " >&2;}
7113 { (exit 1); exit 1; }; }
7114 elif test $pkg_failed = untried; then
7115 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7116 is in your PATH or set the PKG_CONFIG environment variable to the full
7117 path to pkg-config.
7119 Alternatively, you may set the environment variables GLIB_CFLAGS
7120 and GLIB_LIBS to avoid the need to call pkg-config.
7121 See the pkg-config man page for more details.
7123 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7124 See \`config.log' for more details." >&5
7125 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7126 is in your PATH or set the PKG_CONFIG environment variable to the full
7127 path to pkg-config.
7129 Alternatively, you may set the environment variables GLIB_CFLAGS
7130 and GLIB_LIBS to avoid the need to call pkg-config.
7131 See the pkg-config man page for more details.
7133 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7134 See \`config.log' for more details." >&2;}
7135 { (exit 1); exit 1; }; }
7136 else
7137 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
7138 GLIB_LIBS=$pkg_cv_GLIB_LIBS
7139 { $as_echo "$as_me:$LINENO: result: yes" >&5
7140 $as_echo "yes" >&6; }
7141 :
7142 fi
7143 else
7145 pkg_failed=no
7146 { $as_echo "$as_me:$LINENO: checking for GTK" >&5
7147 $as_echo_n "checking for GTK... " >&6; }
7149 if test -n "$PKG_CONFIG"; then
7150 if test -n "$GTK_CFLAGS"; then
7151 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7152 else
7153 if test -n "$PKG_CONFIG" && \
7154 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7155 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7156 ac_status=$?
7157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); }; then
7159 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
7160 else
7161 pkg_failed=yes
7162 fi
7163 fi
7164 else
7165 pkg_failed=untried
7166 fi
7167 if test -n "$PKG_CONFIG"; then
7168 if test -n "$GTK_LIBS"; then
7169 pkg_cv_GTK_LIBS="$GTK_LIBS"
7170 else
7171 if test -n "$PKG_CONFIG" && \
7172 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
7173 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7174 ac_status=$?
7175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; then
7177 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
7178 else
7179 pkg_failed=yes
7180 fi
7181 fi
7182 else
7183 pkg_failed=untried
7184 fi
7188 if test $pkg_failed = yes; then
7190 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7191 _pkg_short_errors_supported=yes
7192 else
7193 _pkg_short_errors_supported=no
7194 fi
7195 if test $_pkg_short_errors_supported = yes; then
7196 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
7197 else
7198 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
7199 fi
7200 # Put the nasty error message in config.log where it belongs
7201 echo "$GTK_PKG_ERRORS" >&5
7203 { { $as_echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
7205 $GTK_PKG_ERRORS
7207 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7208 installed software in a non-standard prefix.
7210 Alternatively, you may set the environment variables GTK_CFLAGS
7211 and GTK_LIBS to avoid the need to call pkg-config.
7212 See the pkg-config man page for more details.
7213 " >&5
7214 $as_echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
7216 $GTK_PKG_ERRORS
7218 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7219 installed software in a non-standard prefix.
7221 Alternatively, you may set the environment variables GTK_CFLAGS
7222 and GTK_LIBS to avoid the need to call pkg-config.
7223 See the pkg-config man page for more details.
7224 " >&2;}
7225 { (exit 1); exit 1; }; }
7226 elif test $pkg_failed = untried; then
7227 { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
7228 is in your PATH or set the PKG_CONFIG environment variable to the full
7229 path to pkg-config.
7231 Alternatively, you may set the environment variables GTK_CFLAGS
7232 and GTK_LIBS to avoid the need to call pkg-config.
7233 See the pkg-config man page for more details.
7235 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7236 See \`config.log' for more details." >&5
7237 $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
7238 is in your PATH or set the PKG_CONFIG environment variable to the full
7239 path to pkg-config.
7241 Alternatively, you may set the environment variables GTK_CFLAGS
7242 and GTK_LIBS to avoid the need to call pkg-config.
7243 See the pkg-config man page for more details.
7245 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7246 See \`config.log' for more details." >&2;}
7247 { (exit 1); exit 1; }; }
7248 else
7249 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7250 GTK_LIBS=$pkg_cv_GTK_LIBS
7251 { $as_echo "$as_me:$LINENO: result: yes" >&5
7252 $as_echo "yes" >&6; }
7254 HAVE_GTK='yes'
7256 cat >>confdefs.h <<\_ACEOF
7257 #define HAVE_GTK 1
7258 _ACEOF
7261 fi
7263 LIBS="$LIBS $GTK_LIBS"
7264 { $as_echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
7265 $as_echo_n "checking for gdk_x11_display_get_xdisplay... " >&6; }
7266 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
7267 $as_echo_n "(cached) " >&6
7268 else
7269 cat >conftest.$ac_ext <<_ACEOF
7270 /* confdefs.h. */
7271 _ACEOF
7272 cat confdefs.h >>conftest.$ac_ext
7273 cat >>conftest.$ac_ext <<_ACEOF
7274 /* end confdefs.h. */
7275 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
7276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7277 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
7279 /* System header to define __stub macros and hopefully few prototypes,
7280 which can conflict with char gdk_x11_display_get_xdisplay (); below.
7281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7282 <limits.h> exists even on freestanding compilers. */
7284 #ifdef __STDC__
7285 # include <limits.h>
7286 #else
7287 # include <assert.h>
7288 #endif
7290 #undef gdk_x11_display_get_xdisplay
7292 /* Override any GCC internal prototype to avoid an error.
7293 Use char because int might match the return type of a GCC
7294 builtin and then its argument prototype would still apply. */
7295 #ifdef __cplusplus
7296 extern "C"
7297 #endif
7298 char gdk_x11_display_get_xdisplay ();
7299 /* The GNU C library defines this for functions which it implements
7300 to always fail with ENOSYS. Some functions are actually named
7301 something starting with __ and the normal name is an alias. */
7302 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
7303 choke me
7304 #endif
7306 int
7307 main ()
7308 {
7309 return gdk_x11_display_get_xdisplay ();
7310 ;
7311 return 0;
7312 }
7313 _ACEOF
7314 rm -f conftest.$ac_objext conftest$ac_exeext
7315 if { (ac_try="$ac_link"
7316 case "(($ac_try" in
7317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318 *) ac_try_echo=$ac_try;;
7319 esac
7320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7321 $as_echo "$ac_try_echo") >&5
7322 (eval "$ac_link") 2>conftest.er1
7323 ac_status=$?
7324 grep -v '^ *+' conftest.er1 >conftest.err
7325 rm -f conftest.er1
7326 cat conftest.err >&5
7327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); } && {
7329 test -z "$ac_c_werror_flag" ||
7330 test ! -s conftest.err
7331 } && test -s conftest$ac_exeext && {
7332 test "$cross_compiling" = yes ||
7333 $as_test_x conftest$ac_exeext
7334 }; then
7335 ac_cv_func_gdk_x11_display_get_xdisplay=yes
7336 else
7337 $as_echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_cv_func_gdk_x11_display_get_xdisplay=no
7341 fi
7343 rm -rf conftest.dSYM
7344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7345 conftest$ac_exeext conftest.$ac_ext
7346 fi
7347 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
7348 $as_echo "$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
7349 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
7351 HAVE_GTK_X11='yes'
7353 cat >>confdefs.h <<\_ACEOF
7354 #define HAVE_GTK_X11 1
7355 _ACEOF
7357 fi
7359 { $as_echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
7360 $as_echo_n "checking for gdk_quartz_window_get_nsview... " >&6; }
7361 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
7362 $as_echo_n "(cached) " >&6
7363 else
7364 cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h. */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
7371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7372 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
7374 /* System header to define __stub macros and hopefully few prototypes,
7375 which can conflict with char gdk_quartz_window_get_nsview (); below.
7376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7377 <limits.h> exists even on freestanding compilers. */
7379 #ifdef __STDC__
7380 # include <limits.h>
7381 #else
7382 # include <assert.h>
7383 #endif
7385 #undef gdk_quartz_window_get_nsview
7387 /* Override any GCC internal prototype to avoid an error.
7388 Use char because int might match the return type of a GCC
7389 builtin and then its argument prototype would still apply. */
7390 #ifdef __cplusplus
7391 extern "C"
7392 #endif
7393 char gdk_quartz_window_get_nsview ();
7394 /* The GNU C library defines this for functions which it implements
7395 to always fail with ENOSYS. Some functions are actually named
7396 something starting with __ and the normal name is an alias. */
7397 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
7398 choke me
7399 #endif
7401 int
7402 main ()
7403 {
7404 return gdk_quartz_window_get_nsview ();
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 rm -f conftest.$ac_objext conftest$ac_exeext
7410 if { (ac_try="$ac_link"
7411 case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414 esac
7415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7416 $as_echo "$ac_try_echo") >&5
7417 (eval "$ac_link") 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest$ac_exeext && {
7427 test "$cross_compiling" = yes ||
7428 $as_test_x conftest$ac_exeext
7429 }; then
7430 ac_cv_func_gdk_quartz_window_get_nsview=yes
7431 else
7432 $as_echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_cv_func_gdk_quartz_window_get_nsview=no
7436 fi
7438 rm -rf conftest.dSYM
7439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7440 conftest$ac_exeext conftest.$ac_ext
7441 fi
7442 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
7443 $as_echo "$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
7444 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
7446 HAVE_GTK_OSX='yes'
7448 cat >>confdefs.h <<\_ACEOF
7449 #define HAVE_GTK_OSX 1
7450 _ACEOF
7452 fi
7454 fi
7458 if test "$HAVE_GTK" = 'yes'; then
7459 GUI_GTK_TRUE=
7460 GUI_GTK_FALSE='#'
7461 else
7462 GUI_GTK_TRUE='#'
7463 GUI_GTK_FALSE=
7464 fi
7467 if test "x$with_osmesa" != xno; then
7471 { $as_echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
7472 $as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; }
7473 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
7474 $as_echo_n "(cached) " >&6
7475 else
7476 ac_check_lib_save_LIBS=$LIBS
7477 LIBS="-lOSMesa $LIBS"
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7485 /* Override any GCC internal prototype to avoid an error.
7486 Use char because int might match the return type of a GCC
7487 builtin and then its argument prototype would still apply. */
7488 #ifdef __cplusplus
7489 extern "C"
7490 #endif
7491 char OSMesaCreateContext ();
7492 int
7493 main ()
7494 {
7495 return OSMesaCreateContext ();
7496 ;
7497 return 0;
7498 }
7499 _ACEOF
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (ac_try="$ac_link"
7502 case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505 esac
7506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7507 $as_echo "$ac_try_echo") >&5
7508 (eval "$ac_link") 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest$ac_exeext && {
7518 test "$cross_compiling" = yes ||
7519 $as_test_x conftest$ac_exeext
7520 }; then
7521 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
7522 else
7523 $as_echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 ac_cv_lib_OSMesa_OSMesaCreateContext=no
7527 fi
7529 rm -rf conftest.dSYM
7530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7531 conftest$ac_exeext conftest.$ac_ext
7532 LIBS=$ac_check_lib_save_LIBS
7533 fi
7534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
7535 $as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
7536 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
7537 cat >>confdefs.h <<_ACEOF
7538 #define HAVE_LIBOSMESA 1
7539 _ACEOF
7541 LIBS="-lOSMesa $LIBS"
7543 else
7544 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
7545 See \`config.log' for more details." >&5
7546 $as_echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
7547 See \`config.log' for more details." >&2;}
7548 { (exit 1); exit 1; }; }
7549 fi
7551 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7552 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7553 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7554 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7555 $as_echo_n "(cached) " >&6
7556 fi
7557 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7558 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7559 else
7560 # Is the header compilable?
7561 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
7562 $as_echo_n "checking GL/osmesa.h usability... " >&6; }
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 $ac_includes_default
7570 #include <GL/osmesa.h>
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7574 case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7577 esac
7578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7579 $as_echo "$ac_try_echo") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_header_compiler=yes
7591 else
7592 $as_echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 ac_header_compiler=no
7596 fi
7598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7600 $as_echo "$ac_header_compiler" >&6; }
7602 # Is the header present?
7603 { $as_echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
7604 $as_echo_n "checking GL/osmesa.h presence... " >&6; }
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h. */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <GL/osmesa.h>
7612 _ACEOF
7613 if { (ac_try="$ac_cpp conftest.$ac_ext"
7614 case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617 esac
7618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7619 $as_echo "$ac_try_echo") >&5
7620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } >/dev/null && {
7627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7629 }; then
7630 ac_header_preproc=yes
7631 else
7632 $as_echo "$as_me: failed program was:" >&5
7633 sed 's/^/| /' conftest.$ac_ext >&5
7635 ac_header_preproc=no
7636 fi
7638 rm -f conftest.err conftest.$ac_ext
7639 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7640 $as_echo "$ac_header_preproc" >&6; }
7642 # So? What about this header?
7643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7644 yes:no: )
7645 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
7646 $as_echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7647 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
7648 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
7649 ac_header_preproc=yes
7650 ;;
7651 no:yes:* )
7652 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
7653 $as_echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
7654 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
7655 $as_echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
7656 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
7657 $as_echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
7658 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
7659 $as_echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
7660 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
7661 $as_echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
7662 { $as_echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
7663 $as_echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
7665 ;;
7666 esac
7667 { $as_echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
7668 $as_echo_n "checking for GL/osmesa.h... " >&6; }
7669 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
7670 $as_echo_n "(cached) " >&6
7671 else
7672 ac_cv_header_GL_osmesa_h=$ac_header_preproc
7673 fi
7674 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
7675 $as_echo "$ac_cv_header_GL_osmesa_h" >&6; }
7677 fi
7678 if test $ac_cv_header_GL_osmesa_h = yes; then
7679 :
7680 else
7681 { { $as_echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
7682 See \`config.log' for more details." >&5
7683 $as_echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
7684 See \`config.log' for more details." >&2;}
7685 { (exit 1); exit 1; }; }
7686 fi
7689 HAVE_OSMESA='yes'
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_OSMESA 1
7693 _ACEOF
7695 else
7698 if test "x$APPLE_BUILD" != 'xyes'; then
7700 { $as_echo "$as_me:$LINENO: checking for glVertex3f in -lGL" >&5
7701 $as_echo_n "checking for glVertex3f in -lGL... " >&6; }
7702 if test "${ac_cv_lib_GL_glVertex3f+set}" = set; then
7703 $as_echo_n "(cached) " >&6
7704 else
7705 ac_check_lib_save_LIBS=$LIBS
7706 LIBS="-lGL $LIBS"
7707 cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h. */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7714 /* Override any GCC internal prototype to avoid an error.
7715 Use char because int might match the return type of a GCC
7716 builtin and then its argument prototype would still apply. */
7717 #ifdef __cplusplus
7718 extern "C"
7719 #endif
7720 char glVertex3f ();
7721 int
7722 main ()
7723 {
7724 return glVertex3f ();
7725 ;
7726 return 0;
7727 }
7728 _ACEOF
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7731 case "(($ac_try" in
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7734 esac
7735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7736 $as_echo "$ac_try_echo") >&5
7737 (eval "$ac_link") 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest$ac_exeext && {
7747 test "$cross_compiling" = yes ||
7748 $as_test_x conftest$ac_exeext
7749 }; then
7750 ac_cv_lib_GL_glVertex3f=yes
7751 else
7752 $as_echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7755 ac_cv_lib_GL_glVertex3f=no
7756 fi
7758 rm -rf conftest.dSYM
7759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7760 conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7762 fi
7763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glVertex3f" >&5
7764 $as_echo "$ac_cv_lib_GL_glVertex3f" >&6; }
7765 if test $ac_cv_lib_GL_glVertex3f = yes; then
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_LIBGL 1
7768 _ACEOF
7770 LIBS="-lGL $LIBS"
7772 else
7774 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7775 See \`config.log' for more details." >&5
7776 $as_echo "$as_me: error: \"The OpenGL library (libGL.so) could not be found, but is required.\"
7777 See \`config.log' for more details." >&2;}
7778 { (exit 1); exit 1; }; }
7779 fi
7781 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7782 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7783 $as_echo_n "checking for GL/gl.h... " >&6; }
7784 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7785 $as_echo_n "(cached) " >&6
7786 fi
7787 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7788 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7789 else
7790 # Is the header compilable?
7791 { $as_echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
7792 $as_echo_n "checking GL/gl.h usability... " >&6; }
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h. */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 $ac_includes_default
7800 #include <GL/gl.h>
7801 _ACEOF
7802 rm -f conftest.$ac_objext
7803 if { (ac_try="$ac_compile"
7804 case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807 esac
7808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7809 $as_echo "$ac_try_echo") >&5
7810 (eval "$ac_compile") 2>conftest.er1
7811 ac_status=$?
7812 grep -v '^ *+' conftest.er1 >conftest.err
7813 rm -f conftest.er1
7814 cat conftest.err >&5
7815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && {
7817 test -z "$ac_c_werror_flag" ||
7818 test ! -s conftest.err
7819 } && test -s conftest.$ac_objext; then
7820 ac_header_compiler=yes
7821 else
7822 $as_echo "$as_me: failed program was:" >&5
7823 sed 's/^/| /' conftest.$ac_ext >&5
7825 ac_header_compiler=no
7826 fi
7828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7830 $as_echo "$ac_header_compiler" >&6; }
7832 # Is the header present?
7833 { $as_echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
7834 $as_echo_n "checking GL/gl.h presence... " >&6; }
7835 cat >conftest.$ac_ext <<_ACEOF
7836 /* confdefs.h. */
7837 _ACEOF
7838 cat confdefs.h >>conftest.$ac_ext
7839 cat >>conftest.$ac_ext <<_ACEOF
7840 /* end confdefs.h. */
7841 #include <GL/gl.h>
7842 _ACEOF
7843 if { (ac_try="$ac_cpp conftest.$ac_ext"
7844 case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847 esac
7848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7849 $as_echo "$ac_try_echo") >&5
7850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7851 ac_status=$?
7852 grep -v '^ *+' conftest.er1 >conftest.err
7853 rm -f conftest.er1
7854 cat conftest.err >&5
7855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } >/dev/null && {
7857 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7858 test ! -s conftest.err
7859 }; then
7860 ac_header_preproc=yes
7861 else
7862 $as_echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 ac_header_preproc=no
7866 fi
7868 rm -f conftest.err conftest.$ac_ext
7869 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7870 $as_echo "$ac_header_preproc" >&6; }
7872 # So? What about this header?
7873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7874 yes:no: )
7875 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
7876 $as_echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7877 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
7878 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
7879 ac_header_preproc=yes
7880 ;;
7881 no:yes:* )
7882 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
7883 $as_echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
7884 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
7885 $as_echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
7886 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
7887 $as_echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
7888 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
7889 $as_echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
7890 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
7891 $as_echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
7892 { $as_echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
7893 $as_echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
7895 ;;
7896 esac
7897 { $as_echo "$as_me:$LINENO: checking for GL/gl.h" >&5
7898 $as_echo_n "checking for GL/gl.h... " >&6; }
7899 if test "${ac_cv_header_GL_gl_h+set}" = set; then
7900 $as_echo_n "(cached) " >&6
7901 else
7902 ac_cv_header_GL_gl_h=$ac_header_preproc
7903 fi
7904 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
7905 $as_echo "$ac_cv_header_GL_gl_h" >&6; }
7907 fi
7908 if test $ac_cv_header_GL_gl_h = yes; then
7909 :
7910 else
7912 { { $as_echo "$as_me:$LINENO: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7913 See \`config.log' for more details." >&5
7914 $as_echo "$as_me: error: \"The OpenGL header files (eg GL/gl.h) could not be found, but are required.\"
7915 See \`config.log' for more details." >&2;}
7916 { (exit 1); exit 1; }; }
7917 fi
7920 else
7921 { $as_echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
7922 $as_echo_n "checking for NSOpenGLGetVersion... " >&6; }
7923 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
7924 $as_echo_n "(cached) " >&6
7925 else
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h. */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
7933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7934 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
7936 /* System header to define __stub macros and hopefully few prototypes,
7937 which can conflict with char NSOpenGLGetVersion (); below.
7938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7939 <limits.h> exists even on freestanding compilers. */
7941 #ifdef __STDC__
7942 # include <limits.h>
7943 #else
7944 # include <assert.h>
7945 #endif
7947 #undef NSOpenGLGetVersion
7949 /* Override any GCC internal prototype to avoid an error.
7950 Use char because int might match the return type of a GCC
7951 builtin and then its argument prototype would still apply. */
7952 #ifdef __cplusplus
7953 extern "C"
7954 #endif
7955 char NSOpenGLGetVersion ();
7956 /* The GNU C library defines this for functions which it implements
7957 to always fail with ENOSYS. Some functions are actually named
7958 something starting with __ and the normal name is an alias. */
7959 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
7960 choke me
7961 #endif
7963 int
7964 main ()
7965 {
7966 return NSOpenGLGetVersion ();
7967 ;
7968 return 0;
7969 }
7970 _ACEOF
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7973 case "(($ac_try" in
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7976 esac
7977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7978 $as_echo "$ac_try_echo") >&5
7979 (eval "$ac_link") 2>conftest.er1
7980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } && {
7986 test -z "$ac_c_werror_flag" ||
7987 test ! -s conftest.err
7988 } && test -s conftest$ac_exeext && {
7989 test "$cross_compiling" = yes ||
7990 $as_test_x conftest$ac_exeext
7991 }; then
7992 ac_cv_func_NSOpenGLGetVersion=yes
7993 else
7994 $as_echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 ac_cv_func_NSOpenGLGetVersion=no
7998 fi
8000 rm -rf conftest.dSYM
8001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8002 conftest$ac_exeext conftest.$ac_ext
8003 fi
8004 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
8005 $as_echo "$ac_cv_func_NSOpenGLGetVersion" >&6; }
8006 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
8008 HAVE_NSGL='yes'
8010 cat >>confdefs.h <<\_ACEOF
8011 #define HAVE_NSGL 1
8012 _ACEOF
8014 fi
8016 fi
8018 if test "x$HAVE_GTK_X11" = "xyes"; then
8019 if test "x$APPLE_BUILD" = "xyes"; then
8020 LIBS="$LIBS -L/usr/X11/lib -lGL"
8021 fi
8022 { $as_echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
8023 $as_echo_n "checking for glXQueryVersion... " >&6; }
8024 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
8025 $as_echo_n "(cached) " >&6
8026 else
8027 cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h. */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8033 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
8034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8035 #define glXQueryVersion innocuous_glXQueryVersion
8037 /* System header to define __stub macros and hopefully few prototypes,
8038 which can conflict with char glXQueryVersion (); below.
8039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8040 <limits.h> exists even on freestanding compilers. */
8042 #ifdef __STDC__
8043 # include <limits.h>
8044 #else
8045 # include <assert.h>
8046 #endif
8048 #undef glXQueryVersion
8050 /* Override any GCC internal prototype to avoid an error.
8051 Use char because int might match the return type of a GCC
8052 builtin and then its argument prototype would still apply. */
8053 #ifdef __cplusplus
8054 extern "C"
8055 #endif
8056 char glXQueryVersion ();
8057 /* The GNU C library defines this for functions which it implements
8058 to always fail with ENOSYS. Some functions are actually named
8059 something starting with __ and the normal name is an alias. */
8060 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
8061 choke me
8062 #endif
8064 int
8065 main ()
8066 {
8067 return glXQueryVersion ();
8068 ;
8069 return 0;
8070 }
8071 _ACEOF
8072 rm -f conftest.$ac_objext conftest$ac_exeext
8073 if { (ac_try="$ac_link"
8074 case "(($ac_try" in
8075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8077 esac
8078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8079 $as_echo "$ac_try_echo") >&5
8080 (eval "$ac_link") 2>conftest.er1
8081 ac_status=$?
8082 grep -v '^ *+' conftest.er1 >conftest.err
8083 rm -f conftest.er1
8084 cat conftest.err >&5
8085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8086 (exit $ac_status); } && {
8087 test -z "$ac_c_werror_flag" ||
8088 test ! -s conftest.err
8089 } && test -s conftest$ac_exeext && {
8090 test "$cross_compiling" = yes ||
8091 $as_test_x conftest$ac_exeext
8092 }; then
8093 ac_cv_func_glXQueryVersion=yes
8094 else
8095 $as_echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 ac_cv_func_glXQueryVersion=no
8099 fi
8101 rm -rf conftest.dSYM
8102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8103 conftest$ac_exeext conftest.$ac_ext
8104 fi
8105 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
8106 $as_echo "$ac_cv_func_glXQueryVersion" >&6; }
8107 if test $ac_cv_func_glXQueryVersion = yes; then
8109 HAVE_GLX='yes'
8111 cat >>confdefs.h <<\_ACEOF
8112 #define HAVE_GLX 1
8113 _ACEOF
8115 fi
8117 fi
8120 fi
8124 if test "x$HAVE_OSMESA" = "x" -a "x$HAVE_GLX" = "x" -a "x$HAVE_NSGL" = "x"; then
8125 echo "Warning: Building with no video support"
8126 fi
8130 if test "x$HAVE_OSMESA" = "xyes"; then
8131 VIDEO_OSMESA_TRUE=
8132 VIDEO_OSMESA_FALSE='#'
8133 else
8134 VIDEO_OSMESA_TRUE='#'
8135 VIDEO_OSMESA_FALSE=
8136 fi
8140 if test "x$HAVE_GLX" = "xyes"; then
8141 VIDEO_GLX_TRUE=
8142 VIDEO_GLX_FALSE='#'
8143 else
8144 VIDEO_GLX_TRUE='#'
8145 VIDEO_GLX_FALSE=
8146 fi
8150 if test "x$HAVE_NSGL" = "xyes"; then
8151 VIDEO_NSGL_TRUE=
8152 VIDEO_NSGL_FALSE='#'
8153 else
8154 VIDEO_NSGL_TRUE='#'
8155 VIDEO_NSGL_FALSE=
8156 fi
8159 { $as_echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
8160 $as_echo_n "checking for glGenFramebuffersEXT... " >&6; }
8161 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
8162 $as_echo_n "(cached) " >&6
8163 else
8164 cat >conftest.$ac_ext <<_ACEOF
8165 /* confdefs.h. */
8166 _ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8170 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
8171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8172 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
8174 /* System header to define __stub macros and hopefully few prototypes,
8175 which can conflict with char glGenFramebuffersEXT (); below.
8176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8177 <limits.h> exists even on freestanding compilers. */
8179 #ifdef __STDC__
8180 # include <limits.h>
8181 #else
8182 # include <assert.h>
8183 #endif
8185 #undef glGenFramebuffersEXT
8187 /* Override any GCC internal prototype to avoid an error.
8188 Use char because int might match the return type of a GCC
8189 builtin and then its argument prototype would still apply. */
8190 #ifdef __cplusplus
8191 extern "C"
8192 #endif
8193 char glGenFramebuffersEXT ();
8194 /* The GNU C library defines this for functions which it implements
8195 to always fail with ENOSYS. Some functions are actually named
8196 something starting with __ and the normal name is an alias. */
8197 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
8198 choke me
8199 #endif
8201 int
8202 main ()
8203 {
8204 return glGenFramebuffersEXT ();
8205 ;
8206 return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (ac_try="$ac_link"
8211 case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214 esac
8215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8216 $as_echo "$ac_try_echo") >&5
8217 (eval "$ac_link") 2>conftest.er1
8218 ac_status=$?
8219 grep -v '^ *+' conftest.er1 >conftest.err
8220 rm -f conftest.er1
8221 cat conftest.err >&5
8222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } && {
8224 test -z "$ac_c_werror_flag" ||
8225 test ! -s conftest.err
8226 } && test -s conftest$ac_exeext && {
8227 test "$cross_compiling" = yes ||
8228 $as_test_x conftest$ac_exeext
8229 }; then
8230 ac_cv_func_glGenFramebuffersEXT=yes
8231 else
8232 $as_echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
8235 ac_cv_func_glGenFramebuffersEXT=no
8236 fi
8238 rm -rf conftest.dSYM
8239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8240 conftest$ac_exeext conftest.$ac_ext
8241 fi
8242 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
8243 $as_echo "$ac_cv_func_glGenFramebuffersEXT" >&6; }
8244 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
8246 cat >>confdefs.h <<\_ACEOF
8247 #define HAVE_OPENGL_FBO 1
8248 _ACEOF
8250 fi
8252 { $as_echo "$as_me:$LINENO: checking for glCreateShader" >&5
8253 $as_echo_n "checking for glCreateShader... " >&6; }
8254 if test "${ac_cv_func_glCreateShader+set}" = set; then
8255 $as_echo_n "(cached) " >&6
8256 else
8257 cat >conftest.$ac_ext <<_ACEOF
8258 /* confdefs.h. */
8259 _ACEOF
8260 cat confdefs.h >>conftest.$ac_ext
8261 cat >>conftest.$ac_ext <<_ACEOF
8262 /* end confdefs.h. */
8263 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
8264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8265 #define glCreateShader innocuous_glCreateShader
8267 /* System header to define __stub macros and hopefully few prototypes,
8268 which can conflict with char glCreateShader (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
8272 #ifdef __STDC__
8273 # include <limits.h>
8274 #else
8275 # include <assert.h>
8276 #endif
8278 #undef glCreateShader
8280 /* Override any GCC internal prototype to avoid an error.
8281 Use char because int might match the return type of a GCC
8282 builtin and then its argument prototype would still apply. */
8283 #ifdef __cplusplus
8284 extern "C"
8285 #endif
8286 char glCreateShader ();
8287 /* The GNU C library defines this for functions which it implements
8288 to always fail with ENOSYS. Some functions are actually named
8289 something starting with __ and the normal name is an alias. */
8290 #if defined __stub_glCreateShader || defined __stub___glCreateShader
8291 choke me
8292 #endif
8294 int
8295 main ()
8296 {
8297 return glCreateShader ();
8298 ;
8299 return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8304 case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307 esac
8308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8309 $as_echo "$ac_try_echo") >&5
8310 (eval "$ac_link") 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } && {
8317 test -z "$ac_c_werror_flag" ||
8318 test ! -s conftest.err
8319 } && test -s conftest$ac_exeext && {
8320 test "$cross_compiling" = yes ||
8321 $as_test_x conftest$ac_exeext
8322 }; then
8323 ac_cv_func_glCreateShader=yes
8324 else
8325 $as_echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 ac_cv_func_glCreateShader=no
8329 fi
8331 rm -rf conftest.dSYM
8332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8333 conftest$ac_exeext conftest.$ac_ext
8334 fi
8335 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
8336 $as_echo "$ac_cv_func_glCreateShader" >&6; }
8337 if test $ac_cv_func_glCreateShader = yes; then
8339 cat >>confdefs.h <<\_ACEOF
8340 #define HAVE_OPENGL_SHADER 1
8341 _ACEOF
8343 fi
8345 { $as_echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
8346 $as_echo_n "checking for glCreateShaderObjectARB... " >&6; }
8347 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
8348 $as_echo_n "(cached) " >&6
8349 else
8350 cat >conftest.$ac_ext <<_ACEOF
8351 /* confdefs.h. */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
8357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8358 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
8360 /* System header to define __stub macros and hopefully few prototypes,
8361 which can conflict with char glCreateShaderObjectARB (); below.
8362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8363 <limits.h> exists even on freestanding compilers. */
8365 #ifdef __STDC__
8366 # include <limits.h>
8367 #else
8368 # include <assert.h>
8369 #endif
8371 #undef glCreateShaderObjectARB
8373 /* Override any GCC internal prototype to avoid an error.
8374 Use char because int might match the return type of a GCC
8375 builtin and then its argument prototype would still apply. */
8376 #ifdef __cplusplus
8377 extern "C"
8378 #endif
8379 char glCreateShaderObjectARB ();
8380 /* The GNU C library defines this for functions which it implements
8381 to always fail with ENOSYS. Some functions are actually named
8382 something starting with __ and the normal name is an alias. */
8383 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
8384 choke me
8385 #endif
8387 int
8388 main ()
8389 {
8390 return glCreateShaderObjectARB ();
8391 ;
8392 return 0;
8393 }
8394 _ACEOF
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (ac_try="$ac_link"
8397 case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400 esac
8401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8402 $as_echo "$ac_try_echo") >&5
8403 (eval "$ac_link") 2>conftest.er1
8404 ac_status=$?
8405 grep -v '^ *+' conftest.er1 >conftest.err
8406 rm -f conftest.er1
8407 cat conftest.err >&5
8408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8409 (exit $ac_status); } && {
8410 test -z "$ac_c_werror_flag" ||
8411 test ! -s conftest.err
8412 } && test -s conftest$ac_exeext && {
8413 test "$cross_compiling" = yes ||
8414 $as_test_x conftest$ac_exeext
8415 }; then
8416 ac_cv_func_glCreateShaderObjectARB=yes
8417 else
8418 $as_echo "$as_me: failed program was:" >&5
8419 sed 's/^/| /' conftest.$ac_ext >&5
8421 ac_cv_func_glCreateShaderObjectARB=no
8422 fi
8424 rm -rf conftest.dSYM
8425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8426 conftest$ac_exeext conftest.$ac_ext
8427 fi
8428 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
8429 $as_echo "$ac_cv_func_glCreateShaderObjectARB" >&6; }
8430 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
8432 cat >>confdefs.h <<\_ACEOF
8433 #define HAVE_OPENGL_SHADER_ARB 1
8434 _ACEOF
8436 fi
8438 { $as_echo "$as_me:$LINENO: checking for glClampColorARB" >&5
8439 $as_echo_n "checking for glClampColorARB... " >&6; }
8440 if test "${ac_cv_func_glClampColorARB+set}" = set; then
8441 $as_echo_n "(cached) " >&6
8442 else
8443 cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h. */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h. */
8449 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
8450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8451 #define glClampColorARB innocuous_glClampColorARB
8453 /* System header to define __stub macros and hopefully few prototypes,
8454 which can conflict with char glClampColorARB (); below.
8455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8456 <limits.h> exists even on freestanding compilers. */
8458 #ifdef __STDC__
8459 # include <limits.h>
8460 #else
8461 # include <assert.h>
8462 #endif
8464 #undef glClampColorARB
8466 /* Override any GCC internal prototype to avoid an error.
8467 Use char because int might match the return type of a GCC
8468 builtin and then its argument prototype would still apply. */
8469 #ifdef __cplusplus
8470 extern "C"
8471 #endif
8472 char glClampColorARB ();
8473 /* The GNU C library defines this for functions which it implements
8474 to always fail with ENOSYS. Some functions are actually named
8475 something starting with __ and the normal name is an alias. */
8476 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
8477 choke me
8478 #endif
8480 int
8481 main ()
8482 {
8483 return glClampColorARB ();
8484 ;
8485 return 0;
8486 }
8487 _ACEOF
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (ac_try="$ac_link"
8490 case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8493 esac
8494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495 $as_echo "$ac_try_echo") >&5
8496 (eval "$ac_link") 2>conftest.er1
8497 ac_status=$?
8498 grep -v '^ *+' conftest.er1 >conftest.err
8499 rm -f conftest.er1
8500 cat conftest.err >&5
8501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && {
8503 test -z "$ac_c_werror_flag" ||
8504 test ! -s conftest.err
8505 } && test -s conftest$ac_exeext && {
8506 test "$cross_compiling" = yes ||
8507 $as_test_x conftest$ac_exeext
8508 }; then
8509 ac_cv_func_glClampColorARB=yes
8510 else
8511 $as_echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8514 ac_cv_func_glClampColorARB=no
8515 fi
8517 rm -rf conftest.dSYM
8518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8519 conftest$ac_exeext conftest.$ac_ext
8520 fi
8521 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
8522 $as_echo "$ac_cv_func_glClampColorARB" >&6; }
8523 if test $ac_cv_func_glClampColorARB = yes; then
8525 cat >>confdefs.h <<\_ACEOF
8526 #define HAVE_OPENGL_CLAMP_COLOR 1
8527 _ACEOF
8529 fi
8533 case $host_cpu in
8534 i386|i486|i586|i686|x86_64)
8535 SH4_TRANSLATOR="x86"
8537 cat >>confdefs.h <<_ACEOF
8538 #define SH4_TRANSLATOR TARGET_X86
8539 _ACEOF
8540 ;;
8541 *)
8542 echo "Warning: No translator available for $host. Building emulation core only";;
8543 esac
8546 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
8547 BUILD_SH4X86_TRUE=
8548 BUILD_SH4X86_FALSE='#'
8549 else
8550 BUILD_SH4X86_TRUE='#'
8551 BUILD_SH4X86_FALSE=
8552 fi
8556 if test "$SH4_TRANSLATOR" = "x86_64"; then
8557 BUILD_X86_64_TRUE=
8558 BUILD_X86_64_FALSE='#'
8559 else
8560 BUILD_X86_64_TRUE='#'
8561 BUILD_X86_64_FALSE=
8562 fi
8566 pkg_failed=no
8567 { $as_echo "$as_me:$LINENO: checking for PULSE" >&5
8568 $as_echo_n "checking for PULSE... " >&6; }
8570 if test -n "$PKG_CONFIG"; then
8571 if test -n "$PULSE_CFLAGS"; then
8572 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
8573 else
8574 if test -n "$PKG_CONFIG" && \
8575 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8576 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8577 ac_status=$?
8578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; then
8580 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
8581 else
8582 pkg_failed=yes
8583 fi
8584 fi
8585 else
8586 pkg_failed=untried
8587 fi
8588 if test -n "$PKG_CONFIG"; then
8589 if test -n "$PULSE_LIBS"; then
8590 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
8591 else
8592 if test -n "$PKG_CONFIG" && \
8593 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
8594 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
8595 ac_status=$?
8596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; then
8598 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
8599 else
8600 pkg_failed=yes
8601 fi
8602 fi
8603 else
8604 pkg_failed=untried
8605 fi
8609 if test $pkg_failed = yes; then
8611 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8612 _pkg_short_errors_supported=yes
8613 else
8614 _pkg_short_errors_supported=no
8615 fi
8616 if test $_pkg_short_errors_supported = yes; then
8617 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpulse-simple"`
8618 else
8619 PULSE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpulse-simple"`
8620 fi
8621 # Put the nasty error message in config.log where it belongs
8622 echo "$PULSE_PKG_ERRORS" >&5
8624 { $as_echo "$as_me:$LINENO: result: no" >&5
8625 $as_echo "no" >&6; }
8626 true
8627 elif test $pkg_failed = untried; then
8628 true
8629 else
8630 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
8631 PULSE_LIBS=$pkg_cv_PULSE_LIBS
8632 { $as_echo "$as_me:$LINENO: result: yes" >&5
8633 $as_echo "yes" >&6; }
8635 HAVE_PULSE='yes'
8637 cat >>confdefs.h <<\_ACEOF
8638 #define HAVE_PULSE 1
8639 _ACEOF
8641 fi
8644 if test "$HAVE_PULSE" = 'yes' ; then
8645 AUDIO_PULSE_TRUE=
8646 AUDIO_PULSE_FALSE='#'
8647 else
8648 AUDIO_PULSE_TRUE='#'
8649 AUDIO_PULSE_FALSE=
8650 fi
8654 pkg_failed=no
8655 { $as_echo "$as_me:$LINENO: checking for ESOUND" >&5
8656 $as_echo_n "checking for ESOUND... " >&6; }
8658 if test -n "$PKG_CONFIG"; then
8659 if test -n "$ESOUND_CFLAGS"; then
8660 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
8661 else
8662 if test -n "$PKG_CONFIG" && \
8663 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8664 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8665 ac_status=$?
8666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); }; then
8668 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
8669 else
8670 pkg_failed=yes
8671 fi
8672 fi
8673 else
8674 pkg_failed=untried
8675 fi
8676 if test -n "$PKG_CONFIG"; then
8677 if test -n "$ESOUND_LIBS"; then
8678 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
8679 else
8680 if test -n "$PKG_CONFIG" && \
8681 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
8682 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
8683 ac_status=$?
8684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; then
8686 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
8687 else
8688 pkg_failed=yes
8689 fi
8690 fi
8691 else
8692 pkg_failed=untried
8693 fi
8697 if test $pkg_failed = yes; then
8699 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8700 _pkg_short_errors_supported=yes
8701 else
8702 _pkg_short_errors_supported=no
8703 fi
8704 if test $_pkg_short_errors_supported = yes; then
8705 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
8706 else
8707 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
8708 fi
8709 # Put the nasty error message in config.log where it belongs
8710 echo "$ESOUND_PKG_ERRORS" >&5
8712 { $as_echo "$as_me:$LINENO: result: no" >&5
8713 $as_echo "no" >&6; }
8714 true
8715 elif test $pkg_failed = untried; then
8716 true
8717 else
8718 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
8719 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
8720 { $as_echo "$as_me:$LINENO: result: yes" >&5
8721 $as_echo "yes" >&6; }
8723 HAVE_ESOUND='yes'
8725 cat >>confdefs.h <<\_ACEOF
8726 #define HAVE_ESOUND 1
8727 _ACEOF
8729 fi
8732 if test "$HAVE_ESOUND" = 'yes' ; then
8733 AUDIO_ESOUND_TRUE=
8734 AUDIO_ESOUND_FALSE='#'
8735 else
8736 AUDIO_ESOUND_TRUE='#'
8737 AUDIO_ESOUND_FALSE=
8738 fi
8742 pkg_failed=no
8743 { $as_echo "$as_me:$LINENO: checking for ALSA" >&5
8744 $as_echo_n "checking for ALSA... " >&6; }
8746 if test -n "$PKG_CONFIG"; then
8747 if test -n "$ALSA_CFLAGS"; then
8748 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
8749 else
8750 if test -n "$PKG_CONFIG" && \
8751 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
8752 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8753 ac_status=$?
8754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; then
8756 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
8757 else
8758 pkg_failed=yes
8759 fi
8760 fi
8761 else
8762 pkg_failed=untried
8763 fi
8764 if test -n "$PKG_CONFIG"; then
8765 if test -n "$ALSA_LIBS"; then
8766 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
8767 else
8768 if test -n "$PKG_CONFIG" && \
8769 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
8770 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
8771 ac_status=$?
8772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; then
8774 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
8775 else
8776 pkg_failed=yes
8777 fi
8778 fi
8779 else
8780 pkg_failed=untried
8781 fi
8785 if test $pkg_failed = yes; then
8787 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8788 _pkg_short_errors_supported=yes
8789 else
8790 _pkg_short_errors_supported=no
8791 fi
8792 if test $_pkg_short_errors_supported = yes; then
8793 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
8794 else
8795 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
8796 fi
8797 # Put the nasty error message in config.log where it belongs
8798 echo "$ALSA_PKG_ERRORS" >&5
8800 { $as_echo "$as_me:$LINENO: result: no" >&5
8801 $as_echo "no" >&6; }
8802 true
8803 elif test $pkg_failed = untried; then
8804 true
8805 else
8806 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
8807 ALSA_LIBS=$pkg_cv_ALSA_LIBS
8808 { $as_echo "$as_me:$LINENO: result: yes" >&5
8809 $as_echo "yes" >&6; }
8811 HAVE_ALSA='yes'
8813 cat >>confdefs.h <<\_ACEOF
8814 #define HAVE_ALSA 1
8815 _ACEOF
8817 fi
8820 if test "$HAVE_ALSA" = 'yes' ; then
8821 AUDIO_ALSA_TRUE=
8822 AUDIO_ALSA_FALSE='#'
8823 else
8824 AUDIO_ALSA_TRUE='#'
8825 AUDIO_ALSA_FALSE=
8826 fi
8829 if test "x$HAVE_ESOUND" = "x" -a "x$HAVE_ALSA" = "x" -a "x$HAVE_PULSE" = "x"; then
8830 echo "Warning: Building without audio support"
8831 fi
8833 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8834 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
8835 $as_echo_n "checking for linux/cdrom.h... " >&6; }
8836 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8837 $as_echo_n "(cached) " >&6
8838 fi
8839 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
8840 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
8841 else
8842 # Is the header compilable?
8843 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
8844 $as_echo_n "checking linux/cdrom.h usability... " >&6; }
8845 cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h. */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8851 $ac_includes_default
8852 #include <linux/cdrom.h>
8853 _ACEOF
8854 rm -f conftest.$ac_objext
8855 if { (ac_try="$ac_compile"
8856 case "(($ac_try" in
8857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858 *) ac_try_echo=$ac_try;;
8859 esac
8860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8861 $as_echo "$ac_try_echo") >&5
8862 (eval "$ac_compile") 2>conftest.er1
8863 ac_status=$?
8864 grep -v '^ *+' conftest.er1 >conftest.err
8865 rm -f conftest.er1
8866 cat conftest.err >&5
8867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } && {
8869 test -z "$ac_c_werror_flag" ||
8870 test ! -s conftest.err
8871 } && test -s conftest.$ac_objext; then
8872 ac_header_compiler=yes
8873 else
8874 $as_echo "$as_me: failed program was:" >&5
8875 sed 's/^/| /' conftest.$ac_ext >&5
8877 ac_header_compiler=no
8878 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8882 $as_echo "$ac_header_compiler" >&6; }
8884 # Is the header present?
8885 { $as_echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
8886 $as_echo_n "checking linux/cdrom.h presence... " >&6; }
8887 cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h. */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8893 #include <linux/cdrom.h>
8894 _ACEOF
8895 if { (ac_try="$ac_cpp conftest.$ac_ext"
8896 case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8899 esac
8900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8901 $as_echo "$ac_try_echo") >&5
8902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } >/dev/null && {
8909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 }; then
8912 ac_header_preproc=yes
8913 else
8914 $as_echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8917 ac_header_preproc=no
8918 fi
8920 rm -f conftest.err conftest.$ac_ext
8921 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8922 $as_echo "$ac_header_preproc" >&6; }
8924 # So? What about this header?
8925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8926 yes:no: )
8927 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
8928 $as_echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8929 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
8930 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
8931 ac_header_preproc=yes
8932 ;;
8933 no:yes:* )
8934 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
8935 $as_echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
8936 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
8937 $as_echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
8938 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
8939 $as_echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
8940 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
8941 $as_echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
8942 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
8943 $as_echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
8944 { $as_echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
8945 $as_echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
8947 ;;
8948 esac
8949 { $as_echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
8950 $as_echo_n "checking for linux/cdrom.h... " >&6; }
8951 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
8952 $as_echo_n "(cached) " >&6
8953 else
8954 ac_cv_header_linux_cdrom_h=$ac_header_preproc
8955 fi
8956 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
8957 $as_echo "$ac_cv_header_linux_cdrom_h" >&6; }
8959 fi
8960 if test $ac_cv_header_linux_cdrom_h = yes; then
8961 HAVE_LINUX_CDROM_H=yes
8962 else
8964 echo "Linux CDROM support not found, building without it."
8965 fi
8970 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
8971 CDROM_LINUX_TRUE=
8972 CDROM_LINUX_FALSE='#'
8973 else
8974 CDROM_LINUX_TRUE='#'
8975 CDROM_LINUX_FALSE=
8976 fi
8979 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8980 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
8981 $as_echo_n "checking for linux/joystick.h... " >&6; }
8982 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
8983 $as_echo_n "(cached) " >&6
8984 fi
8985 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
8986 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
8987 else
8988 # Is the header compilable?
8989 { $as_echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
8990 $as_echo_n "checking linux/joystick.h usability... " >&6; }
8991 cat >conftest.$ac_ext <<_ACEOF
8992 /* confdefs.h. */
8993 _ACEOF
8994 cat confdefs.h >>conftest.$ac_ext
8995 cat >>conftest.$ac_ext <<_ACEOF
8996 /* end confdefs.h. */
8997 $ac_includes_default
8998 #include <linux/joystick.h>
8999 _ACEOF
9000 rm -f conftest.$ac_objext
9001 if { (ac_try="$ac_compile"
9002 case "(($ac_try" in
9003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9004 *) ac_try_echo=$ac_try;;
9005 esac
9006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9007 $as_echo "$ac_try_echo") >&5
9008 (eval "$ac_compile") 2>conftest.er1
9009 ac_status=$?
9010 grep -v '^ *+' conftest.er1 >conftest.err
9011 rm -f conftest.er1
9012 cat conftest.err >&5
9013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); } && {
9015 test -z "$ac_c_werror_flag" ||
9016 test ! -s conftest.err
9017 } && test -s conftest.$ac_objext; then
9018 ac_header_compiler=yes
9019 else
9020 $as_echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.$ac_ext >&5
9023 ac_header_compiler=no
9024 fi
9026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9027 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9028 $as_echo "$ac_header_compiler" >&6; }
9030 # Is the header present?
9031 { $as_echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
9032 $as_echo_n "checking linux/joystick.h presence... " >&6; }
9033 cat >conftest.$ac_ext <<_ACEOF
9034 /* confdefs.h. */
9035 _ACEOF
9036 cat confdefs.h >>conftest.$ac_ext
9037 cat >>conftest.$ac_ext <<_ACEOF
9038 /* end confdefs.h. */
9039 #include <linux/joystick.h>
9040 _ACEOF
9041 if { (ac_try="$ac_cpp conftest.$ac_ext"
9042 case "(($ac_try" in
9043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9045 esac
9046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9047 $as_echo "$ac_try_echo") >&5
9048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9049 ac_status=$?
9050 grep -v '^ *+' conftest.er1 >conftest.err
9051 rm -f conftest.er1
9052 cat conftest.err >&5
9053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } >/dev/null && {
9055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9056 test ! -s conftest.err
9057 }; then
9058 ac_header_preproc=yes
9059 else
9060 $as_echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 ac_header_preproc=no
9064 fi
9066 rm -f conftest.err conftest.$ac_ext
9067 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9068 $as_echo "$ac_header_preproc" >&6; }
9070 # So? What about this header?
9071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9072 yes:no: )
9073 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
9074 $as_echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9075 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
9076 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
9077 ac_header_preproc=yes
9078 ;;
9079 no:yes:* )
9080 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
9081 $as_echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
9082 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
9083 $as_echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
9084 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
9085 $as_echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
9086 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
9087 $as_echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
9088 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
9089 $as_echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
9090 { $as_echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
9091 $as_echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
9093 ;;
9094 esac
9095 { $as_echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
9096 $as_echo_n "checking for linux/joystick.h... " >&6; }
9097 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
9098 $as_echo_n "(cached) " >&6
9099 else
9100 ac_cv_header_linux_joystick_h=$ac_header_preproc
9101 fi
9102 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
9103 $as_echo "$ac_cv_header_linux_joystick_h" >&6; }
9105 fi
9106 if test $ac_cv_header_linux_joystick_h = yes; then
9108 HAVE_LINUX_JOYSTICK_H=yes
9110 cat >>confdefs.h <<\_ACEOF
9111 #define HAVE_LINUX_JOYSTICK 1
9112 _ACEOF
9114 else
9115 echo "Linux Joystick support not found, building without it."
9116 fi
9121 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
9122 JOY_LINUX_TRUE=
9123 JOY_LINUX_FALSE='#'
9124 else
9125 JOY_LINUX_TRUE='#'
9126 JOY_LINUX_FALSE=
9127 fi
9130 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
9131 set dummy sh-elf-gcc; ac_word=$2
9132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9133 $as_echo_n "checking for $ac_word... " >&6; }
9134 if test "${ac_cv_path_SHCC+set}" = set; then
9135 $as_echo_n "(cached) " >&6
9136 else
9137 case $SHCC in
9138 [\\/]* | ?:[\\/]*)
9139 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
9140 ;;
9141 *)
9142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143 for as_dir in $PATH
9144 do
9145 IFS=$as_save_IFS
9146 test -z "$as_dir" && as_dir=.
9147 for ac_exec_ext in '' $ac_executable_extensions; do
9148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9149 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
9150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9151 break 2
9152 fi
9153 done
9154 done
9155 IFS=$as_save_IFS
9157 ;;
9158 esac
9159 fi
9160 SHCC=$ac_cv_path_SHCC
9161 if test -n "$SHCC"; then
9162 { $as_echo "$as_me:$LINENO: result: $SHCC" >&5
9163 $as_echo "$SHCC" >&6; }
9164 else
9165 { $as_echo "$as_me:$LINENO: result: no" >&5
9166 $as_echo "no" >&6; }
9167 fi
9170 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
9171 set dummy sh-elf-ld; ac_word=$2
9172 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9173 $as_echo_n "checking for $ac_word... " >&6; }
9174 if test "${ac_cv_path_SHLD+set}" = set; then
9175 $as_echo_n "(cached) " >&6
9176 else
9177 case $SHLD in
9178 [\\/]* | ?:[\\/]*)
9179 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
9180 ;;
9181 *)
9182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183 for as_dir in $PATH
9184 do
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9189 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
9190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9191 break 2
9192 fi
9193 done
9194 done
9195 IFS=$as_save_IFS
9197 ;;
9198 esac
9199 fi
9200 SHLD=$ac_cv_path_SHLD
9201 if test -n "$SHLD"; then
9202 { $as_echo "$as_me:$LINENO: result: $SHLD" >&5
9203 $as_echo "$SHLD" >&6; }
9204 else
9205 { $as_echo "$as_me:$LINENO: result: no" >&5
9206 $as_echo "no" >&6; }
9207 fi
9210 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
9211 set dummy sh-elf-objcopy; ac_word=$2
9212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
9215 $as_echo_n "(cached) " >&6
9216 else
9217 case $SHOBJCOPY in
9218 [\\/]* | ?:[\\/]*)
9219 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
9220 ;;
9221 *)
9222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9223 for as_dir in $PATH
9224 do
9225 IFS=$as_save_IFS
9226 test -z "$as_dir" && as_dir=.
9227 for ac_exec_ext in '' $ac_executable_extensions; do
9228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9229 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9230 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9231 break 2
9232 fi
9233 done
9234 done
9235 IFS=$as_save_IFS
9237 ;;
9238 esac
9239 fi
9240 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
9241 if test -n "$SHOBJCOPY"; then
9242 { $as_echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
9243 $as_echo "$SHOBJCOPY" >&6; }
9244 else
9245 { $as_echo "$as_me:$LINENO: result: no" >&5
9246 $as_echo "no" >&6; }
9247 fi
9250 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
9251 set dummy arm-elf-gcc; ac_word=$2
9252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9253 $as_echo_n "checking for $ac_word... " >&6; }
9254 if test "${ac_cv_path_ARMCC+set}" = set; then
9255 $as_echo_n "(cached) " >&6
9256 else
9257 case $ARMCC in
9258 [\\/]* | ?:[\\/]*)
9259 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
9260 ;;
9261 *)
9262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9263 for as_dir in $PATH
9264 do
9265 IFS=$as_save_IFS
9266 test -z "$as_dir" && as_dir=.
9267 for ac_exec_ext in '' $ac_executable_extensions; do
9268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9269 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
9270 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 break 2
9272 fi
9273 done
9274 done
9275 IFS=$as_save_IFS
9277 ;;
9278 esac
9279 fi
9280 ARMCC=$ac_cv_path_ARMCC
9281 if test -n "$ARMCC"; then
9282 { $as_echo "$as_me:$LINENO: result: $ARMCC" >&5
9283 $as_echo "$ARMCC" >&6; }
9284 else
9285 { $as_echo "$as_me:$LINENO: result: no" >&5
9286 $as_echo "no" >&6; }
9287 fi
9290 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
9291 set dummy arm-elf-ld; ac_word=$2
9292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9293 $as_echo_n "checking for $ac_word... " >&6; }
9294 if test "${ac_cv_path_ARMLD+set}" = set; then
9295 $as_echo_n "(cached) " >&6
9296 else
9297 case $ARMLD in
9298 [\\/]* | ?:[\\/]*)
9299 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
9300 ;;
9301 *)
9302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9303 for as_dir in $PATH
9304 do
9305 IFS=$as_save_IFS
9306 test -z "$as_dir" && as_dir=.
9307 for ac_exec_ext in '' $ac_executable_extensions; do
9308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9309 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
9310 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9311 break 2
9312 fi
9313 done
9314 done
9315 IFS=$as_save_IFS
9317 ;;
9318 esac
9319 fi
9320 ARMLD=$ac_cv_path_ARMLD
9321 if test -n "$ARMLD"; then
9322 { $as_echo "$as_me:$LINENO: result: $ARMLD" >&5
9323 $as_echo "$ARMLD" >&6; }
9324 else
9325 { $as_echo "$as_me:$LINENO: result: no" >&5
9326 $as_echo "no" >&6; }
9327 fi
9330 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
9331 set dummy arm-elf-objcopy; ac_word=$2
9332 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9333 $as_echo_n "checking for $ac_word... " >&6; }
9334 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
9335 $as_echo_n "(cached) " >&6
9336 else
9337 case $ARMOBJCOPY in
9338 [\\/]* | ?:[\\/]*)
9339 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
9340 ;;
9341 *)
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9343 for as_dir in $PATH
9344 do
9345 IFS=$as_save_IFS
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
9350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9351 break 2
9352 fi
9353 done
9354 done
9355 IFS=$as_save_IFS
9357 ;;
9358 esac
9359 fi
9360 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
9361 if test -n "$ARMOBJCOPY"; then
9362 { $as_echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
9363 $as_echo "$ARMOBJCOPY" >&6; }
9364 else
9365 { $as_echo "$as_me:$LINENO: result: no" >&5
9366 $as_echo "no" >&6; }
9367 fi
9371 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
9372 BUILD_SH="no"
9373 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
9374 else
9375 BUILD_SH="yes"
9376 fi
9377 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
9378 BUILD_ARM="no"
9379 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
9380 else
9381 BUILD_ARM="yes"
9382 fi
9385 if test "$BUILD_SH" = "yes"; then
9386 BUILD_SYSTEST_TRUE=
9387 BUILD_SYSTEST_FALSE='#'
9388 else
9389 BUILD_SYSTEST_TRUE='#'
9390 BUILD_SYSTEST_FALSE=
9391 fi
9395 if test "$BUILD_ARM" = "yes"; then
9396 BUILD_ARMTEST_TRUE=
9397 BUILD_ARMTEST_FALSE='#'
9398 else
9399 BUILD_ARMTEST_TRUE='#'
9400 BUILD_ARMTEST_FALSE=
9401 fi
9405 GETTEXT_PACKAGE=lxdream
9408 cat >>confdefs.h <<_ACEOF
9409 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
9410 _ACEOF
9413 ALL_LINGUAS="de es it pt_BR"
9416 for ac_header in locale.h
9417 do
9418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9420 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9421 $as_echo_n "checking for $ac_header... " >&6; }
9422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9423 $as_echo_n "(cached) " >&6
9424 fi
9425 ac_res=`eval 'as_val=${'$as_ac_Header'}
9426 $as_echo "$as_val"'`
9427 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9428 $as_echo "$ac_res" >&6; }
9429 else
9430 # Is the header compilable?
9431 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9432 $as_echo_n "checking $ac_header usability... " >&6; }
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h. */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 $ac_includes_default
9440 #include <$ac_header>
9441 _ACEOF
9442 rm -f conftest.$ac_objext
9443 if { (ac_try="$ac_compile"
9444 case "(($ac_try" in
9445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9446 *) ac_try_echo=$ac_try;;
9447 esac
9448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9449 $as_echo "$ac_try_echo") >&5
9450 (eval "$ac_compile") 2>conftest.er1
9451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } && {
9457 test -z "$ac_c_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest.$ac_objext; then
9460 ac_header_compiler=yes
9461 else
9462 $as_echo "$as_me: failed program was:" >&5
9463 sed 's/^/| /' conftest.$ac_ext >&5
9465 ac_header_compiler=no
9466 fi
9468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9470 $as_echo "$ac_header_compiler" >&6; }
9472 # Is the header present?
9473 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9474 $as_echo_n "checking $ac_header presence... " >&6; }
9475 cat >conftest.$ac_ext <<_ACEOF
9476 /* confdefs.h. */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9481 #include <$ac_header>
9482 _ACEOF
9483 if { (ac_try="$ac_cpp conftest.$ac_ext"
9484 case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487 esac
9488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9489 $as_echo "$ac_try_echo") >&5
9490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9491 ac_status=$?
9492 grep -v '^ *+' conftest.er1 >conftest.err
9493 rm -f conftest.er1
9494 cat conftest.err >&5
9495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } >/dev/null && {
9497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9498 test ! -s conftest.err
9499 }; then
9500 ac_header_preproc=yes
9501 else
9502 $as_echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_header_preproc=no
9506 fi
9508 rm -f conftest.err conftest.$ac_ext
9509 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9510 $as_echo "$ac_header_preproc" >&6; }
9512 # So? What about this header?
9513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9514 yes:no: )
9515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9516 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9518 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9519 ac_header_preproc=yes
9520 ;;
9521 no:yes:* )
9522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9523 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9525 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9527 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9529 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9531 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9533 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9535 ;;
9536 esac
9537 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9538 $as_echo_n "checking for $ac_header... " >&6; }
9539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9540 $as_echo_n "(cached) " >&6
9541 else
9542 eval "$as_ac_Header=\$ac_header_preproc"
9543 fi
9544 ac_res=`eval 'as_val=${'$as_ac_Header'}
9545 $as_echo "$as_val"'`
9546 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9547 $as_echo "$ac_res" >&6; }
9549 fi
9550 if test `eval 'as_val=${'$as_ac_Header'}
9551 $as_echo "$as_val"'` = yes; then
9552 cat >>confdefs.h <<_ACEOF
9553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9554 _ACEOF
9556 fi
9558 done
9560 if test $ac_cv_header_locale_h = yes; then
9561 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9562 $as_echo_n "checking for LC_MESSAGES... " >&6; }
9563 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9564 $as_echo_n "(cached) " >&6
9565 else
9566 cat >conftest.$ac_ext <<_ACEOF
9567 /* confdefs.h. */
9568 _ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 #include <locale.h>
9573 int
9574 main ()
9575 {
9576 return LC_MESSAGES
9577 ;
9578 return 0;
9579 }
9580 _ACEOF
9581 rm -f conftest.$ac_objext conftest$ac_exeext
9582 if { (ac_try="$ac_link"
9583 case "(($ac_try" in
9584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585 *) ac_try_echo=$ac_try;;
9586 esac
9587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9588 $as_echo "$ac_try_echo") >&5
9589 (eval "$ac_link") 2>conftest.er1
9590 ac_status=$?
9591 grep -v '^ *+' conftest.er1 >conftest.err
9592 rm -f conftest.er1
9593 cat conftest.err >&5
9594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest$ac_exeext && {
9599 test "$cross_compiling" = yes ||
9600 $as_test_x conftest$ac_exeext
9601 }; then
9602 am_cv_val_LC_MESSAGES=yes
9603 else
9604 $as_echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9607 am_cv_val_LC_MESSAGES=no
9608 fi
9610 rm -rf conftest.dSYM
9611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9612 conftest$ac_exeext conftest.$ac_ext
9613 fi
9614 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9615 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
9616 if test $am_cv_val_LC_MESSAGES = yes; then
9618 cat >>confdefs.h <<\_ACEOF
9619 #define HAVE_LC_MESSAGES 1
9620 _ACEOF
9622 fi
9623 fi
9624 USE_NLS=yes
9627 gt_cv_have_gettext=no
9629 CATOBJEXT=NONE
9630 XGETTEXT=:
9631 INTLLIBS=
9633 if test "${ac_cv_header_libintl_h+set}" = set; then
9634 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9635 $as_echo_n "checking for libintl.h... " >&6; }
9636 if test "${ac_cv_header_libintl_h+set}" = set; then
9637 $as_echo_n "(cached) " >&6
9638 fi
9639 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9640 $as_echo "$ac_cv_header_libintl_h" >&6; }
9641 else
9642 # Is the header compilable?
9643 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
9644 $as_echo_n "checking libintl.h usability... " >&6; }
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 $ac_includes_default
9652 #include <libintl.h>
9653 _ACEOF
9654 rm -f conftest.$ac_objext
9655 if { (ac_try="$ac_compile"
9656 case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659 esac
9660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9661 $as_echo "$ac_try_echo") >&5
9662 (eval "$ac_compile") 2>conftest.er1
9663 ac_status=$?
9664 grep -v '^ *+' conftest.er1 >conftest.err
9665 rm -f conftest.er1
9666 cat conftest.err >&5
9667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest.$ac_objext; then
9672 ac_header_compiler=yes
9673 else
9674 $as_echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9677 ac_header_compiler=no
9678 fi
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9681 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9682 $as_echo "$ac_header_compiler" >&6; }
9684 # Is the header present?
9685 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
9686 $as_echo_n "checking libintl.h presence... " >&6; }
9687 cat >conftest.$ac_ext <<_ACEOF
9688 /* confdefs.h. */
9689 _ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 #include <libintl.h>
9694 _ACEOF
9695 if { (ac_try="$ac_cpp conftest.$ac_ext"
9696 case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699 esac
9700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9701 $as_echo "$ac_try_echo") >&5
9702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9703 ac_status=$?
9704 grep -v '^ *+' conftest.er1 >conftest.err
9705 rm -f conftest.er1
9706 cat conftest.err >&5
9707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } >/dev/null && {
9709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9710 test ! -s conftest.err
9711 }; then
9712 ac_header_preproc=yes
9713 else
9714 $as_echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 ac_header_preproc=no
9718 fi
9720 rm -f conftest.err conftest.$ac_ext
9721 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9722 $as_echo "$ac_header_preproc" >&6; }
9724 # So? What about this header?
9725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9726 yes:no: )
9727 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
9728 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9729 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
9730 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
9731 ac_header_preproc=yes
9732 ;;
9733 no:yes:* )
9734 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
9735 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
9736 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
9737 $as_echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
9738 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
9739 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
9740 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
9741 $as_echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
9742 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
9743 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
9744 { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
9745 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
9747 ;;
9748 esac
9749 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
9750 $as_echo_n "checking for libintl.h... " >&6; }
9751 if test "${ac_cv_header_libintl_h+set}" = set; then
9752 $as_echo_n "(cached) " >&6
9753 else
9754 ac_cv_header_libintl_h=$ac_header_preproc
9755 fi
9756 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
9757 $as_echo "$ac_cv_header_libintl_h" >&6; }
9759 fi
9760 if test $ac_cv_header_libintl_h = yes; then
9761 gt_cv_func_dgettext_libintl="no"
9762 libintl_extra_libs=""
9764 #
9765 # First check in libc
9766 #
9767 { $as_echo "$as_me:$LINENO: checking for ngettext in libc" >&5
9768 $as_echo_n "checking for ngettext in libc... " >&6; }
9769 if test "${gt_cv_func_ngettext_libc+set}" = set; then
9770 $as_echo_n "(cached) " >&6
9771 else
9772 cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h. */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9779 #include <libintl.h>
9781 int
9782 main ()
9783 {
9784 return !ngettext ("","", 1)
9785 ;
9786 return 0;
9787 }
9788 _ACEOF
9789 rm -f conftest.$ac_objext conftest$ac_exeext
9790 if { (ac_try="$ac_link"
9791 case "(($ac_try" in
9792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9793 *) ac_try_echo=$ac_try;;
9794 esac
9795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9796 $as_echo "$ac_try_echo") >&5
9797 (eval "$ac_link") 2>conftest.er1
9798 ac_status=$?
9799 grep -v '^ *+' conftest.er1 >conftest.err
9800 rm -f conftest.er1
9801 cat conftest.err >&5
9802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803 (exit $ac_status); } && {
9804 test -z "$ac_c_werror_flag" ||
9805 test ! -s conftest.err
9806 } && test -s conftest$ac_exeext && {
9807 test "$cross_compiling" = yes ||
9808 $as_test_x conftest$ac_exeext
9809 }; then
9810 gt_cv_func_ngettext_libc=yes
9811 else
9812 $as_echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 gt_cv_func_ngettext_libc=no
9816 fi
9818 rm -rf conftest.dSYM
9819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9820 conftest$ac_exeext conftest.$ac_ext
9822 fi
9823 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
9824 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
9826 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9827 { $as_echo "$as_me:$LINENO: checking for dgettext in libc" >&5
9828 $as_echo_n "checking for dgettext in libc... " >&6; }
9829 if test "${gt_cv_func_dgettext_libc+set}" = set; then
9830 $as_echo_n "(cached) " >&6
9831 else
9832 cat >conftest.$ac_ext <<_ACEOF
9833 /* confdefs.h. */
9834 _ACEOF
9835 cat confdefs.h >>conftest.$ac_ext
9836 cat >>conftest.$ac_ext <<_ACEOF
9837 /* end confdefs.h. */
9839 #include <libintl.h>
9841 int
9842 main ()
9843 {
9844 return !dgettext ("","")
9845 ;
9846 return 0;
9847 }
9848 _ACEOF
9849 rm -f conftest.$ac_objext conftest$ac_exeext
9850 if { (ac_try="$ac_link"
9851 case "(($ac_try" in
9852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9853 *) ac_try_echo=$ac_try;;
9854 esac
9855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9856 $as_echo "$ac_try_echo") >&5
9857 (eval "$ac_link") 2>conftest.er1
9858 ac_status=$?
9859 grep -v '^ *+' conftest.er1 >conftest.err
9860 rm -f conftest.er1
9861 cat conftest.err >&5
9862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863 (exit $ac_status); } && {
9864 test -z "$ac_c_werror_flag" ||
9865 test ! -s conftest.err
9866 } && test -s conftest$ac_exeext && {
9867 test "$cross_compiling" = yes ||
9868 $as_test_x conftest$ac_exeext
9869 }; then
9870 gt_cv_func_dgettext_libc=yes
9871 else
9872 $as_echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 gt_cv_func_dgettext_libc=no
9876 fi
9878 rm -rf conftest.dSYM
9879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9880 conftest$ac_exeext conftest.$ac_ext
9882 fi
9883 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
9884 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
9885 fi
9887 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
9889 for ac_func in bind_textdomain_codeset
9890 do
9891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9893 $as_echo_n "checking for $ac_func... " >&6; }
9894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9895 $as_echo_n "(cached) " >&6
9896 else
9897 cat >conftest.$ac_ext <<_ACEOF
9898 /* confdefs.h. */
9899 _ACEOF
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9905 #define $ac_func innocuous_$ac_func
9907 /* System header to define __stub macros and hopefully few prototypes,
9908 which can conflict with char $ac_func (); below.
9909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9910 <limits.h> exists even on freestanding compilers. */
9912 #ifdef __STDC__
9913 # include <limits.h>
9914 #else
9915 # include <assert.h>
9916 #endif
9918 #undef $ac_func
9920 /* Override any GCC internal prototype to avoid an error.
9921 Use char because int might match the return type of a GCC
9922 builtin and then its argument prototype would still apply. */
9923 #ifdef __cplusplus
9924 extern "C"
9925 #endif
9926 char $ac_func ();
9927 /* The GNU C library defines this for functions which it implements
9928 to always fail with ENOSYS. Some functions are actually named
9929 something starting with __ and the normal name is an alias. */
9930 #if defined __stub_$ac_func || defined __stub___$ac_func
9931 choke me
9932 #endif
9934 int
9935 main ()
9936 {
9937 return $ac_func ();
9938 ;
9939 return 0;
9940 }
9941 _ACEOF
9942 rm -f conftest.$ac_objext conftest$ac_exeext
9943 if { (ac_try="$ac_link"
9944 case "(($ac_try" in
9945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9946 *) ac_try_echo=$ac_try;;
9947 esac
9948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9949 $as_echo "$ac_try_echo") >&5
9950 (eval "$ac_link") 2>conftest.er1
9951 ac_status=$?
9952 grep -v '^ *+' conftest.er1 >conftest.err
9953 rm -f conftest.er1
9954 cat conftest.err >&5
9955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && {
9957 test -z "$ac_c_werror_flag" ||
9958 test ! -s conftest.err
9959 } && test -s conftest$ac_exeext && {
9960 test "$cross_compiling" = yes ||
9961 $as_test_x conftest$ac_exeext
9962 }; then
9963 eval "$as_ac_var=yes"
9964 else
9965 $as_echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 eval "$as_ac_var=no"
9969 fi
9971 rm -rf conftest.dSYM
9972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9973 conftest$ac_exeext conftest.$ac_ext
9974 fi
9975 ac_res=`eval 'as_val=${'$as_ac_var'}
9976 $as_echo "$as_val"'`
9977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9978 $as_echo "$ac_res" >&6; }
9979 if test `eval 'as_val=${'$as_ac_var'}
9980 $as_echo "$as_val"'` = yes; then
9981 cat >>confdefs.h <<_ACEOF
9982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9983 _ACEOF
9985 fi
9986 done
9988 fi
9990 #
9991 # If we don't have everything we want, check in libintl
9992 #
9993 if test "$gt_cv_func_dgettext_libc" != "yes" \
9994 || test "$gt_cv_func_ngettext_libc" != "yes" \
9995 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
9997 { $as_echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
9998 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
9999 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
10000 $as_echo_n "(cached) " >&6
10001 else
10002 ac_check_lib_save_LIBS=$LIBS
10003 LIBS="-lintl $LIBS"
10004 cat >conftest.$ac_ext <<_ACEOF
10005 /* confdefs.h. */
10006 _ACEOF
10007 cat confdefs.h >>conftest.$ac_ext
10008 cat >>conftest.$ac_ext <<_ACEOF
10009 /* end confdefs.h. */
10011 /* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
10014 #ifdef __cplusplus
10015 extern "C"
10016 #endif
10017 char bindtextdomain ();
10018 int
10019 main ()
10020 {
10021 return bindtextdomain ();
10022 ;
10023 return 0;
10024 }
10025 _ACEOF
10026 rm -f conftest.$ac_objext conftest$ac_exeext
10027 if { (ac_try="$ac_link"
10028 case "(($ac_try" in
10029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10030 *) ac_try_echo=$ac_try;;
10031 esac
10032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10033 $as_echo "$ac_try_echo") >&5
10034 (eval "$ac_link") 2>conftest.er1
10035 ac_status=$?
10036 grep -v '^ *+' conftest.er1 >conftest.err
10037 rm -f conftest.er1
10038 cat conftest.err >&5
10039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); } && {
10041 test -z "$ac_c_werror_flag" ||
10042 test ! -s conftest.err
10043 } && test -s conftest$ac_exeext && {
10044 test "$cross_compiling" = yes ||
10045 $as_test_x conftest$ac_exeext
10046 }; then
10047 ac_cv_lib_intl_bindtextdomain=yes
10048 else
10049 $as_echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 ac_cv_lib_intl_bindtextdomain=no
10053 fi
10055 rm -rf conftest.dSYM
10056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10057 conftest$ac_exeext conftest.$ac_ext
10058 LIBS=$ac_check_lib_save_LIBS
10059 fi
10060 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
10061 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
10062 if test $ac_cv_lib_intl_bindtextdomain = yes; then
10063 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10064 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10065 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10066 $as_echo_n "(cached) " >&6
10067 else
10068 ac_check_lib_save_LIBS=$LIBS
10069 LIBS="-lintl $LIBS"
10070 cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h. */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h. */
10077 /* Override any GCC internal prototype to avoid an error.
10078 Use char because int might match the return type of a GCC
10079 builtin and then its argument prototype would still apply. */
10080 #ifdef __cplusplus
10081 extern "C"
10082 #endif
10083 char ngettext ();
10084 int
10085 main ()
10086 {
10087 return ngettext ();
10088 ;
10089 return 0;
10090 }
10091 _ACEOF
10092 rm -f conftest.$ac_objext conftest$ac_exeext
10093 if { (ac_try="$ac_link"
10094 case "(($ac_try" in
10095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10096 *) ac_try_echo=$ac_try;;
10097 esac
10098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10099 $as_echo "$ac_try_echo") >&5
10100 (eval "$ac_link") 2>conftest.er1
10101 ac_status=$?
10102 grep -v '^ *+' conftest.er1 >conftest.err
10103 rm -f conftest.er1
10104 cat conftest.err >&5
10105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } && {
10107 test -z "$ac_c_werror_flag" ||
10108 test ! -s conftest.err
10109 } && test -s conftest$ac_exeext && {
10110 test "$cross_compiling" = yes ||
10111 $as_test_x conftest$ac_exeext
10112 }; then
10113 ac_cv_lib_intl_ngettext=yes
10114 else
10115 $as_echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_cv_lib_intl_ngettext=no
10119 fi
10121 rm -rf conftest.dSYM
10122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10123 conftest$ac_exeext conftest.$ac_ext
10124 LIBS=$ac_check_lib_save_LIBS
10125 fi
10126 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10127 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10128 if test $ac_cv_lib_intl_ngettext = yes; then
10129 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
10130 $as_echo_n "checking for dgettext in -lintl... " >&6; }
10131 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
10132 $as_echo_n "(cached) " >&6
10133 else
10134 ac_check_lib_save_LIBS=$LIBS
10135 LIBS="-lintl $LIBS"
10136 cat >conftest.$ac_ext <<_ACEOF
10137 /* confdefs.h. */
10138 _ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10143 /* Override any GCC internal prototype to avoid an error.
10144 Use char because int might match the return type of a GCC
10145 builtin and then its argument prototype would still apply. */
10146 #ifdef __cplusplus
10147 extern "C"
10148 #endif
10149 char dgettext ();
10150 int
10151 main ()
10152 {
10153 return dgettext ();
10154 ;
10155 return 0;
10156 }
10157 _ACEOF
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (ac_try="$ac_link"
10160 case "(($ac_try" in
10161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162 *) ac_try_echo=$ac_try;;
10163 esac
10164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10165 $as_echo "$ac_try_echo") >&5
10166 (eval "$ac_link") 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } && {
10173 test -z "$ac_c_werror_flag" ||
10174 test ! -s conftest.err
10175 } && test -s conftest$ac_exeext && {
10176 test "$cross_compiling" = yes ||
10177 $as_test_x conftest$ac_exeext
10178 }; then
10179 ac_cv_lib_intl_dgettext=yes
10180 else
10181 $as_echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ac_cv_lib_intl_dgettext=no
10185 fi
10187 rm -rf conftest.dSYM
10188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10189 conftest$ac_exeext conftest.$ac_ext
10190 LIBS=$ac_check_lib_save_LIBS
10191 fi
10192 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
10193 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
10194 if test $ac_cv_lib_intl_dgettext = yes; then
10195 gt_cv_func_dgettext_libintl=yes
10196 fi
10198 fi
10200 fi
10203 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
10204 { $as_echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
10205 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
10206 { $as_echo "$as_me:$LINENO: result: " >&5
10207 $as_echo "" >&6; }
10208 { $as_echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
10209 $as_echo_n "checking for ngettext in -lintl... " >&6; }
10210 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
10211 $as_echo_n "(cached) " >&6
10212 else
10213 ac_check_lib_save_LIBS=$LIBS
10214 LIBS="-lintl -liconv $LIBS"
10215 cat >conftest.$ac_ext <<_ACEOF
10216 /* confdefs.h. */
10217 _ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10222 /* Override any GCC internal prototype to avoid an error.
10223 Use char because int might match the return type of a GCC
10224 builtin and then its argument prototype would still apply. */
10225 #ifdef __cplusplus
10226 extern "C"
10227 #endif
10228 char ngettext ();
10229 int
10230 main ()
10231 {
10232 return ngettext ();
10233 ;
10234 return 0;
10235 }
10236 _ACEOF
10237 rm -f conftest.$ac_objext conftest$ac_exeext
10238 if { (ac_try="$ac_link"
10239 case "(($ac_try" in
10240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10241 *) ac_try_echo=$ac_try;;
10242 esac
10243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10244 $as_echo "$ac_try_echo") >&5
10245 (eval "$ac_link") 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } && {
10252 test -z "$ac_c_werror_flag" ||
10253 test ! -s conftest.err
10254 } && test -s conftest$ac_exeext && {
10255 test "$cross_compiling" = yes ||
10256 $as_test_x conftest$ac_exeext
10257 }; then
10258 ac_cv_lib_intl_ngettext=yes
10259 else
10260 $as_echo "$as_me: failed program was:" >&5
10261 sed 's/^/| /' conftest.$ac_ext >&5
10263 ac_cv_lib_intl_ngettext=no
10264 fi
10266 rm -rf conftest.dSYM
10267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10270 fi
10271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
10272 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
10273 if test $ac_cv_lib_intl_ngettext = yes; then
10274 { $as_echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
10275 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
10276 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
10277 $as_echo_n "(cached) " >&6
10278 else
10279 ac_check_lib_save_LIBS=$LIBS
10280 LIBS="-lintl -liconv $LIBS"
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10288 /* Override any GCC internal prototype to avoid an error.
10289 Use char because int might match the return type of a GCC
10290 builtin and then its argument prototype would still apply. */
10291 #ifdef __cplusplus
10292 extern "C"
10293 #endif
10294 char dcgettext ();
10295 int
10296 main ()
10297 {
10298 return dcgettext ();
10299 ;
10300 return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (ac_try="$ac_link"
10305 case "(($ac_try" in
10306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307 *) ac_try_echo=$ac_try;;
10308 esac
10309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10310 $as_echo "$ac_try_echo") >&5
10311 (eval "$ac_link") 2>conftest.er1
10312 ac_status=$?
10313 grep -v '^ *+' conftest.er1 >conftest.err
10314 rm -f conftest.er1
10315 cat conftest.err >&5
10316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); } && {
10318 test -z "$ac_c_werror_flag" ||
10319 test ! -s conftest.err
10320 } && test -s conftest$ac_exeext && {
10321 test "$cross_compiling" = yes ||
10322 $as_test_x conftest$ac_exeext
10323 }; then
10324 ac_cv_lib_intl_dcgettext=yes
10325 else
10326 $as_echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10329 ac_cv_lib_intl_dcgettext=no
10330 fi
10332 rm -rf conftest.dSYM
10333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10334 conftest$ac_exeext conftest.$ac_ext
10335 LIBS=$ac_check_lib_save_LIBS
10336 fi
10337 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
10338 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
10339 if test $ac_cv_lib_intl_dcgettext = yes; then
10340 gt_cv_func_dgettext_libintl=yes
10341 libintl_extra_libs=-liconv
10342 else
10343 :
10344 fi
10346 else
10347 :
10348 fi
10350 fi
10352 #
10353 # If we found libintl, then check in it for bind_textdomain_codeset();
10354 # we'll prefer libc if neither have bind_textdomain_codeset(),
10355 # and both have dgettext and ngettext
10356 #
10357 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
10358 glib_save_LIBS="$LIBS"
10359 LIBS="$LIBS -lintl $libintl_extra_libs"
10360 unset ac_cv_func_bind_textdomain_codeset
10362 for ac_func in bind_textdomain_codeset
10363 do
10364 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10365 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10366 $as_echo_n "checking for $ac_func... " >&6; }
10367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10368 $as_echo_n "(cached) " >&6
10369 else
10370 cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h. */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10378 #define $ac_func innocuous_$ac_func
10380 /* System header to define __stub macros and hopefully few prototypes,
10381 which can conflict with char $ac_func (); below.
10382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10383 <limits.h> exists even on freestanding compilers. */
10385 #ifdef __STDC__
10386 # include <limits.h>
10387 #else
10388 # include <assert.h>
10389 #endif
10391 #undef $ac_func
10393 /* Override any GCC internal prototype to avoid an error.
10394 Use char because int might match the return type of a GCC
10395 builtin and then its argument prototype would still apply. */
10396 #ifdef __cplusplus
10397 extern "C"
10398 #endif
10399 char $ac_func ();
10400 /* The GNU C library defines this for functions which it implements
10401 to always fail with ENOSYS. Some functions are actually named
10402 something starting with __ and the normal name is an alias. */
10403 #if defined __stub_$ac_func || defined __stub___$ac_func
10404 choke me
10405 #endif
10407 int
10408 main ()
10409 {
10410 return $ac_func ();
10411 ;
10412 return 0;
10413 }
10414 _ACEOF
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (ac_try="$ac_link"
10417 case "(($ac_try" in
10418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10419 *) ac_try_echo=$ac_try;;
10420 esac
10421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10422 $as_echo "$ac_try_echo") >&5
10423 (eval "$ac_link") 2>conftest.er1
10424 ac_status=$?
10425 grep -v '^ *+' conftest.er1 >conftest.err
10426 rm -f conftest.er1
10427 cat conftest.err >&5
10428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } && {
10430 test -z "$ac_c_werror_flag" ||
10431 test ! -s conftest.err
10432 } && test -s conftest$ac_exeext && {
10433 test "$cross_compiling" = yes ||
10434 $as_test_x conftest$ac_exeext
10435 }; then
10436 eval "$as_ac_var=yes"
10437 else
10438 $as_echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10441 eval "$as_ac_var=no"
10442 fi
10444 rm -rf conftest.dSYM
10445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10446 conftest$ac_exeext conftest.$ac_ext
10447 fi
10448 ac_res=`eval 'as_val=${'$as_ac_var'}
10449 $as_echo "$as_val"'`
10450 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10451 $as_echo "$ac_res" >&6; }
10452 if test `eval 'as_val=${'$as_ac_var'}
10453 $as_echo "$as_val"'` = yes; then
10454 cat >>confdefs.h <<_ACEOF
10455 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10456 _ACEOF
10458 fi
10459 done
10461 LIBS="$glib_save_LIBS"
10463 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
10464 gt_cv_func_dgettext_libc=no
10465 else
10466 if test "$gt_cv_func_dgettext_libc" = "yes" \
10467 && test "$gt_cv_func_ngettext_libc" = "yes"; then
10468 gt_cv_func_dgettext_libintl=no
10469 fi
10470 fi
10471 fi
10472 fi
10474 if test "$gt_cv_func_dgettext_libc" = "yes" \
10475 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
10476 gt_cv_have_gettext=yes
10477 fi
10479 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
10480 INTLLIBS="-lintl $libintl_extra_libs"
10481 fi
10483 if test "$gt_cv_have_gettext" = "yes"; then
10485 cat >>confdefs.h <<\_ACEOF
10486 #define HAVE_GETTEXT 1
10487 _ACEOF
10489 # Extract the first word of "msgfmt", so it can be a program name with args.
10490 set dummy msgfmt; ac_word=$2
10491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10492 $as_echo_n "checking for $ac_word... " >&6; }
10493 if test "${ac_cv_path_MSGFMT+set}" = set; then
10494 $as_echo_n "(cached) " >&6
10495 else
10496 case "$MSGFMT" in
10497 /*)
10498 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10499 ;;
10500 *)
10501 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10502 for ac_dir in $PATH; do
10503 test -z "$ac_dir" && ac_dir=.
10504 if test -f $ac_dir/$ac_word; then
10505 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
10506 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
10507 break
10508 fi
10509 fi
10510 done
10511 IFS="$ac_save_ifs"
10512 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
10513 ;;
10514 esac
10515 fi
10516 MSGFMT="$ac_cv_path_MSGFMT"
10517 if test "$MSGFMT" != "no"; then
10518 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10519 $as_echo "$MSGFMT" >&6; }
10520 else
10521 { $as_echo "$as_me:$LINENO: result: no" >&5
10522 $as_echo "no" >&6; }
10523 fi
10524 if test "$MSGFMT" != "no"; then
10525 glib_save_LIBS="$LIBS"
10526 LIBS="$LIBS $INTLLIBS"
10528 for ac_func in dcgettext
10529 do
10530 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10531 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10532 $as_echo_n "checking for $ac_func... " >&6; }
10533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10534 $as_echo_n "(cached) " >&6
10535 else
10536 cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h. */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10544 #define $ac_func innocuous_$ac_func
10546 /* System header to define __stub macros and hopefully few prototypes,
10547 which can conflict with char $ac_func (); below.
10548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10549 <limits.h> exists even on freestanding compilers. */
10551 #ifdef __STDC__
10552 # include <limits.h>
10553 #else
10554 # include <assert.h>
10555 #endif
10557 #undef $ac_func
10559 /* Override any GCC internal prototype to avoid an error.
10560 Use char because int might match the return type of a GCC
10561 builtin and then its argument prototype would still apply. */
10562 #ifdef __cplusplus
10563 extern "C"
10564 #endif
10565 char $ac_func ();
10566 /* The GNU C library defines this for functions which it implements
10567 to always fail with ENOSYS. Some functions are actually named
10568 something starting with __ and the normal name is an alias. */
10569 #if defined __stub_$ac_func || defined __stub___$ac_func
10570 choke me
10571 #endif
10573 int
10574 main ()
10575 {
10576 return $ac_func ();
10577 ;
10578 return 0;
10579 }
10580 _ACEOF
10581 rm -f conftest.$ac_objext conftest$ac_exeext
10582 if { (ac_try="$ac_link"
10583 case "(($ac_try" in
10584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585 *) ac_try_echo=$ac_try;;
10586 esac
10587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10588 $as_echo "$ac_try_echo") >&5
10589 (eval "$ac_link") 2>conftest.er1
10590 ac_status=$?
10591 grep -v '^ *+' conftest.er1 >conftest.err
10592 rm -f conftest.er1
10593 cat conftest.err >&5
10594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest$ac_exeext && {
10599 test "$cross_compiling" = yes ||
10600 $as_test_x conftest$ac_exeext
10601 }; then
10602 eval "$as_ac_var=yes"
10603 else
10604 $as_echo "$as_me: failed program was:" >&5
10605 sed 's/^/| /' conftest.$ac_ext >&5
10607 eval "$as_ac_var=no"
10608 fi
10610 rm -rf conftest.dSYM
10611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10612 conftest$ac_exeext conftest.$ac_ext
10613 fi
10614 ac_res=`eval 'as_val=${'$as_ac_var'}
10615 $as_echo "$as_val"'`
10616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10617 $as_echo "$ac_res" >&6; }
10618 if test `eval 'as_val=${'$as_ac_var'}
10619 $as_echo "$as_val"'` = yes; then
10620 cat >>confdefs.h <<_ACEOF
10621 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10622 _ACEOF
10624 fi
10625 done
10627 MSGFMT_OPTS=
10628 { $as_echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
10629 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
10630 cat >conftest.foo <<_ACEOF
10632 msgid ""
10633 msgstr ""
10634 "Content-Type: text/plain; charset=UTF-8\n"
10635 "Project-Id-Version: test 1.0\n"
10636 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
10637 "Last-Translator: test <foo@bar.xx>\n"
10638 "Language-Team: C <LL@li.org>\n"
10639 "MIME-Version: 1.0\n"
10640 "Content-Transfer-Encoding: 8bit\n"
10642 _ACEOF
10643 if { ($as_echo "$as_me:$LINENO: msgfmt -c -o /dev/null conftest.foo") >&5
10644 (msgfmt -c -o /dev/null conftest.foo) 2>&5
10645 ac_status=$?
10646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; then
10648 MSGFMT_OPTS=-c; { $as_echo "$as_me:$LINENO: result: yes" >&5
10649 $as_echo "yes" >&6; }
10650 else { $as_echo "$as_me:$LINENO: result: no" >&5
10651 $as_echo "no" >&6; }
10652 echo "$as_me: failed input was:" >&5
10653 sed 's/^/| /' conftest.foo >&5
10654 fi
10656 # Extract the first word of "gmsgfmt", so it can be a program name with args.
10657 set dummy gmsgfmt; ac_word=$2
10658 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10659 $as_echo_n "checking for $ac_word... " >&6; }
10660 if test "${ac_cv_path_GMSGFMT+set}" = set; then
10661 $as_echo_n "(cached) " >&6
10662 else
10663 case $GMSGFMT in
10664 [\\/]* | ?:[\\/]*)
10665 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10666 ;;
10667 *)
10668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10669 for as_dir in $PATH
10670 do
10671 IFS=$as_save_IFS
10672 test -z "$as_dir" && as_dir=.
10673 for ac_exec_ext in '' $ac_executable_extensions; do
10674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10675 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10676 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10677 break 2
10678 fi
10679 done
10680 done
10681 IFS=$as_save_IFS
10683 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10684 ;;
10685 esac
10686 fi
10687 GMSGFMT=$ac_cv_path_GMSGFMT
10688 if test -n "$GMSGFMT"; then
10689 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
10690 $as_echo "$GMSGFMT" >&6; }
10691 else
10692 { $as_echo "$as_me:$LINENO: result: no" >&5
10693 $as_echo "no" >&6; }
10694 fi
10697 # Extract the first word of "xgettext", so it can be a program name with args.
10698 set dummy xgettext; ac_word=$2
10699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10700 $as_echo_n "checking for $ac_word... " >&6; }
10701 if test "${ac_cv_path_XGETTEXT+set}" = set; then
10702 $as_echo_n "(cached) " >&6
10703 else
10704 case "$XGETTEXT" in
10705 /*)
10706 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10707 ;;
10708 *)
10709 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
10710 for ac_dir in $PATH; do
10711 test -z "$ac_dir" && ac_dir=.
10712 if test -f $ac_dir/$ac_word; then
10713 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
10714 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
10715 break
10716 fi
10717 fi
10718 done
10719 IFS="$ac_save_ifs"
10720 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10721 ;;
10722 esac
10723 fi
10724 XGETTEXT="$ac_cv_path_XGETTEXT"
10725 if test "$XGETTEXT" != ":"; then
10726 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
10727 $as_echo "$XGETTEXT" >&6; }
10728 else
10729 { $as_echo "$as_me:$LINENO: result: no" >&5
10730 $as_echo "no" >&6; }
10731 fi
10733 cat >conftest.$ac_ext <<_ACEOF
10734 /* confdefs.h. */
10735 _ACEOF
10736 cat confdefs.h >>conftest.$ac_ext
10737 cat >>conftest.$ac_ext <<_ACEOF
10738 /* end confdefs.h. */
10740 int
10741 main ()
10742 {
10743 extern int _nl_msg_cat_cntr;
10744 return _nl_msg_cat_cntr
10745 ;
10746 return 0;
10747 }
10748 _ACEOF
10749 rm -f conftest.$ac_objext conftest$ac_exeext
10750 if { (ac_try="$ac_link"
10751 case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754 esac
10755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10756 $as_echo "$ac_try_echo") >&5
10757 (eval "$ac_link") 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && {
10764 test -z "$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10766 } && test -s conftest$ac_exeext && {
10767 test "$cross_compiling" = yes ||
10768 $as_test_x conftest$ac_exeext
10769 }; then
10770 CATOBJEXT=.gmo
10771 DATADIRNAME=share
10772 else
10773 $as_echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10776 case $host in
10777 *-*-solaris*)
10778 { $as_echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
10779 $as_echo_n "checking for bind_textdomain_codeset... " >&6; }
10780 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
10781 $as_echo_n "(cached) " >&6
10782 else
10783 cat >conftest.$ac_ext <<_ACEOF
10784 /* confdefs.h. */
10785 _ACEOF
10786 cat confdefs.h >>conftest.$ac_ext
10787 cat >>conftest.$ac_ext <<_ACEOF
10788 /* end confdefs.h. */
10789 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
10790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10791 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
10793 /* System header to define __stub macros and hopefully few prototypes,
10794 which can conflict with char bind_textdomain_codeset (); below.
10795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10796 <limits.h> exists even on freestanding compilers. */
10798 #ifdef __STDC__
10799 # include <limits.h>
10800 #else
10801 # include <assert.h>
10802 #endif
10804 #undef bind_textdomain_codeset
10806 /* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10809 #ifdef __cplusplus
10810 extern "C"
10811 #endif
10812 char bind_textdomain_codeset ();
10813 /* The GNU C library defines this for functions which it implements
10814 to always fail with ENOSYS. Some functions are actually named
10815 something starting with __ and the normal name is an alias. */
10816 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
10817 choke me
10818 #endif
10820 int
10821 main ()
10822 {
10823 return bind_textdomain_codeset ();
10824 ;
10825 return 0;
10826 }
10827 _ACEOF
10828 rm -f conftest.$ac_objext conftest$ac_exeext
10829 if { (ac_try="$ac_link"
10830 case "(($ac_try" in
10831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10832 *) ac_try_echo=$ac_try;;
10833 esac
10834 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10835 $as_echo "$ac_try_echo") >&5
10836 (eval "$ac_link") 2>conftest.er1
10837 ac_status=$?
10838 grep -v '^ *+' conftest.er1 >conftest.err
10839 rm -f conftest.er1
10840 cat conftest.err >&5
10841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } && {
10843 test -z "$ac_c_werror_flag" ||
10844 test ! -s conftest.err
10845 } && test -s conftest$ac_exeext && {
10846 test "$cross_compiling" = yes ||
10847 $as_test_x conftest$ac_exeext
10848 }; then
10849 ac_cv_func_bind_textdomain_codeset=yes
10850 else
10851 $as_echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 ac_cv_func_bind_textdomain_codeset=no
10855 fi
10857 rm -rf conftest.dSYM
10858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10859 conftest$ac_exeext conftest.$ac_ext
10860 fi
10861 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
10862 $as_echo "$ac_cv_func_bind_textdomain_codeset" >&6; }
10863 if test $ac_cv_func_bind_textdomain_codeset = yes; then
10864 CATOBJEXT=.gmo
10865 DATADIRNAME=share
10866 else
10867 CATOBJEXT=.mo
10868 DATADIRNAME=lib
10869 fi
10871 ;;
10872 *)
10873 CATOBJEXT=.mo
10874 DATADIRNAME=lib
10875 ;;
10876 esac
10877 fi
10879 rm -rf conftest.dSYM
10880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10881 conftest$ac_exeext conftest.$ac_ext
10882 LIBS="$glib_save_LIBS"
10883 INSTOBJEXT=.mo
10884 else
10885 gt_cv_have_gettext=no
10886 fi
10887 fi
10889 fi
10893 if test "$gt_cv_have_gettext" = "yes" ; then
10895 cat >>confdefs.h <<\_ACEOF
10896 #define ENABLE_NLS 1
10897 _ACEOF
10899 fi
10901 if test "$XGETTEXT" != ":"; then
10902 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
10903 : ;
10904 else
10905 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
10906 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
10907 XGETTEXT=":"
10908 fi
10909 fi
10911 # We need to process the po/ directory.
10912 POSUB=po
10914 ac_config_commands="$ac_config_commands default-1"
10917 for lang in $ALL_LINGUAS; do
10918 GMOFILES="$GMOFILES $lang.gmo"
10919 POFILES="$POFILES $lang.po"
10920 done
10934 if test "$gt_cv_have_gettext" = "yes"; then
10935 if test "x$ALL_LINGUAS" = "x"; then
10936 LINGUAS=
10937 else
10938 { $as_echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
10939 $as_echo_n "checking for catalogs to be installed... " >&6; }
10940 NEW_LINGUAS=
10941 for presentlang in $ALL_LINGUAS; do
10942 useit=no
10943 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
10944 desiredlanguages="$LINGUAS"
10945 else
10946 desiredlanguages="$ALL_LINGUAS"
10947 fi
10948 for desiredlang in $desiredlanguages; do
10949 # Use the presentlang catalog if desiredlang is
10950 # a. equal to presentlang, or
10951 # b. a variant of presentlang (because in this case,
10952 # presentlang can be used as a fallback for messages
10953 # which are not translated in the desiredlang catalog).
10954 case "$desiredlang" in
10955 "$presentlang"*) useit=yes;;
10956 esac
10957 done
10958 if test $useit = yes; then
10959 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
10960 fi
10961 done
10962 LINGUAS=$NEW_LINGUAS
10963 { $as_echo "$as_me:$LINENO: result: $LINGUAS" >&5
10964 $as_echo "$LINGUAS" >&6; }
10965 fi
10967 if test -n "$LINGUAS"; then
10968 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
10969 fi
10970 fi
10972 MKINSTALLDIRS=
10973 if test -n "$ac_aux_dir"; then
10974 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
10975 fi
10976 if test -z "$MKINSTALLDIRS"; then
10977 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
10978 fi
10981 test -d po || mkdir po
10982 if test "x$srcdir" != "x."; then
10983 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
10984 posrcprefix="$srcdir/"
10985 else
10986 posrcprefix="../$srcdir/"
10987 fi
10988 else
10989 posrcprefix="../"
10990 fi
10991 rm -f po/POTFILES
10992 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
10993 < $srcdir/po/POTFILES.in > po/POTFILES
10996 ac_config_files="$ac_config_files Makefile src/Makefile po/Makefile.in test/Makefile"
10998 cat >confcache <<\_ACEOF
10999 # This file is a shell script that caches the results of configure
11000 # tests run on this system so they can be shared between configure
11001 # scripts and configure runs, see configure's option --config-cache.
11002 # It is not useful on other systems. If it contains results you don't
11003 # want to keep, you may remove or edit it.
11004 #
11005 # config.status only pays attention to the cache file if you give it
11006 # the --recheck option to rerun configure.
11007 #
11008 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11009 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11010 # following values.
11012 _ACEOF
11014 # The following way of writing the cache mishandles newlines in values,
11015 # but we know of no workaround that is simple, portable, and efficient.
11016 # So, we kill variables containing newlines.
11017 # Ultrix sh set writes to stderr and can't be redirected directly,
11018 # and sets the high bit in the cache file unless we assign to the vars.
11019 (
11020 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11021 eval ac_val=\$$ac_var
11022 case $ac_val in #(
11023 *${as_nl}*)
11024 case $ac_var in #(
11025 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11026 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11027 esac
11028 case $ac_var in #(
11029 _ | IFS | as_nl) ;; #(
11030 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11031 *) $as_unset $ac_var ;;
11032 esac ;;
11033 esac
11034 done
11036 (set) 2>&1 |
11037 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11038 *${as_nl}ac_space=\ *)
11039 # `set' does not quote correctly, so add quotes (double-quote
11040 # substitution turns \\\\ into \\, and sed turns \\ into \).
11041 sed -n \
11042 "s/'/'\\\\''/g;
11043 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11044 ;; #(
11045 *)
11046 # `set' quotes correctly as required by POSIX, so do not add quotes.
11047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11048 ;;
11049 esac |
11050 sort
11051 ) |
11052 sed '
11053 /^ac_cv_env_/b end
11054 t clear
11055 :clear
11056 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11057 t end
11058 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11059 :end' >>confcache
11060 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11061 if test -w "$cache_file"; then
11062 test "x$cache_file" != "x/dev/null" &&
11063 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11064 $as_echo "$as_me: updating cache $cache_file" >&6;}
11065 cat confcache >$cache_file
11066 else
11067 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11068 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11069 fi
11070 fi
11071 rm -f confcache
11073 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11074 # Let make expand exec_prefix.
11075 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11077 DEFS=-DHAVE_CONFIG_H
11079 ac_libobjs=
11080 ac_ltlibobjs=
11081 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11082 # 1. Remove the extension, and $U if already installed.
11083 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11084 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11085 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11086 # will be set to the directory where LIBOBJS objects are built.
11087 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11088 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11089 done
11090 LIBOBJS=$ac_libobjs
11092 LTLIBOBJS=$ac_ltlibobjs
11095 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11096 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11097 Usually this means the macro was only invoked conditionally." >&5
11098 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11099 Usually this means the macro was only invoked conditionally." >&2;}
11100 { (exit 1); exit 1; }; }
11101 fi
11102 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11103 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11104 Usually this means the macro was only invoked conditionally." >&5
11105 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
11106 Usually this means the macro was only invoked conditionally." >&2;}
11107 { (exit 1); exit 1; }; }
11108 fi
11109 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11110 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11111 Usually this means the macro was only invoked conditionally." >&5
11112 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11113 Usually this means the macro was only invoked conditionally." >&2;}
11114 { (exit 1); exit 1; }; }
11115 fi
11116 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11117 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11118 Usually this means the macro was only invoked conditionally." >&5
11119 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11120 Usually this means the macro was only invoked conditionally." >&2;}
11121 { (exit 1); exit 1; }; }
11122 fi
11123 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11124 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11125 Usually this means the macro was only invoked conditionally." >&5
11126 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11127 Usually this means the macro was only invoked conditionally." >&2;}
11128 { (exit 1); exit 1; }; }
11129 fi
11130 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
11131 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
11132 Usually this means the macro was only invoked conditionally." >&5
11133 $as_echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
11134 Usually this means the macro was only invoked conditionally." >&2;}
11135 { (exit 1); exit 1; }; }
11136 fi
11137 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
11138 { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
11139 Usually this means the macro was only invoked conditionally." >&5
11140 $as_echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
11141 Usually this means the macro was only invoked conditionally." >&2;}
11142 { (exit 1); exit 1; }; }
11143 fi
11144 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
11145 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
11146 Usually this means the macro was only invoked conditionally." >&5
11147 $as_echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
11148 Usually this means the macro was only invoked conditionally." >&2;}
11149 { (exit 1); exit 1; }; }
11150 fi
11151 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
11152 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
11153 Usually this means the macro was only invoked conditionally." >&5
11154 $as_echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
11155 Usually this means the macro was only invoked conditionally." >&2;}
11156 { (exit 1); exit 1; }; }
11157 fi
11158 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
11159 { { $as_echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
11160 Usually this means the macro was only invoked conditionally." >&5
11161 $as_echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
11162 Usually this means the macro was only invoked conditionally." >&2;}
11163 { (exit 1); exit 1; }; }
11164 fi
11165 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
11166 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
11167 Usually this means the macro was only invoked conditionally." >&5
11168 $as_echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
11169 Usually this means the macro was only invoked conditionally." >&2;}
11170 { (exit 1); exit 1; }; }
11171 fi
11172 if test -z "${BUILD_X86_64_TRUE}" && test -z "${BUILD_X86_64_FALSE}"; then
11173 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_X86_64\" was never defined.
11174 Usually this means the macro was only invoked conditionally." >&5
11175 $as_echo "$as_me: error: conditional \"BUILD_X86_64\" was never defined.
11176 Usually this means the macro was only invoked conditionally." >&2;}
11177 { (exit 1); exit 1; }; }
11178 fi
11179 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
11180 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
11181 Usually this means the macro was only invoked conditionally." >&5
11182 $as_echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
11183 Usually this means the macro was only invoked conditionally." >&2;}
11184 { (exit 1); exit 1; }; }
11185 fi
11186 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
11187 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
11188 Usually this means the macro was only invoked conditionally." >&5
11189 $as_echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
11190 Usually this means the macro was only invoked conditionally." >&2;}
11191 { (exit 1); exit 1; }; }
11192 fi
11193 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
11194 { { $as_echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
11195 Usually this means the macro was only invoked conditionally." >&5
11196 $as_echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
11197 Usually this means the macro was only invoked conditionally." >&2;}
11198 { (exit 1); exit 1; }; }
11199 fi
11200 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
11201 { { $as_echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
11202 Usually this means the macro was only invoked conditionally." >&5
11203 $as_echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
11204 Usually this means the macro was only invoked conditionally." >&2;}
11205 { (exit 1); exit 1; }; }
11206 fi
11207 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
11208 { { $as_echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
11209 Usually this means the macro was only invoked conditionally." >&5
11210 $as_echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
11211 Usually this means the macro was only invoked conditionally." >&2;}
11212 { (exit 1); exit 1; }; }
11213 fi
11214 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
11215 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
11216 Usually this means the macro was only invoked conditionally." >&5
11217 $as_echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
11218 Usually this means the macro was only invoked conditionally." >&2;}
11219 { (exit 1); exit 1; }; }
11220 fi
11221 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
11222 { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
11223 Usually this means the macro was only invoked conditionally." >&5
11224 $as_echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
11225 Usually this means the macro was only invoked conditionally." >&2;}
11226 { (exit 1); exit 1; }; }
11227 fi
11229 : ${CONFIG_STATUS=./config.status}
11230 ac_write_fail=0
11231 ac_clean_files_save=$ac_clean_files
11232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11233 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11234 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11235 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11236 #! $SHELL
11237 # Generated by $as_me.
11238 # Run this file to recreate the current configuration.
11239 # Compiler output produced by configure, useful for debugging
11240 # configure, is in config.log if it exists.
11242 debug=false
11243 ac_cs_recheck=false
11244 ac_cs_silent=false
11245 SHELL=\${CONFIG_SHELL-$SHELL}
11246 _ACEOF
11248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11249 ## --------------------- ##
11250 ## M4sh Initialization. ##
11251 ## --------------------- ##
11253 # Be more Bourne compatible
11254 DUALCASE=1; export DUALCASE # for MKS sh
11255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11256 emulate sh
11257 NULLCMD=:
11258 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11259 # is contrary to our usage. Disable this feature.
11260 alias -g '${1+"$@"}'='"$@"'
11261 setopt NO_GLOB_SUBST
11262 else
11263 case `(set -o) 2>/dev/null` in
11264 *posix*) set -o posix ;;
11265 esac
11267 fi
11272 # PATH needs CR
11273 # Avoid depending upon Character Ranges.
11274 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11275 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11276 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11277 as_cr_digits='0123456789'
11278 as_cr_alnum=$as_cr_Letters$as_cr_digits
11280 as_nl='
11281 '
11282 export as_nl
11283 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11284 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11285 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11287 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11288 as_echo='printf %s\n'
11289 as_echo_n='printf %s'
11290 else
11291 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11292 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11293 as_echo_n='/usr/ucb/echo -n'
11294 else
11295 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11296 as_echo_n_body='eval
11297 arg=$1;
11298 case $arg in
11299 *"$as_nl"*)
11300 expr "X$arg" : "X\\(.*\\)$as_nl";
11301 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11302 esac;
11303 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11304 '
11305 export as_echo_n_body
11306 as_echo_n='sh -c $as_echo_n_body as_echo'
11307 fi
11308 export as_echo_body
11309 as_echo='sh -c $as_echo_body as_echo'
11310 fi
11312 # The user is always right.
11313 if test "${PATH_SEPARATOR+set}" != set; then
11314 PATH_SEPARATOR=:
11315 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11316 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11317 PATH_SEPARATOR=';'
11318 }
11319 fi
11321 # Support unset when possible.
11322 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11323 as_unset=unset
11324 else
11325 as_unset=false
11326 fi
11329 # IFS
11330 # We need space, tab and new line, in precisely that order. Quoting is
11331 # there to prevent editors from complaining about space-tab.
11332 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11333 # splitting by setting IFS to empty value.)
11334 IFS=" "" $as_nl"
11336 # Find who we are. Look in the path if we contain no directory separator.
11337 case $0 in
11338 *[\\/]* ) as_myself=$0 ;;
11339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11341 do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11345 done
11346 IFS=$as_save_IFS
11348 ;;
11349 esac
11350 # We did not find ourselves, most probably we were run as `sh COMMAND'
11351 # in which case we are not to be found in the path.
11352 if test "x$as_myself" = x; then
11353 as_myself=$0
11354 fi
11355 if test ! -f "$as_myself"; then
11356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11357 { (exit 1); exit 1; }
11358 fi
11360 # Work around bugs in pre-3.0 UWIN ksh.
11361 for as_var in ENV MAIL MAILPATH
11362 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11363 done
11364 PS1='$ '
11365 PS2='> '
11366 PS4='+ '
11368 # NLS nuisances.
11369 LC_ALL=C
11370 export LC_ALL
11371 LANGUAGE=C
11372 export LANGUAGE
11374 # Required to use basename.
11375 if expr a : '\(a\)' >/dev/null 2>&1 &&
11376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11377 as_expr=expr
11378 else
11379 as_expr=false
11380 fi
11382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11383 as_basename=basename
11384 else
11385 as_basename=false
11386 fi
11389 # Name of the executable.
11390 as_me=`$as_basename -- "$0" ||
11391 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11392 X"$0" : 'X\(//\)$' \| \
11393 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11394 $as_echo X/"$0" |
11395 sed '/^.*\/\([^/][^/]*\)\/*$/{
11396 s//\1/
11397 q
11398 }
11399 /^X\/\(\/\/\)$/{
11400 s//\1/
11401 q
11402 }
11403 /^X\/\(\/\).*/{
11404 s//\1/
11405 q
11406 }
11407 s/.*/./; q'`
11409 # CDPATH.
11410 $as_unset CDPATH
11414 as_lineno_1=$LINENO
11415 as_lineno_2=$LINENO
11416 test "x$as_lineno_1" != "x$as_lineno_2" &&
11417 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11419 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11420 # uniformly replaced by the line number. The first 'sed' inserts a
11421 # line-number line after each line using $LINENO; the second 'sed'
11422 # does the real work. The second script uses 'N' to pair each
11423 # line-number line with the line containing $LINENO, and appends
11424 # trailing '-' during substitution so that $LINENO is not a special
11425 # case at line end.
11426 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11427 # scripts with optimization help from Paolo Bonzini. Blame Lee
11428 # E. McMahon (1931-1989) for sed's syntax. :-)
11429 sed -n '
11430 p
11431 /[$]LINENO/=
11432 ' <$as_myself |
11433 sed '
11434 s/[$]LINENO.*/&-/
11435 t lineno
11436 b
11437 :lineno
11438 N
11439 :loop
11440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11441 t loop
11442 s/-\n.*//
11443 ' >$as_me.lineno &&
11444 chmod +x "$as_me.lineno" ||
11445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11446 { (exit 1); exit 1; }; }
11448 # Don't try to exec as it changes $[0], causing all sort of problems
11449 # (the dirname of $[0] is not the place where we might find the
11450 # original and so on. Autoconf is especially sensitive to this).
11451 . "./$as_me.lineno"
11452 # Exit status is that of the last command.
11453 exit
11454 }
11457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11458 as_dirname=dirname
11459 else
11460 as_dirname=false
11461 fi
11463 ECHO_C= ECHO_N= ECHO_T=
11464 case `echo -n x` in
11465 -n*)
11466 case `echo 'x\c'` in
11467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11468 *) ECHO_C='\c';;
11469 esac;;
11470 *)
11471 ECHO_N='-n';;
11472 esac
11473 if expr a : '\(a\)' >/dev/null 2>&1 &&
11474 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11475 as_expr=expr
11476 else
11477 as_expr=false
11478 fi
11480 rm -f conf$$ conf$$.exe conf$$.file
11481 if test -d conf$$.dir; then
11482 rm -f conf$$.dir/conf$$.file
11483 else
11484 rm -f conf$$.dir
11485 mkdir conf$$.dir 2>/dev/null
11486 fi
11487 if (echo >conf$$.file) 2>/dev/null; then
11488 if ln -s conf$$.file conf$$ 2>/dev/null; then
11489 as_ln_s='ln -s'
11490 # ... but there are two gotchas:
11491 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11492 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11493 # In both cases, we have to default to `cp -p'.
11494 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11495 as_ln_s='cp -p'
11496 elif ln conf$$.file conf$$ 2>/dev/null; then
11497 as_ln_s=ln
11498 else
11499 as_ln_s='cp -p'
11500 fi
11501 else
11502 as_ln_s='cp -p'
11503 fi
11504 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11505 rmdir conf$$.dir 2>/dev/null
11507 if mkdir -p . 2>/dev/null; then
11508 as_mkdir_p=:
11509 else
11510 test -d ./-p && rmdir ./-p
11511 as_mkdir_p=false
11512 fi
11514 if test -x / >/dev/null 2>&1; then
11515 as_test_x='test -x'
11516 else
11517 if ls -dL / >/dev/null 2>&1; then
11518 as_ls_L_option=L
11519 else
11520 as_ls_L_option=
11521 fi
11522 as_test_x='
11523 eval sh -c '\''
11524 if test -d "$1"; then
11525 test -d "$1/.";
11526 else
11527 case $1 in
11528 -*)set "./$1";;
11529 esac;
11530 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11531 ???[sx]*):;;*)false;;esac;fi
11532 '\'' sh
11533 '
11534 fi
11535 as_executable_p=$as_test_x
11537 # Sed expression to map a string onto a valid CPP name.
11538 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11540 # Sed expression to map a string onto a valid variable name.
11541 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11544 exec 6>&1
11546 # Save the log message, to keep $[0] and so on meaningful, and to
11547 # report actual input values of CONFIG_FILES etc. instead of their
11548 # values after options handling.
11549 ac_log="
11550 This file was extended by $as_me, which was
11551 generated by GNU Autoconf 2.62. Invocation command line was
11553 CONFIG_FILES = $CONFIG_FILES
11554 CONFIG_HEADERS = $CONFIG_HEADERS
11555 CONFIG_LINKS = $CONFIG_LINKS
11556 CONFIG_COMMANDS = $CONFIG_COMMANDS
11557 $ $0 $@
11559 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11560 "
11562 _ACEOF
11564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11565 # Files that config.status was made for.
11566 config_files="$ac_config_files"
11567 config_headers="$ac_config_headers"
11568 config_commands="$ac_config_commands"
11570 _ACEOF
11572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11573 ac_cs_usage="\
11574 \`$as_me' instantiates files from templates according to the
11575 current configuration.
11577 Usage: $0 [OPTIONS] [FILE]...
11579 -h, --help print this help, then exit
11580 -V, --version print version number and configuration settings, then exit
11581 -q, --quiet do not print progress messages
11582 -d, --debug don't remove temporary files
11583 --recheck update $as_me by reconfiguring in the same conditions
11584 --file=FILE[:TEMPLATE]
11585 instantiate the configuration file FILE
11586 --header=FILE[:TEMPLATE]
11587 instantiate the configuration header FILE
11589 Configuration files:
11590 $config_files
11592 Configuration headers:
11593 $config_headers
11595 Configuration commands:
11596 $config_commands
11598 Report bugs to <bug-autoconf@gnu.org>."
11600 _ACEOF
11601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11602 ac_cs_version="\\
11603 config.status
11604 configured by $0, generated by GNU Autoconf 2.62,
11605 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11607 Copyright (C) 2008 Free Software Foundation, Inc.
11608 This config.status script is free software; the Free Software Foundation
11609 gives unlimited permission to copy, distribute and modify it."
11611 ac_pwd='$ac_pwd'
11612 srcdir='$srcdir'
11613 INSTALL='$INSTALL'
11614 AWK='$AWK'
11615 test -n "\$AWK" || AWK=awk
11616 _ACEOF
11618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11619 # The default lists apply if the user does not specify any file.
11620 ac_need_defaults=:
11621 while test $# != 0
11622 do
11623 case $1 in
11624 --*=*)
11625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11626 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11627 ac_shift=:
11628 ;;
11629 *)
11630 ac_option=$1
11631 ac_optarg=$2
11632 ac_shift=shift
11633 ;;
11634 esac
11636 case $ac_option in
11637 # Handling of the options.
11638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11639 ac_cs_recheck=: ;;
11640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11641 $as_echo "$ac_cs_version"; exit ;;
11642 --debug | --debu | --deb | --de | --d | -d )
11643 debug=: ;;
11644 --file | --fil | --fi | --f )
11645 $ac_shift
11646 case $ac_optarg in
11647 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11648 esac
11649 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11650 ac_need_defaults=false;;
11651 --header | --heade | --head | --hea )
11652 $ac_shift
11653 case $ac_optarg in
11654 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11655 esac
11656 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11657 ac_need_defaults=false;;
11658 --he | --h)
11659 # Conflict between --help and --header
11660 { $as_echo "$as_me: error: ambiguous option: $1
11661 Try \`$0 --help' for more information." >&2
11662 { (exit 1); exit 1; }; };;
11663 --help | --hel | -h )
11664 $as_echo "$ac_cs_usage"; exit ;;
11665 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11666 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11667 ac_cs_silent=: ;;
11669 # This is an error.
11670 -*) { $as_echo "$as_me: error: unrecognized option: $1
11671 Try \`$0 --help' for more information." >&2
11672 { (exit 1); exit 1; }; } ;;
11674 *) ac_config_targets="$ac_config_targets $1"
11675 ac_need_defaults=false ;;
11677 esac
11678 shift
11679 done
11681 ac_configure_extra_args=
11683 if $ac_cs_silent; then
11684 exec 6>/dev/null
11685 ac_configure_extra_args="$ac_configure_extra_args --silent"
11686 fi
11688 _ACEOF
11689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11690 if \$ac_cs_recheck; then
11691 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11692 shift
11693 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11694 CONFIG_SHELL='$SHELL'
11695 export CONFIG_SHELL
11696 exec "\$@"
11697 fi
11699 _ACEOF
11700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11701 exec 5>>config.log
11702 {
11703 echo
11704 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11705 ## Running $as_me. ##
11706 _ASBOX
11707 $as_echo "$ac_log"
11708 } >&5
11710 _ACEOF
11711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11712 #
11713 # INIT-COMMANDS
11714 #
11715 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11718 _ACEOF
11720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11722 # Handling of arguments.
11723 for ac_config_target in $ac_config_targets
11724 do
11725 case $ac_config_target in
11726 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11727 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11728 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11729 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11730 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11731 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11732 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
11734 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11735 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11736 { (exit 1); exit 1; }; };;
11737 esac
11738 done
11741 # If the user did not use the arguments to specify the items to instantiate,
11742 # then the envvar interface is used. Set only those that are not.
11743 # We use the long form for the default assignment because of an extremely
11744 # bizarre bug on SunOS 4.1.3.
11745 if $ac_need_defaults; then
11746 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11747 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11748 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11749 fi
11751 # Have a temporary directory for convenience. Make it in the build tree
11752 # simply because there is no reason against having it here, and in addition,
11753 # creating and moving files from /tmp can sometimes cause problems.
11754 # Hook for its removal unless debugging.
11755 # Note that there is a small window in which the directory will not be cleaned:
11756 # after its creation but before its name has been assigned to `$tmp'.
11757 $debug ||
11758 {
11759 tmp=
11760 trap 'exit_status=$?
11761 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11762 ' 0
11763 trap '{ (exit 1); exit 1; }' 1 2 13 15
11764 }
11765 # Create a (secure) tmp directory for tmp files.
11767 {
11768 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11769 test -n "$tmp" && test -d "$tmp"
11770 } ||
11771 {
11772 tmp=./conf$$-$RANDOM
11773 (umask 077 && mkdir "$tmp")
11774 } ||
11775 {
11776 $as_echo "$as_me: cannot create a temporary directory in ." >&2
11777 { (exit 1); exit 1; }
11778 }
11780 # Set up the scripts for CONFIG_FILES section.
11781 # No need to generate them if there are no CONFIG_FILES.
11782 # This happens for instance with `./config.status config.h'.
11783 if test -n "$CONFIG_FILES"; then
11786 ac_cr='
11787 '
11788 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11789 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11790 ac_cs_awk_cr='\\r'
11791 else
11792 ac_cs_awk_cr=$ac_cr
11793 fi
11795 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11796 _ACEOF
11799 {
11800 echo "cat >conf$$subs.awk <<_ACEOF" &&
11801 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11802 echo "_ACEOF"
11803 } >conf$$subs.sh ||
11804 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11805 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11806 { (exit 1); exit 1; }; }
11807 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11808 ac_delim='%!_!# '
11809 for ac_last_try in false false false false false :; do
11810 . ./conf$$subs.sh ||
11811 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11812 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11813 { (exit 1); exit 1; }; }
11815 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
11816 break
11817 elif $ac_last_try; then
11818 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11819 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11820 { (exit 1); exit 1; }; }
11821 else
11822 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11823 fi
11824 done
11825 rm -f conf$$subs.sh
11827 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11828 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11829 _ACEOF
11830 sed -n '
11831 h
11832 s/^/S["/; s/!.*/"]=/
11833 p
11834 g
11835 s/^[^!]*!//
11836 :repl
11837 t repl
11838 s/'"$ac_delim"'$//
11839 t delim
11840 :nl
11841 h
11842 s/\(.\{148\}\).*/\1/
11843 t more1
11844 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11845 p
11846 n
11847 b repl
11848 :more1
11849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11850 p
11851 g
11852 s/.\{148\}//
11853 t nl
11854 :delim
11855 h
11856 s/\(.\{148\}\).*/\1/
11857 t more2
11858 s/["\\]/\\&/g; s/^/"/; s/$/"/
11859 p
11860 b
11861 :more2
11862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11863 p
11864 g
11865 s/.\{148\}//
11866 t delim
11867 ' <conf$$subs.awk | sed '
11868 /^[^""]/{
11869 N
11870 s/\n//
11871 }
11872 ' >>$CONFIG_STATUS || ac_write_fail=1
11873 rm -f conf$$subs.awk
11874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11875 _ACAWK
11876 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11877 for (key in S) S_is_set[key] = 1
11878 FS = ""
11880 }
11881 {
11882 line = $ 0
11883 nfields = split(line, field, "@")
11884 substed = 0
11885 len = length(field[1])
11886 for (i = 2; i < nfields; i++) {
11887 key = field[i]
11888 keylen = length(key)
11889 if (S_is_set[key]) {
11890 value = S[key]
11891 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11892 len += length(value) + length(field[++i])
11893 substed = 1
11894 } else
11895 len += 1 + keylen
11896 }
11898 print line
11899 }
11901 _ACAWK
11902 _ACEOF
11903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11904 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11905 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11906 else
11907 cat
11908 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11909 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11910 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11911 { (exit 1); exit 1; }; }
11912 _ACEOF
11914 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11915 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11916 # trailing colons and then remove the whole line if VPATH becomes empty
11917 # (actually we leave an empty line to preserve line numbers).
11918 if test "x$srcdir" = x.; then
11919 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11920 s/:*\$(srcdir):*/:/
11921 s/:*\${srcdir}:*/:/
11922 s/:*@srcdir@:*/:/
11923 s/^\([^=]*=[ ]*\):*/\1/
11924 s/:*$//
11925 s/^[^=]*=[ ]*$//
11926 }'
11927 fi
11929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11930 fi # test -n "$CONFIG_FILES"
11932 # Set up the scripts for CONFIG_HEADERS section.
11933 # No need to generate them if there are no CONFIG_HEADERS.
11934 # This happens for instance with `./config.status Makefile'.
11935 if test -n "$CONFIG_HEADERS"; then
11936 cat >"$tmp/defines.awk" <<\_ACAWK ||
11937 BEGIN {
11938 _ACEOF
11940 # Transform confdefs.h into an awk script `defines.awk', embedded as
11941 # here-document in config.status, that substitutes the proper values into
11942 # config.h.in to produce config.h.
11944 # Create a delimiter string that does not exist in confdefs.h, to ease
11945 # handling of long lines.
11946 ac_delim='%!_!# '
11947 for ac_last_try in false false :; do
11948 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11949 if test -z "$ac_t"; then
11950 break
11951 elif $ac_last_try; then
11952 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11953 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11954 { (exit 1); exit 1; }; }
11955 else
11956 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11957 fi
11958 done
11960 # For the awk script, D is an array of macro values keyed by name,
11961 # likewise P contains macro parameters if any. Preserve backslash
11962 # newline sequences.
11964 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11965 sed -n '
11966 s/.\{148\}/&'"$ac_delim"'/g
11967 t rset
11968 :rset
11969 s/^[ ]*#[ ]*define[ ][ ]*/ /
11970 t def
11971 d
11972 :def
11973 s/\\$//
11974 t bsnl
11975 s/["\\]/\\&/g
11976 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11977 D["\1"]=" \3"/p
11978 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11979 d
11980 :bsnl
11981 s/["\\]/\\&/g
11982 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11983 D["\1"]=" \3\\\\\\n"\\/p
11984 t cont
11985 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11986 t cont
11987 d
11988 :cont
11989 n
11990 s/.\{148\}/&'"$ac_delim"'/g
11991 t clear
11992 :clear
11993 s/\\$//
11994 t bsnlc
11995 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11996 d
11997 :bsnlc
11998 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11999 b cont
12000 ' <confdefs.h | sed '
12001 s/'"$ac_delim"'/"\\\
12002 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12005 for (key in D) D_is_set[key] = 1
12006 FS = ""
12007 }
12008 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12009 line = \$ 0
12010 split(line, arg, " ")
12011 if (arg[1] == "#") {
12012 defundef = arg[2]
12013 mac1 = arg[3]
12014 } else {
12015 defundef = substr(arg[1], 2)
12016 mac1 = arg[2]
12017 }
12018 split(mac1, mac2, "(") #)
12019 macro = mac2[1]
12020 if (D_is_set[macro]) {
12021 # Preserve the white space surrounding the "#".
12022 prefix = substr(line, 1, index(line, defundef) - 1)
12023 print prefix "define", macro P[macro] D[macro]
12024 next
12025 } else {
12026 # Replace #undef with comments. This is necessary, for example,
12027 # in the case of _POSIX_SOURCE, which is predefined and required
12028 # on some systems where configure will not decide to define it.
12029 if (defundef == "undef") {
12030 print "/*", line, "*/"
12031 next
12032 }
12033 }
12034 }
12035 { print }
12036 _ACAWK
12037 _ACEOF
12038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12039 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12040 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12041 { (exit 1); exit 1; }; }
12042 fi # test -n "$CONFIG_HEADERS"
12045 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12046 shift
12047 for ac_tag
12048 do
12049 case $ac_tag in
12050 :[FHLC]) ac_mode=$ac_tag; continue;;
12051 esac
12052 case $ac_mode$ac_tag in
12053 :[FHL]*:*);;
12054 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12055 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12056 { (exit 1); exit 1; }; };;
12057 :[FH]-) ac_tag=-:-;;
12058 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12059 esac
12060 ac_save_IFS=$IFS
12061 IFS=:
12062 set x $ac_tag
12063 IFS=$ac_save_IFS
12064 shift
12065 ac_file=$1
12066 shift
12068 case $ac_mode in
12069 :L) ac_source=$1;;
12070 :[FH])
12071 ac_file_inputs=
12072 for ac_f
12073 do
12074 case $ac_f in
12075 -) ac_f="$tmp/stdin";;
12076 *) # Look for the file first in the build tree, then in the source tree
12077 # (if the path is not absolute). The absolute path cannot be DOS-style,
12078 # because $ac_f cannot contain `:'.
12079 test -f "$ac_f" ||
12080 case $ac_f in
12081 [\\/$]*) false;;
12082 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12083 esac ||
12084 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12085 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12086 { (exit 1); exit 1; }; };;
12087 esac
12088 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12089 ac_file_inputs="$ac_file_inputs '$ac_f'"
12090 done
12092 # Let's still pretend it is `configure' which instantiates (i.e., don't
12093 # use $as_me), people would be surprised to read:
12094 # /* config.h. Generated by config.status. */
12095 configure_input='Generated from '`
12096 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12097 `' by configure.'
12098 if test x"$ac_file" != x-; then
12099 configure_input="$ac_file. $configure_input"
12100 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12101 $as_echo "$as_me: creating $ac_file" >&6;}
12102 fi
12103 # Neutralize special characters interpreted by sed in replacement strings.
12104 case $configure_input in #(
12105 *\&* | *\|* | *\\* )
12106 ac_sed_conf_input=`$as_echo "$configure_input" |
12107 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12108 *) ac_sed_conf_input=$configure_input;;
12109 esac
12111 case $ac_tag in
12112 *:-:* | *:-) cat >"$tmp/stdin" \
12113 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12114 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12115 { (exit 1); exit 1; }; } ;;
12116 esac
12117 ;;
12118 esac
12120 ac_dir=`$as_dirname -- "$ac_file" ||
12121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12122 X"$ac_file" : 'X\(//\)[^/]' \| \
12123 X"$ac_file" : 'X\(//\)$' \| \
12124 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12125 $as_echo X"$ac_file" |
12126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12127 s//\1/
12128 q
12129 }
12130 /^X\(\/\/\)[^/].*/{
12131 s//\1/
12132 q
12133 }
12134 /^X\(\/\/\)$/{
12135 s//\1/
12136 q
12137 }
12138 /^X\(\/\).*/{
12139 s//\1/
12140 q
12141 }
12142 s/.*/./; q'`
12143 { as_dir="$ac_dir"
12144 case $as_dir in #(
12145 -*) as_dir=./$as_dir;;
12146 esac
12147 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12148 as_dirs=
12149 while :; do
12150 case $as_dir in #(
12151 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12152 *) as_qdir=$as_dir;;
12153 esac
12154 as_dirs="'$as_qdir' $as_dirs"
12155 as_dir=`$as_dirname -- "$as_dir" ||
12156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12157 X"$as_dir" : 'X\(//\)[^/]' \| \
12158 X"$as_dir" : 'X\(//\)$' \| \
12159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12160 $as_echo X"$as_dir" |
12161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12162 s//\1/
12163 q
12164 }
12165 /^X\(\/\/\)[^/].*/{
12166 s//\1/
12167 q
12168 }
12169 /^X\(\/\/\)$/{
12170 s//\1/
12171 q
12172 }
12173 /^X\(\/\).*/{
12174 s//\1/
12175 q
12176 }
12177 s/.*/./; q'`
12178 test -d "$as_dir" && break
12179 done
12180 test -z "$as_dirs" || eval "mkdir $as_dirs"
12181 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12182 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12183 { (exit 1); exit 1; }; }; }
12184 ac_builddir=.
12186 case "$ac_dir" in
12187 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12188 *)
12189 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12190 # A ".." for each directory in $ac_dir_suffix.
12191 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12192 case $ac_top_builddir_sub in
12193 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12194 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12195 esac ;;
12196 esac
12197 ac_abs_top_builddir=$ac_pwd
12198 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12199 # for backward compatibility:
12200 ac_top_builddir=$ac_top_build_prefix
12202 case $srcdir in
12203 .) # We are building in place.
12204 ac_srcdir=.
12205 ac_top_srcdir=$ac_top_builddir_sub
12206 ac_abs_top_srcdir=$ac_pwd ;;
12207 [\\/]* | ?:[\\/]* ) # Absolute name.
12208 ac_srcdir=$srcdir$ac_dir_suffix;
12209 ac_top_srcdir=$srcdir
12210 ac_abs_top_srcdir=$srcdir ;;
12211 *) # Relative name.
12212 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12213 ac_top_srcdir=$ac_top_build_prefix$srcdir
12214 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12215 esac
12216 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12219 case $ac_mode in
12220 :F)
12221 #
12222 # CONFIG_FILE
12223 #
12225 case $INSTALL in
12226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12227 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12228 esac
12229 _ACEOF
12231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12232 # If the template does not know about datarootdir, expand it.
12233 # FIXME: This hack should be removed a few years after 2.60.
12234 ac_datarootdir_hack=; ac_datarootdir_seen=
12236 ac_sed_dataroot='
12237 /datarootdir/ {
12238 p
12239 q
12240 }
12241 /@datadir@/p
12242 /@docdir@/p
12243 /@infodir@/p
12244 /@localedir@/p
12245 /@mandir@/p
12246 '
12247 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12248 *datarootdir*) ac_datarootdir_seen=yes;;
12249 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12250 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12251 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12252 _ACEOF
12253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12254 ac_datarootdir_hack='
12255 s&@datadir@&$datadir&g
12256 s&@docdir@&$docdir&g
12257 s&@infodir@&$infodir&g
12258 s&@localedir@&$localedir&g
12259 s&@mandir@&$mandir&g
12260 s&\\\${datarootdir}&$datarootdir&g' ;;
12261 esac
12262 _ACEOF
12264 # Neutralize VPATH when `$srcdir' = `.'.
12265 # Shell code in configure.ac might set extrasub.
12266 # FIXME: do we really want to maintain this feature?
12267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12268 ac_sed_extra="$ac_vpsub
12269 $extrasub
12270 _ACEOF
12271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12272 :t
12273 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12274 s|@configure_input@|$ac_sed_conf_input|;t t
12275 s&@top_builddir@&$ac_top_builddir_sub&;t t
12276 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12277 s&@srcdir@&$ac_srcdir&;t t
12278 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12279 s&@top_srcdir@&$ac_top_srcdir&;t t
12280 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12281 s&@builddir@&$ac_builddir&;t t
12282 s&@abs_builddir@&$ac_abs_builddir&;t t
12283 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12284 s&@INSTALL@&$ac_INSTALL&;t t
12285 $ac_datarootdir_hack
12286 "
12287 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12288 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12289 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12290 { (exit 1); exit 1; }; }
12292 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12293 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12294 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12295 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12296 which seems to be undefined. Please make sure it is defined." >&5
12297 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12298 which seems to be undefined. Please make sure it is defined." >&2;}
12300 rm -f "$tmp/stdin"
12301 case $ac_file in
12302 -) cat "$tmp/out" && rm -f "$tmp/out";;
12303 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12304 esac \
12305 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12306 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12307 { (exit 1); exit 1; }; }
12308 ;;
12309 :H)
12310 #
12311 # CONFIG_HEADER
12312 #
12313 if test x"$ac_file" != x-; then
12314 {
12315 $as_echo "/* $configure_input */" \
12316 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12317 } >"$tmp/config.h" \
12318 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12319 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12320 { (exit 1); exit 1; }; }
12321 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12322 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12323 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12324 else
12325 rm -f "$ac_file"
12326 mv "$tmp/config.h" "$ac_file" \
12327 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12328 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12329 { (exit 1); exit 1; }; }
12330 fi
12331 else
12332 $as_echo "/* $configure_input */" \
12333 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12334 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12335 $as_echo "$as_me: error: could not create -" >&2;}
12336 { (exit 1); exit 1; }; }
12337 fi
12338 # Compute "$ac_file"'s index in $config_headers.
12339 _am_stamp_count=1
12340 for _am_header in $config_headers :; do
12341 case $_am_header in
12342 "$ac_file" | "$ac_file":* )
12343 break ;;
12344 * )
12345 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12346 esac
12347 done
12348 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
12349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12350 X"$ac_file" : 'X\(//\)[^/]' \| \
12351 X"$ac_file" : 'X\(//\)$' \| \
12352 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12353 $as_echo X"$ac_file" |
12354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12355 s//\1/
12356 q
12357 }
12358 /^X\(\/\/\)[^/].*/{
12359 s//\1/
12360 q
12361 }
12362 /^X\(\/\/\)$/{
12363 s//\1/
12364 q
12365 }
12366 /^X\(\/\).*/{
12367 s//\1/
12368 q
12369 }
12370 s/.*/./; q'`/stamp-h$_am_stamp_count
12371 ;;
12373 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
12374 $as_echo "$as_me: executing $ac_file commands" >&6;}
12375 ;;
12376 esac
12379 case $ac_file$ac_mode in
12380 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12381 # Strip MF so we end up with the name of the file.
12382 mf=`echo "$mf" | sed -e 's/:.*$//'`
12383 # Check whether this is an Automake generated Makefile or not.
12384 # We used to match only the files named `Makefile.in', but
12385 # some people rename them; so instead we look at the file content.
12386 # Grep'ing the first line is not enough: some people post-process
12387 # each Makefile.in and add a new line on top of each file to say so.
12388 # So let's grep whole file.
12389 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12390 dirpart=`$as_dirname -- "$mf" ||
12391 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12392 X"$mf" : 'X\(//\)[^/]' \| \
12393 X"$mf" : 'X\(//\)$' \| \
12394 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12395 $as_echo X"$mf" |
12396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12397 s//\1/
12398 q
12399 }
12400 /^X\(\/\/\)[^/].*/{
12401 s//\1/
12402 q
12403 }
12404 /^X\(\/\/\)$/{
12405 s//\1/
12406 q
12407 }
12408 /^X\(\/\).*/{
12409 s//\1/
12410 q
12411 }
12412 s/.*/./; q'`
12413 else
12414 continue
12415 fi
12416 # Extract the definition of DEPDIR, am__include, and am__quote
12417 # from the Makefile without running `make'.
12418 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12419 test -z "$DEPDIR" && continue
12420 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12421 test -z "am__include" && continue
12422 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12423 # When using ansi2knr, U may be empty or an underscore; expand it
12424 U=`sed -n 's/^U = //p' < "$mf"`
12425 # Find all dependency output files, they are included files with
12426 # $(DEPDIR) in their names. We invoke sed twice because it is the
12427 # simplest approach to changing $(DEPDIR) to its actual value in the
12428 # expansion.
12429 for file in `sed -n "
12430 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12431 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12432 # Make sure the directory exists.
12433 test -f "$dirpart/$file" && continue
12434 fdir=`$as_dirname -- "$file" ||
12435 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12436 X"$file" : 'X\(//\)[^/]' \| \
12437 X"$file" : 'X\(//\)$' \| \
12438 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12439 $as_echo X"$file" |
12440 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12441 s//\1/
12442 q
12443 }
12444 /^X\(\/\/\)[^/].*/{
12445 s//\1/
12446 q
12447 }
12448 /^X\(\/\/\)$/{
12449 s//\1/
12450 q
12451 }
12452 /^X\(\/\).*/{
12453 s//\1/
12454 q
12455 }
12456 s/.*/./; q'`
12457 { as_dir=$dirpart/$fdir
12458 case $as_dir in #(
12459 -*) as_dir=./$as_dir;;
12460 esac
12461 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12462 as_dirs=
12463 while :; do
12464 case $as_dir in #(
12465 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12466 *) as_qdir=$as_dir;;
12467 esac
12468 as_dirs="'$as_qdir' $as_dirs"
12469 as_dir=`$as_dirname -- "$as_dir" ||
12470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12471 X"$as_dir" : 'X\(//\)[^/]' \| \
12472 X"$as_dir" : 'X\(//\)$' \| \
12473 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12474 $as_echo X"$as_dir" |
12475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12476 s//\1/
12477 q
12478 }
12479 /^X\(\/\/\)[^/].*/{
12480 s//\1/
12481 q
12482 }
12483 /^X\(\/\/\)$/{
12484 s//\1/
12485 q
12486 }
12487 /^X\(\/\).*/{
12488 s//\1/
12489 q
12490 }
12491 s/.*/./; q'`
12492 test -d "$as_dir" && break
12493 done
12494 test -z "$as_dirs" || eval "mkdir $as_dirs"
12495 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12496 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12497 { (exit 1); exit 1; }; }; }
12498 # echo "creating $dirpart/$file"
12499 echo '# dummy' > "$dirpart/$file"
12500 done
12501 done
12502 ;;
12503 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
12504 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
12505 esac ;;
12507 esac
12508 done # for ac_tag
12511 { (exit 0); exit 0; }
12512 _ACEOF
12513 chmod +x $CONFIG_STATUS
12514 ac_clean_files=$ac_clean_files_save
12516 test $ac_write_fail = 0 ||
12517 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
12518 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
12519 { (exit 1); exit 1; }; }
12522 # configure is writing to config.log, and then calls config.status.
12523 # config.status does its own redirection, appending to config.log.
12524 # Unfortunately, on DOS this fails, as config.log is still kept open
12525 # by configure, so config.status won't be able to write to it; its
12526 # output is simply discarded. So we exec the FD to /dev/null,
12527 # effectively closing config.log, so it can be properly (re)opened and
12528 # appended to by config.status. When coming back to configure, we
12529 # need to make the FD available again.
12530 if test "$no_create" != yes; then
12531 ac_cs_success=:
12532 ac_config_status_args=
12533 test "$silent" = yes &&
12534 ac_config_status_args="$ac_config_status_args --quiet"
12535 exec 5>/dev/null
12536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12537 exec 5>>config.log
12538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12539 # would make configure fail if this is the last instruction.
12540 $ac_cs_success || { (exit 1); exit 1; }
12541 fi
12542 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12543 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
12544 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
12545 fi
.