filename | configure |
changeset | 1226:227ceb186ba7 |
prev | 1225:73dd41cb37a8 |
next | 1228:8168aa94e6d7 |
author | nkeynes |
date | Thu Feb 23 14:59:58 2012 +1000 (12 years ago) |
permissions | -rwxr-xr-x |
last change | mem_stream_class should be static (to avoid potential conflicts with the real one) |
view | annotate | diff | log | raw |
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
27 fi
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
210 test \$exitcode = 0) || { (exit 1); exit 1; }
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
252 fi
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
273 fi
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
325 test $exitcode = 0) || { (exit 1); exit 1; }
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
336 fi
338 fi
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
360 fi
362 fi
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 install_sh
665 STRIP
666 INSTALL_STRIP_PROGRAM
667 mkdir_p
668 AWK
669 SET_MAKE
670 am__leading_dot
671 AMTAR
672 am__tar
673 am__untar
674 MAINTAINER_MODE_TRUE
675 MAINTAINER_MODE_FALSE
676 MAINT
677 build
678 build_cpu
679 build_vendor
680 build_os
681 host
682 host_cpu
683 host_vendor
684 host_os
685 CC
686 CFLAGS
687 LDFLAGS
688 CPPFLAGS
689 ac_ct_CC
690 EXEEXT
691 OBJEXT
692 DEPDIR
693 am__include
694 am__quote
695 AMDEP_TRUE
696 AMDEP_FALSE
697 AMDEPBACKSLASH
698 CCDEPMODE
699 am__fastdepCC_TRUE
700 am__fastdepCC_FALSE
701 CPP
702 CC
703 CFLAGS
704 CPPFLAGS
705 CC_FOR_BUILD
706 ac_ct_CC_FOR_BUILD
707 CC_FOR_BUILDDEPMODE
708 am__fastdepCC_FOR_BUILD_TRUE
709 am__fastdepCC_FOR_BUILD_FALSE
710 CPP
711 CPPFLAGS
712 CPP_FOR_BUILD
713 BUILD_EXEEXT
714 BUILD_OBJEXT
715 CFLAGS_FOR_BUILD
716 CPPFLAGS_FOR_BUILD
717 OBJC
718 OBJCFLAGS
719 ac_ct_OBJC
720 SED
721 CCAS
722 CCASFLAGS
723 RANLIB
724 GREP
725 EGREP
726 OBJCDEPMODE
727 am__fastdepOBJC_TRUE
728 am__fastdepOBJC_FALSE
729 POD2MAN
730 POD2HTML
731 GUI_COCOA_TRUE
732 GUI_COCOA_FALSE
733 SOEXT
734 PLUGINCFLAGS
735 PLUGINLDFLAGS
736 LXDREAMLDFLAGS
737 BUILD_PLUGINS_TRUE
738 BUILD_PLUGINS_FALSE
739 LXDREAMCPPFLAGS
740 PKG_CONFIG
741 LIBPNG_CFLAGS
742 LIBPNG_LIBS
743 GLIB_CFLAGS
744 GLIB_LIBS
745 GTK_CFLAGS
746 GTK_LIBS
747 GLIB_FOR_BUILD_CFLAGS
748 GLIB_FOR_BUILD_LIBS
749 GUI_GTK_TRUE
750 GUI_GTK_FALSE
751 LIBISOFS_CFLAGS
752 LIBISOFS_LIBS
753 LIBGL_CFLAGS
754 LIBGL_LIBS
755 VIDEO_OSMESA_TRUE
756 VIDEO_OSMESA_FALSE
757 VIDEO_GLX_TRUE
758 VIDEO_GLX_FALSE
759 VIDEO_NSGL_TRUE
760 VIDEO_NSGL_FALSE
761 BUILD_SH4X86_TRUE
762 BUILD_SH4X86_FALSE
763 AUDIO_OSX_TRUE
764 AUDIO_OSX_FALSE
765 SDL_CFLAGS
766 SDL_LIBS
767 AUDIO_SDL_TRUE
768 AUDIO_SDL_FALSE
769 PULSE_CFLAGS
770 PULSE_LIBS
771 AUDIO_PULSE_TRUE
772 AUDIO_PULSE_FALSE
773 ESOUND_CFLAGS
774 ESOUND_LIBS
775 AUDIO_ESOUND_TRUE
776 AUDIO_ESOUND_FALSE
777 ALSA_CFLAGS
778 ALSA_LIBS
779 AUDIO_ALSA_TRUE
780 AUDIO_ALSA_FALSE
781 CDROM_LINUX_TRUE
782 CDROM_LINUX_FALSE
783 CDROM_OSX_TRUE
784 CDROM_OSX_FALSE
785 CDROM_NONE_TRUE
786 CDROM_NONE_FALSE
787 JOY_LINUX_TRUE
788 JOY_LINUX_FALSE
789 INPUT_LIRC_TRUE
790 INPUT_LIRC_FALSE
791 SHCC
792 SHLD
793 SHOBJCOPY
794 ARMCC
795 ARMLD
796 ARMOBJCOPY
797 BUILD_SYSTEST_TRUE
798 BUILD_SYSTEST_FALSE
799 BUILD_ARMTEST_TRUE
800 BUILD_ARMTEST_FALSE
801 LXDREAM_LIBS
802 GETTEXT_PACKAGE
803 USE_NLS
804 MSGFMT
805 MSGFMT_OPTS
806 GMSGFMT
807 XGETTEXT
808 CATALOGS
809 CATOBJEXT
810 DATADIRNAME
811 GMOFILES
812 INSTOBJEXT
813 INTLLIBS
814 PO_IN_DATADIR_TRUE
815 PO_IN_DATADIR_FALSE
816 POFILES
817 POSUB
818 MKINSTALLDIRS
819 LIBOBJS
820 LTLIBOBJS'
821 ac_subst_files=''
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
825 CC
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
830 CPP
831 CC
832 CFLAGS
833 CPPFLAGS
834 CPP
835 CPPFLAGS
836 OBJC
837 OBJCFLAGS
838 CCAS
839 CCASFLAGS
840 PKG_CONFIG
841 LIBPNG_CFLAGS
842 LIBPNG_LIBS
843 GLIB_CFLAGS
844 GLIB_LIBS
845 GTK_CFLAGS
846 GTK_LIBS
847 GLIB_FOR_BUILD_CFLAGS
848 GLIB_FOR_BUILD_LIBS
849 LIBISOFS_CFLAGS
850 LIBISOFS_LIBS
851 LIBGL_CFLAGS
852 LIBGL_LIBS
853 SDL_CFLAGS
854 SDL_LIBS
855 PULSE_CFLAGS
856 PULSE_LIBS
857 ESOUND_CFLAGS
858 ESOUND_LIBS
859 ALSA_CFLAGS
860 ALSA_LIBS'
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
916 ac_prev=
917 continue
918 fi
920 case $ac_option in
921 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *) ac_optarg=yes ;;
923 esac
925 # Accept the important Cygnus configure options, so we can diagnose typos.
927 case $ac_dashdash$ac_option in
928 --)
929 ac_dashdash=yes ;;
931 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 ac_prev=bindir ;;
933 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934 bindir=$ac_optarg ;;
936 -build | --build | --buil | --bui | --bu)
937 ac_prev=build_alias ;;
938 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939 build_alias=$ac_optarg ;;
941 -cache-file | --cache-file | --cache-fil | --cache-fi \
942 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943 ac_prev=cache_file ;;
944 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946 cache_file=$ac_optarg ;;
948 --config-cache | -C)
949 cache_file=config.cache ;;
951 -datadir | --datadir | --datadi | --datad)
952 ac_prev=datadir ;;
953 -datadir=* | --datadir=* | --datadi=* | --datad=*)
954 datadir=$ac_optarg ;;
956 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957 | --dataroo | --dataro | --datar)
958 ac_prev=datarootdir ;;
959 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961 datarootdir=$ac_optarg ;;
963 -disable-* | --disable-*)
964 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965 # Reject names that are not valid shell variable names.
966 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
967 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
968 { (exit 1); exit 1; }; }
969 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
970 eval enable_$ac_feature=no ;;
972 -docdir | --docdir | --docdi | --doc | --do)
973 ac_prev=docdir ;;
974 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
975 docdir=$ac_optarg ;;
977 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 ac_prev=dvidir ;;
979 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
980 dvidir=$ac_optarg ;;
982 -enable-* | --enable-*)
983 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
986 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
987 { (exit 1); exit 1; }; }
988 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
989 eval enable_$ac_feature=\$ac_optarg ;;
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
998 exec_prefix=$ac_optarg ;;
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
1011 -host | --host | --hos | --ho)
1012 ac_prev=host_alias ;;
1013 -host=* | --host=* | --hos=* | --ho=*)
1014 host_alias=$ac_optarg ;;
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1027 includedir=$ac_optarg ;;
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1032 infodir=$ac_optarg ;;
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1037 libdir=$ac_optarg ;;
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1044 libexecdir=$ac_optarg ;;
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
1052 | --localstate | --localstat | --localsta | --localst | --locals)
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1056 localstatedir=$ac_optarg ;;
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1061 mandir=$ac_optarg ;;
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1068 | --no-cr | --no-c | -n)
1069 no_create=yes ;;
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1082 oldincludedir=$ac_optarg ;;
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1087 prefix=$ac_optarg ;;
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1094 program_prefix=$ac_optarg ;;
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1101 program_suffix=$ac_optarg ;;
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1118 program_transform_name=$ac_optarg ;;
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1138 sbindir=$ac_optarg ;;
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1149 sharedstatedir=$ac_optarg ;;
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1154 site=$ac_optarg ;;
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159 srcdir=$ac_optarg ;;
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166 sysconfdir=$ac_optarg ;;
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1169 ac_prev=target_alias ;;
1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171 target_alias=$ac_optarg ;;
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
1179 -with-* | --with-*)
1180 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid package name: $ac_package" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1186 eval with_$ac_package=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 { echo "$as_me: error: invalid package name: $ac_package" >&2
1193 { (exit 1); exit 1; }; }
1194 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1195 eval with_$ac_package=no ;;
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1206 x_includes=$ac_optarg ;;
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1213 x_libraries=$ac_optarg ;;
1215 -*) { echo "$as_me: error: unrecognized option: $ac_option
1216 Try \`$0 --help' for more information." >&2
1217 { (exit 1); exit 1; }; }
1218 ;;
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1224 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1225 { (exit 1); exit 1; }; }
1226 eval $ac_envvar=\$ac_optarg
1227 export $ac_envvar ;;
1229 *)
1230 # FIXME: should be removed in autoconf 3.0.
1231 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1233 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1235 ;;
1237 esac
1238 done
1240 if test -n "$ac_prev"; then
1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1242 { echo "$as_me: error: missing argument to $ac_option" >&2
1243 { (exit 1); exit 1; }; }
1244 fi
1246 # Be sure to have absolute directory names.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1251 do
1252 eval ac_val=\$$ac_var
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1258 { (exit 1); exit 1; }; }
1259 done
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1273 If a cross compiler is detected then cross compile mode will be used." >&2
1274 elif test "x$build_alias" != "x$host_alias"; then
1275 cross_compiling=yes
1276 fi
1277 fi
1279 ac_tool_prefix=
1280 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282 test "$silent" = yes && exec 6>/dev/null
1285 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1286 ac_ls_di=`ls -di .` &&
1287 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1288 { echo "$as_me: error: Working directory cannot be determined" >&2
1289 { (exit 1); exit 1; }; }
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 { echo "$as_me: error: pwd does not report name of working directory" >&2
1292 { (exit 1); exit 1; }; }
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$0" ||
1300 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$0" : 'X\(//\)[^/]' \| \
1302 X"$0" : 'X\(//\)$' \| \
1303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1304 echo X"$0" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1332 { (exit 1); exit 1; }; }
1333 fi
1334 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 ac_abs_confdir=`(
1336 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1337 { (exit 1); exit 1; }; }
1338 pwd)`
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341 srcdir=.
1342 fi
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1346 case $srcdir in
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 esac
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 done
1356 #
1357 # Report the --help message.
1358 #
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1362 cat <<_ACEOF
1363 \`configure' configures this package to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1372 Configuration:
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1387 [PREFIX]
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1416 _ACEOF
1418 cat <<\_ACEOF
1420 Program names:
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425 System types:
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 _ACEOF
1429 fi
1431 if test -n "$ac_init_help"; then
1433 cat <<\_ACEOF
1435 Optional Features:
1436 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1437 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1438 --enable-maintainer-mode enable make rules and dependencies not useful
1439 (and sometimes confusing) to the casual installer
1440 --disable-dependency-tracking speeds up one-time build
1441 --enable-dependency-tracking do not reject slow dependency extractors
1442 --enable-strict-warn Enable strict compilation warnings
1443 --disable-translator Disable the SH4 translator (Enabled by default)
1444 --disable-optimized Disable compile-time optimizations (Enabled by
1445 default)
1446 --enable-shared Build drivers as shared libraries (Enabled if
1447 available)
1448 --enable-profiled Enable profiling build
1449 --enable-trace Enable generation of IO traces (warning: hurts
1450 performance)
1451 --enable-watch Enable watchpoints in the debugger (warning: hurts
1452 performance)
1453 --enable-sh4stats Enable statistics on executed sh4 instructions
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-osmesa Build with the osmesa GL library (software
1459 rendering)
1460 --with-gtk Build with the GTK UI. Default on X11 systems
1461 --with-esd Build with support for the ESounD audio system
1462 --with-pulse Build with support for the PulseAudio audio system
1463 --with-sdl Build with support for SDL audio
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 LIBS libraries to pass to the linker, e.g. -l<library>
1471 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1472 you have headers in a nonstandard directory <include dir>
1473 CPP C preprocessor
1474 OBJC Objective C compiler command
1475 OBJCFLAGS Objective C compiler flags
1476 CCAS assembler compiler command (defaults to CC)
1477 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1478 PKG_CONFIG path to pkg-config utility
1479 LIBPNG_CFLAGS
1480 C compiler flags for LIBPNG, overriding pkg-config
1481 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1482 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1483 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1484 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1485 GTK_LIBS linker flags for GTK, overriding pkg-config
1486 GLIB_FOR_BUILD_CFLAGS
1487 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1488 GLIB_FOR_BUILD_LIBS
1489 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1490 LIBISOFS_CFLAGS
1491 C compiler flags for LIBISOFS, overriding pkg-config
1492 LIBISOFS_LIBS
1493 linker flags for LIBISOFS, overriding pkg-config
1494 LIBGL_CFLAGS
1495 C compiler flags for LIBGL, overriding pkg-config
1496 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1497 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1498 SDL_LIBS linker flags for SDL, overriding pkg-config
1499 PULSE_CFLAGS
1500 C compiler flags for PULSE, overriding pkg-config
1501 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1502 ESOUND_CFLAGS
1503 C compiler flags for ESOUND, overriding pkg-config
1504 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1505 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1506 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1508 Use these variables to override the choices made by `configure' or to help
1509 it to find libraries and programs with nonstandard names/locations.
1511 _ACEOF
1512 ac_status=$?
1513 fi
1515 if test "$ac_init_help" = "recursive"; then
1516 # If there are subdirs, report their specific --help.
1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1518 test -d "$ac_dir" || continue
1519 ac_builddir=.
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1561 else
1562 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 fi || ac_status=$?
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1565 done
1566 fi
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570 cat <<\_ACEOF
1571 configure
1572 generated by GNU Autoconf 2.61
1574 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1575 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1576 This configure script is free software; the Free Software Foundation
1577 gives unlimited permission to copy, distribute and modify it.
1578 _ACEOF
1579 exit
1580 fi
1581 cat >config.log <<_ACEOF
1582 This file contains any messages produced by compilers while
1583 running configure, to aid debugging if configure makes a mistake.
1585 It was created by $as_me, which was
1586 generated by GNU Autoconf 2.61. Invocation command line was
1588 $ $0 $@
1590 _ACEOF
1591 exec 5>>config.log
1592 {
1593 cat <<_ASUNAME
1594 ## --------- ##
1595 ## Platform. ##
1596 ## --------- ##
1598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1605 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1607 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1608 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1610 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1611 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1612 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1613 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1615 _ASUNAME
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 for as_dir in $PATH
1619 do
1620 IFS=$as_save_IFS
1621 test -z "$as_dir" && as_dir=.
1622 echo "PATH: $as_dir"
1623 done
1624 IFS=$as_save_IFS
1626 } >&5
1628 cat >&5 <<_ACEOF
1631 ## ----------- ##
1632 ## Core tests. ##
1633 ## ----------- ##
1635 _ACEOF
1638 # Keep a trace of the command line.
1639 # Strip out --no-create and --no-recursion so they do not pile up.
1640 # Strip out --silent because we don't want to record it for future runs.
1641 # Also quote any args containing shell meta-characters.
1642 # Make two passes to allow for proper duplicate-argument suppression.
1643 ac_configure_args=
1644 ac_configure_args0=
1645 ac_configure_args1=
1646 ac_must_keep_next=false
1647 for ac_pass in 1 2
1648 do
1649 for ac_arg
1650 do
1651 case $ac_arg in
1652 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1654 | -silent | --silent | --silen | --sile | --sil)
1655 continue ;;
1656 *\'*)
1657 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1658 esac
1659 case $ac_pass in
1660 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661 2)
1662 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1663 if test $ac_must_keep_next = true; then
1664 ac_must_keep_next=false # Got value, back to normal.
1665 else
1666 case $ac_arg in
1667 *=* | --config-cache | -C | -disable-* | --disable-* \
1668 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1669 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1670 | -with-* | --with-* | -without-* | --without-* | --x)
1671 case "$ac_configure_args0 " in
1672 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1673 esac
1674 ;;
1675 -* ) ac_must_keep_next=true ;;
1676 esac
1677 fi
1678 ac_configure_args="$ac_configure_args '$ac_arg'"
1679 ;;
1680 esac
1681 done
1682 done
1683 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1684 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1686 # When interrupted or exit'd, cleanup temporary files, and complete
1687 # config.log. We remove comments because anyway the quotes in there
1688 # would cause problems or look ugly.
1689 # WARNING: Use '\'' to represent an apostrophe within the trap.
1690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1691 trap 'exit_status=$?
1692 # Save into config.log some information that might help in debugging.
1693 {
1694 echo
1696 cat <<\_ASBOX
1697 ## ---------------- ##
1698 ## Cache variables. ##
1699 ## ---------------- ##
1700 _ASBOX
1701 echo
1702 # The following way of writing the cache mishandles newlines in values,
1703 (
1704 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1705 eval ac_val=\$$ac_var
1706 case $ac_val in #(
1707 *${as_nl}*)
1708 case $ac_var in #(
1709 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1710 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1711 esac
1712 case $ac_var in #(
1713 _ | IFS | as_nl) ;; #(
1714 *) $as_unset $ac_var ;;
1715 esac ;;
1716 esac
1717 done
1718 (set) 2>&1 |
1719 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1720 *${as_nl}ac_space=\ *)
1721 sed -n \
1722 "s/'\''/'\''\\\\'\'''\''/g;
1723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1724 ;; #(
1725 *)
1726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1727 ;;
1728 esac |
1729 sort
1730 )
1731 echo
1733 cat <<\_ASBOX
1734 ## ----------------- ##
1735 ## Output variables. ##
1736 ## ----------------- ##
1737 _ASBOX
1738 echo
1739 for ac_var in $ac_subst_vars
1740 do
1741 eval ac_val=\$$ac_var
1742 case $ac_val in
1743 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 esac
1745 echo "$ac_var='\''$ac_val'\''"
1746 done | sort
1747 echo
1749 if test -n "$ac_subst_files"; then
1750 cat <<\_ASBOX
1751 ## ------------------- ##
1752 ## File substitutions. ##
1753 ## ------------------- ##
1754 _ASBOX
1755 echo
1756 for ac_var in $ac_subst_files
1757 do
1758 eval ac_val=\$$ac_var
1759 case $ac_val in
1760 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 esac
1762 echo "$ac_var='\''$ac_val'\''"
1763 done | sort
1764 echo
1765 fi
1767 if test -s confdefs.h; then
1768 cat <<\_ASBOX
1769 ## ----------- ##
1770 ## confdefs.h. ##
1771 ## ----------- ##
1772 _ASBOX
1773 echo
1774 cat confdefs.h
1775 echo
1776 fi
1777 test "$ac_signal" != 0 &&
1778 echo "$as_me: caught signal $ac_signal"
1779 echo "$as_me: exit $exit_status"
1780 } >&5
1781 rm -f core *.core core.conftest.* &&
1782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1783 exit $exit_status
1784 ' 0
1785 for ac_signal in 1 2 13 15; do
1786 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1787 done
1788 ac_signal=0
1790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1791 rm -f -r conftest* confdefs.h
1793 # Predefined preprocessor variables.
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_NAME "$PACKAGE_NAME"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1807 _ACEOF
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_STRING "$PACKAGE_STRING"
1812 _ACEOF
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1817 _ACEOF
1820 # Let the site file select an alternate cache file if it wants to.
1821 # Prefer explicitly selected file to automatically selected ones.
1822 if test -n "$CONFIG_SITE"; then
1823 set x "$CONFIG_SITE"
1824 elif test "x$prefix" != xNONE; then
1825 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 else
1827 set x "$ac_default_prefix/share/config.site" \
1828 "$ac_default_prefix/etc/config.site"
1829 fi
1830 shift
1831 for ac_site_file
1832 do
1833 if test -r "$ac_site_file"; then
1834 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1835 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 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1846 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 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1854 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 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1869 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1870 ac_cache_corrupted=: ;;
1871 ,set)
1872 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1873 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 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1879 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1880 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1881 echo "$as_me: former value: $ac_old_val" >&2;}
1882 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1883 echo "$as_me: current value: $ac_new_val" >&2;}
1884 ac_cache_corrupted=:
1885 fi;;
1886 esac
1887 # Pass precious variables to config.status.
1888 if test "$ac_new_set" = set; then
1889 case $ac_new_val in
1890 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1891 *) ac_arg=$ac_var=$ac_new_val ;;
1892 esac
1893 case " $ac_configure_args " in
1894 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1895 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1896 esac
1897 fi
1898 done
1899 if $ac_cache_corrupted; then
1900 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1901 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1902 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1903 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1904 { (exit 1); exit 1; }; }
1905 fi
1923 ac_ext=c
1924 ac_cpp='$CPP $CPPFLAGS'
1925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 am__api_version="1.9"
1931 ac_aux_dir=
1932 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1933 if test -f "$ac_dir/install-sh"; then
1934 ac_aux_dir=$ac_dir
1935 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 break
1937 elif test -f "$ac_dir/install.sh"; then
1938 ac_aux_dir=$ac_dir
1939 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 break
1941 elif test -f "$ac_dir/shtool"; then
1942 ac_aux_dir=$ac_dir
1943 ac_install_sh="$ac_aux_dir/shtool install -c"
1944 break
1945 fi
1946 done
1947 if test -z "$ac_aux_dir"; then
1948 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1949 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1950 { (exit 1); exit 1; }; }
1951 fi
1953 # These three variables are undocumented and unsupported,
1954 # and are intended to be withdrawn in a future Autoconf release.
1955 # They can cause serious problems if a builder's source tree is in a directory
1956 # whose full name contains unusual characters.
1957 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1958 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1959 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1962 # Find a good install program. We prefer a C program (faster),
1963 # so one script is as good as another. But avoid the broken or
1964 # incompatible versions:
1965 # SysV /etc/install, /usr/sbin/install
1966 # SunOS /usr/etc/install
1967 # IRIX /sbin/install
1968 # AIX /bin/install
1969 # AmigaOS /C/install, which installs bootblocks on floppy discs
1970 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1971 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1972 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1973 # OS/2's system install, which has a completely different semantic
1974 # ./install, which can be erroneously created by make from ./install.sh.
1975 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1976 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1977 if test -z "$INSTALL"; then
1978 if test "${ac_cv_path_install+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984 IFS=$as_save_IFS
1985 test -z "$as_dir" && as_dir=.
1986 # Account for people who put trailing slashes in PATH elements.
1987 case $as_dir/ in
1988 ./ | .// | /cC/* | \
1989 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1990 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1991 /usr/ucb/* ) ;;
1992 *)
1993 # OSF1 and SCO ODT 3.0 have their own names for install.
1994 # Don't use installbsd from OSF since it installs stuff as root
1995 # by default.
1996 for ac_prog in ginstall scoinst install; do
1997 for ac_exec_ext in '' $ac_executable_extensions; do
1998 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1999 if test $ac_prog = install &&
2000 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2001 # AIX install. It has an incompatible calling convention.
2002 :
2003 elif test $ac_prog = install &&
2004 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2005 # program-specific install script used by HP pwplus--don't use.
2006 :
2007 else
2008 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2009 break 3
2010 fi
2011 fi
2012 done
2013 done
2014 ;;
2015 esac
2016 done
2017 IFS=$as_save_IFS
2020 fi
2021 if test "${ac_cv_path_install+set}" = set; then
2022 INSTALL=$ac_cv_path_install
2023 else
2024 # As a last resort, use the slow shell script. Don't cache a
2025 # value for INSTALL within a source directory, because that will
2026 # break other packages using the cache if that directory is
2027 # removed, or if the value is a relative name.
2028 INSTALL=$ac_install_sh
2029 fi
2030 fi
2031 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2032 echo "${ECHO_T}$INSTALL" >&6; }
2034 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2035 # It thinks the first close brace ends the variable substitution.
2036 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2038 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2040 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2042 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2043 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2044 # Just in case
2045 sleep 1
2046 echo timestamp > conftest.file
2047 # Do `set' in a subshell so we don't clobber the current shell's
2048 # arguments. Must try -L first in case configure is actually a
2049 # symlink; some systems play weird games with the mod time of symlinks
2050 # (eg FreeBSD returns the mod time of the symlink's containing
2051 # directory).
2052 if (
2053 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2054 if test "$*" = "X"; then
2055 # -L didn't work.
2056 set X `ls -t $srcdir/configure conftest.file`
2057 fi
2058 rm -f conftest.file
2059 if test "$*" != "X $srcdir/configure conftest.file" \
2060 && test "$*" != "X conftest.file $srcdir/configure"; then
2062 # If neither matched, then we have a broken ls. This can happen
2063 # if, for instance, CONFIG_SHELL is bash and it inherits a
2064 # broken ls alias from the environment. This has actually
2065 # happened. Such a system could not be considered "sane".
2066 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2067 alias in your environment" >&5
2068 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2069 alias in your environment" >&2;}
2070 { (exit 1); exit 1; }; }
2071 fi
2073 test "$2" = conftest.file
2074 )
2075 then
2076 # Ok.
2077 :
2078 else
2079 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2080 Check your system clock" >&5
2081 echo "$as_me: error: newly created file is older than distributed files!
2082 Check your system clock" >&2;}
2083 { (exit 1); exit 1; }; }
2084 fi
2085 { echo "$as_me:$LINENO: result: yes" >&5
2086 echo "${ECHO_T}yes" >&6; }
2087 test "$program_prefix" != NONE &&
2088 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2089 # Use a double $ so make ignores it.
2090 test "$program_suffix" != NONE &&
2091 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2092 # Double any \ or $. echo might interpret backslashes.
2093 # By default was `s,x,x', remove it if useless.
2094 cat <<\_ACEOF >conftest.sed
2095 s/[\\$]/&&/g;s/;s,x,x,$//
2096 _ACEOF
2097 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2098 rm -f conftest.sed
2100 # expand $ac_aux_dir to an absolute path
2101 am_aux_dir=`cd $ac_aux_dir && pwd`
2103 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2104 # Use eval to expand $SHELL
2105 if eval "$MISSING --run true"; then
2106 am_missing_run="$MISSING --run "
2107 else
2108 am_missing_run=
2109 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2110 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2111 fi
2113 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2114 # We used to keeping the `.' as first argument, in order to
2115 # allow $(mkdir_p) to be used without argument. As in
2116 # $(mkdir_p) $(somedir)
2117 # where $(somedir) is conditionally defined. However this is wrong
2118 # for two reasons:
2119 # 1. if the package is installed by a user who cannot write `.'
2120 # make install will fail,
2121 # 2. the above comment should most certainly read
2122 # $(mkdir_p) $(DESTDIR)$(somedir)
2123 # so it does not work when $(somedir) is undefined and
2124 # $(DESTDIR) is not.
2125 # To support the latter case, we have to write
2126 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2127 # so the `.' trick is pointless.
2128 mkdir_p='mkdir -p --'
2129 else
2130 # On NextStep and OpenStep, the `mkdir' command does not
2131 # recognize any option. It will interpret all options as
2132 # directories to create, and then abort because `.' already
2133 # exists.
2134 for d in ./-p ./--version;
2135 do
2136 test -d $d && rmdir $d
2137 done
2138 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2139 if test -f "$ac_aux_dir/mkinstalldirs"; then
2140 mkdir_p='$(mkinstalldirs)'
2141 else
2142 mkdir_p='$(install_sh) -d'
2143 fi
2144 fi
2146 for ac_prog in gawk mawk nawk awk
2147 do
2148 # Extract the first word of "$ac_prog", so it can be a program name with args.
2149 set dummy $ac_prog; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_AWK+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155 if test -n "$AWK"; then
2156 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165 ac_cv_prog_AWK="$ac_prog"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 break 2
2168 fi
2169 done
2170 done
2171 IFS=$as_save_IFS
2173 fi
2174 fi
2175 AWK=$ac_cv_prog_AWK
2176 if test -n "$AWK"; then
2177 { echo "$as_me:$LINENO: result: $AWK" >&5
2178 echo "${ECHO_T}$AWK" >&6; }
2179 else
2180 { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2182 fi
2185 test -n "$AWK" && break
2186 done
2188 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2189 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2190 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2191 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194 cat >conftest.make <<\_ACEOF
2195 SHELL = /bin/sh
2196 all:
2197 @echo '@@@%%%=$(MAKE)=@@@%%%'
2198 _ACEOF
2199 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2200 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2201 *@@@%%%=?*=@@@%%%*)
2202 eval ac_cv_prog_make_${ac_make}_set=yes;;
2203 *)
2204 eval ac_cv_prog_make_${ac_make}_set=no;;
2205 esac
2206 rm -f conftest.make
2207 fi
2208 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2209 { echo "$as_me:$LINENO: result: yes" >&5
2210 echo "${ECHO_T}yes" >&6; }
2211 SET_MAKE=
2212 else
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2215 SET_MAKE="MAKE=${MAKE-make}"
2216 fi
2218 rm -rf .tst 2>/dev/null
2219 mkdir .tst 2>/dev/null
2220 if test -d .tst; then
2221 am__leading_dot=.
2222 else
2223 am__leading_dot=_
2224 fi
2225 rmdir .tst 2>/dev/null
2227 # test to see if srcdir already configured
2228 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2229 test -f $srcdir/config.status; then
2230 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2231 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2232 { (exit 1); exit 1; }; }
2233 fi
2235 # test whether we have cygpath
2236 if test -z "$CYGPATH_W"; then
2237 if (cygpath --version) >/dev/null 2>/dev/null; then
2238 CYGPATH_W='cygpath -w'
2239 else
2240 CYGPATH_W=echo
2241 fi
2242 fi
2245 # Define the identity of the package.
2246 PACKAGE=lxdream
2247 VERSION=0.9.1
2250 cat >>confdefs.h <<_ACEOF
2251 #define PACKAGE "$PACKAGE"
2252 _ACEOF
2255 cat >>confdefs.h <<_ACEOF
2256 #define VERSION "$VERSION"
2257 _ACEOF
2259 # Some tools Automake needs.
2261 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2264 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2267 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2270 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2273 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2275 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2277 # Installed binaries are usually stripped using `strip' when the user
2278 # run `make install-strip'. However `strip' might not be the right
2279 # tool to use in cross-compilation environments, therefore Automake
2280 # will honor the `STRIP' environment variable to overrule this program.
2281 if test "$cross_compiling" != no; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}strip; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_STRIP+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$STRIP"; then
2291 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2303 fi
2304 done
2305 done
2306 IFS=$as_save_IFS
2308 fi
2309 fi
2310 STRIP=$ac_cv_prog_STRIP
2311 if test -n "$STRIP"; then
2312 { echo "$as_me:$LINENO: result: $STRIP" >&5
2313 echo "${ECHO_T}$STRIP" >&6; }
2314 else
2315 { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2317 fi
2320 fi
2321 if test -z "$ac_cv_prog_STRIP"; then
2322 ac_ct_STRIP=$STRIP
2323 # Extract the first word of "strip", so it can be a program name with args.
2324 set dummy strip; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 else
2330 if test -n "$ac_ct_STRIP"; then
2331 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2332 else
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 for as_dir in $PATH
2335 do
2336 IFS=$as_save_IFS
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_ac_ct_STRIP="strip"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 break 2
2343 fi
2344 done
2345 done
2346 IFS=$as_save_IFS
2348 fi
2349 fi
2350 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2351 if test -n "$ac_ct_STRIP"; then
2352 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2353 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2354 else
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2357 fi
2359 if test "x$ac_ct_STRIP" = x; then
2360 STRIP=":"
2361 else
2362 case $cross_compiling:$ac_tool_warned in
2363 yes:)
2364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2365 whose name does not start with the host triplet. If you think this
2366 configuration is useful to you, please write to autoconf@gnu.org." >&5
2367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2368 whose name does not start with the host triplet. If you think this
2369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2370 ac_tool_warned=yes ;;
2371 esac
2372 STRIP=$ac_ct_STRIP
2373 fi
2374 else
2375 STRIP="$ac_cv_prog_STRIP"
2376 fi
2378 fi
2379 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2381 # We need awk for the "check" target. The system "awk" is bad on
2382 # some platforms.
2383 # Always define AMTAR for backward compatibility.
2385 AMTAR=${AMTAR-"${am_missing_run}tar"}
2387 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2393 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2394 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2395 # Check whether --enable-maintainer-mode was given.
2396 if test "${enable_maintainer_mode+set}" = set; then
2397 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2398 else
2399 USE_MAINTAINER_MODE=no
2400 fi
2402 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2403 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2406 if test $USE_MAINTAINER_MODE = yes; then
2407 MAINTAINER_MODE_TRUE=
2408 MAINTAINER_MODE_FALSE='#'
2409 else
2410 MAINTAINER_MODE_TRUE='#'
2411 MAINTAINER_MODE_FALSE=
2412 fi
2414 MAINT=$MAINTAINER_MODE_TRUE
2417 ac_config_headers="$ac_config_headers config.h"
2420 # Make sure we can run config.sub.
2421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2422 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2423 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2424 { (exit 1); exit 1; }; }
2426 { echo "$as_me:$LINENO: checking build system type" >&5
2427 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2428 if test "${ac_cv_build+set}" = set; then
2429 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431 ac_build_alias=$build_alias
2432 test "x$ac_build_alias" = x &&
2433 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434 test "x$ac_build_alias" = x &&
2435 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2437 { (exit 1); exit 1; }; }
2438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2439 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2440 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2441 { (exit 1); exit 1; }; }
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2445 echo "${ECHO_T}$ac_cv_build" >&6; }
2446 case $ac_cv_build in
2447 *-*-*) ;;
2448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2449 echo "$as_me: error: invalid value of canonical build" >&2;}
2450 { (exit 1); exit 1; }; };;
2451 esac
2452 build=$ac_cv_build
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_build
2455 shift
2456 build_cpu=$1
2457 build_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 build_os=$*
2462 IFS=$ac_save_IFS
2463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2466 { echo "$as_me:$LINENO: checking host system type" >&5
2467 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2468 if test "${ac_cv_host+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 if test "x$host_alias" = x; then
2472 ac_cv_host=$ac_cv_build
2473 else
2474 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2475 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2477 { (exit 1); exit 1; }; }
2478 fi
2480 fi
2481 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2482 echo "${ECHO_T}$ac_cv_host" >&6; }
2483 case $ac_cv_host in
2484 *-*-*) ;;
2485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2486 echo "$as_me: error: invalid value of canonical host" >&2;}
2487 { (exit 1); exit 1; }; };;
2488 esac
2489 host=$ac_cv_host
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_host
2492 shift
2493 host_cpu=$1
2494 host_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 host_os=$*
2499 IFS=$ac_save_IFS
2500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2512 DEPDIR="${am__leading_dot}deps"
2514 ac_config_commands="$ac_config_commands depfiles"
2517 am_make=${MAKE-make}
2518 cat > confinc << 'END'
2519 am__doit:
2520 @echo done
2521 .PHONY: am__doit
2522 END
2523 # If we don't find an include directive, just comment out the code.
2524 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2525 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2526 am__include="#"
2527 am__quote=
2528 _am_result=none
2529 # First try GNU make style include.
2530 echo "include confinc" > confmf
2531 # We grep out `Entering directory' and `Leaving directory'
2532 # messages which can occur if `w' ends up in MAKEFLAGS.
2533 # In particular we don't look at `^make:' because GNU make might
2534 # be invoked under some other name (usually "gmake"), in which
2535 # case it prints its new name instead of `make'.
2536 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2537 am__include=include
2538 am__quote=
2539 _am_result=GNU
2540 fi
2541 # Now try BSD make style include.
2542 if test "$am__include" = "#"; then
2543 echo '.include "confinc"' > confmf
2544 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2545 am__include=.include
2546 am__quote="\""
2547 _am_result=BSD
2548 fi
2549 fi
2552 { echo "$as_me:$LINENO: result: $_am_result" >&5
2553 echo "${ECHO_T}$_am_result" >&6; }
2554 rm -f confinc confmf
2556 # Check whether --enable-dependency-tracking was given.
2557 if test "${enable_dependency_tracking+set}" = set; then
2558 enableval=$enable_dependency_tracking;
2559 fi
2561 if test "x$enable_dependency_tracking" != xno; then
2562 am_depcomp="$ac_aux_dir/depcomp"
2563 AMDEPBACKSLASH='\'
2564 fi
2567 if test "x$enable_dependency_tracking" != xno; then
2568 AMDEP_TRUE=
2569 AMDEP_FALSE='#'
2570 else
2571 AMDEP_TRUE='#'
2572 AMDEP_FALSE=
2573 fi
2577 ac_ext=c
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_CC+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2608 fi
2609 fi
2610 CC=$ac_cv_prog_CC
2611 if test -n "$CC"; then
2612 { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2614 else
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2620 fi
2621 if test -z "$ac_cv_prog_CC"; then
2622 ac_ct_CC=$CC
2623 # Extract the first word of "gcc", so it can be a program name with args.
2624 set dummy gcc; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630 if test -n "$ac_ct_CC"; then
2631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636 IFS=$as_save_IFS
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_ac_ct_CC="gcc"
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642 break 2
2643 fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2648 fi
2649 fi
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6; }
2654 else
2655 { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2657 fi
2659 if test "x$ac_ct_CC" = x; then
2660 CC=""
2661 else
2662 case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet. If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet. If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672 CC=$ac_ct_CC
2673 fi
2674 else
2675 CC="$ac_cv_prog_CC"
2676 fi
2678 if test -z "$CC"; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}cc; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691 for as_dir in $PATH
2692 do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="${ac_tool_prefix}cc"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701 done
2702 done
2703 IFS=$as_save_IFS
2705 fi
2706 fi
2707 CC=$ac_cv_prog_CC
2708 if test -n "$CC"; then
2709 { echo "$as_me:$LINENO: result: $CC" >&5
2710 echo "${ECHO_T}$CC" >&6; }
2711 else
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2714 fi
2717 fi
2718 fi
2719 if test -z "$CC"; then
2720 # Extract the first word of "cc", so it can be a program name with args.
2721 set dummy cc; ac_word=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2729 else
2730 ac_prog_rejected=no
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2739 ac_prog_rejected=yes
2740 continue
2741 fi
2742 ac_cv_prog_CC="cc"
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2745 fi
2746 done
2747 done
2748 IFS=$as_save_IFS
2750 if test $ac_prog_rejected = yes; then
2751 # We found a bogon in the path, so make sure we never use it.
2752 set dummy $ac_cv_prog_CC
2753 shift
2754 if test $# != 0; then
2755 # We chose a different compiler from the bogus one.
2756 # However, it has the same basename, so the bogon will be chosen
2757 # first if we set CC to just the basename; use the full file name.
2758 shift
2759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2760 fi
2761 fi
2762 fi
2763 fi
2764 CC=$ac_cv_prog_CC
2765 if test -n "$CC"; then
2766 { echo "$as_me:$LINENO: result: $CC" >&5
2767 echo "${ECHO_T}$CC" >&6; }
2768 else
2769 { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2771 fi
2774 fi
2775 if test -z "$CC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 for ac_prog in cl.exe
2778 do
2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2799 fi
2800 done
2801 done
2802 IFS=$as_save_IFS
2804 fi
2805 fi
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 { echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6; }
2810 else
2811 { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2813 fi
2816 test -n "$CC" && break
2817 done
2818 fi
2819 if test -z "$CC"; then
2820 ac_ct_CC=$CC
2821 for ac_prog in cl.exe
2822 do
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 else
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832 else
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2834 for as_dir in $PATH
2835 do
2836 IFS=$as_save_IFS
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CC="$ac_prog"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2848 fi
2849 fi
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2853 echo "${ECHO_T}$ac_ct_CC" >&6; }
2854 else
2855 { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2857 fi
2860 test -n "$ac_ct_CC" && break
2861 done
2863 if test "x$ac_ct_CC" = x; then
2864 CC=""
2865 else
2866 case $cross_compiling:$ac_tool_warned in
2867 yes:)
2868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet. If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&5
2871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet. If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2874 ac_tool_warned=yes ;;
2875 esac
2876 CC=$ac_ct_CC
2877 fi
2878 fi
2880 fi
2883 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2884 See \`config.log' for more details." >&5
2885 echo "$as_me: error: no acceptable C compiler found in \$PATH
2886 See \`config.log' for more details." >&2;}
2887 { (exit 1); exit 1; }; }
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2893 case "(($ac_try" in
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2896 esac
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2903 case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2913 case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916 esac
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2919 ac_status=$?
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h. */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2930 int
2931 main ()
2932 {
2934 ;
2935 return 0;
2936 }
2937 _ACEOF
2938 ac_clean_files_save=$ac_clean_files
2939 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2940 # Try to create an executable without -o first, disregard a.out.
2941 # It will help us diagnose broken compilers, and finding out an intuition
2942 # of exeext.
2943 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2944 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2945 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2946 #
2947 # List of possible output files, starting from the most likely.
2948 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2949 # only as a last resort. b.out is created by i960 compilers.
2950 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2951 #
2952 # The IRIX 6 linker writes into existing files which may not be
2953 # executable, retaining their permissions. Remove them first so a
2954 # subsequent execution test works.
2955 ac_rmfiles=
2956 for ac_file in $ac_files
2957 do
2958 case $ac_file in
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2960 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2961 esac
2962 done
2963 rm -f $ac_rmfiles
2965 if { (ac_try="$ac_link_default"
2966 case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2969 esac
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_link_default") 2>&5
2972 ac_status=$?
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; then
2975 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2976 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2977 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2978 # so that the user can short-circuit this test for compilers unknown to
2979 # Autoconf.
2980 for ac_file in $ac_files ''
2981 do
2982 test -f "$ac_file" || continue
2983 case $ac_file in
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2985 ;;
2986 [ab].out )
2987 # We found the default executable, but exeext='' is most
2988 # certainly right.
2989 break;;
2990 *.* )
2991 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2992 then :; else
2993 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994 fi
2995 # We set ac_cv_exeext here because the later test for it is not
2996 # safe: cross compilers may not add the suffix if given an `-o'
2997 # argument, so we may need to know it at that point already.
2998 # Even if this section looks crufty: it has the advantage of
2999 # actually working.
3000 break;;
3001 * )
3002 break;;
3003 esac
3004 done
3005 test "$ac_cv_exeext" = no && ac_cv_exeext=
3007 else
3008 ac_file=''
3009 fi
3011 { echo "$as_me:$LINENO: result: $ac_file" >&5
3012 echo "${ECHO_T}$ac_file" >&6; }
3013 if test -z "$ac_file"; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3018 See \`config.log' for more details." >&5
3019 echo "$as_me: error: C compiler cannot create executables
3020 See \`config.log' for more details." >&2;}
3021 { (exit 77); exit 77; }; }
3022 fi
3024 ac_exeext=$ac_cv_exeext
3026 # Check that the compiler produces executables we can run. If not, either
3027 # the compiler is broken, or we cross compile.
3028 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3029 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3030 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3031 # If not cross compiling, check that we can run a simple program.
3032 if test "$cross_compiling" != yes; then
3033 if { ac_try='./$ac_file'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_try") 2>&5
3040 ac_status=$?
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3043 cross_compiling=no
3044 else
3045 if test "$cross_compiling" = maybe; then
3046 cross_compiling=yes
3047 else
3048 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3049 If you meant to cross compile, use \`--host'.
3050 See \`config.log' for more details." >&5
3051 echo "$as_me: error: cannot run C compiled programs.
3052 If you meant to cross compile, use \`--host'.
3053 See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }
3055 fi
3056 fi
3057 fi
3058 { echo "$as_me:$LINENO: result: yes" >&5
3059 echo "${ECHO_T}yes" >&6; }
3061 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3062 ac_clean_files=$ac_clean_files_save
3063 # Check that the compiler produces executables we can run. If not, either
3064 # the compiler is broken, or we cross compile.
3065 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3066 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3067 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3068 echo "${ECHO_T}$cross_compiling" >&6; }
3070 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3071 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3072 if { (ac_try="$ac_link"
3073 case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_link") 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; then
3082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3084 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 # `rm'.
3086 for ac_file in conftest.exe conftest conftest.*; do
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 break;;
3092 * ) break;;
3093 esac
3094 done
3095 else
3096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3101 fi
3103 rm -f conftest$ac_cv_exeext
3104 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3105 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3107 rm -f conftest.$ac_ext
3108 EXEEXT=$ac_cv_exeext
3109 ac_exeext=$EXEEXT
3110 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3111 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3112 if test "${ac_cv_objext+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115 cat >conftest.$ac_ext <<_ACEOF
3116 /* confdefs.h. */
3117 _ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3122 int
3123 main ()
3124 {
3126 ;
3127 return 0;
3128 }
3129 _ACEOF
3130 rm -f conftest.o conftest.obj
3131 if { (ac_try="$ac_compile"
3132 case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>&5
3138 ac_status=$?
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; then
3141 for ac_file in conftest.o conftest.obj conftest.*; do
3142 test -f "$ac_file" || continue;
3143 case $ac_file in
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3145 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3146 break;;
3147 esac
3148 done
3149 else
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3158 fi
3160 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3161 fi
3162 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3163 echo "${ECHO_T}$ac_cv_objext" >&6; }
3164 OBJEXT=$ac_cv_objext
3165 ac_objext=$OBJEXT
3166 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171 cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h. */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3178 int
3179 main ()
3180 {
3181 #ifndef __GNUC__
3182 choke me
3183 #endif
3185 ;
3186 return 0;
3187 }
3188 _ACEOF
3189 rm -f conftest.$ac_objext
3190 if { (ac_try="$ac_compile"
3191 case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_compile") 2>conftest.er1
3197 ac_status=$?
3198 grep -v '^ *+' conftest.er1 >conftest.err
3199 rm -f conftest.er1
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } && {
3203 test -z "$ac_c_werror_flag" ||
3204 test ! -s conftest.err
3205 } && test -s conftest.$ac_objext; then
3206 ac_compiler_gnu=yes
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 ac_compiler_gnu=no
3212 fi
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217 fi
3218 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3219 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3220 GCC=`test $ac_compiler_gnu = yes && echo yes`
3221 ac_test_CFLAGS=${CFLAGS+set}
3222 ac_save_CFLAGS=$CFLAGS
3223 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3224 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_cc_g+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 ac_save_c_werror_flag=$ac_c_werror_flag
3229 ac_c_werror_flag=yes
3230 ac_cv_prog_cc_g=no
3231 CFLAGS="-g"
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3239 int
3240 main ()
3241 {
3243 ;
3244 return 0;
3245 }
3246 _ACEOF
3247 rm -f conftest.$ac_objext
3248 if { (ac_try="$ac_compile"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compile") 2>conftest.er1
3255 ac_status=$?
3256 grep -v '^ *+' conftest.er1 >conftest.err
3257 rm -f conftest.er1
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } && {
3261 test -z "$ac_c_werror_flag" ||
3262 test ! -s conftest.err
3263 } && test -s conftest.$ac_objext; then
3264 ac_cv_prog_cc_g=yes
3265 else
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 CFLAGS=""
3270 cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h. */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3277 int
3278 main ()
3279 {
3281 ;
3282 return 0;
3283 }
3284 _ACEOF
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3287 case "(($ac_try" in
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3293 ac_status=$?
3294 grep -v '^ *+' conftest.er1 >conftest.err
3295 rm -f conftest.er1
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } && {
3299 test -z "$ac_c_werror_flag" ||
3300 test ! -s conftest.err
3301 } && test -s conftest.$ac_objext; then
3302 :
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3308 CFLAGS="-g"
3309 cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h. */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3316 int
3317 main ()
3318 {
3320 ;
3321 return 0;
3322 }
3323 _ACEOF
3324 rm -f conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_compile") 2>conftest.er1
3332 ac_status=$?
3333 grep -v '^ *+' conftest.er1 >conftest.err
3334 rm -f conftest.er1
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } && {
3338 test -z "$ac_c_werror_flag" ||
3339 test ! -s conftest.err
3340 } && test -s conftest.$ac_objext; then
3341 ac_cv_prog_cc_g=yes
3342 else
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3347 fi
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3350 fi
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 fi
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_c_werror_flag=$ac_save_c_werror_flag
3357 fi
3358 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3359 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3360 if test "$ac_test_CFLAGS" = set; then
3361 CFLAGS=$ac_save_CFLAGS
3362 elif test $ac_cv_prog_cc_g = yes; then
3363 if test "$GCC" = yes; then
3364 CFLAGS="-g -O2"
3365 else
3366 CFLAGS="-g"
3367 fi
3368 else
3369 if test "$GCC" = yes; then
3370 CFLAGS="-O2"
3371 else
3372 CFLAGS=
3373 fi
3374 fi
3375 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3376 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_cc_c89+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 ac_cv_prog_cc_c89=no
3381 ac_save_CC=$CC
3382 cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h. */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3388 #include <stdarg.h>
3389 #include <stdio.h>
3390 #include <sys/types.h>
3391 #include <sys/stat.h>
3392 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3393 struct buf { int x; };
3394 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3395 static char *e (p, i)
3396 char **p;
3397 int i;
3398 {
3399 return p[i];
3400 }
3401 static char *f (char * (*g) (char **, int), char **p, ...)
3402 {
3403 char *s;
3404 va_list v;
3405 va_start (v,p);
3406 s = g (p, va_arg (v,int));
3407 va_end (v);
3408 return s;
3409 }
3411 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3412 function prototypes and stuff, but not '\xHH' hex character constants.
3413 These don't provoke an error unfortunately, instead are silently treated
3414 as 'x'. The following induces an error, until -std is added to get
3415 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3416 array size at least. It's necessary to write '\x00'==0 to get something
3417 that's true only with -std. */
3418 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3421 inside strings and character constants. */
3422 #define FOO(x) 'x'
3423 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425 int test (int i, double x);
3426 struct s1 {int (*f) (int a);};
3427 struct s2 {int (*f) (double a);};
3428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3429 int argc;
3430 char **argv;
3431 int
3432 main ()
3433 {
3434 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3440 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 do
3442 CC="$ac_save_CC $ac_arg"
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3460 ac_cv_prog_cc_c89=$ac_arg
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3466 fi
3468 rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
3470 done
3471 rm -f conftest.$ac_ext
3472 CC=$ac_save_CC
3474 fi
3475 # AC_CACHE_VAL
3476 case "x$ac_cv_prog_cc_c89" in
3477 x)
3478 { echo "$as_me:$LINENO: result: none needed" >&5
3479 echo "${ECHO_T}none needed" >&6; } ;;
3480 xno)
3481 { echo "$as_me:$LINENO: result: unsupported" >&5
3482 echo "${ECHO_T}unsupported" >&6; } ;;
3483 *)
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3486 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3487 esac
3490 ac_ext=c
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496 depcc="$CC" am_compiler_list=
3498 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3499 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3500 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3504 # We make a subdir and do the tests there. Otherwise we can end up
3505 # making bogus files that we don't know about and never remove. For
3506 # instance it was reported that on HP-UX the gcc test will end up
3507 # making a dummy file named `D' -- because `-MD' means `put the output
3508 # in D'.
3509 mkdir conftest.dir
3510 # Copy depcomp to subdir because otherwise we won't find it if we're
3511 # using a relative directory.
3512 cp "$am_depcomp" conftest.dir
3513 cd conftest.dir
3514 # We will build objects and dependencies in a subdirectory because
3515 # it helps to detect inapplicable dependency modes. For instance
3516 # both Tru64's cc and ICC support -MD to output dependencies as a
3517 # side effect of compilation, but ICC will put the dependencies in
3518 # the current directory while Tru64 will put them in the object
3519 # directory.
3520 mkdir sub
3522 am_cv_CC_dependencies_compiler_type=none
3523 if test "$am_compiler_list" = ""; then
3524 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3525 fi
3526 for depmode in $am_compiler_list; do
3527 # Setup a source with many dependencies, because some compilers
3528 # like to wrap large dependency lists on column 80 (with \), and
3529 # we should not choose a depcomp mode which is confused by this.
3530 #
3531 # We need to recreate these files for each test, as the compiler may
3532 # overwrite some of them when testing with obscure command lines.
3533 # This happens at least with the AIX C compiler.
3534 : > sub/conftest.c
3535 for i in 1 2 3 4 5 6; do
3536 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3537 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3538 # Solaris 8's {/usr,}/bin/sh.
3539 touch sub/conftst$i.h
3540 done
3541 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3543 case $depmode in
3544 nosideeffect)
3545 # after this tag, mechanisms are not by side-effect, so they'll
3546 # only be used when explicitly requested
3547 if test "x$enable_dependency_tracking" = xyes; then
3548 continue
3549 else
3550 break
3551 fi
3552 ;;
3553 none) break ;;
3554 esac
3555 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3556 # mode. It turns out that the SunPro C++ compiler does not properly
3557 # handle `-M -o', and we need to detect this.
3558 if depmode=$depmode \
3559 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3560 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3561 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3562 >/dev/null 2>conftest.err &&
3563 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3564 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3565 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3566 # icc doesn't choke on unknown options, it will just issue warnings
3567 # or remarks (even with -Werror). So we grep stderr for any message
3568 # that says an option was ignored or not supported.
3569 # When given -MP, icc 7.0 and 7.1 complain thusly:
3570 # icc: Command line warning: ignoring option '-M'; no argument required
3571 # The diagnosis changed in icc 8.0:
3572 # icc: Command line remark: option '-MP' not supported
3573 if (grep 'ignoring option' conftest.err ||
3574 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3575 am_cv_CC_dependencies_compiler_type=$depmode
3576 break
3577 fi
3578 fi
3579 done
3581 cd ..
3582 rm -rf conftest.dir
3583 else
3584 am_cv_CC_dependencies_compiler_type=none
3585 fi
3587 fi
3588 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3589 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3590 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3594 if
3595 test "x$enable_dependency_tracking" != xno \
3596 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3597 am__fastdepCC_TRUE=
3598 am__fastdepCC_FALSE='#'
3599 else
3600 am__fastdepCC_TRUE='#'
3601 am__fastdepCC_FALSE=
3602 fi
3607 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3608 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3609 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612 ac_check_lib_save_LIBS=$LIBS
3613 LIBS="-lcposix $LIBS"
3614 cat >conftest.$ac_ext <<_ACEOF
3615 /* confdefs.h. */
3616 _ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3621 /* Override any GCC internal prototype to avoid an error.
3622 Use char because int might match the return type of a GCC
3623 builtin and then its argument prototype would still apply. */
3624 #ifdef __cplusplus
3625 extern "C"
3626 #endif
3627 char strerror ();
3628 int
3629 main ()
3630 {
3631 return strerror ();
3632 ;
3633 return 0;
3634 }
3635 _ACEOF
3636 rm -f conftest.$ac_objext conftest$ac_exeext
3637 if { (ac_try="$ac_link"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643 (eval "$ac_link") 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && {
3650 test -z "$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 } && test -s conftest$ac_exeext &&
3653 $as_test_x conftest$ac_exeext; then
3654 ac_cv_lib_cposix_strerror=yes
3655 else
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 ac_cv_lib_cposix_strerror=no
3660 fi
3662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3663 conftest$ac_exeext conftest.$ac_ext
3664 LIBS=$ac_check_lib_save_LIBS
3665 fi
3666 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3667 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3668 if test $ac_cv_lib_cposix_strerror = yes; then
3669 LIBS="$LIBS -lcposix"
3670 fi
3674 ac_ext=c
3675 ac_cpp='$CPP $CPPFLAGS'
3676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679 if test -n "$ac_tool_prefix"; then
3680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3681 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3684 if test "${ac_cv_prog_CC+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 else
3687 if test -n "$CC"; then
3688 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693 IFS=$as_save_IFS
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3700 fi
3701 done
3702 done
3703 IFS=$as_save_IFS
3705 fi
3706 fi
3707 CC=$ac_cv_prog_CC
3708 if test -n "$CC"; then
3709 { echo "$as_me:$LINENO: result: $CC" >&5
3710 echo "${ECHO_T}$CC" >&6; }
3711 else
3712 { echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6; }
3714 fi
3717 fi
3718 if test -z "$ac_cv_prog_CC"; then
3719 ac_ct_CC=$CC
3720 # Extract the first word of "gcc", so it can be a program name with args.
3721 set dummy gcc; ac_word=$2
3722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3724 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 if test -n "$ac_ct_CC"; then
3728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3732 do
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 ac_cv_prog_ac_ct_CC="gcc"
3738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 break 2
3740 fi
3741 done
3742 done
3743 IFS=$as_save_IFS
3745 fi
3746 fi
3747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3748 if test -n "$ac_ct_CC"; then
3749 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3750 echo "${ECHO_T}$ac_ct_CC" >&6; }
3751 else
3752 { echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6; }
3754 fi
3756 if test "x$ac_ct_CC" = x; then
3757 CC=""
3758 else
3759 case $cross_compiling:$ac_tool_warned in
3760 yes:)
3761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3762 whose name does not start with the host triplet. If you think this
3763 configuration is useful to you, please write to autoconf@gnu.org." >&5
3764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3765 whose name does not start with the host triplet. If you think this
3766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3767 ac_tool_warned=yes ;;
3768 esac
3769 CC=$ac_ct_CC
3770 fi
3771 else
3772 CC="$ac_cv_prog_CC"
3773 fi
3775 if test -z "$CC"; then
3776 if test -n "$ac_tool_prefix"; then
3777 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3778 set dummy ${ac_tool_prefix}cc; ac_word=$2
3779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3781 if test "${ac_cv_prog_CC+set}" = set; then
3782 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784 if test -n "$CC"; then
3785 ac_cv_prog_CC="$CC" # Let the user override the test.
3786 else
3787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3788 for as_dir in $PATH
3789 do
3790 IFS=$as_save_IFS
3791 test -z "$as_dir" && as_dir=.
3792 for ac_exec_ext in '' $ac_executable_extensions; do
3793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3794 ac_cv_prog_CC="${ac_tool_prefix}cc"
3795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798 done
3799 done
3800 IFS=$as_save_IFS
3802 fi
3803 fi
3804 CC=$ac_cv_prog_CC
3805 if test -n "$CC"; then
3806 { echo "$as_me:$LINENO: result: $CC" >&5
3807 echo "${ECHO_T}$CC" >&6; }
3808 else
3809 { echo "$as_me:$LINENO: result: no" >&5
3810 echo "${ECHO_T}no" >&6; }
3811 fi
3814 fi
3815 fi
3816 if test -z "$CC"; then
3817 # Extract the first word of "cc", so it can be a program name with args.
3818 set dummy cc; ac_word=$2
3819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3821 if test "${ac_cv_prog_CC+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 if test -n "$CC"; then
3825 ac_cv_prog_CC="$CC" # Let the user override the test.
3826 else
3827 ac_prog_rejected=no
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3836 ac_prog_rejected=yes
3837 continue
3838 fi
3839 ac_cv_prog_CC="cc"
3840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843 done
3844 done
3845 IFS=$as_save_IFS
3847 if test $ac_prog_rejected = yes; then
3848 # We found a bogon in the path, so make sure we never use it.
3849 set dummy $ac_cv_prog_CC
3850 shift
3851 if test $# != 0; then
3852 # We chose a different compiler from the bogus one.
3853 # However, it has the same basename, so the bogon will be chosen
3854 # first if we set CC to just the basename; use the full file name.
3855 shift
3856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3857 fi
3858 fi
3859 fi
3860 fi
3861 CC=$ac_cv_prog_CC
3862 if test -n "$CC"; then
3863 { echo "$as_me:$LINENO: result: $CC" >&5
3864 echo "${ECHO_T}$CC" >&6; }
3865 else
3866 { echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6; }
3868 fi
3871 fi
3872 if test -z "$CC"; then
3873 if test -n "$ac_tool_prefix"; then
3874 for ac_prog in cl.exe
3875 do
3876 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3880 if test "${ac_cv_prog_CC+set}" = set; then
3881 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 else
3883 if test -n "$CC"; then
3884 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 else
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH
3888 do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3893 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3895 break 2
3896 fi
3897 done
3898 done
3899 IFS=$as_save_IFS
3901 fi
3902 fi
3903 CC=$ac_cv_prog_CC
3904 if test -n "$CC"; then
3905 { echo "$as_me:$LINENO: result: $CC" >&5
3906 echo "${ECHO_T}$CC" >&6; }
3907 else
3908 { echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6; }
3910 fi
3913 test -n "$CC" && break
3914 done
3915 fi
3916 if test -z "$CC"; then
3917 ac_ct_CC=$CC
3918 for ac_prog in cl.exe
3919 do
3920 # Extract the first word of "$ac_prog", so it can be a program name with args.
3921 set dummy $ac_prog; ac_word=$2
3922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927 if test -n "$ac_ct_CC"; then
3928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3929 else
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_ac_ct_CC="$ac_prog"
3938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 break 2
3940 fi
3941 done
3942 done
3943 IFS=$as_save_IFS
3945 fi
3946 fi
3947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3948 if test -n "$ac_ct_CC"; then
3949 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3950 echo "${ECHO_T}$ac_ct_CC" >&6; }
3951 else
3952 { echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6; }
3954 fi
3957 test -n "$ac_ct_CC" && break
3958 done
3960 if test "x$ac_ct_CC" = x; then
3961 CC=""
3962 else
3963 case $cross_compiling:$ac_tool_warned in
3964 yes:)
3965 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3966 whose name does not start with the host triplet. If you think this
3967 configuration is useful to you, please write to autoconf@gnu.org." >&5
3968 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3969 whose name does not start with the host triplet. If you think this
3970 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3971 ac_tool_warned=yes ;;
3972 esac
3973 CC=$ac_ct_CC
3974 fi
3975 fi
3977 fi
3980 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3981 See \`config.log' for more details." >&5
3982 echo "$as_me: error: no acceptable C compiler found in \$PATH
3983 See \`config.log' for more details." >&2;}
3984 { (exit 1); exit 1; }; }
3986 # Provide some information about the compiler.
3987 echo "$as_me:$LINENO: checking for C compiler version" >&5
3988 ac_compiler=`set X $ac_compile; echo $2`
3989 { (ac_try="$ac_compiler --version >&5"
3990 case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995 (eval "$ac_compiler --version >&5") 2>&5
3996 ac_status=$?
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); }
3999 { (ac_try="$ac_compiler -v >&5"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_compiler -v >&5") 2>&5
4006 ac_status=$?
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); }
4009 { (ac_try="$ac_compiler -V >&5"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4015 (eval "$ac_compiler -V >&5") 2>&5
4016 ac_status=$?
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }
4020 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4023 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025 cat >conftest.$ac_ext <<_ACEOF
4026 /* confdefs.h. */
4027 _ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4032 int
4033 main ()
4034 {
4035 #ifndef __GNUC__
4036 choke me
4037 #endif
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 rm -f conftest.$ac_objext
4044 if { (ac_try="$ac_compile"
4045 case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048 esac
4049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4050 (eval "$ac_compile") 2>conftest.er1
4051 ac_status=$?
4052 grep -v '^ *+' conftest.er1 >conftest.err
4053 rm -f conftest.er1
4054 cat conftest.err >&5
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); } && {
4057 test -z "$ac_c_werror_flag" ||
4058 test ! -s conftest.err
4059 } && test -s conftest.$ac_objext; then
4060 ac_compiler_gnu=yes
4061 else
4062 echo "$as_me: failed program was:" >&5
4063 sed 's/^/| /' conftest.$ac_ext >&5
4065 ac_compiler_gnu=no
4066 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4071 fi
4072 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4073 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4074 GCC=`test $ac_compiler_gnu = yes && echo yes`
4075 ac_test_CFLAGS=${CFLAGS+set}
4076 ac_save_CFLAGS=$CFLAGS
4077 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4078 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4079 if test "${ac_cv_prog_cc_g+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 ac_save_c_werror_flag=$ac_c_werror_flag
4083 ac_c_werror_flag=yes
4084 ac_cv_prog_cc_g=no
4085 CFLAGS="-g"
4086 cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h. */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h. */
4093 int
4094 main ()
4095 {
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 rm -f conftest.$ac_objext
4102 if { (ac_try="$ac_compile"
4103 case "(($ac_try" in
4104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4105 *) ac_try_echo=$ac_try;;
4106 esac
4107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4108 (eval "$ac_compile") 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } && {
4115 test -z "$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4117 } && test -s conftest.$ac_objext; then
4118 ac_cv_prog_cc_g=yes
4119 else
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4123 CFLAGS=""
4124 cat >conftest.$ac_ext <<_ACEOF
4125 /* confdefs.h. */
4126 _ACEOF
4127 cat confdefs.h >>conftest.$ac_ext
4128 cat >>conftest.$ac_ext <<_ACEOF
4129 /* end confdefs.h. */
4131 int
4132 main ()
4133 {
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 rm -f conftest.$ac_objext
4140 if { (ac_try="$ac_compile"
4141 case "(($ac_try" in
4142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143 *) ac_try_echo=$ac_try;;
4144 esac
4145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4146 (eval "$ac_compile") 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } && {
4153 test -z "$ac_c_werror_flag" ||
4154 test ! -s conftest.err
4155 } && test -s conftest.$ac_objext; then
4156 :
4157 else
4158 echo "$as_me: failed program was:" >&5
4159 sed 's/^/| /' conftest.$ac_ext >&5
4161 ac_c_werror_flag=$ac_save_c_werror_flag
4162 CFLAGS="-g"
4163 cat >conftest.$ac_ext <<_ACEOF
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4170 int
4171 main ()
4172 {
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext
4179 if { (ac_try="$ac_compile"
4180 case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_compile") 2>conftest.er1
4186 ac_status=$?
4187 grep -v '^ *+' conftest.er1 >conftest.err
4188 rm -f conftest.er1
4189 cat conftest.err >&5
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); } && {
4192 test -z "$ac_c_werror_flag" ||
4193 test ! -s conftest.err
4194 } && test -s conftest.$ac_objext; then
4195 ac_cv_prog_cc_g=yes
4196 else
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4201 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 fi
4206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4207 fi
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 ac_c_werror_flag=$ac_save_c_werror_flag
4211 fi
4212 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4213 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4214 if test "$ac_test_CFLAGS" = set; then
4215 CFLAGS=$ac_save_CFLAGS
4216 elif test $ac_cv_prog_cc_g = yes; then
4217 if test "$GCC" = yes; then
4218 CFLAGS="-g -O2"
4219 else
4220 CFLAGS="-g"
4221 fi
4222 else
4223 if test "$GCC" = yes; then
4224 CFLAGS="-O2"
4225 else
4226 CFLAGS=
4227 fi
4228 fi
4229 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4230 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4231 if test "${ac_cv_prog_cc_c89+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 else
4234 ac_cv_prog_cc_c89=no
4235 ac_save_CC=$CC
4236 cat >conftest.$ac_ext <<_ACEOF
4237 /* confdefs.h. */
4238 _ACEOF
4239 cat confdefs.h >>conftest.$ac_ext
4240 cat >>conftest.$ac_ext <<_ACEOF
4241 /* end confdefs.h. */
4242 #include <stdarg.h>
4243 #include <stdio.h>
4244 #include <sys/types.h>
4245 #include <sys/stat.h>
4246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4247 struct buf { int x; };
4248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4249 static char *e (p, i)
4250 char **p;
4251 int i;
4252 {
4253 return p[i];
4254 }
4255 static char *f (char * (*g) (char **, int), char **p, ...)
4256 {
4257 char *s;
4258 va_list v;
4259 va_start (v,p);
4260 s = g (p, va_arg (v,int));
4261 va_end (v);
4262 return s;
4263 }
4265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4266 function prototypes and stuff, but not '\xHH' hex character constants.
4267 These don't provoke an error unfortunately, instead are silently treated
4268 as 'x'. The following induces an error, until -std is added to get
4269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4270 array size at least. It's necessary to write '\x00'==0 to get something
4271 that's true only with -std. */
4272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4275 inside strings and character constants. */
4276 #define FOO(x) 'x'
4277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4279 int test (int i, double x);
4280 struct s1 {int (*f) (int a);};
4281 struct s2 {int (*f) (double a);};
4282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4283 int argc;
4284 char **argv;
4285 int
4286 main ()
4287 {
4288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4289 ;
4290 return 0;
4291 }
4292 _ACEOF
4293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4295 do
4296 CC="$ac_save_CC $ac_arg"
4297 rm -f conftest.$ac_objext
4298 if { (ac_try="$ac_compile"
4299 case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302 esac
4303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4304 (eval "$ac_compile") 2>conftest.er1
4305 ac_status=$?
4306 grep -v '^ *+' conftest.er1 >conftest.err
4307 rm -f conftest.er1
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } && {
4311 test -z "$ac_c_werror_flag" ||
4312 test ! -s conftest.err
4313 } && test -s conftest.$ac_objext; then
4314 ac_cv_prog_cc_c89=$ac_arg
4315 else
4316 echo "$as_me: failed program was:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4320 fi
4322 rm -f core conftest.err conftest.$ac_objext
4323 test "x$ac_cv_prog_cc_c89" != "xno" && break
4324 done
4325 rm -f conftest.$ac_ext
4326 CC=$ac_save_CC
4328 fi
4329 # AC_CACHE_VAL
4330 case "x$ac_cv_prog_cc_c89" in
4331 x)
4332 { echo "$as_me:$LINENO: result: none needed" >&5
4333 echo "${ECHO_T}none needed" >&6; } ;;
4334 xno)
4335 { echo "$as_me:$LINENO: result: unsupported" >&5
4336 echo "${ECHO_T}unsupported" >&6; } ;;
4337 *)
4338 CC="$CC $ac_cv_prog_cc_c89"
4339 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4340 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4341 esac
4344 ac_ext=c
4345 ac_cpp='$CPP $CPPFLAGS'
4346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350 depcc="$CC" am_compiler_list=
4352 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4353 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4354 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 else
4357 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4358 # We make a subdir and do the tests there. Otherwise we can end up
4359 # making bogus files that we don't know about and never remove. For
4360 # instance it was reported that on HP-UX the gcc test will end up
4361 # making a dummy file named `D' -- because `-MD' means `put the output
4362 # in D'.
4363 mkdir conftest.dir
4364 # Copy depcomp to subdir because otherwise we won't find it if we're
4365 # using a relative directory.
4366 cp "$am_depcomp" conftest.dir
4367 cd conftest.dir
4368 # We will build objects and dependencies in a subdirectory because
4369 # it helps to detect inapplicable dependency modes. For instance
4370 # both Tru64's cc and ICC support -MD to output dependencies as a
4371 # side effect of compilation, but ICC will put the dependencies in
4372 # the current directory while Tru64 will put them in the object
4373 # directory.
4374 mkdir sub
4376 am_cv_CC_dependencies_compiler_type=none
4377 if test "$am_compiler_list" = ""; then
4378 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4379 fi
4380 for depmode in $am_compiler_list; do
4381 # Setup a source with many dependencies, because some compilers
4382 # like to wrap large dependency lists on column 80 (with \), and
4383 # we should not choose a depcomp mode which is confused by this.
4384 #
4385 # We need to recreate these files for each test, as the compiler may
4386 # overwrite some of them when testing with obscure command lines.
4387 # This happens at least with the AIX C compiler.
4388 : > sub/conftest.c
4389 for i in 1 2 3 4 5 6; do
4390 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4391 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4392 # Solaris 8's {/usr,}/bin/sh.
4393 touch sub/conftst$i.h
4394 done
4395 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4397 case $depmode in
4398 nosideeffect)
4399 # after this tag, mechanisms are not by side-effect, so they'll
4400 # only be used when explicitly requested
4401 if test "x$enable_dependency_tracking" = xyes; then
4402 continue
4403 else
4404 break
4405 fi
4406 ;;
4407 none) break ;;
4408 esac
4409 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4410 # mode. It turns out that the SunPro C++ compiler does not properly
4411 # handle `-M -o', and we need to detect this.
4412 if depmode=$depmode \
4413 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4414 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4415 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4416 >/dev/null 2>conftest.err &&
4417 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4418 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4419 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4420 # icc doesn't choke on unknown options, it will just issue warnings
4421 # or remarks (even with -Werror). So we grep stderr for any message
4422 # that says an option was ignored or not supported.
4423 # When given -MP, icc 7.0 and 7.1 complain thusly:
4424 # icc: Command line warning: ignoring option '-M'; no argument required
4425 # The diagnosis changed in icc 8.0:
4426 # icc: Command line remark: option '-MP' not supported
4427 if (grep 'ignoring option' conftest.err ||
4428 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4429 am_cv_CC_dependencies_compiler_type=$depmode
4430 break
4431 fi
4432 fi
4433 done
4435 cd ..
4436 rm -rf conftest.dir
4437 else
4438 am_cv_CC_dependencies_compiler_type=none
4439 fi
4441 fi
4442 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4443 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4444 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4448 if
4449 test "x$enable_dependency_tracking" != xno \
4450 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4451 am__fastdepCC_TRUE=
4452 am__fastdepCC_FALSE='#'
4453 else
4454 am__fastdepCC_TRUE='#'
4455 am__fastdepCC_FALSE=
4456 fi
4459 ac_ext=c
4460 ac_cpp='$CPP $CPPFLAGS'
4461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464 if test -n "$ac_tool_prefix"; then
4465 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4466 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_prog_CC+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472 if test -n "$CC"; then
4473 ac_cv_prog_CC="$CC" # Let the user override the test.
4474 else
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4490 fi
4491 fi
4492 CC=$ac_cv_prog_CC
4493 if test -n "$CC"; then
4494 { echo "$as_me:$LINENO: result: $CC" >&5
4495 echo "${ECHO_T}$CC" >&6; }
4496 else
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4499 fi
4502 fi
4503 if test -z "$ac_cv_prog_CC"; then
4504 ac_ct_CC=$CC
4505 # Extract the first word of "gcc", so it can be a program name with args.
4506 set dummy gcc; ac_word=$2
4507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 if test -n "$ac_ct_CC"; then
4513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_prog_ac_ct_CC="gcc"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4525 fi
4526 done
4527 done
4528 IFS=$as_save_IFS
4530 fi
4531 fi
4532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4533 if test -n "$ac_ct_CC"; then
4534 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4535 echo "${ECHO_T}$ac_ct_CC" >&6; }
4536 else
4537 { echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6; }
4539 fi
4541 if test "x$ac_ct_CC" = x; then
4542 CC=""
4543 else
4544 case $cross_compiling:$ac_tool_warned in
4545 yes:)
4546 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4547 whose name does not start with the host triplet. If you think this
4548 configuration is useful to you, please write to autoconf@gnu.org." >&5
4549 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4550 whose name does not start with the host triplet. If you think this
4551 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4552 ac_tool_warned=yes ;;
4553 esac
4554 CC=$ac_ct_CC
4555 fi
4556 else
4557 CC="$ac_cv_prog_CC"
4558 fi
4560 if test -z "$CC"; then
4561 if test -n "$ac_tool_prefix"; then
4562 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4563 set dummy ${ac_tool_prefix}cc; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_prog_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569 if test -n "$CC"; then
4570 ac_cv_prog_CC="$CC" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_CC="${ac_tool_prefix}cc"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4587 fi
4588 fi
4589 CC=$ac_cv_prog_CC
4590 if test -n "$CC"; then
4591 { echo "$as_me:$LINENO: result: $CC" >&5
4592 echo "${ECHO_T}$CC" >&6; }
4593 else
4594 { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4596 fi
4599 fi
4600 fi
4601 if test -z "$CC"; then
4602 # Extract the first word of "cc", so it can be a program name with args.
4603 set dummy cc; ac_word=$2
4604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4606 if test "${ac_cv_prog_CC+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609 if test -n "$CC"; then
4610 ac_cv_prog_CC="$CC" # Let the user override the test.
4611 else
4612 ac_prog_rejected=no
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4621 ac_prog_rejected=yes
4622 continue
4623 fi
4624 ac_cv_prog_CC="cc"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4627 fi
4628 done
4629 done
4630 IFS=$as_save_IFS
4632 if test $ac_prog_rejected = yes; then
4633 # We found a bogon in the path, so make sure we never use it.
4634 set dummy $ac_cv_prog_CC
4635 shift
4636 if test $# != 0; then
4637 # We chose a different compiler from the bogus one.
4638 # However, it has the same basename, so the bogon will be chosen
4639 # first if we set CC to just the basename; use the full file name.
4640 shift
4641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4642 fi
4643 fi
4644 fi
4645 fi
4646 CC=$ac_cv_prog_CC
4647 if test -n "$CC"; then
4648 { echo "$as_me:$LINENO: result: $CC" >&5
4649 echo "${ECHO_T}$CC" >&6; }
4650 else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4653 fi
4656 fi
4657 if test -z "$CC"; then
4658 if test -n "$ac_tool_prefix"; then
4659 for ac_prog in cl.exe
4660 do
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_CC+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 if test -n "$CC"; then
4669 ac_cv_prog_CC="$CC" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4673 do
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4681 fi
4682 done
4683 done
4684 IFS=$as_save_IFS
4686 fi
4687 fi
4688 CC=$ac_cv_prog_CC
4689 if test -n "$CC"; then
4690 { echo "$as_me:$LINENO: result: $CC" >&5
4691 echo "${ECHO_T}$CC" >&6; }
4692 else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4695 fi
4698 test -n "$CC" && break
4699 done
4700 fi
4701 if test -z "$CC"; then
4702 ac_ct_CC=$CC
4703 for ac_prog in cl.exe
4704 do
4705 # Extract the first word of "$ac_prog", so it can be a program name with args.
4706 set dummy $ac_prog; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712 if test -n "$ac_ct_CC"; then
4713 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4717 do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_ac_ct_CC="$ac_prog"
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4725 fi
4726 done
4727 done
4728 IFS=$as_save_IFS
4730 fi
4731 fi
4732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4733 if test -n "$ac_ct_CC"; then
4734 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4735 echo "${ECHO_T}$ac_ct_CC" >&6; }
4736 else
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4739 fi
4742 test -n "$ac_ct_CC" && break
4743 done
4745 if test "x$ac_ct_CC" = x; then
4746 CC=""
4747 else
4748 case $cross_compiling:$ac_tool_warned in
4749 yes:)
4750 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4751 whose name does not start with the host triplet. If you think this
4752 configuration is useful to you, please write to autoconf@gnu.org." >&5
4753 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4754 whose name does not start with the host triplet. If you think this
4755 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4756 ac_tool_warned=yes ;;
4757 esac
4758 CC=$ac_ct_CC
4759 fi
4760 fi
4762 fi
4765 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4766 See \`config.log' for more details." >&5
4767 echo "$as_me: error: no acceptable C compiler found in \$PATH
4768 See \`config.log' for more details." >&2;}
4769 { (exit 1); exit 1; }; }
4771 # Provide some information about the compiler.
4772 echo "$as_me:$LINENO: checking for C compiler version" >&5
4773 ac_compiler=`set X $ac_compile; echo $2`
4774 { (ac_try="$ac_compiler --version >&5"
4775 case "(($ac_try" in
4776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777 *) ac_try_echo=$ac_try;;
4778 esac
4779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780 (eval "$ac_compiler --version >&5") 2>&5
4781 ac_status=$?
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); }
4784 { (ac_try="$ac_compiler -v >&5"
4785 case "(($ac_try" in
4786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4787 *) ac_try_echo=$ac_try;;
4788 esac
4789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4790 (eval "$ac_compiler -v >&5") 2>&5
4791 ac_status=$?
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }
4794 { (ac_try="$ac_compiler -V >&5"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_compiler -V >&5") 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }
4805 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4806 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4807 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4808 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810 cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4817 int
4818 main ()
4819 {
4820 #ifndef __GNUC__
4821 choke me
4822 #endif
4824 ;
4825 return 0;
4826 }
4827 _ACEOF
4828 rm -f conftest.$ac_objext
4829 if { (ac_try="$ac_compile"
4830 case "(($ac_try" in
4831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4832 *) ac_try_echo=$ac_try;;
4833 esac
4834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4835 (eval "$ac_compile") 2>conftest.er1
4836 ac_status=$?
4837 grep -v '^ *+' conftest.er1 >conftest.err
4838 rm -f conftest.er1
4839 cat conftest.err >&5
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); } && {
4842 test -z "$ac_c_werror_flag" ||
4843 test ! -s conftest.err
4844 } && test -s conftest.$ac_objext; then
4845 ac_compiler_gnu=yes
4846 else
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 ac_compiler_gnu=no
4851 fi
4853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4856 fi
4857 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4858 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4859 GCC=`test $ac_compiler_gnu = yes && echo yes`
4860 ac_test_CFLAGS=${CFLAGS+set}
4861 ac_save_CFLAGS=$CFLAGS
4862 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4863 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_cc_g+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 ac_save_c_werror_flag=$ac_c_werror_flag
4868 ac_c_werror_flag=yes
4869 ac_cv_prog_cc_g=no
4870 CFLAGS="-g"
4871 cat >conftest.$ac_ext <<_ACEOF
4872 /* confdefs.h. */
4873 _ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4878 int
4879 main ()
4880 {
4882 ;
4883 return 0;
4884 }
4885 _ACEOF
4886 rm -f conftest.$ac_objext
4887 if { (ac_try="$ac_compile"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_compile") 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } && {
4900 test -z "$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 } && test -s conftest.$ac_objext; then
4903 ac_cv_prog_cc_g=yes
4904 else
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 CFLAGS=""
4909 cat >conftest.$ac_ext <<_ACEOF
4910 /* confdefs.h. */
4911 _ACEOF
4912 cat confdefs.h >>conftest.$ac_ext
4913 cat >>conftest.$ac_ext <<_ACEOF
4914 /* end confdefs.h. */
4916 int
4917 main ()
4918 {
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 rm -f conftest.$ac_objext
4925 if { (ac_try="$ac_compile"
4926 case "(($ac_try" in
4927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4928 *) ac_try_echo=$ac_try;;
4929 esac
4930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4931 (eval "$ac_compile") 2>conftest.er1
4932 ac_status=$?
4933 grep -v '^ *+' conftest.er1 >conftest.err
4934 rm -f conftest.er1
4935 cat conftest.err >&5
4936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937 (exit $ac_status); } && {
4938 test -z "$ac_c_werror_flag" ||
4939 test ! -s conftest.err
4940 } && test -s conftest.$ac_objext; then
4941 :
4942 else
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 ac_c_werror_flag=$ac_save_c_werror_flag
4947 CFLAGS="-g"
4948 cat >conftest.$ac_ext <<_ACEOF
4949 /* confdefs.h. */
4950 _ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4955 int
4956 main ()
4957 {
4959 ;
4960 return 0;
4961 }
4962 _ACEOF
4963 rm -f conftest.$ac_objext
4964 if { (ac_try="$ac_compile"
4965 case "(($ac_try" in
4966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4967 *) ac_try_echo=$ac_try;;
4968 esac
4969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4970 (eval "$ac_compile") 2>conftest.er1
4971 ac_status=$?
4972 grep -v '^ *+' conftest.er1 >conftest.err
4973 rm -f conftest.er1
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } && {
4977 test -z "$ac_c_werror_flag" ||
4978 test ! -s conftest.err
4979 } && test -s conftest.$ac_objext; then
4980 ac_cv_prog_cc_g=yes
4981 else
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4986 fi
4988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989 fi
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 fi
4994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995 ac_c_werror_flag=$ac_save_c_werror_flag
4996 fi
4997 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4998 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4999 if test "$ac_test_CFLAGS" = set; then
5000 CFLAGS=$ac_save_CFLAGS
5001 elif test $ac_cv_prog_cc_g = yes; then
5002 if test "$GCC" = yes; then
5003 CFLAGS="-g -O2"
5004 else
5005 CFLAGS="-g"
5006 fi
5007 else
5008 if test "$GCC" = yes; then
5009 CFLAGS="-O2"
5010 else
5011 CFLAGS=
5012 fi
5013 fi
5014 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5015 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_cc_c89+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019 ac_cv_prog_cc_c89=no
5020 ac_save_CC=$CC
5021 cat >conftest.$ac_ext <<_ACEOF
5022 /* confdefs.h. */
5023 _ACEOF
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5027 #include <stdarg.h>
5028 #include <stdio.h>
5029 #include <sys/types.h>
5030 #include <sys/stat.h>
5031 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5032 struct buf { int x; };
5033 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5034 static char *e (p, i)
5035 char **p;
5036 int i;
5037 {
5038 return p[i];
5039 }
5040 static char *f (char * (*g) (char **, int), char **p, ...)
5041 {
5042 char *s;
5043 va_list v;
5044 va_start (v,p);
5045 s = g (p, va_arg (v,int));
5046 va_end (v);
5047 return s;
5048 }
5050 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5051 function prototypes and stuff, but not '\xHH' hex character constants.
5052 These don't provoke an error unfortunately, instead are silently treated
5053 as 'x'. The following induces an error, until -std is added to get
5054 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5055 array size at least. It's necessary to write '\x00'==0 to get something
5056 that's true only with -std. */
5057 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5059 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5060 inside strings and character constants. */
5061 #define FOO(x) 'x'
5062 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5064 int test (int i, double x);
5065 struct s1 {int (*f) (int a);};
5066 struct s2 {int (*f) (double a);};
5067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5068 int argc;
5069 char **argv;
5070 int
5071 main ()
5072 {
5073 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5074 ;
5075 return 0;
5076 }
5077 _ACEOF
5078 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5079 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5080 do
5081 CC="$ac_save_CC $ac_arg"
5082 rm -f conftest.$ac_objext
5083 if { (ac_try="$ac_compile"
5084 case "(($ac_try" in
5085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5086 *) ac_try_echo=$ac_try;;
5087 esac
5088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5089 (eval "$ac_compile") 2>conftest.er1
5090 ac_status=$?
5091 grep -v '^ *+' conftest.er1 >conftest.err
5092 rm -f conftest.er1
5093 cat conftest.err >&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); } && {
5096 test -z "$ac_c_werror_flag" ||
5097 test ! -s conftest.err
5098 } && test -s conftest.$ac_objext; then
5099 ac_cv_prog_cc_c89=$ac_arg
5100 else
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5105 fi
5107 rm -f core conftest.err conftest.$ac_objext
5108 test "x$ac_cv_prog_cc_c89" != "xno" && break
5109 done
5110 rm -f conftest.$ac_ext
5111 CC=$ac_save_CC
5113 fi
5114 # AC_CACHE_VAL
5115 case "x$ac_cv_prog_cc_c89" in
5116 x)
5117 { echo "$as_me:$LINENO: result: none needed" >&5
5118 echo "${ECHO_T}none needed" >&6; } ;;
5119 xno)
5120 { echo "$as_me:$LINENO: result: unsupported" >&5
5121 echo "${ECHO_T}unsupported" >&6; } ;;
5122 *)
5123 CC="$CC $ac_cv_prog_cc_c89"
5124 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5125 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5126 esac
5129 ac_ext=c
5130 ac_cpp='$CPP $CPPFLAGS'
5131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135 depcc="$CC" am_compiler_list=
5137 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5138 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5139 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 else
5142 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5143 # We make a subdir and do the tests there. Otherwise we can end up
5144 # making bogus files that we don't know about and never remove. For
5145 # instance it was reported that on HP-UX the gcc test will end up
5146 # making a dummy file named `D' -- because `-MD' means `put the output
5147 # in D'.
5148 mkdir conftest.dir
5149 # Copy depcomp to subdir because otherwise we won't find it if we're
5150 # using a relative directory.
5151 cp "$am_depcomp" conftest.dir
5152 cd conftest.dir
5153 # We will build objects and dependencies in a subdirectory because
5154 # it helps to detect inapplicable dependency modes. For instance
5155 # both Tru64's cc and ICC support -MD to output dependencies as a
5156 # side effect of compilation, but ICC will put the dependencies in
5157 # the current directory while Tru64 will put them in the object
5158 # directory.
5159 mkdir sub
5161 am_cv_CC_dependencies_compiler_type=none
5162 if test "$am_compiler_list" = ""; then
5163 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5164 fi
5165 for depmode in $am_compiler_list; do
5166 # Setup a source with many dependencies, because some compilers
5167 # like to wrap large dependency lists on column 80 (with \), and
5168 # we should not choose a depcomp mode which is confused by this.
5169 #
5170 # We need to recreate these files for each test, as the compiler may
5171 # overwrite some of them when testing with obscure command lines.
5172 # This happens at least with the AIX C compiler.
5173 : > sub/conftest.c
5174 for i in 1 2 3 4 5 6; do
5175 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5176 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5177 # Solaris 8's {/usr,}/bin/sh.
5178 touch sub/conftst$i.h
5179 done
5180 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5182 case $depmode in
5183 nosideeffect)
5184 # after this tag, mechanisms are not by side-effect, so they'll
5185 # only be used when explicitly requested
5186 if test "x$enable_dependency_tracking" = xyes; then
5187 continue
5188 else
5189 break
5190 fi
5191 ;;
5192 none) break ;;
5193 esac
5194 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5195 # mode. It turns out that the SunPro C++ compiler does not properly
5196 # handle `-M -o', and we need to detect this.
5197 if depmode=$depmode \
5198 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5199 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5200 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5201 >/dev/null 2>conftest.err &&
5202 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5203 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5204 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5205 # icc doesn't choke on unknown options, it will just issue warnings
5206 # or remarks (even with -Werror). So we grep stderr for any message
5207 # that says an option was ignored or not supported.
5208 # When given -MP, icc 7.0 and 7.1 complain thusly:
5209 # icc: Command line warning: ignoring option '-M'; no argument required
5210 # The diagnosis changed in icc 8.0:
5211 # icc: Command line remark: option '-MP' not supported
5212 if (grep 'ignoring option' conftest.err ||
5213 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5214 am_cv_CC_dependencies_compiler_type=$depmode
5215 break
5216 fi
5217 fi
5218 done
5220 cd ..
5221 rm -rf conftest.dir
5222 else
5223 am_cv_CC_dependencies_compiler_type=none
5224 fi
5226 fi
5227 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5228 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5229 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5233 if
5234 test "x$enable_dependency_tracking" != xno \
5235 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5236 am__fastdepCC_TRUE=
5237 am__fastdepCC_FALSE='#'
5238 else
5239 am__fastdepCC_TRUE='#'
5240 am__fastdepCC_FALSE=
5241 fi
5245 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5247 ac_ext=c
5248 ac_cpp='$CPP $CPPFLAGS'
5249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5252 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5253 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5254 # On Suns, sometimes $CPP names a directory.
5255 if test -n "$CPP" && test -d "$CPP"; then
5256 CPP=
5257 fi
5258 if test -z "$CPP"; then
5259 if test "${ac_cv_prog_CPP+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262 # Double quotes because CPP needs to be expanded
5263 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5264 do
5265 ac_preproc_ok=false
5266 for ac_c_preproc_warn_flag in '' yes
5267 do
5268 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser,
5273 # not just through cpp. "Syntax error" is here to catch this case.
5274 cat >conftest.$ac_ext <<_ACEOF
5275 /* confdefs.h. */
5276 _ACEOF
5277 cat confdefs.h >>conftest.$ac_ext
5278 cat >>conftest.$ac_ext <<_ACEOF
5279 /* end confdefs.h. */
5280 #ifdef __STDC__
5281 # include <limits.h>
5282 #else
5283 # include <assert.h>
5284 #endif
5285 Syntax error
5286 _ACEOF
5287 if { (ac_try="$ac_cpp conftest.$ac_ext"
5288 case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291 esac
5292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null && {
5300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5301 test ! -s conftest.err
5302 }; then
5303 :
5304 else
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 # Broken: fails on valid input.
5309 continue
5310 fi
5312 rm -f conftest.err conftest.$ac_ext
5314 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5317 /* confdefs.h. */
5318 _ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 #include <ac_nonexistent.h>
5323 _ACEOF
5324 if { (ac_try="$ac_cpp conftest.$ac_ext"
5325 case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328 esac
5329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null && {
5337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5338 test ! -s conftest.err
5339 }; then
5340 # Broken: success on invalid input.
5341 continue
5342 else
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 # Passes both tests.
5347 ac_preproc_ok=:
5348 break
5349 fi
5351 rm -f conftest.err conftest.$ac_ext
5353 done
5354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355 rm -f conftest.err conftest.$ac_ext
5356 if $ac_preproc_ok; then
5357 break
5358 fi
5360 done
5361 ac_cv_prog_CPP=$CPP
5363 fi
5364 CPP=$ac_cv_prog_CPP
5365 else
5366 ac_cv_prog_CPP=$CPP
5367 fi
5368 { echo "$as_me:$LINENO: result: $CPP" >&5
5369 echo "${ECHO_T}$CPP" >&6; }
5370 ac_preproc_ok=false
5371 for ac_c_preproc_warn_flag in '' yes
5372 do
5373 # Use a header file that comes with gcc, so configuring glibc
5374 # with a fresh cross-compiler works.
5375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5376 # <limits.h> exists even on freestanding compilers.
5377 # On the NeXT, cc -E runs the code through the compiler's parser,
5378 # not just through cpp. "Syntax error" is here to catch this case.
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 #ifdef __STDC__
5386 # include <limits.h>
5387 #else
5388 # include <assert.h>
5389 #endif
5390 Syntax error
5391 _ACEOF
5392 if { (ac_try="$ac_cpp conftest.$ac_ext"
5393 case "(($ac_try" in
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5396 esac
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399 ac_status=$?
5400 grep -v '^ *+' conftest.er1 >conftest.err
5401 rm -f conftest.er1
5402 cat conftest.err >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); } >/dev/null && {
5405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5406 test ! -s conftest.err
5407 }; then
5408 :
5409 else
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 # Broken: fails on valid input.
5414 continue
5415 fi
5417 rm -f conftest.err conftest.$ac_ext
5419 # OK, works on sane cases. Now check whether nonexistent headers
5420 # can be detected and how.
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #include <ac_nonexistent.h>
5428 _ACEOF
5429 if { (ac_try="$ac_cpp conftest.$ac_ext"
5430 case "(($ac_try" in
5431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5432 *) ac_try_echo=$ac_try;;
5433 esac
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5436 ac_status=$?
5437 grep -v '^ *+' conftest.er1 >conftest.err
5438 rm -f conftest.er1
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev/null && {
5442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 }; then
5445 # Broken: success on invalid input.
5446 continue
5447 else
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5451 # Passes both tests.
5452 ac_preproc_ok=:
5453 break
5454 fi
5456 rm -f conftest.err conftest.$ac_ext
5458 done
5459 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5460 rm -f conftest.err conftest.$ac_ext
5461 if $ac_preproc_ok; then
5462 :
5463 else
5464 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5465 See \`config.log' for more details." >&5
5466 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5467 See \`config.log' for more details." >&2;}
5468 { (exit 1); exit 1; }; }
5469 fi
5471 ac_ext=c
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478 ac_main_cc="$CC"
5479 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5481 if test -z "$CC_FOR_BUILD"; then
5482 if test "$#" = yes; then
5483 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5484 See \`config.log' for more details." >&5
5485 echo "$as_me: error: cannot run test program while cross compiling
5486 See \`config.log' for more details." >&2;}
5487 { (exit 1); exit 1; }; }
5488 else
5489 cat >conftest.$ac_ext <<_ACEOF
5490 int main(){return 0;}
5491 _ACEOF
5492 rm -f conftest$ac_exeext
5493 if { (ac_try="$ac_link"
5494 case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_link") 2>&5
5500 ac_status=$?
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5503 { (case "(($ac_try" in
5504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5505 *) ac_try_echo=$ac_try;;
5506 esac
5507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5508 (eval "$ac_try") 2>&5
5509 ac_status=$?
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); }; }; then
5512 CC_FOR_BUILD="$CC"
5513 else
5514 echo "$as_me: program exited with status $ac_status" >&5
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5518 fi
5519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5520 fi
5523 fi
5526 ac_ext=c
5527 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5528 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5529 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5531 if test -n "$ac_build_tool_prefix"; then
5532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5533 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5536 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 else
5539 if test -n "$CC_FOR_BUILD"; then
5540 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5557 fi
5558 fi
5559 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5560 if test -n "$CC_FOR_BUILD"; then
5561 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5562 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5563 else
5564 { echo "$as_me:$LINENO: result: no" >&5
5565 echo "${ECHO_T}no" >&6; }
5566 fi
5569 fi
5570 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5571 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5572 # Extract the first word of "gcc", so it can be a program name with args.
5573 set dummy gcc; ac_word=$2
5574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5576 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 if test -n "$ac_ct_CC_FOR_BUILD"; then
5580 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5581 else
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH
5584 do
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5592 fi
5593 done
5594 done
5595 IFS=$as_save_IFS
5597 fi
5598 fi
5599 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5600 if test -n "$ac_ct_CC_FOR_BUILD"; then
5601 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5602 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5603 else
5604 { echo "$as_me:$LINENO: result: no" >&5
5605 echo "${ECHO_T}no" >&6; }
5606 fi
5608 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5609 CC_FOR_BUILD=""
5610 else
5611 case $#:$ac_tool_warned in
5612 yes:)
5613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5614 whose name does not start with the build triplet. If you think this
5615 configuration is useful to you, please write to autoconf@gnu.org." >&5
5616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5617 whose name does not start with the build triplet. If you think this
5618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5619 ac_tool_warned=yes ;;
5620 esac
5621 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5622 fi
5623 else
5624 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5625 fi
5627 if test -z "$CC_FOR_BUILD"; then
5628 if test -n "$ac_build_tool_prefix"; then
5629 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5630 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5633 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636 if test -n "$CC_FOR_BUILD"; then
5637 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5638 else
5639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640 for as_dir in $PATH
5641 do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
5644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5646 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5648 break 2
5649 fi
5650 done
5651 done
5652 IFS=$as_save_IFS
5654 fi
5655 fi
5656 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5657 if test -n "$CC_FOR_BUILD"; then
5658 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5659 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5660 else
5661 { echo "$as_me:$LINENO: result: no" >&5
5662 echo "${ECHO_T}no" >&6; }
5663 fi
5666 fi
5667 fi
5668 if test -z "$CC_FOR_BUILD"; then
5669 # Extract the first word of "cc", so it can be a program name with args.
5670 set dummy cc; ac_word=$2
5671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5673 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 else
5676 if test -n "$CC_FOR_BUILD"; then
5677 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5678 else
5679 ac_prog_rejected=no
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 for as_dir in $PATH
5682 do
5683 IFS=$as_save_IFS
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5688 ac_prog_rejected=yes
5689 continue
5690 fi
5691 ac_cv_prog_CC_FOR_BUILD="cc"
5692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695 done
5696 done
5697 IFS=$as_save_IFS
5699 if test $ac_prog_rejected = yes; then
5700 # We found a bogon in the path, so make sure we never use it.
5701 set dummy $ac_cv_prog_CC_FOR_BUILD
5702 shift
5703 if test $# != 0; then
5704 # We chose a different compiler from the bogus one.
5705 # However, it has the same basename, so the bogon will be chosen
5706 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5707 shift
5708 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5709 fi
5710 fi
5711 fi
5712 fi
5713 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5714 if test -n "$CC_FOR_BUILD"; then
5715 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5716 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5717 else
5718 { echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6; }
5720 fi
5723 fi
5724 if test -z "$CC_FOR_BUILD"; then
5725 if test -n "$ac_build_tool_prefix"; then
5726 for ac_prog in cl.exe
5727 do
5728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5729 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5732 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 else
5735 if test -n "$CC_FOR_BUILD"; then
5736 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741 IFS=$as_save_IFS
5742 test -z "$as_dir" && as_dir=.
5743 for ac_exec_ext in '' $ac_executable_extensions; do
5744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 break 2
5748 fi
5749 done
5750 done
5751 IFS=$as_save_IFS
5753 fi
5754 fi
5755 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5756 if test -n "$CC_FOR_BUILD"; then
5757 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5758 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5759 else
5760 { echo "$as_me:$LINENO: result: no" >&5
5761 echo "${ECHO_T}no" >&6; }
5762 fi
5765 test -n "$CC_FOR_BUILD" && break
5766 done
5767 fi
5768 if test -z "$CC_FOR_BUILD"; then
5769 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5770 for ac_prog in cl.exe
5771 do
5772 # Extract the first word of "$ac_prog", so it can be a program name with args.
5773 set dummy $ac_prog; ac_word=$2
5774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5776 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779 if test -n "$ac_ct_CC_FOR_BUILD"; then
5780 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5781 else
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 for as_dir in $PATH
5784 do
5785 IFS=$as_save_IFS
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5791 break 2
5792 fi
5793 done
5794 done
5795 IFS=$as_save_IFS
5797 fi
5798 fi
5799 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5800 if test -n "$ac_ct_CC_FOR_BUILD"; then
5801 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5802 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5803 else
5804 { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5806 fi
5809 test -n "$ac_ct_CC_FOR_BUILD" && break
5810 done
5812 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5813 CC_FOR_BUILD=""
5814 else
5815 case $#:$ac_tool_warned in
5816 yes:)
5817 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5818 whose name does not start with the build triplet. If you think this
5819 configuration is useful to you, please write to autoconf@gnu.org." >&5
5820 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5821 whose name does not start with the build triplet. If you think this
5822 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5823 ac_tool_warned=yes ;;
5824 esac
5825 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5826 fi
5827 fi
5829 fi
5832 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5833 See \`config.log' for more details." >&5
5834 echo "$as_me: error: no acceptable C compiler found in \$PATH
5835 See \`config.log' for more details." >&2;}
5836 { (exit 1); exit 1; }; }
5838 # Provide some information about the compiler.
5839 echo "$as_me:$LINENO: checking for C compiler version" >&5
5840 ac_compiler=`set X $ac_build_compile; echo $2`
5841 { (ac_try="$ac_compiler --version >&5"
5842 case "(($ac_try" in
5843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compiler --version >&5") 2>&5
5848 ac_status=$?
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }
5851 { (ac_try="$ac_compiler -v >&5"
5852 case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855 esac
5856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5857 (eval "$ac_compiler -v >&5") 2>&5
5858 ac_status=$?
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }
5861 { (ac_try="$ac_compiler -V >&5"
5862 case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compiler -V >&5") 2>&5
5868 ac_status=$?
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); }
5872 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5873 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5874 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 cat >conftest.$ac_ext <<_ACEOF
5878 /* confdefs.h. */
5879 _ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5884 int
5885 main ()
5886 {
5887 #ifndef __GNUC__
5888 choke me
5889 #endif
5891 ;
5892 return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_build_objext
5896 if { (ac_try="$ac_build_compile"
5897 case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_build_compile") 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.$ac_build_objext; then
5912 ac_build_compiler_gnu=yes
5913 else
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_build_compiler_gnu=no
5918 fi
5920 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5921 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
5923 fi
5924 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5925 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5926 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
5927 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5928 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5929 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
5930 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
5931 if test "${ac_cv_build_prog_cc_g+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934 ac_save_c_werror_flag=$ac_c_werror_flag
5935 ac_c_werror_flag=yes
5936 ac_cv_build_prog_cc_g=no
5937 CFLAGS_FOR_BUILD="-g"
5938 cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h. */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5945 int
5946 main ()
5947 {
5949 ;
5950 return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_build_objext
5954 if { (ac_try="$ac_build_compile"
5955 case "(($ac_try" in
5956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957 *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960 (eval "$ac_build_compile") 2>conftest.er1
5961 ac_status=$?
5962 grep -v '^ *+' conftest.er1 >conftest.err
5963 rm -f conftest.er1
5964 cat conftest.err >&5
5965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966 (exit $ac_status); } && {
5967 test -z "$ac_c_werror_flag" ||
5968 test ! -s conftest.err
5969 } && test -s conftest.$ac_build_objext; then
5970 ac_cv_build_prog_cc_g=yes
5971 else
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5975 CFLAGS_FOR_BUILD=""
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5983 int
5984 main ()
5985 {
5987 ;
5988 return 0;
5989 }
5990 _ACEOF
5991 rm -f conftest.$ac_build_objext
5992 if { (ac_try="$ac_build_compile"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_build_compile") 2>conftest.er1
5999 ac_status=$?
6000 grep -v '^ *+' conftest.er1 >conftest.err
6001 rm -f conftest.er1
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest.$ac_build_objext; then
6008 :
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 ac_c_werror_flag=$ac_save_c_werror_flag
6014 CFLAGS_FOR_BUILD="-g"
6015 cat >conftest.$ac_ext <<_ACEOF
6016 /* confdefs.h. */
6017 _ACEOF
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6022 int
6023 main ()
6024 {
6026 ;
6027 return 0;
6028 }
6029 _ACEOF
6030 rm -f conftest.$ac_build_objext
6031 if { (ac_try="$ac_build_compile"
6032 case "(($ac_try" in
6033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6034 *) ac_try_echo=$ac_try;;
6035 esac
6036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6037 (eval "$ac_build_compile") 2>conftest.er1
6038 ac_status=$?
6039 grep -v '^ *+' conftest.er1 >conftest.err
6040 rm -f conftest.er1
6041 cat conftest.err >&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } && {
6044 test -z "$ac_c_werror_flag" ||
6045 test ! -s conftest.err
6046 } && test -s conftest.$ac_build_objext; then
6047 ac_cv_build_prog_cc_g=yes
6048 else
6049 echo "$as_me: failed program was:" >&5
6050 sed 's/^/| /' conftest.$ac_ext >&5
6053 fi
6055 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6056 fi
6058 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6059 fi
6061 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6062 ac_c_werror_flag=$ac_save_c_werror_flag
6063 fi
6064 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6065 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6066 if test "$ac_test_CFLAGS" = set; then
6067 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6068 elif test $ac_cv_build_prog_cc_g = yes; then
6069 if test "$GCC" = yes; then
6070 CFLAGS_FOR_BUILD="-g -O2"
6071 else
6072 CFLAGS_FOR_BUILD="-g"
6073 fi
6074 else
6075 if test "$GCC" = yes; then
6076 CFLAGS_FOR_BUILD="-O2"
6077 else
6078 CFLAGS_FOR_BUILD=
6079 fi
6080 fi
6081 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6082 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6083 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 ac_cv_build_prog_cc_stdc=no
6087 ac_save_CC=$CC_FOR_BUILD
6088 cat >conftest.$ac_ext <<_ACEOF
6089 /* confdefs.h. */
6090 _ACEOF
6091 cat confdefs.h >>conftest.$ac_ext
6092 cat >>conftest.$ac_ext <<_ACEOF
6093 /* end confdefs.h. */
6094 #include <stdarg.h>
6095 #include <stdio.h>
6096 #include <sys/types.h>
6097 #include <sys/stat.h>
6098 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6099 struct buf { int x; };
6100 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6101 static char *e (p, i)
6102 char **p;
6103 int i;
6104 {
6105 return p[i];
6106 }
6107 static char *f (char * (*g) (char **, int), char **p, ...)
6108 {
6109 char *s;
6110 va_list v;
6111 va_start (v,p);
6112 s = g (p, va_arg (v,int));
6113 va_end (v);
6114 return s;
6115 }
6117 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6118 function prototypes and stuff, but not '\xHH' hex character constants.
6119 These don't provoke an error unfortunately, instead are silently treated
6120 as 'x'. The following induces an error, until -std is added to get
6121 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6122 array size at least. It's necessary to write '\x00'==0 to get something
6123 that's true only with -std. */
6124 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6126 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6127 inside strings and character constants. */
6128 #define FOO(x) 'x'
6129 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6131 int test (int i, double x);
6132 struct s1 {int (*f) (int a);};
6133 struct s2 {int (*f) (double a);};
6134 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6135 int argc;
6136 char **argv;
6137 int
6138 main ()
6139 {
6140 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6141 ;
6142 return 0;
6143 }
6144 _ACEOF
6145 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6146 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6147 do
6148 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6149 rm -f conftest.$ac_build_objext
6150 if { (ac_try="$ac_build_compile"
6151 case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_build_compile") 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_c_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_build_objext; then
6166 ac_cv_build_prog_cc_stdc=$ac_arg
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6172 fi
6174 rm -f core conftest.err conftest.$ac_build_objext
6175 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6176 done
6177 rm -f conftest.$ac_ext
6178 CC_FOR_BUILD=$ac_save_CC
6180 fi
6181 # AC_CACHE_VAL
6182 case "x$ac_cv_build_prog_cc_stdc" in
6183 x)
6184 { echo "$as_me:$LINENO: result: none needed" >&5
6185 echo "${ECHO_T}none needed" >&6; } ;;
6186 xno)
6187 { echo "$as_me:$LINENO: result: unsupported" >&5
6188 echo "${ECHO_T}unsupported" >&6; } ;;
6189 *)
6190 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6191 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6192 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6193 esac
6196 ac_ext=c
6197 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6198 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6199 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6202 depcc="$CC_FOR_BUILD" am_compiler_list=
6204 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6205 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6206 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6207 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 else
6209 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6210 # We make a subdir and do the tests there. Otherwise we can end up
6211 # making bogus files that we don't know about and never remove. For
6212 # instance it was reported that on HP-UX the gcc test will end up
6213 # making a dummy file named `D' -- because `-MD' means `put the output
6214 # in D'.
6215 mkdir conftest.dir
6216 # Copy depcomp to subdir because otherwise we won't find it if we're
6217 # using a relative directory.
6218 cp "$am_depcomp" conftest.dir
6219 cd conftest.dir
6220 # We will build objects and dependencies in a subdirectory because
6221 # it helps to detect inapplicable dependency modes. For instance
6222 # both Tru64's cc and ICC support -MD to output dependencies as a
6223 # side effect of compilation, but ICC will put the dependencies in
6224 # the current directory while Tru64 will put them in the object
6225 # directory.
6226 mkdir sub
6228 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6229 if test "$am_compiler_list" = ""; then
6230 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6231 fi
6232 for depmode in $am_compiler_list; do
6233 # Setup a source with many dependencies, because some compilers
6234 # like to wrap large dependency lists on column 80 (with \), and
6235 # we should not choose a depcomp mode which is confused by this.
6236 #
6237 # We need to recreate these files for each test, as the compiler may
6238 # overwrite some of them when testing with obscure command lines.
6239 # This happens at least with the AIX C compiler.
6240 : > sub/conftest.c
6241 for i in 1 2 3 4 5 6; do
6242 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6243 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6244 # Solaris 8's {/usr,}/bin/sh.
6245 touch sub/conftst$i.h
6246 done
6247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6249 case $depmode in
6250 nosideeffect)
6251 # after this tag, mechanisms are not by side-effect, so they'll
6252 # only be used when explicitly requested
6253 if test "x$enable_dependency_tracking" = xyes; then
6254 continue
6255 else
6256 break
6257 fi
6258 ;;
6259 none) break ;;
6260 esac
6261 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6262 # mode. It turns out that the SunPro C++ compiler does not properly
6263 # handle `-M -o', and we need to detect this.
6264 if depmode=$depmode \
6265 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6266 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6267 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6268 >/dev/null 2>conftest.err &&
6269 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6270 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6271 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6272 # icc doesn't choke on unknown options, it will just issue warnings
6273 # or remarks (even with -Werror). So we grep stderr for any message
6274 # that says an option was ignored or not supported.
6275 # When given -MP, icc 7.0 and 7.1 complain thusly:
6276 # icc: Command line warning: ignoring option '-M'; no argument required
6277 # The diagnosis changed in icc 8.0:
6278 # icc: Command line remark: option '-MP' not supported
6279 if (grep 'ignoring option' conftest.err ||
6280 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6281 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6282 break
6283 fi
6284 fi
6285 done
6287 cd ..
6288 rm -rf conftest.dir
6289 else
6290 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6291 fi
6293 fi
6294 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6295 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6296 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6300 if
6301 test "x$enable_dependency_tracking" != xno \
6302 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6303 am__fastdepCC_FOR_BUILD_TRUE=
6304 am__fastdepCC_FOR_BUILD_FALSE='#'
6305 else
6306 am__fastdepCC_FOR_BUILD_TRUE='#'
6307 am__fastdepCC_FOR_BUILD_FALSE=
6308 fi
6311 case $ac_cv_build_prog_cc_stdc in
6312 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6313 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6314 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6315 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6316 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 else
6318 ac_cv_build_prog_cc_stdc=no
6319 ac_save_CC=$CC_FOR_BUILD
6320 cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h. */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h. */
6326 #include <stdarg.h>
6327 #include <stdbool.h>
6328 #include <stdlib.h>
6329 #include <wchar.h>
6330 #include <stdio.h>
6332 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6333 #define debug(...) fprintf (stderr, __VA_ARGS__)
6334 #define showlist(...) puts (#__VA_ARGS__)
6335 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6336 static void
6337 test_varargs_macros (void)
6338 {
6339 int x = 1234;
6340 int y = 5678;
6341 debug ("Flag");
6342 debug ("X = %d\n", x);
6343 showlist (The first, second, and third items.);
6344 report (x>y, "x is %d but y is %d", x, y);
6345 }
6347 // Check long long types.
6348 #define BIG64 18446744073709551615ull
6349 #define BIG32 4294967295ul
6350 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6351 #if !BIG_OK
6352 your preprocessor is broken;
6353 #endif
6354 #if BIG_OK
6355 #else
6356 your preprocessor is broken;
6357 #endif
6358 static long long int bignum = -9223372036854775807LL;
6359 static unsigned long long int ubignum = BIG64;
6361 struct incomplete_array
6362 {
6363 int datasize;
6364 double data[];
6365 };
6367 struct named_init {
6368 int number;
6369 const wchar_t *name;
6370 double average;
6371 };
6373 typedef const char *ccp;
6375 static inline int
6376 test_restrict (ccp restrict text)
6377 {
6378 // See if C++-style comments work.
6379 // Iterate through items via the restricted pointer.
6380 // Also check for declarations in for loops.
6381 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6382 continue;
6383 return 0;
6384 }
6386 // Check varargs and va_copy.
6387 static void
6388 test_varargs (const char *format, ...)
6389 {
6390 va_list args;
6391 va_start (args, format);
6392 va_list args_copy;
6393 va_copy (args_copy, args);
6395 const char *str;
6396 int number;
6397 float fnumber;
6399 while (*format)
6400 {
6401 switch (*format++)
6402 {
6403 case 's': // string
6404 str = va_arg (args_copy, const char *);
6405 break;
6406 case 'd': // int
6407 number = va_arg (args_copy, int);
6408 break;
6409 case 'f': // float
6410 fnumber = va_arg (args_copy, double);
6411 break;
6412 default:
6413 break;
6414 }
6415 }
6416 va_end (args_copy);
6417 va_end (args);
6418 }
6420 int
6421 main ()
6422 {
6424 // Check bool.
6425 _Bool success = false;
6427 // Check restrict.
6428 if (test_restrict ("String literal") == 0)
6429 success = true;
6430 char *restrict newvar = "Another string";
6432 // Check varargs.
6433 test_varargs ("s, d' f .", "string", 65, 34.234);
6434 test_varargs_macros ();
6436 // Check flexible array members.
6437 struct incomplete_array *ia =
6438 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6439 ia->datasize = 10;
6440 for (int i = 0; i < ia->datasize; ++i)
6441 ia->data[i] = i * 1.234;
6443 // Check named initializers.
6444 struct named_init ni = {
6445 .number = 34,
6446 .name = L"Test wide string",
6447 .average = 543.34343,
6448 };
6450 ni.number = 58;
6452 int dynamic_array[ni.number];
6453 dynamic_array[ni.number - 1] = 543;
6455 // work around unused variable warnings
6456 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6457 || dynamic_array[ni.number - 1] != 543);
6459 ;
6460 return 0;
6461 }
6462 _ACEOF
6463 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6464 do
6465 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6466 rm -f conftest.$ac_build_objext
6467 if { (ac_try="$ac_build_compile"
6468 case "(($ac_try" in
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6471 esac
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_build_compile") 2>conftest.er1
6474 ac_status=$?
6475 grep -v '^ *+' conftest.er1 >conftest.err
6476 rm -f conftest.er1
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } && {
6480 test -z "$ac_c_werror_flag" ||
6481 test ! -s conftest.err
6482 } && test -s conftest.$ac_build_objext; then
6483 ac_cv_build_prog_cc_stdc=$ac_arg
6484 else
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6489 fi
6491 rm -f core conftest.err conftest.$ac_build_objext
6492 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6493 done
6494 rm -f conftest.$ac_ext
6495 CC_FOR_BUILD=$ac_save_CC
6497 fi
6498 # AC_CACHE_VAL
6499 case "x$ac_cv_build_prog_cc_stdc" in
6500 x)
6501 { echo "$as_me:$LINENO: result: none needed" >&5
6502 echo "${ECHO_T}none needed" >&6; } ;;
6503 xno)
6504 { echo "$as_me:$LINENO: result: unsupported" >&5
6505 echo "${ECHO_T}unsupported" >&6; } ;;
6506 *)
6507 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6508 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6509 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6510 esac
6511 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6512 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6513 else
6514 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6515 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6516 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6517 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 else
6519 ac_cv_build_prog_cc_stdc=no
6520 ac_save_CC=$CC_FOR_BUILD
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 #include <stdarg.h>
6528 #include <stdio.h>
6529 #include <sys/types.h>
6530 #include <sys/stat.h>
6531 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6532 struct buf { int x; };
6533 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6534 static char *e (p, i)
6535 char **p;
6536 int i;
6537 {
6538 return p[i];
6539 }
6540 static char *f (char * (*g) (char **, int), char **p, ...)
6541 {
6542 char *s;
6543 va_list v;
6544 va_start (v,p);
6545 s = g (p, va_arg (v,int));
6546 va_end (v);
6547 return s;
6548 }
6550 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6551 function prototypes and stuff, but not '\xHH' hex character constants.
6552 These don't provoke an error unfortunately, instead are silently treated
6553 as 'x'. The following induces an error, until -std is added to get
6554 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6555 array size at least. It's necessary to write '\x00'==0 to get something
6556 that's true only with -std. */
6557 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6559 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6560 inside strings and character constants. */
6561 #define FOO(x) 'x'
6562 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6564 int test (int i, double x);
6565 struct s1 {int (*f) (int a);};
6566 struct s2 {int (*f) (double a);};
6567 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6568 int argc;
6569 char **argv;
6570 int
6571 main ()
6572 {
6573 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6574 ;
6575 return 0;
6576 }
6577 _ACEOF
6578 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6579 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6580 do
6581 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6582 rm -f conftest.$ac_build_objext
6583 if { (ac_try="$ac_build_compile"
6584 case "(($ac_try" in
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6587 esac
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589 (eval "$ac_build_compile") 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && {
6596 test -z "$ac_c_werror_flag" ||
6597 test ! -s conftest.err
6598 } && test -s conftest.$ac_build_objext; then
6599 ac_cv_build_prog_cc_stdc=$ac_arg
6600 else
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6605 fi
6607 rm -f core conftest.err conftest.$ac_build_objext
6608 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6609 done
6610 rm -f conftest.$ac_ext
6611 CC_FOR_BUILD=$ac_save_CC
6613 fi
6614 # AC_CACHE_VAL
6615 case "x$ac_cv_build_prog_cc_stdc" in
6616 x)
6617 { echo "$as_me:$LINENO: result: none needed" >&5
6618 echo "${ECHO_T}none needed" >&6; } ;;
6619 xno)
6620 { echo "$as_me:$LINENO: result: unsupported" >&5
6621 echo "${ECHO_T}unsupported" >&6; } ;;
6622 *)
6623 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6624 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6625 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6626 esac
6627 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6628 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6629 else
6630 ac_cv_build_prog_cc_stdc=no
6631 fi
6634 fi
6636 ;;
6637 esac
6638 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6639 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6640 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 fi
6644 case $ac_cv_build_prog_cc_stdc in
6645 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6646 echo "${ECHO_T}unsupported" >&6; } ;;
6647 '') { echo "$as_me:$LINENO: result: none needed" >&5
6648 echo "${ECHO_T}none needed" >&6; } ;;
6649 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6650 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6651 esac
6654 ac_ext=c
6655 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6656 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6657 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6658 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6659 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6660 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6661 # On Suns, sometimes $CPP names a directory.
6662 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6663 CPP_FOR_BUILD=
6664 fi
6665 if test -z "$CPP_FOR_BUILD"; then
6666 if test "${ac_cv_build_prog_CPP+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669 # Double quotes because CPP needs to be expanded
6670 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6671 do
6672 ac_preproc_ok=false
6673 for ac_c_preproc_warn_flag in '' yes
6674 do
6675 # Use a header file that comes with gcc, so configuring glibc
6676 # with a fresh cross-compiler works.
6677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678 # <limits.h> exists even on freestanding compilers.
6679 # On the NeXT, cc -E runs the code through the compiler's parser,
6680 # not just through cpp. "Syntax error" is here to catch this case.
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #ifdef __STDC__
6688 # include <limits.h>
6689 #else
6690 # include <assert.h>
6691 #endif
6692 Syntax error
6693 _ACEOF
6694 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6695 case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } >/dev/null && {
6707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 }; then
6710 :
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6715 # Broken: fails on valid input.
6716 continue
6717 fi
6719 rm -f conftest.err conftest.$ac_ext
6721 # OK, works on sane cases. Now check whether nonexistent headers
6722 # can be detected and how.
6723 cat >conftest.$ac_ext <<_ACEOF
6724 /* confdefs.h. */
6725 _ACEOF
6726 cat confdefs.h >>conftest.$ac_ext
6727 cat >>conftest.$ac_ext <<_ACEOF
6728 /* end confdefs.h. */
6729 #include <ac_nonexistent.h>
6730 _ACEOF
6731 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } >/dev/null && {
6744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 }; then
6747 # Broken: success on invalid input.
6748 continue
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 # Passes both tests.
6754 ac_preproc_ok=:
6755 break
6756 fi
6758 rm -f conftest.err conftest.$ac_ext
6760 done
6761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6762 rm -f conftest.err conftest.$ac_ext
6763 if $ac_preproc_ok; then
6764 break
6765 fi
6767 done
6768 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6770 fi
6771 CPP_FOR_BUILD=$ac_cv_build_prog_CPP
6772 else
6773 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6774 fi
6775 { echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
6776 echo "${ECHO_T}$CPP_FOR_BUILD" >&6; }
6777 ac_preproc_ok=false
6778 for ac_c_preproc_warn_flag in '' yes
6779 do
6780 # Use a header file that comes with gcc, so configuring glibc
6781 # with a fresh cross-compiler works.
6782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6783 # <limits.h> exists even on freestanding compilers.
6784 # On the NeXT, cc -E runs the code through the compiler's parser,
6785 # not just through cpp. "Syntax error" is here to catch this case.
6786 cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h. */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792 #ifdef __STDC__
6793 # include <limits.h>
6794 #else
6795 # include <assert.h>
6796 #endif
6797 Syntax error
6798 _ACEOF
6799 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6800 case "(($ac_try" in
6801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6802 *) ac_try_echo=$ac_try;;
6803 esac
6804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6805 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6806 ac_status=$?
6807 grep -v '^ *+' conftest.er1 >conftest.err
6808 rm -f conftest.er1
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } >/dev/null && {
6812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6813 test ! -s conftest.err
6814 }; then
6815 :
6816 else
6817 echo "$as_me: failed program was:" >&5
6818 sed 's/^/| /' conftest.$ac_ext >&5
6820 # Broken: fails on valid input.
6821 continue
6822 fi
6824 rm -f conftest.err conftest.$ac_ext
6826 # OK, works on sane cases. Now check whether nonexistent headers
6827 # can be detected and how.
6828 cat >conftest.$ac_ext <<_ACEOF
6829 /* confdefs.h. */
6830 _ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 #include <ac_nonexistent.h>
6835 _ACEOF
6836 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6837 case "(($ac_try" in
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6840 esac
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6843 ac_status=$?
6844 grep -v '^ *+' conftest.er1 >conftest.err
6845 rm -f conftest.er1
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } >/dev/null && {
6849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 }; then
6852 # Broken: success on invalid input.
6853 continue
6854 else
6855 echo "$as_me: failed program was:" >&5
6856 sed 's/^/| /' conftest.$ac_ext >&5
6858 # Passes both tests.
6859 ac_preproc_ok=:
6860 break
6861 fi
6863 rm -f conftest.err conftest.$ac_ext
6865 done
6866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6867 rm -f conftest.err conftest.$ac_ext
6868 if $ac_preproc_ok; then
6869 :
6870 else
6871 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6872 See \`config.log' for more details." >&5
6873 echo "$as_me: error: C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6874 See \`config.log' for more details." >&2;}
6875 { (exit 1); exit 1; }; }
6876 fi
6878 ac_ext=c
6879 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6880 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6881 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6882 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6887 BUILD_EXEEXT=$ac_build_exeext
6888 BUILD_OBJEXT=$ac_build_objext
6890 ac_ext=m
6891 ac_cpp='$OBJCPP $CPPFLAGS'
6892 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
6895 if test -n "$ac_tool_prefix"; then
6896 for ac_prog in gcc objcc objc cc CC
6897 do
6898 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6899 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_prog_OBJC+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 else
6905 if test -n "$OBJC"; then
6906 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
6907 else
6908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909 for as_dir in $PATH
6910 do
6911 IFS=$as_save_IFS
6912 test -z "$as_dir" && as_dir=.
6913 for ac_exec_ext in '' $ac_executable_extensions; do
6914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
6916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6917 break 2
6918 fi
6919 done
6920 done
6921 IFS=$as_save_IFS
6923 fi
6924 fi
6925 OBJC=$ac_cv_prog_OBJC
6926 if test -n "$OBJC"; then
6927 { echo "$as_me:$LINENO: result: $OBJC" >&5
6928 echo "${ECHO_T}$OBJC" >&6; }
6929 else
6930 { echo "$as_me:$LINENO: result: no" >&5
6931 echo "${ECHO_T}no" >&6; }
6932 fi
6935 test -n "$OBJC" && break
6936 done
6937 fi
6938 if test -z "$OBJC"; then
6939 ac_ct_OBJC=$OBJC
6940 for ac_prog in gcc objcc objc cc CC
6941 do
6942 # Extract the first word of "$ac_prog", so it can be a program name with args.
6943 set dummy $ac_prog; ac_word=$2
6944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6946 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 if test -n "$ac_ct_OBJC"; then
6950 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
6951 else
6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953 for as_dir in $PATH
6954 do
6955 IFS=$as_save_IFS
6956 test -z "$as_dir" && as_dir=.
6957 for ac_exec_ext in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_prog_ac_ct_OBJC="$ac_prog"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6961 break 2
6962 fi
6963 done
6964 done
6965 IFS=$as_save_IFS
6967 fi
6968 fi
6969 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
6970 if test -n "$ac_ct_OBJC"; then
6971 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
6972 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
6973 else
6974 { echo "$as_me:$LINENO: result: no" >&5
6975 echo "${ECHO_T}no" >&6; }
6976 fi
6979 test -n "$ac_ct_OBJC" && break
6980 done
6982 if test "x$ac_ct_OBJC" = x; then
6983 OBJC="gcc"
6984 else
6985 case $cross_compiling:$ac_tool_warned in
6986 yes:)
6987 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6988 whose name does not start with the host triplet. If you think this
6989 configuration is useful to you, please write to autoconf@gnu.org." >&5
6990 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6991 whose name does not start with the host triplet. If you think this
6992 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6993 ac_tool_warned=yes ;;
6994 esac
6995 OBJC=$ac_ct_OBJC
6996 fi
6997 fi
6999 # Provide some information about the compiler.
7000 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
7001 ac_compiler=`set X $ac_compile; echo $2`
7002 { (ac_try="$ac_compiler --version >&5"
7003 case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7006 esac
7007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008 (eval "$ac_compiler --version >&5") 2>&5
7009 ac_status=$?
7010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); }
7012 { (ac_try="$ac_compiler -v >&5"
7013 case "(($ac_try" in
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_compiler -v >&5") 2>&5
7019 ac_status=$?
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }
7022 { (ac_try="$ac_compiler -V >&5"
7023 case "(($ac_try" in
7024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025 *) ac_try_echo=$ac_try;;
7026 esac
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028 (eval "$ac_compiler -V >&5") 2>&5
7029 ac_status=$?
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }
7033 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
7034 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
7035 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7045 int
7046 main ()
7047 {
7048 #ifndef __GNUC__
7049 choke me
7050 #endif
7052 ;
7053 return 0;
7054 }
7055 _ACEOF
7056 rm -f conftest.$ac_objext
7057 if { (ac_try="$ac_compile"
7058 case "(($ac_try" in
7059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7060 *) ac_try_echo=$ac_try;;
7061 esac
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_compile") 2>conftest.er1
7064 ac_status=$?
7065 grep -v '^ *+' conftest.er1 >conftest.err
7066 rm -f conftest.er1
7067 cat conftest.err >&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && {
7070 test -z "$ac_objc_werror_flag" ||
7071 test ! -s conftest.err
7072 } && test -s conftest.$ac_objext; then
7073 ac_compiler_gnu=yes
7074 else
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7078 ac_compiler_gnu=no
7079 fi
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7084 fi
7085 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
7086 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
7087 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
7088 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7089 ac_save_OBJCFLAGS=$OBJCFLAGS
7090 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
7091 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
7092 if test "${ac_cv_prog_objc_g+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095 ac_save_objc_werror_flag=$ac_objc_werror_flag
7096 ac_objc_werror_flag=yes
7097 ac_cv_prog_objc_g=no
7098 OBJCFLAGS="-g"
7099 cat >conftest.$ac_ext <<_ACEOF
7100 /* confdefs.h. */
7101 _ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7106 int
7107 main ()
7108 {
7110 ;
7111 return 0;
7112 }
7113 _ACEOF
7114 rm -f conftest.$ac_objext
7115 if { (ac_try="$ac_compile"
7116 case "(($ac_try" in
7117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7118 *) ac_try_echo=$ac_try;;
7119 esac
7120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7121 (eval "$ac_compile") 2>conftest.er1
7122 ac_status=$?
7123 grep -v '^ *+' conftest.er1 >conftest.err
7124 rm -f conftest.er1
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_objc_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest.$ac_objext; then
7131 ac_cv_prog_objc_g=yes
7132 else
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 OBJCFLAGS=""
7137 cat >conftest.$ac_ext <<_ACEOF
7138 /* confdefs.h. */
7139 _ACEOF
7140 cat confdefs.h >>conftest.$ac_ext
7141 cat >>conftest.$ac_ext <<_ACEOF
7142 /* end confdefs.h. */
7144 int
7145 main ()
7146 {
7148 ;
7149 return 0;
7150 }
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (ac_try="$ac_compile"
7154 case "(($ac_try" in
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7157 esac
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_compile") 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_objc_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest.$ac_objext; then
7169 :
7170 else
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.$ac_ext >&5
7174 ac_objc_werror_flag=$ac_save_objc_werror_flag
7175 OBJCFLAGS="-g"
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h. */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7183 int
7184 main ()
7185 {
7187 ;
7188 return 0;
7189 }
7190 _ACEOF
7191 rm -f conftest.$ac_objext
7192 if { (ac_try="$ac_compile"
7193 case "(($ac_try" in
7194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7196 esac
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_objc_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 ac_cv_prog_objc_g=yes
7209 else
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7214 fi
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 fi
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 fi
7222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7223 ac_objc_werror_flag=$ac_save_objc_werror_flag
7224 fi
7225 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
7226 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
7227 if test "$ac_test_OBJCFLAGS" = set; then
7228 OBJCFLAGS=$ac_save_OBJCFLAGS
7229 elif test $ac_cv_prog_objc_g = yes; then
7230 if test "$GOBJC" = yes; then
7231 OBJCFLAGS="-g -O2"
7232 else
7233 OBJCFLAGS="-g"
7234 fi
7235 else
7236 if test "$GOBJC" = yes; then
7237 OBJCFLAGS="-O2"
7238 else
7239 OBJCFLAGS=
7240 fi
7241 fi
7242 ac_ext=c
7243 ac_cpp='$CPP $CPPFLAGS'
7244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7248 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7249 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7250 if test "${ac_cv_path_SED+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7252 else
7253 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7254 for ac_i in 1 2 3 4 5 6 7; do
7255 ac_script="$ac_script$as_nl$ac_script"
7256 done
7257 echo "$ac_script" | sed 99q >conftest.sed
7258 $as_unset ac_script || ac_script=
7259 # Extract the first word of "sed gsed" to use in msg output
7260 if test -z "$SED"; then
7261 set dummy sed gsed; ac_prog_name=$2
7262 if test "${ac_cv_path_SED+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265 ac_path_SED_found=false
7266 # Loop through the user's path and test for each of PROGNAME-LIST
7267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7268 for as_dir in $PATH
7269 do
7270 IFS=$as_save_IFS
7271 test -z "$as_dir" && as_dir=.
7272 for ac_prog in sed gsed; do
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7275 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7276 # Check for GNU ac_path_SED and select it if it is found.
7277 # Check for GNU $ac_path_SED
7278 case `"$ac_path_SED" --version 2>&1` in
7279 *GNU*)
7280 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7281 *)
7282 ac_count=0
7283 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7284 while :
7285 do
7286 cat "conftest.in" "conftest.in" >"conftest.tmp"
7287 mv "conftest.tmp" "conftest.in"
7288 cp "conftest.in" "conftest.nl"
7289 echo '' >> "conftest.nl"
7290 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7292 ac_count=`expr $ac_count + 1`
7293 if test $ac_count -gt ${ac_path_SED_max-0}; then
7294 # Best one so far, save it but keep looking for a better one
7295 ac_cv_path_SED="$ac_path_SED"
7296 ac_path_SED_max=$ac_count
7297 fi
7298 # 10*(2^10) chars as input seems more than enough
7299 test $ac_count -gt 10 && break
7300 done
7301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7302 esac
7305 $ac_path_SED_found && break 3
7306 done
7307 done
7309 done
7310 IFS=$as_save_IFS
7313 fi
7315 SED="$ac_cv_path_SED"
7316 if test -z "$SED"; then
7317 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
7318 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
7319 { (exit 1); exit 1; }; }
7320 fi
7322 else
7323 ac_cv_path_SED=$SED
7324 fi
7326 fi
7327 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
7328 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
7329 SED="$ac_cv_path_SED"
7330 rm -f conftest.sed
7332 # By default we simply use the C compiler to build assembly code.
7334 test "${CCAS+set}" = set || CCAS=$CC
7335 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7339 if test -n "$ac_tool_prefix"; then
7340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7344 if test "${ac_cv_prog_RANLIB+set}" = set; then
7345 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 else
7347 if test -n "$RANLIB"; then
7348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7352 do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7360 fi
7361 done
7362 done
7363 IFS=$as_save_IFS
7365 fi
7366 fi
7367 RANLIB=$ac_cv_prog_RANLIB
7368 if test -n "$RANLIB"; then
7369 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7370 echo "${ECHO_T}$RANLIB" >&6; }
7371 else
7372 { echo "$as_me:$LINENO: result: no" >&5
7373 echo "${ECHO_T}no" >&6; }
7374 fi
7377 fi
7378 if test -z "$ac_cv_prog_RANLIB"; then
7379 ac_ct_RANLIB=$RANLIB
7380 # Extract the first word of "ranlib", so it can be a program name with args.
7381 set dummy ranlib; ac_word=$2
7382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 if test -n "$ac_ct_RANLIB"; then
7388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393 IFS=$as_save_IFS
7394 test -z "$as_dir" && as_dir=.
7395 for ac_exec_ext in '' $ac_executable_extensions; do
7396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397 ac_cv_prog_ac_ct_RANLIB="ranlib"
7398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399 break 2
7400 fi
7401 done
7402 done
7403 IFS=$as_save_IFS
7405 fi
7406 fi
7407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7408 if test -n "$ac_ct_RANLIB"; then
7409 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7410 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7411 else
7412 { echo "$as_me:$LINENO: result: no" >&5
7413 echo "${ECHO_T}no" >&6; }
7414 fi
7416 if test "x$ac_ct_RANLIB" = x; then
7417 RANLIB=":"
7418 else
7419 case $cross_compiling:$ac_tool_warned in
7420 yes:)
7421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7422 whose name does not start with the host triplet. If you think this
7423 configuration is useful to you, please write to autoconf@gnu.org." >&5
7424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7425 whose name does not start with the host triplet. If you think this
7426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7427 ac_tool_warned=yes ;;
7428 esac
7429 RANLIB=$ac_ct_RANLIB
7430 fi
7431 else
7432 RANLIB="$ac_cv_prog_RANLIB"
7433 fi
7436 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7437 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7438 if test "${ac_cv_path_GREP+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441 # Extract the first word of "grep ggrep" to use in msg output
7442 if test -z "$GREP"; then
7443 set dummy grep ggrep; ac_prog_name=$2
7444 if test "${ac_cv_path_GREP+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447 ac_path_GREP_found=false
7448 # Loop through the user's path and test for each of PROGNAME-LIST
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7451 do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_prog in grep ggrep; do
7455 for ac_exec_ext in '' $ac_executable_extensions; do
7456 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7457 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7458 # Check for GNU ac_path_GREP and select it if it is found.
7459 # Check for GNU $ac_path_GREP
7460 case `"$ac_path_GREP" --version 2>&1` in
7461 *GNU*)
7462 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7463 *)
7464 ac_count=0
7465 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7466 while :
7467 do
7468 cat "conftest.in" "conftest.in" >"conftest.tmp"
7469 mv "conftest.tmp" "conftest.in"
7470 cp "conftest.in" "conftest.nl"
7471 echo 'GREP' >> "conftest.nl"
7472 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7473 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7474 ac_count=`expr $ac_count + 1`
7475 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7476 # Best one so far, save it but keep looking for a better one
7477 ac_cv_path_GREP="$ac_path_GREP"
7478 ac_path_GREP_max=$ac_count
7479 fi
7480 # 10*(2^10) chars as input seems more than enough
7481 test $ac_count -gt 10 && break
7482 done
7483 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7484 esac
7487 $ac_path_GREP_found && break 3
7488 done
7489 done
7491 done
7492 IFS=$as_save_IFS
7495 fi
7497 GREP="$ac_cv_path_GREP"
7498 if test -z "$GREP"; then
7499 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7500 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7501 { (exit 1); exit 1; }; }
7502 fi
7504 else
7505 ac_cv_path_GREP=$GREP
7506 fi
7509 fi
7510 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7511 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7512 GREP="$ac_cv_path_GREP"
7515 { echo "$as_me:$LINENO: checking for egrep" >&5
7516 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7517 if test "${ac_cv_path_EGREP+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7521 then ac_cv_path_EGREP="$GREP -E"
7522 else
7523 # Extract the first word of "egrep" to use in msg output
7524 if test -z "$EGREP"; then
7525 set dummy egrep; ac_prog_name=$2
7526 if test "${ac_cv_path_EGREP+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529 ac_path_EGREP_found=false
7530 # Loop through the user's path and test for each of PROGNAME-LIST
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7533 do
7534 IFS=$as_save_IFS
7535 test -z "$as_dir" && as_dir=.
7536 for ac_prog in egrep; do
7537 for ac_exec_ext in '' $ac_executable_extensions; do
7538 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7539 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7540 # Check for GNU ac_path_EGREP and select it if it is found.
7541 # Check for GNU $ac_path_EGREP
7542 case `"$ac_path_EGREP" --version 2>&1` in
7543 *GNU*)
7544 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7545 *)
7546 ac_count=0
7547 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7548 while :
7549 do
7550 cat "conftest.in" "conftest.in" >"conftest.tmp"
7551 mv "conftest.tmp" "conftest.in"
7552 cp "conftest.in" "conftest.nl"
7553 echo 'EGREP' >> "conftest.nl"
7554 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7556 ac_count=`expr $ac_count + 1`
7557 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7558 # Best one so far, save it but keep looking for a better one
7559 ac_cv_path_EGREP="$ac_path_EGREP"
7560 ac_path_EGREP_max=$ac_count
7561 fi
7562 # 10*(2^10) chars as input seems more than enough
7563 test $ac_count -gt 10 && break
7564 done
7565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7566 esac
7569 $ac_path_EGREP_found && break 3
7570 done
7571 done
7573 done
7574 IFS=$as_save_IFS
7577 fi
7579 EGREP="$ac_cv_path_EGREP"
7580 if test -z "$EGREP"; then
7581 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7582 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7583 { (exit 1); exit 1; }; }
7584 fi
7586 else
7587 ac_cv_path_EGREP=$EGREP
7588 fi
7591 fi
7592 fi
7593 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7594 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7595 EGREP="$ac_cv_path_EGREP"
7598 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7599 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7600 if test "${ac_cv_header_stdc+set}" = set; then
7601 echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603 cat >conftest.$ac_ext <<_ACEOF
7604 /* confdefs.h. */
7605 _ACEOF
7606 cat confdefs.h >>conftest.$ac_ext
7607 cat >>conftest.$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7609 #include <stdlib.h>
7610 #include <stdarg.h>
7611 #include <string.h>
7612 #include <float.h>
7614 int
7615 main ()
7616 {
7618 ;
7619 return 0;
7620 }
7621 _ACEOF
7622 rm -f conftest.$ac_objext
7623 if { (ac_try="$ac_compile"
7624 case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7627 esac
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
7639 ac_cv_header_stdc=yes
7640 else
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.$ac_ext >&5
7644 ac_cv_header_stdc=no
7645 fi
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 if test $ac_cv_header_stdc = yes; then
7650 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 #include <string.h>
7659 _ACEOF
7660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7661 $EGREP "memchr" >/dev/null 2>&1; then
7662 :
7663 else
7664 ac_cv_header_stdc=no
7665 fi
7666 rm -f conftest*
7668 fi
7670 if test $ac_cv_header_stdc = yes; then
7671 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <stdlib.h>
7680 _ACEOF
7681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7682 $EGREP "free" >/dev/null 2>&1; then
7683 :
7684 else
7685 ac_cv_header_stdc=no
7686 fi
7687 rm -f conftest*
7689 fi
7691 if test $ac_cv_header_stdc = yes; then
7692 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7693 if test "$cross_compiling" = yes; then
7694 :
7695 else
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h. */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 #include <ctype.h>
7703 #include <stdlib.h>
7704 #if ((' ' & 0x0FF) == 0x020)
7705 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7706 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7707 #else
7708 # define ISLOWER(c) \
7709 (('a' <= (c) && (c) <= 'i') \
7710 || ('j' <= (c) && (c) <= 'r') \
7711 || ('s' <= (c) && (c) <= 'z'))
7712 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7713 #endif
7715 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7716 int
7717 main ()
7718 {
7719 int i;
7720 for (i = 0; i < 256; i++)
7721 if (XOR (islower (i), ISLOWER (i))
7722 || toupper (i) != TOUPPER (i))
7723 return 2;
7724 return 0;
7725 }
7726 _ACEOF
7727 rm -f conftest$ac_exeext
7728 if { (ac_try="$ac_link"
7729 case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732 esac
7733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7734 (eval "$ac_link") 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7738 { (case "(($ac_try" in
7739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7740 *) ac_try_echo=$ac_try;;
7741 esac
7742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7743 (eval "$ac_try") 2>&5
7744 ac_status=$?
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); }; }; then
7747 :
7748 else
7749 echo "$as_me: program exited with status $ac_status" >&5
7750 echo "$as_me: failed program was:" >&5
7751 sed 's/^/| /' conftest.$ac_ext >&5
7753 ( exit $ac_status )
7754 ac_cv_header_stdc=no
7755 fi
7756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7757 fi
7760 fi
7761 fi
7762 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7763 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7764 if test $ac_cv_header_stdc = yes; then
7766 cat >>confdefs.h <<\_ACEOF
7767 #define STDC_HEADERS 1
7768 _ACEOF
7770 fi
7772 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7782 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7783 inttypes.h stdint.h unistd.h
7784 do
7785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 $ac_includes_default
7799 #include <$ac_header>
7800 _ACEOF
7801 rm -f conftest.$ac_objext
7802 if { (ac_try="$ac_compile"
7803 case "(($ac_try" in
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7806 esac
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_compile") 2>conftest.er1
7809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
7818 eval "$as_ac_Header=yes"
7819 else
7820 echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7823 eval "$as_ac_Header=no"
7824 fi
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 fi
7828 ac_res=`eval echo '${'$as_ac_Header'}'`
7829 { echo "$as_me:$LINENO: result: $ac_res" >&5
7830 echo "${ECHO_T}$ac_res" >&6; }
7831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7832 cat >>confdefs.h <<_ACEOF
7833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7834 _ACEOF
7836 fi
7838 done
7841 { echo "$as_me:$LINENO: checking for void *" >&5
7842 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
7843 if test "${ac_cv_type_void_p+set}" = set; then
7844 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 else
7846 cat >conftest.$ac_ext <<_ACEOF
7847 /* confdefs.h. */
7848 _ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 $ac_includes_default
7853 typedef void * ac__type_new_;
7854 int
7855 main ()
7856 {
7857 if ((ac__type_new_ *) 0)
7858 return 0;
7859 if (sizeof (ac__type_new_))
7860 return 0;
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 rm -f conftest.$ac_objext
7866 if { (ac_try="$ac_compile"
7867 case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7870 esac
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_compile") 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && {
7879 test -z "$ac_c_werror_flag" ||
7880 test ! -s conftest.err
7881 } && test -s conftest.$ac_objext; then
7882 ac_cv_type_void_p=yes
7883 else
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 ac_cv_type_void_p=no
7888 fi
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891 fi
7892 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
7893 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
7895 # The cast to long int works around a bug in the HP C Compiler
7896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7898 # This bug is HP SR number 8606223364.
7899 { echo "$as_me:$LINENO: checking size of void *" >&5
7900 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
7901 if test "${ac_cv_sizeof_void_p+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 else
7904 if test "$cross_compiling" = yes; then
7905 # Depending upon the size, compute the lo and hi bounds.
7906 cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h. */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h. */
7912 $ac_includes_default
7913 typedef void * ac__type_sizeof_;
7914 int
7915 main ()
7916 {
7917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7918 test_array [0] = 0
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 rm -f conftest.$ac_objext
7925 if { (ac_try="$ac_compile"
7926 case "(($ac_try" in
7927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7928 *) ac_try_echo=$ac_try;;
7929 esac
7930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7931 (eval "$ac_compile") 2>conftest.er1
7932 ac_status=$?
7933 grep -v '^ *+' conftest.er1 >conftest.err
7934 rm -f conftest.er1
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } && {
7938 test -z "$ac_c_werror_flag" ||
7939 test ! -s conftest.err
7940 } && test -s conftest.$ac_objext; then
7941 ac_lo=0 ac_mid=0
7942 while :; do
7943 cat >conftest.$ac_ext <<_ACEOF
7944 /* confdefs.h. */
7945 _ACEOF
7946 cat confdefs.h >>conftest.$ac_ext
7947 cat >>conftest.$ac_ext <<_ACEOF
7948 /* end confdefs.h. */
7949 $ac_includes_default
7950 typedef void * ac__type_sizeof_;
7951 int
7952 main ()
7953 {
7954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7955 test_array [0] = 0
7957 ;
7958 return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7963 case "(($ac_try" in
7964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965 *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7969 ac_status=$?
7970 grep -v '^ *+' conftest.er1 >conftest.err
7971 rm -f conftest.er1
7972 cat conftest.err >&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.$ac_objext; then
7978 ac_hi=$ac_mid; break
7979 else
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7983 ac_lo=`expr $ac_mid + 1`
7984 if test $ac_lo -le $ac_mid; then
7985 ac_lo= ac_hi=
7986 break
7987 fi
7988 ac_mid=`expr 2 '*' $ac_mid + 1`
7989 fi
7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 done
7993 else
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 cat >conftest.$ac_ext <<_ACEOF
7998 /* confdefs.h. */
7999 _ACEOF
8000 cat confdefs.h >>conftest.$ac_ext
8001 cat >>conftest.$ac_ext <<_ACEOF
8002 /* end confdefs.h. */
8003 $ac_includes_default
8004 typedef void * ac__type_sizeof_;
8005 int
8006 main ()
8007 {
8008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8009 test_array [0] = 0
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8017 case "(($ac_try" in
8018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8019 *) ac_try_echo=$ac_try;;
8020 esac
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.$ac_objext; then
8032 ac_hi=-1 ac_mid=-1
8033 while :; do
8034 cat >conftest.$ac_ext <<_ACEOF
8035 /* confdefs.h. */
8036 _ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8040 $ac_includes_default
8041 typedef void * ac__type_sizeof_;
8042 int
8043 main ()
8044 {
8045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8046 test_array [0] = 0
8048 ;
8049 return 0;
8050 }
8051 _ACEOF
8052 rm -f conftest.$ac_objext
8053 if { (ac_try="$ac_compile"
8054 case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_compile") 2>conftest.er1
8060 ac_status=$?
8061 grep -v '^ *+' conftest.er1 >conftest.err
8062 rm -f conftest.er1
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } && {
8066 test -z "$ac_c_werror_flag" ||
8067 test ! -s conftest.err
8068 } && test -s conftest.$ac_objext; then
8069 ac_lo=$ac_mid; break
8070 else
8071 echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8074 ac_hi=`expr '(' $ac_mid ')' - 1`
8075 if test $ac_mid -le $ac_hi; then
8076 ac_lo= ac_hi=
8077 break
8078 fi
8079 ac_mid=`expr 2 '*' $ac_mid`
8080 fi
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 done
8084 else
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_lo= ac_hi=
8089 fi
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 fi
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095 # Binary search between lo and hi bounds.
8096 while test "x$ac_lo" != "x$ac_hi"; do
8097 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8098 cat >conftest.$ac_ext <<_ACEOF
8099 /* confdefs.h. */
8100 _ACEOF
8101 cat confdefs.h >>conftest.$ac_ext
8102 cat >>conftest.$ac_ext <<_ACEOF
8103 /* end confdefs.h. */
8104 $ac_includes_default
8105 typedef void * ac__type_sizeof_;
8106 int
8107 main ()
8108 {
8109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8110 test_array [0] = 0
8112 ;
8113 return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (ac_try="$ac_compile"
8118 case "(($ac_try" in
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_compile") 2>conftest.er1
8124 ac_status=$?
8125 grep -v '^ *+' conftest.er1 >conftest.err
8126 rm -f conftest.er1
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
8132 } && test -s conftest.$ac_objext; then
8133 ac_hi=$ac_mid
8134 else
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8138 ac_lo=`expr '(' $ac_mid ')' + 1`
8139 fi
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 done
8143 case $ac_lo in
8144 ?*) ac_cv_sizeof_void_p=$ac_lo;;
8145 '') if test "$ac_cv_type_void_p" = yes; then
8146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8147 See \`config.log' for more details." >&5
8148 echo "$as_me: error: cannot compute sizeof (void *)
8149 See \`config.log' for more details." >&2;}
8150 { (exit 77); exit 77; }; }
8151 else
8152 ac_cv_sizeof_void_p=0
8153 fi ;;
8154 esac
8155 else
8156 cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h. */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 $ac_includes_default
8163 typedef void * ac__type_sizeof_;
8164 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8165 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8166 #include <stdio.h>
8167 #include <stdlib.h>
8168 int
8169 main ()
8170 {
8172 FILE *f = fopen ("conftest.val", "w");
8173 if (! f)
8174 return 1;
8175 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8176 {
8177 long int i = longval ();
8178 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8179 return 1;
8180 fprintf (f, "%ld\n", i);
8181 }
8182 else
8183 {
8184 unsigned long int i = ulongval ();
8185 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8186 return 1;
8187 fprintf (f, "%lu\n", i);
8188 }
8189 return ferror (f) || fclose (f) != 0;
8191 ;
8192 return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest$ac_exeext
8196 if { (ac_try="$ac_link"
8197 case "(($ac_try" in
8198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8199 *) ac_try_echo=$ac_try;;
8200 esac
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_link") 2>&5
8203 ac_status=$?
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8206 { (case "(($ac_try" in
8207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8208 *) ac_try_echo=$ac_try;;
8209 esac
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_try") 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 ac_cv_sizeof_void_p=`cat conftest.val`
8216 else
8217 echo "$as_me: program exited with status $ac_status" >&5
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8221 ( exit $ac_status )
8222 if test "$ac_cv_type_void_p" = yes; then
8223 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
8224 See \`config.log' for more details." >&5
8225 echo "$as_me: error: cannot compute sizeof (void *)
8226 See \`config.log' for more details." >&2;}
8227 { (exit 77); exit 77; }; }
8228 else
8229 ac_cv_sizeof_void_p=0
8230 fi
8231 fi
8232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8233 fi
8234 rm -f conftest.val
8235 fi
8236 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
8237 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
8241 cat >>confdefs.h <<_ACEOF
8242 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8243 _ACEOF
8246 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8247 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8248 if test "${ac_cv_header_stdc+set}" = set; then
8249 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251 cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h. */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8257 #include <stdlib.h>
8258 #include <stdarg.h>
8259 #include <string.h>
8260 #include <float.h>
8262 int
8263 main ()
8264 {
8266 ;
8267 return 0;
8268 }
8269 _ACEOF
8270 rm -f conftest.$ac_objext
8271 if { (ac_try="$ac_compile"
8272 case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8275 esac
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_compile") 2>conftest.er1
8278 ac_status=$?
8279 grep -v '^ *+' conftest.er1 >conftest.err
8280 rm -f conftest.er1
8281 cat conftest.err >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } && {
8284 test -z "$ac_c_werror_flag" ||
8285 test ! -s conftest.err
8286 } && test -s conftest.$ac_objext; then
8287 ac_cv_header_stdc=yes
8288 else
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8292 ac_cv_header_stdc=no
8293 fi
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 if test $ac_cv_header_stdc = yes; then
8298 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8299 cat >conftest.$ac_ext <<_ACEOF
8300 /* confdefs.h. */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 #include <string.h>
8307 _ACEOF
8308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8309 $EGREP "memchr" >/dev/null 2>&1; then
8310 :
8311 else
8312 ac_cv_header_stdc=no
8313 fi
8314 rm -f conftest*
8316 fi
8318 if test $ac_cv_header_stdc = yes; then
8319 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8320 cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h. */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 #include <stdlib.h>
8328 _ACEOF
8329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8330 $EGREP "free" >/dev/null 2>&1; then
8331 :
8332 else
8333 ac_cv_header_stdc=no
8334 fi
8335 rm -f conftest*
8337 fi
8339 if test $ac_cv_header_stdc = yes; then
8340 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8341 if test "$cross_compiling" = yes; then
8342 :
8343 else
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 #include <ctype.h>
8351 #include <stdlib.h>
8352 #if ((' ' & 0x0FF) == 0x020)
8353 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8354 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8355 #else
8356 # define ISLOWER(c) \
8357 (('a' <= (c) && (c) <= 'i') \
8358 || ('j' <= (c) && (c) <= 'r') \
8359 || ('s' <= (c) && (c) <= 'z'))
8360 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8361 #endif
8363 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8364 int
8365 main ()
8366 {
8367 int i;
8368 for (i = 0; i < 256; i++)
8369 if (XOR (islower (i), ISLOWER (i))
8370 || toupper (i) != TOUPPER (i))
8371 return 2;
8372 return 0;
8373 }
8374 _ACEOF
8375 rm -f conftest$ac_exeext
8376 if { (ac_try="$ac_link"
8377 case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_link") 2>&5
8383 ac_status=$?
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8386 { (case "(($ac_try" in
8387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_try") 2>&5
8392 ac_status=$?
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); }; }; then
8395 :
8396 else
8397 echo "$as_me: program exited with status $ac_status" >&5
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 ( exit $ac_status )
8402 ac_cv_header_stdc=no
8403 fi
8404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8405 fi
8408 fi
8409 fi
8410 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8411 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8412 if test $ac_cv_header_stdc = yes; then
8414 cat >>confdefs.h <<\_ACEOF
8415 #define STDC_HEADERS 1
8416 _ACEOF
8418 fi
8422 depcc="$OBJC" am_compiler_list='gcc3 gcc'
8424 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8425 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8426 if test "${am_cv_OBJC_dependencies_compiler_type+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8430 # We make a subdir and do the tests there. Otherwise we can end up
8431 # making bogus files that we don't know about and never remove. For
8432 # instance it was reported that on HP-UX the gcc test will end up
8433 # making a dummy file named `D' -- because `-MD' means `put the output
8434 # in D'.
8435 mkdir conftest.dir
8436 # Copy depcomp to subdir because otherwise we won't find it if we're
8437 # using a relative directory.
8438 cp "$am_depcomp" conftest.dir
8439 cd conftest.dir
8440 # We will build objects and dependencies in a subdirectory because
8441 # it helps to detect inapplicable dependency modes. For instance
8442 # both Tru64's cc and ICC support -MD to output dependencies as a
8443 # side effect of compilation, but ICC will put the dependencies in
8444 # the current directory while Tru64 will put them in the object
8445 # directory.
8446 mkdir sub
8448 am_cv_OBJC_dependencies_compiler_type=none
8449 if test "$am_compiler_list" = ""; then
8450 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8451 fi
8452 for depmode in $am_compiler_list; do
8453 # Setup a source with many dependencies, because some compilers
8454 # like to wrap large dependency lists on column 80 (with \), and
8455 # we should not choose a depcomp mode which is confused by this.
8456 #
8457 # We need to recreate these files for each test, as the compiler may
8458 # overwrite some of them when testing with obscure command lines.
8459 # This happens at least with the AIX C compiler.
8460 : > sub/conftest.c
8461 for i in 1 2 3 4 5 6; do
8462 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8463 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8464 # Solaris 8's {/usr,}/bin/sh.
8465 touch sub/conftst$i.h
8466 done
8467 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8469 case $depmode in
8470 nosideeffect)
8471 # after this tag, mechanisms are not by side-effect, so they'll
8472 # only be used when explicitly requested
8473 if test "x$enable_dependency_tracking" = xyes; then
8474 continue
8475 else
8476 break
8477 fi
8478 ;;
8479 none) break ;;
8480 esac
8481 # We check with `-c' and `-o' for the sake of the "dashmstdout"
8482 # mode. It turns out that the SunPro C++ compiler does not properly
8483 # handle `-M -o', and we need to detect this.
8484 if depmode=$depmode \
8485 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8486 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8487 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8488 >/dev/null 2>conftest.err &&
8489 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8490 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8491 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8492 # icc doesn't choke on unknown options, it will just issue warnings
8493 # or remarks (even with -Werror). So we grep stderr for any message
8494 # that says an option was ignored or not supported.
8495 # When given -MP, icc 7.0 and 7.1 complain thusly:
8496 # icc: Command line warning: ignoring option '-M'; no argument required
8497 # The diagnosis changed in icc 8.0:
8498 # icc: Command line remark: option '-MP' not supported
8499 if (grep 'ignoring option' conftest.err ||
8500 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8501 am_cv_OBJC_dependencies_compiler_type=$depmode
8502 break
8503 fi
8504 fi
8505 done
8507 cd ..
8508 rm -rf conftest.dir
8509 else
8510 am_cv_OBJC_dependencies_compiler_type=none
8511 fi
8513 fi
8514 { echo "$as_me:$LINENO: result: $am_cv_OBJC_dependencies_compiler_type" >&5
8515 echo "${ECHO_T}$am_cv_OBJC_dependencies_compiler_type" >&6; }
8516 OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
8520 if
8521 test "x$enable_dependency_tracking" != xno \
8522 && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
8523 am__fastdepOBJC_TRUE=
8524 am__fastdepOBJC_FALSE='#'
8525 else
8526 am__fastdepOBJC_TRUE='#'
8527 am__fastdepOBJC_FALSE=
8528 fi
8532 # Extract the first word of "pod2man", so it can be a program name with args.
8533 set dummy pod2man; ac_word=$2
8534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8536 if test "${ac_cv_path_POD2MAN+set}" = set; then
8537 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 else
8539 case $POD2MAN in
8540 [\\/]* | ?:[\\/]*)
8541 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8542 ;;
8543 *)
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545 for as_dir in $PATH
8546 do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8551 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8553 break 2
8554 fi
8555 done
8556 done
8557 IFS=$as_save_IFS
8559 ;;
8560 esac
8561 fi
8562 POD2MAN=$ac_cv_path_POD2MAN
8563 if test -n "$POD2MAN"; then
8564 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8565 echo "${ECHO_T}$POD2MAN" >&6; }
8566 else
8567 { echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6; }
8569 fi
8572 # Extract the first word of "pod2html", so it can be a program name with args.
8573 set dummy pod2html; ac_word=$2
8574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8576 if test "${ac_cv_path_POD2HTML+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 else
8579 case $POD2HTML in
8580 [\\/]* | ?:[\\/]*)
8581 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8582 ;;
8583 *)
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 for as_dir in $PATH
8586 do
8587 IFS=$as_save_IFS
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8591 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8593 break 2
8594 fi
8595 done
8596 done
8597 IFS=$as_save_IFS
8599 ;;
8600 esac
8601 fi
8602 POD2HTML=$ac_cv_path_POD2HTML
8603 if test -n "$POD2HTML"; then
8604 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8605 echo "${ECHO_T}$POD2HTML" >&6; }
8606 else
8607 { echo "$as_me:$LINENO: result: no" >&5
8608 echo "${ECHO_T}no" >&6; }
8609 fi
8614 # Check whether --enable-strict-warn was given.
8615 if test "${enable_strict_warn+set}" = set; then
8616 enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
8617 enable_strictwarn=yes
8618 fi
8619 fi
8621 # Check whether --enable-translator was given.
8622 if test "${enable_translator+set}" = set; then
8623 enableval=$enable_translator; true
8624 else
8625 enable_translator=yes
8626 fi
8628 # Check whether --enable-optimized was given.
8629 if test "${enable_optimized+set}" = set; then
8630 enableval=$enable_optimized; true
8631 else
8632 enable_optimized=yes
8633 fi
8635 # Check whether --enable-shared was given.
8636 if test "${enable_shared+set}" = set; then
8637 enableval=$enable_shared; if test "$enableval" == "yes"; then enable_shared=yes; else enable_shared=no; fi
8638 else
8639 enable_shared=cond
8640 fi
8642 # Check whether --enable-profiled was given.
8643 if test "${enable_profiled+set}" = set; then
8644 enableval=$enable_profiled; if test "$enableval" == "yes"; then
8645 enable_profiled=yes;
8646 fi
8647 fi
8649 # Check whether --enable-trace was given.
8650 if test "${enable_trace+set}" = set; then
8651 enableval=$enable_trace; if test "$enableval" == "yes"; then
8653 cat >>confdefs.h <<\_ACEOF
8654 #define ENABLE_TRACE_IO 1
8655 _ACEOF
8657 fi
8658 fi
8660 # Check whether --enable-watch was given.
8661 if test "${enable_watch+set}" = set; then
8662 enableval=$enable_watch; if test "$enableval" == "yes"; then
8664 cat >>confdefs.h <<\_ACEOF
8665 #define ENABLE_WATCH 1
8666 _ACEOF
8668 fi
8669 fi
8671 # Check whether --enable-sh4stats was given.
8672 if test "${enable_sh4stats+set}" = set; then
8673 enableval=$enable_sh4stats; if test "$enableval" == "yes"; then
8675 cat >>confdefs.h <<\_ACEOF
8676 #define ENABLE_SH4STATS 1
8677 _ACEOF
8679 fi
8680 fi
8683 # Check whether --with-osmesa was given.
8684 if test "${with_osmesa+set}" = set; then
8685 withval=$with_osmesa;
8686 else
8687 with_osmesa=no
8688 fi
8691 # Check whether --with-gtk was given.
8692 if test "${with_gtk+set}" = set; then
8693 withval=$with_gtk; with_gtk=yes
8694 else
8695 with_gtk=x11
8696 fi
8699 # Check whether --with-esd was given.
8700 if test "${with_esd+set}" = set; then
8701 withval=$with_esd;
8702 fi
8705 # Check whether --with-pulse was given.
8706 if test "${with_pulse+set}" = set; then
8707 withval=$with_pulse;
8708 fi
8711 # Check whether --with-sdl was given.
8712 if test "${with_sdl+set}" = set; then
8713 withval=$with_sdl;
8714 fi
8721 ac_ext=m
8722 ac_cpp='$OBJCPP $CPPFLAGS'
8723 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8724 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8725 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8726 if test -n "$ac_tool_prefix"; then
8727 for ac_prog in gcc objcc objc cc CC
8728 do
8729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8733 if test "${ac_cv_prog_OBJC+set}" = set; then
8734 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 else
8736 if test -n "$OBJC"; then
8737 ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
8738 else
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 for as_dir in $PATH
8741 do
8742 IFS=$as_save_IFS
8743 test -z "$as_dir" && as_dir=.
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
8747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 break 2
8749 fi
8750 done
8751 done
8752 IFS=$as_save_IFS
8754 fi
8755 fi
8756 OBJC=$ac_cv_prog_OBJC
8757 if test -n "$OBJC"; then
8758 { echo "$as_me:$LINENO: result: $OBJC" >&5
8759 echo "${ECHO_T}$OBJC" >&6; }
8760 else
8761 { echo "$as_me:$LINENO: result: no" >&5
8762 echo "${ECHO_T}no" >&6; }
8763 fi
8766 test -n "$OBJC" && break
8767 done
8768 fi
8769 if test -z "$OBJC"; then
8770 ac_ct_OBJC=$OBJC
8771 for ac_prog in gcc objcc objc cc CC
8772 do
8773 # Extract the first word of "$ac_prog", so it can be a program name with args.
8774 set dummy $ac_prog; ac_word=$2
8775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8777 if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then
8778 echo $ECHO_N "(cached) $ECHO_C" >&6
8779 else
8780 if test -n "$ac_ct_OBJC"; then
8781 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
8782 else
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $PATH
8785 do
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8790 ac_cv_prog_ac_ct_OBJC="$ac_prog"
8791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8793 fi
8794 done
8795 done
8796 IFS=$as_save_IFS
8798 fi
8799 fi
8800 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
8801 if test -n "$ac_ct_OBJC"; then
8802 { echo "$as_me:$LINENO: result: $ac_ct_OBJC" >&5
8803 echo "${ECHO_T}$ac_ct_OBJC" >&6; }
8804 else
8805 { echo "$as_me:$LINENO: result: no" >&5
8806 echo "${ECHO_T}no" >&6; }
8807 fi
8810 test -n "$ac_ct_OBJC" && break
8811 done
8813 if test "x$ac_ct_OBJC" = x; then
8814 OBJC="gcc"
8815 else
8816 case $cross_compiling:$ac_tool_warned in
8817 yes:)
8818 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8819 whose name does not start with the host triplet. If you think this
8820 configuration is useful to you, please write to autoconf@gnu.org." >&5
8821 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8822 whose name does not start with the host triplet. If you think this
8823 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8824 ac_tool_warned=yes ;;
8825 esac
8826 OBJC=$ac_ct_OBJC
8827 fi
8828 fi
8830 # Provide some information about the compiler.
8831 echo "$as_me:$LINENO: checking for Objective C compiler version" >&5
8832 ac_compiler=`set X $ac_compile; echo $2`
8833 { (ac_try="$ac_compiler --version >&5"
8834 case "(($ac_try" in
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8837 esac
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_compiler --version >&5") 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }
8843 { (ac_try="$ac_compiler -v >&5"
8844 case "(($ac_try" in
8845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846 *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849 (eval "$ac_compiler -v >&5") 2>&5
8850 ac_status=$?
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }
8853 { (ac_try="$ac_compiler -V >&5"
8854 case "(($ac_try" in
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8857 esac
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 (eval "$ac_compiler -V >&5") 2>&5
8860 ac_status=$?
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }
8864 { echo "$as_me:$LINENO: checking whether we are using the GNU Objective C compiler" >&5
8865 echo $ECHO_N "checking whether we are using the GNU Objective C compiler... $ECHO_C" >&6; }
8866 if test "${ac_cv_objc_compiler_gnu+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8868 else
8869 cat >conftest.$ac_ext <<_ACEOF
8870 /* confdefs.h. */
8871 _ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8876 int
8877 main ()
8878 {
8879 #ifndef __GNUC__
8880 choke me
8881 #endif
8883 ;
8884 return 0;
8885 }
8886 _ACEOF
8887 rm -f conftest.$ac_objext
8888 if { (ac_try="$ac_compile"
8889 case "(($ac_try" in
8890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8891 *) ac_try_echo=$ac_try;;
8892 esac
8893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8894 (eval "$ac_compile") 2>conftest.er1
8895 ac_status=$?
8896 grep -v '^ *+' conftest.er1 >conftest.err
8897 rm -f conftest.er1
8898 cat conftest.err >&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } && {
8901 test -z "$ac_objc_werror_flag" ||
8902 test ! -s conftest.err
8903 } && test -s conftest.$ac_objext; then
8904 ac_compiler_gnu=yes
8905 else
8906 echo "$as_me: failed program was:" >&5
8907 sed 's/^/| /' conftest.$ac_ext >&5
8909 ac_compiler_gnu=no
8910 fi
8912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8913 ac_cv_objc_compiler_gnu=$ac_compiler_gnu
8915 fi
8916 { echo "$as_me:$LINENO: result: $ac_cv_objc_compiler_gnu" >&5
8917 echo "${ECHO_T}$ac_cv_objc_compiler_gnu" >&6; }
8918 GOBJC=`test $ac_compiler_gnu = yes && echo yes`
8919 ac_test_OBJCFLAGS=${OBJCFLAGS+set}
8920 ac_save_OBJCFLAGS=$OBJCFLAGS
8921 { echo "$as_me:$LINENO: checking whether $OBJC accepts -g" >&5
8922 echo $ECHO_N "checking whether $OBJC accepts -g... $ECHO_C" >&6; }
8923 if test "${ac_cv_prog_objc_g+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 ac_save_objc_werror_flag=$ac_objc_werror_flag
8927 ac_objc_werror_flag=yes
8928 ac_cv_prog_objc_g=no
8929 OBJCFLAGS="-g"
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h. */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8937 int
8938 main ()
8939 {
8941 ;
8942 return 0;
8943 }
8944 _ACEOF
8945 rm -f conftest.$ac_objext
8946 if { (ac_try="$ac_compile"
8947 case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8950 esac
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_compile") 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_objc_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest.$ac_objext; then
8962 ac_cv_prog_objc_g=yes
8963 else
8964 echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8967 OBJCFLAGS=""
8968 cat >conftest.$ac_ext <<_ACEOF
8969 /* confdefs.h. */
8970 _ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h. */
8975 int
8976 main ()
8977 {
8979 ;
8980 return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext
8984 if { (ac_try="$ac_compile"
8985 case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_compile") 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && {
8997 test -z "$ac_objc_werror_flag" ||
8998 test ! -s conftest.err
8999 } && test -s conftest.$ac_objext; then
9000 :
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 ac_objc_werror_flag=$ac_save_objc_werror_flag
9006 OBJCFLAGS="-g"
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9014 int
9015 main ()
9016 {
9018 ;
9019 return 0;
9020 }
9021 _ACEOF
9022 rm -f conftest.$ac_objext
9023 if { (ac_try="$ac_compile"
9024 case "(($ac_try" in
9025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026 *) ac_try_echo=$ac_try;;
9027 esac
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029 (eval "$ac_compile") 2>conftest.er1
9030 ac_status=$?
9031 grep -v '^ *+' conftest.er1 >conftest.err
9032 rm -f conftest.er1
9033 cat conftest.err >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } && {
9036 test -z "$ac_objc_werror_flag" ||
9037 test ! -s conftest.err
9038 } && test -s conftest.$ac_objext; then
9039 ac_cv_prog_objc_g=yes
9040 else
9041 echo "$as_me: failed program was:" >&5
9042 sed 's/^/| /' conftest.$ac_ext >&5
9045 fi
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9048 fi
9050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051 fi
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 ac_objc_werror_flag=$ac_save_objc_werror_flag
9055 fi
9056 { echo "$as_me:$LINENO: result: $ac_cv_prog_objc_g" >&5
9057 echo "${ECHO_T}$ac_cv_prog_objc_g" >&6; }
9058 if test "$ac_test_OBJCFLAGS" = set; then
9059 OBJCFLAGS=$ac_save_OBJCFLAGS
9060 elif test $ac_cv_prog_objc_g = yes; then
9061 if test "$GOBJC" = yes; then
9062 OBJCFLAGS="-g -O2"
9063 else
9064 OBJCFLAGS="-g"
9065 fi
9066 else
9067 if test "$GOBJC" = yes; then
9068 OBJCFLAGS="-O2"
9069 else
9070 OBJCFLAGS=
9071 fi
9072 fi
9073 ac_ext=c
9074 ac_cpp='$CPP $CPPFLAGS'
9075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9079 { echo "$as_me:$LINENO: checking for a working Objective-C compiler" >&5
9080 echo $ECHO_N "checking for a working Objective-C compiler... $ECHO_C" >&6; }
9081 ac_ext=m
9082 ac_cpp='$OBJCPP $CPPFLAGS'
9083 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9084 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9085 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9086 cat >conftest.$ac_ext <<_ACEOF
9087 /* confdefs.h. */
9088 _ACEOF
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092 @interface Foo @end
9093 int
9094 main ()
9095 {
9097 ;
9098 return 0;
9099 }
9100 _ACEOF
9101 rm -f conftest.$ac_objext
9102 if { (ac_try="$ac_compile"
9103 case "(($ac_try" in
9104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9106 esac
9107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_compile") 2>conftest.er1
9109 ac_status=$?
9110 grep -v '^ *+' conftest.er1 >conftest.err
9111 rm -f conftest.er1
9112 cat conftest.err >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); } && {
9115 test -z "$ac_objc_werror_flag" ||
9116 test ! -s conftest.err
9117 } && test -s conftest.$ac_objext; then
9118 { echo "$as_me:$LINENO: result: yes" >&5
9119 echo "${ECHO_T}yes" >&6; }
9121 { echo "$as_me:$LINENO: checking for Cocoa/Cocoa.h" >&5
9122 echo $ECHO_N "checking for Cocoa/Cocoa.h... $ECHO_C" >&6; }
9123 if test "${ac_cv_header_Cocoa_Cocoa_h+set}" = set; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126 cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h. */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 $ac_includes_default
9134 #include <Cocoa/Cocoa.h>
9135 _ACEOF
9136 rm -f conftest.$ac_objext
9137 if { (ac_try="$ac_compile"
9138 case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141 esac
9142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_objc_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
9153 ac_cv_header_Cocoa_Cocoa_h=yes
9154 else
9155 echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9158 ac_cv_header_Cocoa_Cocoa_h=no
9159 fi
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9162 fi
9163 { echo "$as_me:$LINENO: result: $ac_cv_header_Cocoa_Cocoa_h" >&5
9164 echo "${ECHO_T}$ac_cv_header_Cocoa_Cocoa_h" >&6; }
9165 if test $ac_cv_header_Cocoa_Cocoa_h = yes; then
9167 HAVE_COCOA='yes'
9168 APPLE_BUILD='yes'
9169 LIBS="$LIBS -framework AppKit -framework Carbon"
9170 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"
9171 LXDREAMCPPFLAGS="-DMAC_OS_X_VERSION_MIN_REQUIRED=MAC_OS_X_VERSION_10_4 -mdynamic-no-pic"
9172 LDFLAGS="$LDFLAGS -Wl,-headerpad_max_install_names"
9174 cat >>confdefs.h <<\_ACEOF
9175 #define HAVE_COCOA 1
9176 _ACEOF
9179 cat >>confdefs.h <<\_ACEOF
9180 #define APPLE_BUILD 1
9181 _ACEOF
9183 if test "x$with_gtk" = "xx11"; then
9184 with_gtk=no
9185 fi
9187 fi
9192 { echo "$as_me:$LINENO: checking OBJC version" >&5
9193 echo $ECHO_N "checking OBJC version... $ECHO_C" >&6; }
9194 if test -n "$OBJC"; then
9195 _GOBJC_VERSION=`$OBJC --version | $SED -ne '/(GCC)/p'`
9196 if test -n "$_GOBJC_VERSION"; then
9197 { echo "$as_me:$LINENO: result: GCC" >&5
9198 echo "${ECHO_T}GCC" >&6; }
9199 OBJCOPT="-O2"
9200 OBJCFLAGS="$OBJCFLAGS -fno-strict-aliasing"
9201 else
9202 { echo "$as_me:$LINENO: result: Unknown" >&5
9203 echo "${ECHO_T}Unknown" >&6; }
9204 OBJCOPT="-O2"
9205 fi
9206 else
9207 { echo "$as_me:$LINENO: result: None" >&5
9208 echo "${ECHO_T}None" >&6; }
9210 fi
9213 ac_ext=m
9214 ac_cpp='$OBJCPP $CPPFLAGS'
9215 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9216 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9217 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9219 { echo "$as_me:$LINENO: checking if $OBJC supports -msse2" >&5
9220 echo $ECHO_N "checking if $OBJC supports -msse2... $ECHO_C" >&6; }
9221 save_OBJCFLAGS="$OBJCFLAGS"
9222 OBJCFLAGS="-msse2 $OBJCFLAGS"
9223 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h. */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9230 int main() { return 0; }
9231 _ACEOF
9232 rm -f conftest.$ac_objext
9233 if { (ac_try="$ac_compile"
9234 case "(($ac_try" in
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9237 esac
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_compile") 2>conftest.er1
9240 ac_status=$?
9241 grep -v '^ *+' conftest.er1 >conftest.err
9242 rm -f conftest.er1
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } && {
9246 test -z "$ac_objc_werror_flag" ||
9247 test ! -s conftest.err
9248 } && test -s conftest.$ac_objext; then
9250 { echo "$as_me:$LINENO: result: yes" >&5
9251 echo "${ECHO_T}yes" >&6; }
9253 else
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9258 OBJCFLAGS="$save_OBJCFLAGS"
9259 { echo "$as_me:$LINENO: result: no" >&5
9260 echo "${ECHO_T}no" >&6; }
9262 fi
9264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265 ac_ext=m
9266 ac_cpp='$OBJCPP $CPPFLAGS'
9267 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9268 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9269 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9273 ac_ext=m
9274 ac_cpp='$OBJCPP $CPPFLAGS'
9275 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9276 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9277 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9279 { echo "$as_me:$LINENO: checking if $OBJC supports -mfpmath=sse" >&5
9280 echo $ECHO_N "checking if $OBJC supports -mfpmath=sse... $ECHO_C" >&6; }
9281 save_OBJCFLAGS="$OBJCFLAGS"
9282 OBJCFLAGS="-mfpmath=sse $OBJCFLAGS"
9283 cat >conftest.$ac_ext <<_ACEOF
9285 /* confdefs.h. */
9286 _ACEOF
9287 cat confdefs.h >>conftest.$ac_ext
9288 cat >>conftest.$ac_ext <<_ACEOF
9289 /* end confdefs.h. */
9290 int main() { return 0; }
9291 _ACEOF
9292 rm -f conftest.$ac_objext
9293 if { (ac_try="$ac_compile"
9294 case "(($ac_try" in
9295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9296 *) ac_try_echo=$ac_try;;
9297 esac
9298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9299 (eval "$ac_compile") 2>conftest.er1
9300 ac_status=$?
9301 grep -v '^ *+' conftest.er1 >conftest.err
9302 rm -f conftest.er1
9303 cat conftest.err >&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); } && {
9306 test -z "$ac_objc_werror_flag" ||
9307 test ! -s conftest.err
9308 } && test -s conftest.$ac_objext; then
9310 { echo "$as_me:$LINENO: result: yes" >&5
9311 echo "${ECHO_T}yes" >&6; }
9313 else
9314 echo "$as_me: failed program was:" >&5
9315 sed 's/^/| /' conftest.$ac_ext >&5
9318 OBJCFLAGS="$save_OBJCFLAGS"
9319 { echo "$as_me:$LINENO: result: no" >&5
9320 echo "${ECHO_T}no" >&6; }
9322 fi
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9325 ac_ext=m
9326 ac_cpp='$OBJCPP $CPPFLAGS'
9327 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9328 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9329 ac_compiler_gnu=$ac_cv_objc_compiler_gnu
9333 else
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9337 { echo "$as_me:$LINENO: result: No" >&5
9338 echo "${ECHO_T}No" >&6; }
9340 fi
9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
9343 ac_ext=c
9344 ac_cpp='$CPP $CPPFLAGS'
9345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9353 if test "$HAVE_COCOA" = 'yes' -a "$with_gtk" = "no"; then
9354 GUI_COCOA_TRUE=
9355 GUI_COCOA_FALSE='#'
9356 else
9357 GUI_COCOA_TRUE='#'
9358 GUI_COCOA_FALSE=
9359 fi
9361 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
9363 cat >>confdefs.h <<\_ACEOF
9364 #define OSX_BUNDLE 1
9365 _ACEOF
9367 fi
9369 CFLAGS_FOR_BUILD="-O2 -std=c99"
9370 CFLAGS="-g -fexceptions"
9371 OBJCFLAGS="-g -fexceptions"
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_EXCEPTIONS 1
9375 _ACEOF
9378 STDCFLAG="-std=c99"
9380 _GCC_VERSION=`$CC --version | $SED -ne '/gcc/p'`
9381 _ICC_VERSION=`$CC --version | $SED -ne '/(ICC)/p'`
9382 { echo "$as_me:$LINENO: checking CC version" >&5
9383 echo $ECHO_N "checking CC version... $ECHO_C" >&6; }
9384 if test -n "$_ICC_VERSION"; then
9385 { echo "$as_me:$LINENO: result: ICC" >&5
9386 echo "${ECHO_T}ICC" >&6; }
9387 CCOPT="$CFLAGS -fast"
9388 CFLAGS="$CFLAGS -fno-strict-aliasing"
9389 elif test -n "$_GCC_VERSION"; then
9390 { echo "$as_me:$LINENO: result: GCC" >&5
9391 echo "${ECHO_T}GCC" >&6; }
9392 CCOPT="-O2"
9393 CFLAGS="$CFLAGS -fno-strict-aliasing"
9394 else
9395 { echo "$as_me:$LINENO: result: Unknown" >&5
9396 echo "${ECHO_T}Unknown" >&6; }
9397 CCOPT="$CFLAGS -O2"
9398 fi
9401 ac_ext=c
9402 ac_cpp='$CPP $CPPFLAGS'
9403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9407 { echo "$as_me:$LINENO: checking if $CC supports -msse2" >&5
9408 echo $ECHO_N "checking if $CC supports -msse2... $ECHO_C" >&6; }
9409 save_CFLAGS="$CFLAGS"
9410 CFLAGS="-msse2 $CFLAGS"
9411 cat >conftest.$ac_ext <<_ACEOF
9413 /* confdefs.h. */
9414 _ACEOF
9415 cat confdefs.h >>conftest.$ac_ext
9416 cat >>conftest.$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 int main() { return 0; }
9419 _ACEOF
9420 rm -f conftest.$ac_objext
9421 if { (ac_try="$ac_compile"
9422 case "(($ac_try" in
9423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424 *) ac_try_echo=$ac_try;;
9425 esac
9426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427 (eval "$ac_compile") 2>conftest.er1
9428 ac_status=$?
9429 grep -v '^ *+' conftest.er1 >conftest.err
9430 rm -f conftest.er1
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } && {
9434 test -z "$ac_c_werror_flag" ||
9435 test ! -s conftest.err
9436 } && test -s conftest.$ac_objext; then
9438 { echo "$as_me:$LINENO: result: yes" >&5
9439 echo "${ECHO_T}yes" >&6; }
9441 else
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9446 CFLAGS="$save_CFLAGS"
9447 { echo "$as_me:$LINENO: result: no" >&5
9448 echo "${ECHO_T}no" >&6; }
9450 fi
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453 ac_ext=c
9454 ac_cpp='$CPP $CPPFLAGS'
9455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9461 ac_ext=c
9462 ac_cpp='$CPP $CPPFLAGS'
9463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9467 { echo "$as_me:$LINENO: checking if $CC supports -mfpmath=sse" >&5
9468 echo $ECHO_N "checking if $CC supports -mfpmath=sse... $ECHO_C" >&6; }
9469 save_CFLAGS="$CFLAGS"
9470 CFLAGS="-mfpmath=sse $CFLAGS"
9471 cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h. */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478 int main() { return 0; }
9479 _ACEOF
9480 rm -f conftest.$ac_objext
9481 if { (ac_try="$ac_compile"
9482 case "(($ac_try" in
9483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9484 *) ac_try_echo=$ac_try;;
9485 esac
9486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9487 (eval "$ac_compile") 2>conftest.er1
9488 ac_status=$?
9489 grep -v '^ *+' conftest.er1 >conftest.err
9490 rm -f conftest.er1
9491 cat conftest.err >&5
9492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493 (exit $ac_status); } && {
9494 test -z "$ac_c_werror_flag" ||
9495 test ! -s conftest.err
9496 } && test -s conftest.$ac_objext; then
9498 { echo "$as_me:$LINENO: result: yes" >&5
9499 echo "${ECHO_T}yes" >&6; }
9501 else
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9506 CFLAGS="$save_CFLAGS"
9507 { echo "$as_me:$LINENO: result: no" >&5
9508 echo "${ECHO_T}no" >&6; }
9510 fi
9512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9513 ac_ext=c
9514 ac_cpp='$CPP $CPPFLAGS'
9515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9521 if test "x$enable_optimized" = "xyes"; then
9522 CFLAGS="$CFLAGS $CCOPT"
9523 OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
9524 if test "x$enable_profiled" != "xyes"; then
9525 CFLAGS="$CFLAGS -fomit-frame-pointer"
9526 OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
9527 fi
9528 else
9529 CFLAGS="$CFLAGS -g3"
9530 OBJCFLAGS="$OBJCFLAGS -g3"
9531 fi
9533 if test "x$enable_profiled" = "xyes"; then
9534 CFLAGS="$CFLAGS -pg"
9535 LDFLAGS="$LDFLAGS -pg";
9536 OBJCFLAGS="$OBJCFLAGS -pg";
9537 fi
9539 if test "x$enable_strictwarn" = "xyes"; then
9540 CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
9541 OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
9542 fi
9544 if test "x$enable_shared" != "xno"; then
9545 if test "x$APPLE_BUILD" = "xyes"; then
9546 SOEXT="dylib"
9547 PLUGINLDFLAGS="-dynamiclib -undefined dynamic_lookup"
9548 else
9549 SOEXT="so"
9550 PLUGINLDFLAGS="-shared"
9551 fi
9552 PLUGINCFLAGS="-fPIC"
9554 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9555 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9556 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9557 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 fi
9560 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9561 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9562 else
9563 # Is the header compilable?
9564 { echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
9565 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
9573 #include <dlfcn.h>
9574 _ACEOF
9575 rm -f conftest.$ac_objext
9576 if { (ac_try="$ac_compile"
9577 case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580 esac
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_compile") 2>conftest.er1
9583 ac_status=$?
9584 grep -v '^ *+' conftest.er1 >conftest.err
9585 rm -f conftest.er1
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } && {
9589 test -z "$ac_c_werror_flag" ||
9590 test ! -s conftest.err
9591 } && test -s conftest.$ac_objext; then
9592 ac_header_compiler=yes
9593 else
9594 echo "$as_me: failed program was:" >&5
9595 sed 's/^/| /' conftest.$ac_ext >&5
9597 ac_header_compiler=no
9598 fi
9600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9602 echo "${ECHO_T}$ac_header_compiler" >&6; }
9604 # Is the header present?
9605 { echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
9606 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6; }
9607 cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h. */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h. */
9613 #include <dlfcn.h>
9614 _ACEOF
9615 if { (ac_try="$ac_cpp conftest.$ac_ext"
9616 case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619 esac
9620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9622 ac_status=$?
9623 grep -v '^ *+' conftest.er1 >conftest.err
9624 rm -f conftest.er1
9625 cat conftest.err >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); } >/dev/null && {
9628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9629 test ! -s conftest.err
9630 }; then
9631 ac_header_preproc=yes
9632 else
9633 echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9636 ac_header_preproc=no
9637 fi
9639 rm -f conftest.err conftest.$ac_ext
9640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9641 echo "${ECHO_T}$ac_header_preproc" >&6; }
9643 # So? What about this header?
9644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9645 yes:no: )
9646 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
9647 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
9649 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
9650 ac_header_preproc=yes
9651 ;;
9652 no:yes:* )
9653 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
9654 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
9656 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
9657 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
9658 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
9659 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
9660 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
9661 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
9662 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
9663 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
9664 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
9666 ;;
9667 esac
9668 { echo "$as_me:$LINENO: checking for dlfcn.h" >&5
9669 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6; }
9670 if test "${ac_cv_header_dlfcn_h+set}" = set; then
9671 echo $ECHO_N "(cached) $ECHO_C" >&6
9672 else
9673 ac_cv_header_dlfcn_h=$ac_header_preproc
9674 fi
9675 { echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
9676 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6; }
9678 fi
9679 if test $ac_cv_header_dlfcn_h = yes; then
9681 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9682 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
9683 if test "${ac_cv_search_dlopen+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686 ac_func_search_save_LIBS=$LIBS
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. */
9694 /* Override any GCC internal prototype to avoid an error.
9695 Use char because int might match the return type of a GCC
9696 builtin and then its argument prototype would still apply. */
9697 #ifdef __cplusplus
9698 extern "C"
9699 #endif
9700 char dlopen ();
9701 int
9702 main ()
9703 {
9704 return dlopen ();
9705 ;
9706 return 0;
9707 }
9708 _ACEOF
9709 for ac_lib in '' dl; do
9710 if test -z "$ac_lib"; then
9711 ac_res="none required"
9712 else
9713 ac_res=-l$ac_lib
9714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9715 fi
9716 rm -f conftest.$ac_objext conftest$ac_exeext
9717 if { (ac_try="$ac_link"
9718 case "(($ac_try" in
9719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720 *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723 (eval "$ac_link") 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest$ac_exeext &&
9733 $as_test_x conftest$ac_exeext; then
9734 ac_cv_search_dlopen=$ac_res
9735 else
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9740 fi
9742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9743 conftest$ac_exeext
9744 if test "${ac_cv_search_dlopen+set}" = set; then
9745 break
9746 fi
9747 done
9748 if test "${ac_cv_search_dlopen+set}" = set; then
9749 :
9750 else
9751 ac_cv_search_dlopen=no
9752 fi
9753 rm conftest.$ac_ext
9754 LIBS=$ac_func_search_save_LIBS
9755 fi
9756 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
9757 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
9758 ac_res=$ac_cv_search_dlopen
9759 if test "$ac_res" != no; then
9760 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9761 have_dlopen=yes
9762 fi
9764 fi
9767 if test "x$have_dlopen" != "xyes"; then
9768 if test "x$enable_shared" == "xyes"; then
9769 { { echo "$as_me:$LINENO: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&5
9770 echo "$as_me: error: \"--enable-shared not supported on your system - can't find a working dlopen\" " >&2;}
9771 { (exit 1); exit 1; }; }
9772 else
9773 { echo "$as_me:$LINENO: WARNING: \"Statically linking all plugins\"" >&5
9774 echo "$as_me: WARNING: \"Statically linking all plugins\"" >&2;}
9775 fi
9776 fi
9778 { echo "$as_me:$LINENO: checking if linker accepts -rdynamic" >&5
9779 echo $ECHO_N "checking if linker accepts -rdynamic... $ECHO_C" >&6; }
9780 old_LDFLAGS="$LDFLAGS"
9781 LDFLAGS="$LDFLAGS -rdynamic"
9782 cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h. */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 int main() { return 0; }
9789 _ACEOF
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (ac_try="$ac_link"
9792 case "(($ac_try" in
9793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9794 *) ac_try_echo=$ac_try;;
9795 esac
9796 eval "echo \"\$as_me:$LINENO: $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 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 $as_test_x conftest$ac_exeext; then
9809 LXDREAMLDFLAGS="-rdynamic"
9810 { echo "$as_me:$LINENO: result: yes" >&5
9811 echo "${ECHO_T}yes" >&6; }
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9818 LXDREAMLDFLAGS=""
9819 { echo "$as_me:$LINENO: result: no" >&5
9820 echo "${ECHO_T}no" >&6; }
9821 fi
9823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9824 conftest$ac_exeext conftest.$ac_ext
9825 LDFLAGS="$old_LDFLAGS"
9831 fi
9832 if test "x$have_dlopen" = "xyes"; then
9834 cat >>confdefs.h <<\_ACEOF
9835 #define BUILD_PLUGINS 1
9836 _ACEOF
9838 fi
9841 if test "x$have_dlopen" = "xyes"; then
9842 BUILD_PLUGINS_TRUE=
9843 BUILD_PLUGINS_FALSE='#'
9844 else
9845 BUILD_PLUGINS_TRUE='#'
9846 BUILD_PLUGINS_FALSE=
9847 fi
9851 { echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
9852 echo $ECHO_N "checking support for fastcall calling conventions... $ECHO_C" >&6; };
9853 save_CFLAGS="$CFLAGS"
9854 CFLAGS="-Werror $save_CFLAGS"
9855 if test "$cross_compiling" = yes; then
9857 { echo "$as_me:$LINENO: result: no" >&5
9858 echo "${ECHO_T}no" >&6; }
9860 else
9861 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h. */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9869 int __attribute__((regparm(3))) foo(int a, int b) { return a+b; }
9871 int main(int argc, char *argv[])
9872 {
9873 return foo( 1, 2 ) == 3 ? 0 : 1;
9874 }
9875 _ACEOF
9876 rm -f conftest$ac_exeext
9877 if { (ac_try="$ac_link"
9878 case "(($ac_try" in
9879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9880 *) ac_try_echo=$ac_try;;
9881 esac
9882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9883 (eval "$ac_link") 2>&5
9884 ac_status=$?
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9887 { (case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890 esac
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_try") 2>&5
9893 ac_status=$?
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); }; }; then
9897 { echo "$as_me:$LINENO: result: yes" >&5
9898 echo "${ECHO_T}yes" >&6; }
9901 cat >>confdefs.h <<\_ACEOF
9902 #define HAVE_FASTCALL 1
9903 _ACEOF
9906 else
9907 echo "$as_me: program exited with status $ac_status" >&5
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ( exit $ac_status )
9913 { echo "$as_me:$LINENO: result: no" >&5
9914 echo "${ECHO_T}no" >&6; }
9916 fi
9917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9918 fi
9921 CFLAGS="$save_CFLAGS"
9924 { echo "$as_me:$LINENO: checking support for force inlining" >&5
9925 echo $ECHO_N "checking support for force inlining... $ECHO_C" >&6; };
9926 cat >conftest.$ac_ext <<_ACEOF
9928 /* confdefs.h. */
9929 _ACEOF
9930 cat confdefs.h >>conftest.$ac_ext
9931 cat >>conftest.$ac_ext <<_ACEOF
9932 /* end confdefs.h. */
9934 static int __attribute__((always_inline)) foo(int a, int b) { return a+b; }
9936 int main(int argc, char *argv[])
9937 {
9938 return foo( 1, 2 ) == 3 ? 0 : 1;
9939 }
9940 _ACEOF
9941 rm -f conftest.$ac_objext
9942 if { (ac_try="$ac_compile"
9943 case "(($ac_try" in
9944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9946 esac
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_compile") 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } && {
9955 test -z "$ac_c_werror_flag" ||
9956 test ! -s conftest.err
9957 } && test -s conftest.$ac_objext; then
9959 FORCEINLINE="__attribute__((always_inline))"
9960 { echo "$as_me:$LINENO: result: $FORCEINLINE" >&5
9961 echo "${ECHO_T}$FORCEINLINE" >&6; }
9963 else
9964 echo "$as_me: failed program was:" >&5
9965 sed 's/^/| /' conftest.$ac_ext >&5
9968 FORCEINLINE=""
9969 { echo "$as_me:$LINENO: result: no" >&5
9970 echo "${ECHO_T}no" >&6; }
9972 fi
9974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9977 cat >>confdefs.h <<_ACEOF
9978 #define FORCEINLINE $FORCEINLINE
9979 _ACEOF
9982 { echo "$as_me:$LINENO: checking if we have a working __builtin_frame_address()" >&5
9983 echo $ECHO_N "checking if we have a working __builtin_frame_address()... $ECHO_C" >&6; };
9984 if test "$cross_compiling" = yes; then
9986 { echo "$as_me:$LINENO: result: no" >&5
9987 echo "${ECHO_T}no" >&6; }
9988 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
9989 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
9990 else
9991 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9999 void * __attribute__((noinline)) first_arg( void *x, void *y ) { return x; }
10000 int __attribute__((noinline)) foo( int arg, void *exc )
10001 {
10002 if( arg < 2 ) {
10003 *(((void * volatile *)__builtin_frame_address(0))+1) = exc;
10004 }
10005 return 0;
10006 }
10008 int main(int argc, char *argv[])
10009 {
10010 goto *first_arg(&&start, &&except);
10012 start:
10013 return foo( argc, &&except ) + 1;
10015 except:
10016 return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest$ac_exeext
10020 if { (ac_try="$ac_link"
10021 case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_link") 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10030 { (case "(($ac_try" in
10031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10032 *) ac_try_echo=$ac_try;;
10033 esac
10034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10035 (eval "$ac_try") 2>&5
10036 ac_status=$?
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); }; }; then
10040 { echo "$as_me:$LINENO: result: yes" >&5
10041 echo "${ECHO_T}yes" >&6; }
10044 cat >>confdefs.h <<\_ACEOF
10045 #define HAVE_FRAME_ADDRESS 1
10046 _ACEOF
10049 else
10050 echo "$as_me: program exited with status $ac_status" >&5
10051 echo "$as_me: failed program was:" >&5
10052 sed 's/^/| /' conftest.$ac_ext >&5
10054 ( exit $ac_status )
10056 { echo "$as_me:$LINENO: result: no" >&5
10057 echo "${ECHO_T}no" >&6; }
10058 { echo "$as_me:$LINENO: WARNING: Memory exceptions will be slow" >&5
10059 echo "$as_me: WARNING: Memory exceptions will be slow" >&2;}
10060 fi
10061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10062 fi
10068 { echo "$as_me:$LINENO: checking for library containing listen" >&5
10069 echo $ECHO_N "checking for library containing listen... $ECHO_C" >&6; }
10070 if test "${ac_cv_search_listen+set}" = set; then
10071 echo $ECHO_N "(cached) $ECHO_C" >&6
10072 else
10073 ac_func_search_save_LIBS=$LIBS
10074 cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h. */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h. */
10081 /* Override any GCC internal prototype to avoid an error.
10082 Use char because int might match the return type of a GCC
10083 builtin and then its argument prototype would still apply. */
10084 #ifdef __cplusplus
10085 extern "C"
10086 #endif
10087 char listen ();
10088 int
10089 main ()
10090 {
10091 return listen ();
10092 ;
10093 return 0;
10094 }
10095 _ACEOF
10096 for ac_lib in '' socket; do
10097 if test -z "$ac_lib"; then
10098 ac_res="none required"
10099 else
10100 ac_res=-l$ac_lib
10101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10102 fi
10103 rm -f conftest.$ac_objext conftest$ac_exeext
10104 if { (ac_try="$ac_link"
10105 case "(($ac_try" in
10106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10107 *) ac_try_echo=$ac_try;;
10108 esac
10109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10110 (eval "$ac_link") 2>conftest.er1
10111 ac_status=$?
10112 grep -v '^ *+' conftest.er1 >conftest.err
10113 rm -f conftest.er1
10114 cat conftest.err >&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && {
10117 test -z "$ac_c_werror_flag" ||
10118 test ! -s conftest.err
10119 } && test -s conftest$ac_exeext &&
10120 $as_test_x conftest$ac_exeext; then
10121 ac_cv_search_listen=$ac_res
10122 else
10123 echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10127 fi
10129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10130 conftest$ac_exeext
10131 if test "${ac_cv_search_listen+set}" = set; then
10132 break
10133 fi
10134 done
10135 if test "${ac_cv_search_listen+set}" = set; then
10136 :
10137 else
10138 ac_cv_search_listen=no
10139 fi
10140 rm conftest.$ac_ext
10141 LIBS=$ac_func_search_save_LIBS
10142 fi
10143 { echo "$as_me:$LINENO: result: $ac_cv_search_listen" >&5
10144 echo "${ECHO_T}$ac_cv_search_listen" >&6; }
10145 ac_res=$ac_cv_search_listen
10146 if test "$ac_res" != no; then
10147 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10149 fi
10151 { echo "$as_me:$LINENO: checking for library containing inet_ntoa" >&5
10152 echo $ECHO_N "checking for library containing inet_ntoa... $ECHO_C" >&6; }
10153 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 else
10156 ac_func_search_save_LIBS=$LIBS
10157 cat >conftest.$ac_ext <<_ACEOF
10158 /* confdefs.h. */
10159 _ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10164 /* Override any GCC internal prototype to avoid an error.
10165 Use char because int might match the return type of a GCC
10166 builtin and then its argument prototype would still apply. */
10167 #ifdef __cplusplus
10168 extern "C"
10169 #endif
10170 char inet_ntoa ();
10171 int
10172 main ()
10173 {
10174 return inet_ntoa ();
10175 ;
10176 return 0;
10177 }
10178 _ACEOF
10179 for ac_lib in '' nsl; do
10180 if test -z "$ac_lib"; then
10181 ac_res="none required"
10182 else
10183 ac_res=-l$ac_lib
10184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10185 fi
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (ac_try="$ac_link"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_link") 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } && {
10200 test -z "$ac_c_werror_flag" ||
10201 test ! -s conftest.err
10202 } && test -s conftest$ac_exeext &&
10203 $as_test_x conftest$ac_exeext; then
10204 ac_cv_search_inet_ntoa=$ac_res
10205 else
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10210 fi
10212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10213 conftest$ac_exeext
10214 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10215 break
10216 fi
10217 done
10218 if test "${ac_cv_search_inet_ntoa+set}" = set; then
10219 :
10220 else
10221 ac_cv_search_inet_ntoa=no
10222 fi
10223 rm conftest.$ac_ext
10224 LIBS=$ac_func_search_save_LIBS
10225 fi
10226 { echo "$as_me:$LINENO: result: $ac_cv_search_inet_ntoa" >&5
10227 echo "${ECHO_T}$ac_cv_search_inet_ntoa" >&6; }
10228 ac_res=$ac_cv_search_inet_ntoa
10229 if test "$ac_res" != no; then
10230 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10232 fi
10237 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10238 if test -n "$ac_tool_prefix"; then
10239 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10240 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10243 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 else
10246 case $PKG_CONFIG in
10247 [\\/]* | ?:[\\/]*)
10248 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10249 ;;
10250 *)
10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10253 do
10254 IFS=$as_save_IFS
10255 test -z "$as_dir" && as_dir=.
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10258 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10260 break 2
10261 fi
10262 done
10263 done
10264 IFS=$as_save_IFS
10266 ;;
10267 esac
10268 fi
10269 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10270 if test -n "$PKG_CONFIG"; then
10271 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10272 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10273 else
10274 { echo "$as_me:$LINENO: result: no" >&5
10275 echo "${ECHO_T}no" >&6; }
10276 fi
10279 fi
10280 if test -z "$ac_cv_path_PKG_CONFIG"; then
10281 ac_pt_PKG_CONFIG=$PKG_CONFIG
10282 # Extract the first word of "pkg-config", so it can be a program name with args.
10283 set dummy pkg-config; ac_word=$2
10284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10286 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 else
10289 case $ac_pt_PKG_CONFIG in
10290 [\\/]* | ?:[\\/]*)
10291 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10292 ;;
10293 *)
10294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295 for as_dir in $PATH
10296 do
10297 IFS=$as_save_IFS
10298 test -z "$as_dir" && as_dir=.
10299 for ac_exec_ext in '' $ac_executable_extensions; do
10300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10301 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10303 break 2
10304 fi
10305 done
10306 done
10307 IFS=$as_save_IFS
10309 ;;
10310 esac
10311 fi
10312 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10313 if test -n "$ac_pt_PKG_CONFIG"; then
10314 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
10315 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
10316 else
10317 { echo "$as_me:$LINENO: result: no" >&5
10318 echo "${ECHO_T}no" >&6; }
10319 fi
10321 if test "x$ac_pt_PKG_CONFIG" = x; then
10322 PKG_CONFIG=""
10323 else
10324 case $cross_compiling:$ac_tool_warned in
10325 yes:)
10326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10327 whose name does not start with the host triplet. If you think this
10328 configuration is useful to you, please write to autoconf@gnu.org." >&5
10329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10330 whose name does not start with the host triplet. If you think this
10331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10332 ac_tool_warned=yes ;;
10333 esac
10334 PKG_CONFIG=$ac_pt_PKG_CONFIG
10335 fi
10336 else
10337 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10338 fi
10340 fi
10341 if test -n "$PKG_CONFIG"; then
10342 _pkg_min_version=0.9.0
10343 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
10344 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
10345 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10346 { echo "$as_me:$LINENO: result: yes" >&5
10347 echo "${ECHO_T}yes" >&6; }
10348 else
10349 { echo "$as_me:$LINENO: result: no" >&5
10350 echo "${ECHO_T}no" >&6; }
10351 PKG_CONFIG=""
10352 fi
10354 fi
10356 pkg_failed=no
10357 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
10358 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
10360 if test -n "$LIBPNG_CFLAGS"; then
10361 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
10362 elif test -n "$PKG_CONFIG"; then
10363 if test -n "$PKG_CONFIG" && \
10364 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10365 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10366 ac_status=$?
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); }; then
10369 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
10370 else
10371 pkg_failed=yes
10372 fi
10373 else
10374 pkg_failed=untried
10375 fi
10376 if test -n "$LIBPNG_LIBS"; then
10377 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
10378 elif test -n "$PKG_CONFIG"; then
10379 if test -n "$PKG_CONFIG" && \
10380 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
10381 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
10382 ac_status=$?
10383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384 (exit $ac_status); }; then
10385 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
10386 else
10387 pkg_failed=yes
10388 fi
10389 else
10390 pkg_failed=untried
10391 fi
10395 if test $pkg_failed = yes; then
10397 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10398 _pkg_short_errors_supported=yes
10399 else
10400 _pkg_short_errors_supported=no
10401 fi
10402 if test $_pkg_short_errors_supported = yes; then
10403 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng " 2>&1`
10404 else
10405 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng " 2>&1`
10406 fi
10407 # Put the nasty error message in config.log where it belongs
10408 echo "$LIBPNG_PKG_ERRORS" >&5
10410 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
10412 $LIBPNG_PKG_ERRORS
10414 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10415 installed software in a non-standard prefix.
10417 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10418 and LIBPNG_LIBS to avoid the need to call pkg-config.
10419 See the pkg-config man page for more details.
10420 " >&5
10421 echo "$as_me: error: Package requirements (libpng ) were not met:
10423 $LIBPNG_PKG_ERRORS
10425 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10426 installed software in a non-standard prefix.
10428 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10429 and LIBPNG_LIBS to avoid the need to call pkg-config.
10430 See the pkg-config man page for more details.
10431 " >&2;}
10432 { (exit 1); exit 1; }; }
10433 elif test $pkg_failed = untried; then
10434 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10435 is in your PATH or set the PKG_CONFIG environment variable to the full
10436 path to pkg-config.
10438 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10439 and LIBPNG_LIBS to avoid the need to call pkg-config.
10440 See the pkg-config man page for more details.
10442 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10443 See \`config.log' for more details." >&5
10444 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10445 is in your PATH or set the PKG_CONFIG environment variable to the full
10446 path to pkg-config.
10448 Alternatively, you may set the environment variables LIBPNG_CFLAGS
10449 and LIBPNG_LIBS to avoid the need to call pkg-config.
10450 See the pkg-config man page for more details.
10452 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10453 See \`config.log' for more details." >&2;}
10454 { (exit 1); exit 1; }; }
10455 else
10456 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
10457 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
10458 { echo "$as_me:$LINENO: result: yes" >&5
10459 echo "${ECHO_T}yes" >&6; }
10460 :
10461 fi
10464 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
10465 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
10466 if test "${ac_cv_lib_z_uncompress+set}" = set; then
10467 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469 ac_check_lib_save_LIBS=$LIBS
10470 LIBS="-lz $LIBS"
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h. */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h. */
10478 /* Override any GCC internal prototype to avoid an error.
10479 Use char because int might match the return type of a GCC
10480 builtin and then its argument prototype would still apply. */
10481 #ifdef __cplusplus
10482 extern "C"
10483 #endif
10484 char uncompress ();
10485 int
10486 main ()
10487 {
10488 return uncompress ();
10489 ;
10490 return 0;
10491 }
10492 _ACEOF
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (ac_try="$ac_link"
10495 case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10498 esac
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_link") 2>conftest.er1
10501 ac_status=$?
10502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_c_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest$ac_exeext &&
10510 $as_test_x conftest$ac_exeext; then
10511 ac_cv_lib_z_uncompress=yes
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 ac_cv_lib_z_uncompress=no
10517 fi
10519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10520 conftest$ac_exeext conftest.$ac_ext
10521 LIBS=$ac_check_lib_save_LIBS
10522 fi
10523 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
10524 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
10525 if test $ac_cv_lib_z_uncompress = yes; then
10526 cat >>confdefs.h <<_ACEOF
10527 #define HAVE_LIBZ 1
10528 _ACEOF
10530 LIBS="-lz $LIBS"
10532 else
10534 echo "Zlib (libz.so) could not be found, but is required."
10535 exit 1
10536 fi
10539 if test "x$with_gtk" = "xno"; then
10541 pkg_failed=no
10542 { echo "$as_me:$LINENO: checking for GLIB" >&5
10543 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
10545 if test -n "$GLIB_CFLAGS"; then
10546 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
10547 elif test -n "$PKG_CONFIG"; then
10548 if test -n "$PKG_CONFIG" && \
10549 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10550 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10551 ac_status=$?
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); }; then
10554 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10555 else
10556 pkg_failed=yes
10557 fi
10558 else
10559 pkg_failed=untried
10560 fi
10561 if test -n "$GLIB_LIBS"; then
10562 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
10563 elif test -n "$PKG_CONFIG"; then
10564 if test -n "$PKG_CONFIG" && \
10565 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10566 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; then
10570 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10571 else
10572 pkg_failed=yes
10573 fi
10574 else
10575 pkg_failed=untried
10576 fi
10580 if test $pkg_failed = yes; then
10582 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10583 _pkg_short_errors_supported=yes
10584 else
10585 _pkg_short_errors_supported=no
10586 fi
10587 if test $_pkg_short_errors_supported = yes; then
10588 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
10589 else
10590 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
10591 fi
10592 # Put the nasty error message in config.log where it belongs
10593 echo "$GLIB_PKG_ERRORS" >&5
10595 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
10597 $GLIB_PKG_ERRORS
10599 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10600 installed software in a non-standard prefix.
10602 Alternatively, you may set the environment variables GLIB_CFLAGS
10603 and GLIB_LIBS to avoid the need to call pkg-config.
10604 See the pkg-config man page for more details.
10605 " >&5
10606 echo "$as_me: error: Package requirements (glib-2.0) were not met:
10608 $GLIB_PKG_ERRORS
10610 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10611 installed software in a non-standard prefix.
10613 Alternatively, you may set the environment variables GLIB_CFLAGS
10614 and GLIB_LIBS to avoid the need to call pkg-config.
10615 See the pkg-config man page for more details.
10616 " >&2;}
10617 { (exit 1); exit 1; }; }
10618 elif test $pkg_failed = untried; then
10619 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10620 is in your PATH or set the PKG_CONFIG environment variable to the full
10621 path to pkg-config.
10623 Alternatively, you may set the environment variables GLIB_CFLAGS
10624 and GLIB_LIBS to avoid the need to call pkg-config.
10625 See the pkg-config man page for more details.
10627 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10628 See \`config.log' for more details." >&5
10629 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10630 is in your PATH or set the PKG_CONFIG environment variable to the full
10631 path to pkg-config.
10633 Alternatively, you may set the environment variables GLIB_CFLAGS
10634 and GLIB_LIBS to avoid the need to call pkg-config.
10635 See the pkg-config man page for more details.
10637 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10638 See \`config.log' for more details." >&2;}
10639 { (exit 1); exit 1; }; }
10640 else
10641 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
10642 GLIB_LIBS=$pkg_cv_GLIB_LIBS
10643 { echo "$as_me:$LINENO: result: yes" >&5
10644 echo "${ECHO_T}yes" >&6; }
10645 :
10646 fi
10647 else
10649 pkg_failed=no
10650 { echo "$as_me:$LINENO: checking for GTK" >&5
10651 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
10653 if test -n "$GTK_CFLAGS"; then
10654 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
10655 elif test -n "$PKG_CONFIG"; then
10656 if test -n "$PKG_CONFIG" && \
10657 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10658 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10659 ac_status=$?
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; then
10662 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
10663 else
10664 pkg_failed=yes
10665 fi
10666 else
10667 pkg_failed=untried
10668 fi
10669 if test -n "$GTK_LIBS"; then
10670 pkg_cv_GTK_LIBS="$GTK_LIBS"
10671 elif test -n "$PKG_CONFIG"; then
10672 if test -n "$PKG_CONFIG" && \
10673 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
10674 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
10675 ac_status=$?
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; then
10678 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
10679 else
10680 pkg_failed=yes
10681 fi
10682 else
10683 pkg_failed=untried
10684 fi
10688 if test $pkg_failed = yes; then
10690 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10691 _pkg_short_errors_supported=yes
10692 else
10693 _pkg_short_errors_supported=no
10694 fi
10695 if test $_pkg_short_errors_supported = yes; then
10696 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gtk+-2.0" 2>&1`
10697 else
10698 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "gtk+-2.0" 2>&1`
10699 fi
10700 # Put the nasty error message in config.log where it belongs
10701 echo "$GTK_PKG_ERRORS" >&5
10703 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
10705 $GTK_PKG_ERRORS
10707 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10708 installed software in a non-standard prefix.
10710 Alternatively, you may set the environment variables GTK_CFLAGS
10711 and GTK_LIBS to avoid the need to call pkg-config.
10712 See the pkg-config man page for more details.
10713 " >&5
10714 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
10716 $GTK_PKG_ERRORS
10718 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10719 installed software in a non-standard prefix.
10721 Alternatively, you may set the environment variables GTK_CFLAGS
10722 and GTK_LIBS to avoid the need to call pkg-config.
10723 See the pkg-config man page for more details.
10724 " >&2;}
10725 { (exit 1); exit 1; }; }
10726 elif test $pkg_failed = untried; then
10727 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
10728 is in your PATH or set the PKG_CONFIG environment variable to the full
10729 path to pkg-config.
10731 Alternatively, you may set the environment variables GTK_CFLAGS
10732 and GTK_LIBS to avoid the need to call pkg-config.
10733 See the pkg-config man page for more details.
10735 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10736 See \`config.log' for more details." >&5
10737 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
10738 is in your PATH or set the PKG_CONFIG environment variable to the full
10739 path to pkg-config.
10741 Alternatively, you may set the environment variables GTK_CFLAGS
10742 and GTK_LIBS to avoid the need to call pkg-config.
10743 See the pkg-config man page for more details.
10745 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10746 See \`config.log' for more details." >&2;}
10747 { (exit 1); exit 1; }; }
10748 else
10749 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
10750 GTK_LIBS=$pkg_cv_GTK_LIBS
10751 { echo "$as_me:$LINENO: result: yes" >&5
10752 echo "${ECHO_T}yes" >&6; }
10754 HAVE_GTK='yes'
10756 cat >>confdefs.h <<\_ACEOF
10757 #define HAVE_GTK 1
10758 _ACEOF
10761 fi
10763 LIBS="$LIBS $GTK_LIBS"
10764 { echo "$as_me:$LINENO: checking for gdk_x11_display_get_xdisplay" >&5
10765 echo $ECHO_N "checking for gdk_x11_display_get_xdisplay... $ECHO_C" >&6; }
10766 if test "${ac_cv_func_gdk_x11_display_get_xdisplay+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769 cat >conftest.$ac_ext <<_ACEOF
10770 /* confdefs.h. */
10771 _ACEOF
10772 cat confdefs.h >>conftest.$ac_ext
10773 cat >>conftest.$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 /* Define gdk_x11_display_get_xdisplay to an innocuous variant, in case <limits.h> declares gdk_x11_display_get_xdisplay.
10776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10777 #define gdk_x11_display_get_xdisplay innocuous_gdk_x11_display_get_xdisplay
10779 /* System header to define __stub macros and hopefully few prototypes,
10780 which can conflict with char gdk_x11_display_get_xdisplay (); below.
10781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10782 <limits.h> exists even on freestanding compilers. */
10784 #ifdef __STDC__
10785 # include <limits.h>
10786 #else
10787 # include <assert.h>
10788 #endif
10790 #undef gdk_x11_display_get_xdisplay
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10795 #ifdef __cplusplus
10796 extern "C"
10797 #endif
10798 char gdk_x11_display_get_xdisplay ();
10799 /* The GNU C library defines this for functions which it implements
10800 to always fail with ENOSYS. Some functions are actually named
10801 something starting with __ and the normal name is an alias. */
10802 #if defined __stub_gdk_x11_display_get_xdisplay || defined __stub___gdk_x11_display_get_xdisplay
10803 choke me
10804 #endif
10806 int
10807 main ()
10808 {
10809 return gdk_x11_display_get_xdisplay ();
10810 ;
10811 return 0;
10812 }
10813 _ACEOF
10814 rm -f conftest.$ac_objext conftest$ac_exeext
10815 if { (ac_try="$ac_link"
10816 case "(($ac_try" in
10817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10819 esac
10820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10821 (eval "$ac_link") 2>conftest.er1
10822 ac_status=$?
10823 grep -v '^ *+' conftest.er1 >conftest.err
10824 rm -f conftest.er1
10825 cat conftest.err >&5
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); } && {
10828 test -z "$ac_c_werror_flag" ||
10829 test ! -s conftest.err
10830 } && test -s conftest$ac_exeext &&
10831 $as_test_x conftest$ac_exeext; then
10832 ac_cv_func_gdk_x11_display_get_xdisplay=yes
10833 else
10834 echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10837 ac_cv_func_gdk_x11_display_get_xdisplay=no
10838 fi
10840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10841 conftest$ac_exeext conftest.$ac_ext
10842 fi
10843 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_x11_display_get_xdisplay" >&5
10844 echo "${ECHO_T}$ac_cv_func_gdk_x11_display_get_xdisplay" >&6; }
10845 if test $ac_cv_func_gdk_x11_display_get_xdisplay = yes; then
10847 HAVE_GTK_X11='yes'
10849 cat >>confdefs.h <<\_ACEOF
10850 #define HAVE_GTK_X11 1
10851 _ACEOF
10853 fi
10855 GTK_LIBS="$GTK_LIBS -lX11"
10856 LIBS="$LIBS -lX11"
10857 { echo "$as_me:$LINENO: checking for gdk_quartz_window_get_nsview" >&5
10858 echo $ECHO_N "checking for gdk_quartz_window_get_nsview... $ECHO_C" >&6; }
10859 if test "${ac_cv_func_gdk_quartz_window_get_nsview+set}" = set; then
10860 echo $ECHO_N "(cached) $ECHO_C" >&6
10861 else
10862 cat >conftest.$ac_ext <<_ACEOF
10863 /* confdefs.h. */
10864 _ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 /* Define gdk_quartz_window_get_nsview to an innocuous variant, in case <limits.h> declares gdk_quartz_window_get_nsview.
10869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10870 #define gdk_quartz_window_get_nsview innocuous_gdk_quartz_window_get_nsview
10872 /* System header to define __stub macros and hopefully few prototypes,
10873 which can conflict with char gdk_quartz_window_get_nsview (); below.
10874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10875 <limits.h> exists even on freestanding compilers. */
10877 #ifdef __STDC__
10878 # include <limits.h>
10879 #else
10880 # include <assert.h>
10881 #endif
10883 #undef gdk_quartz_window_get_nsview
10885 /* Override any GCC internal prototype to avoid an error.
10886 Use char because int might match the return type of a GCC
10887 builtin and then its argument prototype would still apply. */
10888 #ifdef __cplusplus
10889 extern "C"
10890 #endif
10891 char gdk_quartz_window_get_nsview ();
10892 /* The GNU C library defines this for functions which it implements
10893 to always fail with ENOSYS. Some functions are actually named
10894 something starting with __ and the normal name is an alias. */
10895 #if defined __stub_gdk_quartz_window_get_nsview || defined __stub___gdk_quartz_window_get_nsview
10896 choke me
10897 #endif
10899 int
10900 main ()
10901 {
10902 return gdk_quartz_window_get_nsview ();
10903 ;
10904 return 0;
10905 }
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (ac_try="$ac_link"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912 esac
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_link") 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } && {
10921 test -z "$ac_c_werror_flag" ||
10922 test ! -s conftest.err
10923 } && test -s conftest$ac_exeext &&
10924 $as_test_x conftest$ac_exeext; then
10925 ac_cv_func_gdk_quartz_window_get_nsview=yes
10926 else
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_cv_func_gdk_quartz_window_get_nsview=no
10931 fi
10933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10934 conftest$ac_exeext conftest.$ac_ext
10935 fi
10936 { echo "$as_me:$LINENO: result: $ac_cv_func_gdk_quartz_window_get_nsview" >&5
10937 echo "${ECHO_T}$ac_cv_func_gdk_quartz_window_get_nsview" >&6; }
10938 if test $ac_cv_func_gdk_quartz_window_get_nsview = yes; then
10940 HAVE_GTK_OSX='yes'
10942 cat >>confdefs.h <<\_ACEOF
10943 #define HAVE_GTK_OSX 1
10944 _ACEOF
10946 fi
10948 if test "x$HAVE_GTK_X11$HAVE_GTK_OSX" = "x"; then
10949 { { echo "$as_me:$LINENO: error: Unable to identify GTK platform
10950 See \`config.log' for more details." >&5
10951 echo "$as_me: error: Unable to identify GTK platform
10952 See \`config.log' for more details." >&2;}
10953 { (exit 1); exit 1; }; }
10954 fi
10955 fi
10959 pkg_failed=no
10960 { echo "$as_me:$LINENO: checking for GLIB_FOR_BUILD" >&5
10961 echo $ECHO_N "checking for GLIB_FOR_BUILD... $ECHO_C" >&6; }
10963 if test -n "$GLIB_FOR_BUILD_CFLAGS"; then
10964 pkg_cv_GLIB_FOR_BUILD_CFLAGS="$GLIB_FOR_BUILD_CFLAGS"
10965 elif test -n "$PKG_CONFIG"; then
10966 if test -n "$PKG_CONFIG" && \
10967 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10968 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10969 ac_status=$?
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; then
10972 pkg_cv_GLIB_FOR_BUILD_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
10973 else
10974 pkg_failed=yes
10975 fi
10976 else
10977 pkg_failed=untried
10978 fi
10979 if test -n "$GLIB_FOR_BUILD_LIBS"; then
10980 pkg_cv_GLIB_FOR_BUILD_LIBS="$GLIB_FOR_BUILD_LIBS"
10981 elif test -n "$PKG_CONFIG"; then
10982 if test -n "$PKG_CONFIG" && \
10983 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
10984 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; then
10988 pkg_cv_GLIB_FOR_BUILD_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
10989 else
10990 pkg_failed=yes
10991 fi
10992 else
10993 pkg_failed=untried
10994 fi
10998 if test $pkg_failed = yes; then
11000 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11001 _pkg_short_errors_supported=yes
11002 else
11003 _pkg_short_errors_supported=no
11004 fi
11005 if test $_pkg_short_errors_supported = yes; then
11006 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0" 2>&1`
11007 else
11008 GLIB_FOR_BUILD_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0" 2>&1`
11009 fi
11010 # Put the nasty error message in config.log where it belongs
11011 echo "$GLIB_FOR_BUILD_PKG_ERRORS" >&5
11013 { { echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
11015 $GLIB_FOR_BUILD_PKG_ERRORS
11017 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11018 installed software in a non-standard prefix.
11020 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11021 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11022 See the pkg-config man page for more details.
11023 " >&5
11024 echo "$as_me: error: Package requirements (glib-2.0) were not met:
11026 $GLIB_FOR_BUILD_PKG_ERRORS
11028 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11029 installed software in a non-standard prefix.
11031 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11032 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11033 See the pkg-config man page for more details.
11034 " >&2;}
11035 { (exit 1); exit 1; }; }
11036 elif test $pkg_failed = untried; then
11037 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11038 is in your PATH or set the PKG_CONFIG environment variable to the full
11039 path to pkg-config.
11041 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11042 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11043 See the pkg-config man page for more details.
11045 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11046 See \`config.log' for more details." >&5
11047 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11048 is in your PATH or set the PKG_CONFIG environment variable to the full
11049 path to pkg-config.
11051 Alternatively, you may set the environment variables GLIB_FOR_BUILD_CFLAGS
11052 and GLIB_FOR_BUILD_LIBS to avoid the need to call pkg-config.
11053 See the pkg-config man page for more details.
11055 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11056 See \`config.log' for more details." >&2;}
11057 { (exit 1); exit 1; }; }
11058 else
11059 GLIB_FOR_BUILD_CFLAGS=$pkg_cv_GLIB_FOR_BUILD_CFLAGS
11060 GLIB_FOR_BUILD_LIBS=$pkg_cv_GLIB_FOR_BUILD_LIBS
11061 { echo "$as_me:$LINENO: result: yes" >&5
11062 echo "${ECHO_T}yes" >&6; }
11063 :
11064 fi
11069 if test "$HAVE_GTK" = 'yes'; then
11070 GUI_GTK_TRUE=
11071 GUI_GTK_FALSE='#'
11072 else
11073 GUI_GTK_TRUE='#'
11074 GUI_GTK_FALSE=
11075 fi
11079 pkg_failed=no
11080 { echo "$as_me:$LINENO: checking for LIBISOFS" >&5
11081 echo $ECHO_N "checking for LIBISOFS... $ECHO_C" >&6; }
11083 if test -n "$LIBISOFS_CFLAGS"; then
11084 pkg_cv_LIBISOFS_CFLAGS="$LIBISOFS_CFLAGS"
11085 elif test -n "$PKG_CONFIG"; then
11086 if test -n "$PKG_CONFIG" && \
11087 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11088 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11089 ac_status=$?
11090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11091 (exit $ac_status); }; then
11092 pkg_cv_LIBISOFS_CFLAGS=`$PKG_CONFIG --cflags "libisofs-1 " 2>/dev/null`
11093 else
11094 pkg_failed=yes
11095 fi
11096 else
11097 pkg_failed=untried
11098 fi
11099 if test -n "$LIBISOFS_LIBS"; then
11100 pkg_cv_LIBISOFS_LIBS="$LIBISOFS_LIBS"
11101 elif test -n "$PKG_CONFIG"; then
11102 if test -n "$PKG_CONFIG" && \
11103 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libisofs-1 \"") >&5
11104 ($PKG_CONFIG --exists --print-errors "libisofs-1 ") 2>&5
11105 ac_status=$?
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; then
11108 pkg_cv_LIBISOFS_LIBS=`$PKG_CONFIG --libs "libisofs-1 " 2>/dev/null`
11109 else
11110 pkg_failed=yes
11111 fi
11112 else
11113 pkg_failed=untried
11114 fi
11118 if test $pkg_failed = yes; then
11120 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11121 _pkg_short_errors_supported=yes
11122 else
11123 _pkg_short_errors_supported=no
11124 fi
11125 if test $_pkg_short_errors_supported = yes; then
11126 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libisofs-1 " 2>&1`
11127 else
11128 LIBISOFS_PKG_ERRORS=`$PKG_CONFIG --print-errors "libisofs-1 " 2>&1`
11129 fi
11130 # Put the nasty error message in config.log where it belongs
11131 echo "$LIBISOFS_PKG_ERRORS" >&5
11133 { { echo "$as_me:$LINENO: error: Package requirements (libisofs-1 ) were not met:
11135 $LIBISOFS_PKG_ERRORS
11137 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11138 installed software in a non-standard prefix.
11140 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11141 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11142 See the pkg-config man page for more details.
11143 " >&5
11144 echo "$as_me: error: Package requirements (libisofs-1 ) were not met:
11146 $LIBISOFS_PKG_ERRORS
11148 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11149 installed software in a non-standard prefix.
11151 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11152 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11153 See the pkg-config man page for more details.
11154 " >&2;}
11155 { (exit 1); exit 1; }; }
11156 elif test $pkg_failed = untried; then
11157 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11158 is in your PATH or set the PKG_CONFIG environment variable to the full
11159 path to pkg-config.
11161 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11162 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11163 See the pkg-config man page for more details.
11165 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11166 See \`config.log' for more details." >&5
11167 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11168 is in your PATH or set the PKG_CONFIG environment variable to the full
11169 path to pkg-config.
11171 Alternatively, you may set the environment variables LIBISOFS_CFLAGS
11172 and LIBISOFS_LIBS to avoid the need to call pkg-config.
11173 See the pkg-config man page for more details.
11175 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11176 See \`config.log' for more details." >&2;}
11177 { (exit 1); exit 1; }; }
11178 else
11179 LIBISOFS_CFLAGS=$pkg_cv_LIBISOFS_CFLAGS
11180 LIBISOFS_LIBS=$pkg_cv_LIBISOFS_LIBS
11181 { echo "$as_me:$LINENO: result: yes" >&5
11182 echo "${ECHO_T}yes" >&6; }
11183 :
11184 fi
11186 if test "x$with_osmesa" != xno; then
11190 { echo "$as_me:$LINENO: checking for OSMesaCreateContext in -lOSMesa" >&5
11191 echo $ECHO_N "checking for OSMesaCreateContext in -lOSMesa... $ECHO_C" >&6; }
11192 if test "${ac_cv_lib_OSMesa_OSMesaCreateContext+set}" = set; then
11193 echo $ECHO_N "(cached) $ECHO_C" >&6
11194 else
11195 ac_check_lib_save_LIBS=$LIBS
11196 LIBS="-lOSMesa $LIBS"
11197 cat >conftest.$ac_ext <<_ACEOF
11198 /* confdefs.h. */
11199 _ACEOF
11200 cat confdefs.h >>conftest.$ac_ext
11201 cat >>conftest.$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11204 /* Override any GCC internal prototype to avoid an error.
11205 Use char because int might match the return type of a GCC
11206 builtin and then its argument prototype would still apply. */
11207 #ifdef __cplusplus
11208 extern "C"
11209 #endif
11210 char OSMesaCreateContext ();
11211 int
11212 main ()
11213 {
11214 return OSMesaCreateContext ();
11215 ;
11216 return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext conftest$ac_exeext
11220 if { (ac_try="$ac_link"
11221 case "(($ac_try" in
11222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_link") 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } && {
11233 test -z "$ac_c_werror_flag" ||
11234 test ! -s conftest.err
11235 } && test -s conftest$ac_exeext &&
11236 $as_test_x conftest$ac_exeext; then
11237 ac_cv_lib_OSMesa_OSMesaCreateContext=yes
11238 else
11239 echo "$as_me: failed program was:" >&5
11240 sed 's/^/| /' conftest.$ac_ext >&5
11242 ac_cv_lib_OSMesa_OSMesaCreateContext=no
11243 fi
11245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11246 conftest$ac_exeext conftest.$ac_ext
11247 LIBS=$ac_check_lib_save_LIBS
11248 fi
11249 { echo "$as_me:$LINENO: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5
11250 echo "${ECHO_T}$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; }
11251 if test $ac_cv_lib_OSMesa_OSMesaCreateContext = yes; then
11252 cat >>confdefs.h <<_ACEOF
11253 #define HAVE_LIBOSMESA 1
11254 _ACEOF
11256 LIBS="-lOSMesa $LIBS"
11258 else
11259 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but OSMesa library could not be found
11260 See \`config.log' for more details." >&5
11261 echo "$as_me: error: --with-osmesa was given, but OSMesa library could not be found
11262 See \`config.log' for more details." >&2;}
11263 { (exit 1); exit 1; }; }
11264 fi
11266 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11267 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11268 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11269 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 fi
11272 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11273 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11274 else
11275 # Is the header compilable?
11276 { echo "$as_me:$LINENO: checking GL/osmesa.h usability" >&5
11277 echo $ECHO_N "checking GL/osmesa.h usability... $ECHO_C" >&6; }
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 $ac_includes_default
11285 #include <GL/osmesa.h>
11286 _ACEOF
11287 rm -f conftest.$ac_objext
11288 if { (ac_try="$ac_compile"
11289 case "(($ac_try" in
11290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291 *) ac_try_echo=$ac_try;;
11292 esac
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294 (eval "$ac_compile") 2>conftest.er1
11295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } && {
11301 test -z "$ac_c_werror_flag" ||
11302 test ! -s conftest.err
11303 } && test -s conftest.$ac_objext; then
11304 ac_header_compiler=yes
11305 else
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 ac_header_compiler=no
11310 fi
11312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11314 echo "${ECHO_T}$ac_header_compiler" >&6; }
11316 # Is the header present?
11317 { echo "$as_me:$LINENO: checking GL/osmesa.h presence" >&5
11318 echo $ECHO_N "checking GL/osmesa.h presence... $ECHO_C" >&6; }
11319 cat >conftest.$ac_ext <<_ACEOF
11320 /* confdefs.h. */
11321 _ACEOF
11322 cat confdefs.h >>conftest.$ac_ext
11323 cat >>conftest.$ac_ext <<_ACEOF
11324 /* end confdefs.h. */
11325 #include <GL/osmesa.h>
11326 _ACEOF
11327 if { (ac_try="$ac_cpp conftest.$ac_ext"
11328 case "(($ac_try" in
11329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330 *) ac_try_echo=$ac_try;;
11331 esac
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } >/dev/null && {
11340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11341 test ! -s conftest.err
11342 }; then
11343 ac_header_preproc=yes
11344 else
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 ac_header_preproc=no
11349 fi
11351 rm -f conftest.err conftest.$ac_ext
11352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11353 echo "${ECHO_T}$ac_header_preproc" >&6; }
11355 # So? What about this header?
11356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11357 yes:no: )
11358 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&5
11359 echo "$as_me: WARNING: GL/osmesa.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&5
11361 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the compiler's result" >&2;}
11362 ac_header_preproc=yes
11363 ;;
11364 no:yes:* )
11365 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: present but cannot be compiled" >&5
11366 echo "$as_me: WARNING: GL/osmesa.h: present but cannot be compiled" >&2;}
11367 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&5
11368 echo "$as_me: WARNING: GL/osmesa.h: check for missing prerequisite headers?" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: see the Autoconf documentation" >&5
11370 echo "$as_me: WARNING: GL/osmesa.h: see the Autoconf documentation" >&2;}
11371 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&5
11372 echo "$as_me: WARNING: GL/osmesa.h: section \"Present But Cannot Be Compiled\"" >&2;}
11373 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&5
11374 echo "$as_me: WARNING: GL/osmesa.h: proceeding with the preprocessor's result" >&2;}
11375 { echo "$as_me:$LINENO: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&5
11376 echo "$as_me: WARNING: GL/osmesa.h: in the future, the compiler will take precedence" >&2;}
11378 ;;
11379 esac
11380 { echo "$as_me:$LINENO: checking for GL/osmesa.h" >&5
11381 echo $ECHO_N "checking for GL/osmesa.h... $ECHO_C" >&6; }
11382 if test "${ac_cv_header_GL_osmesa_h+set}" = set; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 else
11385 ac_cv_header_GL_osmesa_h=$ac_header_preproc
11386 fi
11387 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_osmesa_h" >&5
11388 echo "${ECHO_T}$ac_cv_header_GL_osmesa_h" >&6; }
11390 fi
11391 if test $ac_cv_header_GL_osmesa_h = yes; then
11392 :
11393 else
11394 { { echo "$as_me:$LINENO: error: --with-osmesa was given, but osmesa.h could not be found
11395 See \`config.log' for more details." >&5
11396 echo "$as_me: error: --with-osmesa was given, but osmesa.h could not be found
11397 See \`config.log' for more details." >&2;}
11398 { (exit 1); exit 1; }; }
11399 fi
11402 HAVE_OSMESA='yes'
11403 VIDEO_DRIVERS="$VIDEO_DRIVERS osmesa"
11405 cat >>confdefs.h <<\_ACEOF
11406 #define HAVE_OSMESA 1
11407 _ACEOF
11409 else
11412 if test "x$APPLE_BUILD" != 'xyes'; then
11414 pkg_failed=no
11415 { echo "$as_me:$LINENO: checking for LIBGL" >&5
11416 echo $ECHO_N "checking for LIBGL... $ECHO_C" >&6; }
11418 if test -n "$LIBGL_CFLAGS"; then
11419 pkg_cv_LIBGL_CFLAGS="$LIBGL_CFLAGS"
11420 elif test -n "$PKG_CONFIG"; then
11421 if test -n "$PKG_CONFIG" && \
11422 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11423 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11424 ac_status=$?
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; then
11427 pkg_cv_LIBGL_CFLAGS=`$PKG_CONFIG --cflags "gl " 2>/dev/null`
11428 else
11429 pkg_failed=yes
11430 fi
11431 else
11432 pkg_failed=untried
11433 fi
11434 if test -n "$LIBGL_LIBS"; then
11435 pkg_cv_LIBGL_LIBS="$LIBGL_LIBS"
11436 elif test -n "$PKG_CONFIG"; then
11437 if test -n "$PKG_CONFIG" && \
11438 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gl \"") >&5
11439 ($PKG_CONFIG --exists --print-errors "gl ") 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; then
11443 pkg_cv_LIBGL_LIBS=`$PKG_CONFIG --libs "gl " 2>/dev/null`
11444 else
11445 pkg_failed=yes
11446 fi
11447 else
11448 pkg_failed=untried
11449 fi
11453 if test $pkg_failed = yes; then
11455 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11456 _pkg_short_errors_supported=yes
11457 else
11458 _pkg_short_errors_supported=no
11459 fi
11460 if test $_pkg_short_errors_supported = yes; then
11461 LIBGL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gl " 2>&1`
11462 else
11463 LIBGL_PKG_ERRORS=`$PKG_CONFIG --print-errors "gl " 2>&1`
11464 fi
11465 # Put the nasty error message in config.log where it belongs
11466 echo "$LIBGL_PKG_ERRORS" >&5
11468 { { echo "$as_me:$LINENO: error: Package requirements (gl ) were not met:
11470 $LIBGL_PKG_ERRORS
11472 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11473 installed software in a non-standard prefix.
11475 Alternatively, you may set the environment variables LIBGL_CFLAGS
11476 and LIBGL_LIBS to avoid the need to call pkg-config.
11477 See the pkg-config man page for more details.
11478 " >&5
11479 echo "$as_me: error: Package requirements (gl ) were not met:
11481 $LIBGL_PKG_ERRORS
11483 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11484 installed software in a non-standard prefix.
11486 Alternatively, you may set the environment variables LIBGL_CFLAGS
11487 and LIBGL_LIBS to avoid the need to call pkg-config.
11488 See the pkg-config man page for more details.
11489 " >&2;}
11490 { (exit 1); exit 1; }; }
11491 elif test $pkg_failed = untried; then
11492 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
11493 is in your PATH or set the PKG_CONFIG environment variable to the full
11494 path to pkg-config.
11496 Alternatively, you may set the environment variables LIBGL_CFLAGS
11497 and LIBGL_LIBS to avoid the need to call pkg-config.
11498 See the pkg-config man page for more details.
11500 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11501 See \`config.log' for more details." >&5
11502 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
11503 is in your PATH or set the PKG_CONFIG environment variable to the full
11504 path to pkg-config.
11506 Alternatively, you may set the environment variables LIBGL_CFLAGS
11507 and LIBGL_LIBS to avoid the need to call pkg-config.
11508 See the pkg-config man page for more details.
11510 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11511 See \`config.log' for more details." >&2;}
11512 { (exit 1); exit 1; }; }
11513 else
11514 LIBGL_CFLAGS=$pkg_cv_LIBGL_CFLAGS
11515 LIBGL_LIBS=$pkg_cv_LIBGL_LIBS
11516 { echo "$as_me:$LINENO: result: yes" >&5
11517 echo "${ECHO_T}yes" >&6; }
11518 :
11519 fi
11520 LIBS="$LIBS $LIBGL_LIBS";
11521 CPPFLAGS="$CPPFLAGS $LIBGL_CFLAGS";
11522 else
11523 { echo "$as_me:$LINENO: checking for NSOpenGLGetVersion" >&5
11524 echo $ECHO_N "checking for NSOpenGLGetVersion... $ECHO_C" >&6; }
11525 if test "${ac_cv_func_NSOpenGLGetVersion+set}" = set; then
11526 echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528 cat >conftest.$ac_ext <<_ACEOF
11529 /* confdefs.h. */
11530 _ACEOF
11531 cat confdefs.h >>conftest.$ac_ext
11532 cat >>conftest.$ac_ext <<_ACEOF
11533 /* end confdefs.h. */
11534 /* Define NSOpenGLGetVersion to an innocuous variant, in case <limits.h> declares NSOpenGLGetVersion.
11535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11536 #define NSOpenGLGetVersion innocuous_NSOpenGLGetVersion
11538 /* System header to define __stub macros and hopefully few prototypes,
11539 which can conflict with char NSOpenGLGetVersion (); below.
11540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11541 <limits.h> exists even on freestanding compilers. */
11543 #ifdef __STDC__
11544 # include <limits.h>
11545 #else
11546 # include <assert.h>
11547 #endif
11549 #undef NSOpenGLGetVersion
11551 /* Override any GCC internal prototype to avoid an error.
11552 Use char because int might match the return type of a GCC
11553 builtin and then its argument prototype would still apply. */
11554 #ifdef __cplusplus
11555 extern "C"
11556 #endif
11557 char NSOpenGLGetVersion ();
11558 /* The GNU C library defines this for functions which it implements
11559 to always fail with ENOSYS. Some functions are actually named
11560 something starting with __ and the normal name is an alias. */
11561 #if defined __stub_NSOpenGLGetVersion || defined __stub___NSOpenGLGetVersion
11562 choke me
11563 #endif
11565 int
11566 main ()
11567 {
11568 return NSOpenGLGetVersion ();
11569 ;
11570 return 0;
11571 }
11572 _ACEOF
11573 rm -f conftest.$ac_objext conftest$ac_exeext
11574 if { (ac_try="$ac_link"
11575 case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_link") 2>conftest.er1
11581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } && {
11587 test -z "$ac_c_werror_flag" ||
11588 test ! -s conftest.err
11589 } && test -s conftest$ac_exeext &&
11590 $as_test_x conftest$ac_exeext; then
11591 ac_cv_func_NSOpenGLGetVersion=yes
11592 else
11593 echo "$as_me: failed program was:" >&5
11594 sed 's/^/| /' conftest.$ac_ext >&5
11596 ac_cv_func_NSOpenGLGetVersion=no
11597 fi
11599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11600 conftest$ac_exeext conftest.$ac_ext
11601 fi
11602 { echo "$as_me:$LINENO: result: $ac_cv_func_NSOpenGLGetVersion" >&5
11603 echo "${ECHO_T}$ac_cv_func_NSOpenGLGetVersion" >&6; }
11604 if test $ac_cv_func_NSOpenGLGetVersion = yes; then
11606 HAVE_NSGL='yes'
11607 VIDEO_DRIVERS="$VIDEO_DRIVERS nsgl"
11609 cat >>confdefs.h <<\_ACEOF
11610 #define HAVE_NSGL 1
11611 _ACEOF
11613 fi
11615 fi
11617 if test "x$HAVE_GTK_X11" = "xyes"; then
11618 if test "x$APPLE_BUILD" = "xyes"; then
11619 LIBS="$LIBS -L/usr/X11/lib -lGL"
11620 fi
11621 { echo "$as_me:$LINENO: checking for glXQueryVersion" >&5
11622 echo $ECHO_N "checking for glXQueryVersion... $ECHO_C" >&6; }
11623 if test "${ac_cv_func_glXQueryVersion+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11625 else
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 /* Define glXQueryVersion to an innocuous variant, in case <limits.h> declares glXQueryVersion.
11633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11634 #define glXQueryVersion innocuous_glXQueryVersion
11636 /* System header to define __stub macros and hopefully few prototypes,
11637 which can conflict with char glXQueryVersion (); below.
11638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11639 <limits.h> exists even on freestanding compilers. */
11641 #ifdef __STDC__
11642 # include <limits.h>
11643 #else
11644 # include <assert.h>
11645 #endif
11647 #undef glXQueryVersion
11649 /* Override any GCC internal prototype to avoid an error.
11650 Use char because int might match the return type of a GCC
11651 builtin and then its argument prototype would still apply. */
11652 #ifdef __cplusplus
11653 extern "C"
11654 #endif
11655 char glXQueryVersion ();
11656 /* The GNU C library defines this for functions which it implements
11657 to always fail with ENOSYS. Some functions are actually named
11658 something starting with __ and the normal name is an alias. */
11659 #if defined __stub_glXQueryVersion || defined __stub___glXQueryVersion
11660 choke me
11661 #endif
11663 int
11664 main ()
11665 {
11666 return glXQueryVersion ();
11667 ;
11668 return 0;
11669 }
11670 _ACEOF
11671 rm -f conftest.$ac_objext conftest$ac_exeext
11672 if { (ac_try="$ac_link"
11673 case "(($ac_try" in
11674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675 *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678 (eval "$ac_link") 2>conftest.er1
11679 ac_status=$?
11680 grep -v '^ *+' conftest.er1 >conftest.err
11681 rm -f conftest.er1
11682 cat conftest.err >&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); } && {
11685 test -z "$ac_c_werror_flag" ||
11686 test ! -s conftest.err
11687 } && test -s conftest$ac_exeext &&
11688 $as_test_x conftest$ac_exeext; then
11689 ac_cv_func_glXQueryVersion=yes
11690 else
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 ac_cv_func_glXQueryVersion=no
11695 fi
11697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11698 conftest$ac_exeext conftest.$ac_ext
11699 fi
11700 { echo "$as_me:$LINENO: result: $ac_cv_func_glXQueryVersion" >&5
11701 echo "${ECHO_T}$ac_cv_func_glXQueryVersion" >&6; }
11702 if test $ac_cv_func_glXQueryVersion = yes; then
11704 HAVE_GLX='yes'
11705 VIDEO_DRIVERS="$VIDEO_DRIVERS glx"
11707 cat >>confdefs.h <<\_ACEOF
11708 #define HAVE_GLX 1
11709 _ACEOF
11711 fi
11713 fi
11716 fi
11723 if test "x$HAVE_OSMESA" = "xyes"; then
11724 VIDEO_OSMESA_TRUE=
11725 VIDEO_OSMESA_FALSE='#'
11726 else
11727 VIDEO_OSMESA_TRUE='#'
11728 VIDEO_OSMESA_FALSE=
11729 fi
11733 if test "x$HAVE_GLX" = "xyes"; then
11734 VIDEO_GLX_TRUE=
11735 VIDEO_GLX_FALSE='#'
11736 else
11737 VIDEO_GLX_TRUE='#'
11738 VIDEO_GLX_FALSE=
11739 fi
11743 if test "x$HAVE_NSGL" = "xyes"; then
11744 VIDEO_NSGL_TRUE=
11745 VIDEO_NSGL_FALSE='#'
11746 else
11747 VIDEO_NSGL_TRUE='#'
11748 VIDEO_NSGL_FALSE=
11749 fi
11752 { echo "$as_me:$LINENO: checking for glGenFramebuffers" >&5
11753 echo $ECHO_N "checking for glGenFramebuffers... $ECHO_C" >&6; }
11754 if test "${ac_cv_func_glGenFramebuffers+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 else
11757 cat >conftest.$ac_ext <<_ACEOF
11758 /* confdefs.h. */
11759 _ACEOF
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11763 /* Define glGenFramebuffers to an innocuous variant, in case <limits.h> declares glGenFramebuffers.
11764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11765 #define glGenFramebuffers innocuous_glGenFramebuffers
11767 /* System header to define __stub macros and hopefully few prototypes,
11768 which can conflict with char glGenFramebuffers (); below.
11769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11770 <limits.h> exists even on freestanding compilers. */
11772 #ifdef __STDC__
11773 # include <limits.h>
11774 #else
11775 # include <assert.h>
11776 #endif
11778 #undef glGenFramebuffers
11780 /* Override any GCC internal prototype to avoid an error.
11781 Use char because int might match the return type of a GCC
11782 builtin and then its argument prototype would still apply. */
11783 #ifdef __cplusplus
11784 extern "C"
11785 #endif
11786 char glGenFramebuffers ();
11787 /* The GNU C library defines this for functions which it implements
11788 to always fail with ENOSYS. Some functions are actually named
11789 something starting with __ and the normal name is an alias. */
11790 #if defined __stub_glGenFramebuffers || defined __stub___glGenFramebuffers
11791 choke me
11792 #endif
11794 int
11795 main ()
11796 {
11797 return glGenFramebuffers ();
11798 ;
11799 return 0;
11800 }
11801 _ACEOF
11802 rm -f conftest.$ac_objext conftest$ac_exeext
11803 if { (ac_try="$ac_link"
11804 case "(($ac_try" in
11805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11807 esac
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_link") 2>conftest.er1
11810 ac_status=$?
11811 grep -v '^ *+' conftest.er1 >conftest.err
11812 rm -f conftest.er1
11813 cat conftest.err >&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } && {
11816 test -z "$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11818 } && test -s conftest$ac_exeext &&
11819 $as_test_x conftest$ac_exeext; then
11820 ac_cv_func_glGenFramebuffers=yes
11821 else
11822 echo "$as_me: failed program was:" >&5
11823 sed 's/^/| /' conftest.$ac_ext >&5
11825 ac_cv_func_glGenFramebuffers=no
11826 fi
11828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11829 conftest$ac_exeext conftest.$ac_ext
11830 fi
11831 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffers" >&5
11832 echo "${ECHO_T}$ac_cv_func_glGenFramebuffers" >&6; }
11833 if test $ac_cv_func_glGenFramebuffers = yes; then
11835 cat >>confdefs.h <<\_ACEOF
11836 #define HAVE_OPENGL_FBO 1
11837 _ACEOF
11839 fi
11841 { echo "$as_me:$LINENO: checking for glGenFramebuffersEXT" >&5
11842 echo $ECHO_N "checking for glGenFramebuffersEXT... $ECHO_C" >&6; }
11843 if test "${ac_cv_func_glGenFramebuffersEXT+set}" = set; then
11844 echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h. */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11852 /* Define glGenFramebuffersEXT to an innocuous variant, in case <limits.h> declares glGenFramebuffersEXT.
11853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11854 #define glGenFramebuffersEXT innocuous_glGenFramebuffersEXT
11856 /* System header to define __stub macros and hopefully few prototypes,
11857 which can conflict with char glGenFramebuffersEXT (); below.
11858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11859 <limits.h> exists even on freestanding compilers. */
11861 #ifdef __STDC__
11862 # include <limits.h>
11863 #else
11864 # include <assert.h>
11865 #endif
11867 #undef glGenFramebuffersEXT
11869 /* Override any GCC internal prototype to avoid an error.
11870 Use char because int might match the return type of a GCC
11871 builtin and then its argument prototype would still apply. */
11872 #ifdef __cplusplus
11873 extern "C"
11874 #endif
11875 char glGenFramebuffersEXT ();
11876 /* The GNU C library defines this for functions which it implements
11877 to always fail with ENOSYS. Some functions are actually named
11878 something starting with __ and the normal name is an alias. */
11879 #if defined __stub_glGenFramebuffersEXT || defined __stub___glGenFramebuffersEXT
11880 choke me
11881 #endif
11883 int
11884 main ()
11885 {
11886 return glGenFramebuffersEXT ();
11887 ;
11888 return 0;
11889 }
11890 _ACEOF
11891 rm -f conftest.$ac_objext conftest$ac_exeext
11892 if { (ac_try="$ac_link"
11893 case "(($ac_try" in
11894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11895 *) ac_try_echo=$ac_try;;
11896 esac
11897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11898 (eval "$ac_link") 2>conftest.er1
11899 ac_status=$?
11900 grep -v '^ *+' conftest.er1 >conftest.err
11901 rm -f conftest.er1
11902 cat conftest.err >&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); } && {
11905 test -z "$ac_c_werror_flag" ||
11906 test ! -s conftest.err
11907 } && test -s conftest$ac_exeext &&
11908 $as_test_x conftest$ac_exeext; then
11909 ac_cv_func_glGenFramebuffersEXT=yes
11910 else
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11914 ac_cv_func_glGenFramebuffersEXT=no
11915 fi
11917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11918 conftest$ac_exeext conftest.$ac_ext
11919 fi
11920 { echo "$as_me:$LINENO: result: $ac_cv_func_glGenFramebuffersEXT" >&5
11921 echo "${ECHO_T}$ac_cv_func_glGenFramebuffersEXT" >&6; }
11922 if test $ac_cv_func_glGenFramebuffersEXT = yes; then
11924 cat >>confdefs.h <<\_ACEOF
11925 #define HAVE_OPENGL_FBO_EXT 1
11926 _ACEOF
11928 fi
11930 { echo "$as_me:$LINENO: checking for glCreateShader" >&5
11931 echo $ECHO_N "checking for glCreateShader... $ECHO_C" >&6; }
11932 if test "${ac_cv_func_glCreateShader+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935 cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h. */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 /* Define glCreateShader to an innocuous variant, in case <limits.h> declares glCreateShader.
11942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11943 #define glCreateShader innocuous_glCreateShader
11945 /* System header to define __stub macros and hopefully few prototypes,
11946 which can conflict with char glCreateShader (); below.
11947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11948 <limits.h> exists even on freestanding compilers. */
11950 #ifdef __STDC__
11951 # include <limits.h>
11952 #else
11953 # include <assert.h>
11954 #endif
11956 #undef glCreateShader
11958 /* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11961 #ifdef __cplusplus
11962 extern "C"
11963 #endif
11964 char glCreateShader ();
11965 /* The GNU C library defines this for functions which it implements
11966 to always fail with ENOSYS. Some functions are actually named
11967 something starting with __ and the normal name is an alias. */
11968 #if defined __stub_glCreateShader || defined __stub___glCreateShader
11969 choke me
11970 #endif
11972 int
11973 main ()
11974 {
11975 return glCreateShader ();
11976 ;
11977 return 0;
11978 }
11979 _ACEOF
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (ac_try="$ac_link"
11982 case "(($ac_try" in
11983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11984 *) ac_try_echo=$ac_try;;
11985 esac
11986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11987 (eval "$ac_link") 2>conftest.er1
11988 ac_status=$?
11989 grep -v '^ *+' conftest.er1 >conftest.err
11990 rm -f conftest.er1
11991 cat conftest.err >&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); } && {
11994 test -z "$ac_c_werror_flag" ||
11995 test ! -s conftest.err
11996 } && test -s conftest$ac_exeext &&
11997 $as_test_x conftest$ac_exeext; then
11998 ac_cv_func_glCreateShader=yes
11999 else
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12003 ac_cv_func_glCreateShader=no
12004 fi
12006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12007 conftest$ac_exeext conftest.$ac_ext
12008 fi
12009 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShader" >&5
12010 echo "${ECHO_T}$ac_cv_func_glCreateShader" >&6; }
12011 if test $ac_cv_func_glCreateShader = yes; then
12013 cat >>confdefs.h <<\_ACEOF
12014 #define HAVE_OPENGL_SHADER 1
12015 _ACEOF
12017 fi
12019 { echo "$as_me:$LINENO: checking for glCreateShaderObjectARB" >&5
12020 echo $ECHO_N "checking for glCreateShaderObjectARB... $ECHO_C" >&6; }
12021 if test "${ac_cv_func_glCreateShaderObjectARB+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024 cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h. */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12030 /* Define glCreateShaderObjectARB to an innocuous variant, in case <limits.h> declares glCreateShaderObjectARB.
12031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12032 #define glCreateShaderObjectARB innocuous_glCreateShaderObjectARB
12034 /* System header to define __stub macros and hopefully few prototypes,
12035 which can conflict with char glCreateShaderObjectARB (); below.
12036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12037 <limits.h> exists even on freestanding compilers. */
12039 #ifdef __STDC__
12040 # include <limits.h>
12041 #else
12042 # include <assert.h>
12043 #endif
12045 #undef glCreateShaderObjectARB
12047 /* Override any GCC internal prototype to avoid an error.
12048 Use char because int might match the return type of a GCC
12049 builtin and then its argument prototype would still apply. */
12050 #ifdef __cplusplus
12051 extern "C"
12052 #endif
12053 char glCreateShaderObjectARB ();
12054 /* The GNU C library defines this for functions which it implements
12055 to always fail with ENOSYS. Some functions are actually named
12056 something starting with __ and the normal name is an alias. */
12057 #if defined __stub_glCreateShaderObjectARB || defined __stub___glCreateShaderObjectARB
12058 choke me
12059 #endif
12061 int
12062 main ()
12063 {
12064 return glCreateShaderObjectARB ();
12065 ;
12066 return 0;
12067 }
12068 _ACEOF
12069 rm -f conftest.$ac_objext conftest$ac_exeext
12070 if { (ac_try="$ac_link"
12071 case "(($ac_try" in
12072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073 *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076 (eval "$ac_link") 2>conftest.er1
12077 ac_status=$?
12078 grep -v '^ *+' conftest.er1 >conftest.err
12079 rm -f conftest.er1
12080 cat conftest.err >&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } && {
12083 test -z "$ac_c_werror_flag" ||
12084 test ! -s conftest.err
12085 } && test -s conftest$ac_exeext &&
12086 $as_test_x conftest$ac_exeext; then
12087 ac_cv_func_glCreateShaderObjectARB=yes
12088 else
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12092 ac_cv_func_glCreateShaderObjectARB=no
12093 fi
12095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12096 conftest$ac_exeext conftest.$ac_ext
12097 fi
12098 { echo "$as_me:$LINENO: result: $ac_cv_func_glCreateShaderObjectARB" >&5
12099 echo "${ECHO_T}$ac_cv_func_glCreateShaderObjectARB" >&6; }
12100 if test $ac_cv_func_glCreateShaderObjectARB = yes; then
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_OPENGL_SHADER_ARB 1
12104 _ACEOF
12106 fi
12108 { echo "$as_me:$LINENO: checking for glClampColorARB" >&5
12109 echo $ECHO_N "checking for glClampColorARB... $ECHO_C" >&6; }
12110 if test "${ac_cv_func_glClampColorARB+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 else
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h. */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 /* Define glClampColorARB to an innocuous variant, in case <limits.h> declares glClampColorARB.
12120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12121 #define glClampColorARB innocuous_glClampColorARB
12123 /* System header to define __stub macros and hopefully few prototypes,
12124 which can conflict with char glClampColorARB (); below.
12125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12126 <limits.h> exists even on freestanding compilers. */
12128 #ifdef __STDC__
12129 # include <limits.h>
12130 #else
12131 # include <assert.h>
12132 #endif
12134 #undef glClampColorARB
12136 /* Override any GCC internal prototype to avoid an error.
12137 Use char because int might match the return type of a GCC
12138 builtin and then its argument prototype would still apply. */
12139 #ifdef __cplusplus
12140 extern "C"
12141 #endif
12142 char glClampColorARB ();
12143 /* The GNU C library defines this for functions which it implements
12144 to always fail with ENOSYS. Some functions are actually named
12145 something starting with __ and the normal name is an alias. */
12146 #if defined __stub_glClampColorARB || defined __stub___glClampColorARB
12147 choke me
12148 #endif
12150 int
12151 main ()
12152 {
12153 return glClampColorARB ();
12154 ;
12155 return 0;
12156 }
12157 _ACEOF
12158 rm -f conftest.$ac_objext conftest$ac_exeext
12159 if { (ac_try="$ac_link"
12160 case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_link") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest$ac_exeext &&
12175 $as_test_x conftest$ac_exeext; then
12176 ac_cv_func_glClampColorARB=yes
12177 else
12178 echo "$as_me: failed program was:" >&5
12179 sed 's/^/| /' conftest.$ac_ext >&5
12181 ac_cv_func_glClampColorARB=no
12182 fi
12184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12185 conftest$ac_exeext conftest.$ac_ext
12186 fi
12187 { echo "$as_me:$LINENO: result: $ac_cv_func_glClampColorARB" >&5
12188 echo "${ECHO_T}$ac_cv_func_glClampColorARB" >&6; }
12189 if test $ac_cv_func_glClampColorARB = yes; then
12191 cat >>confdefs.h <<\_ACEOF
12192 #define HAVE_OPENGL_CLAMP_COLOR 1
12193 _ACEOF
12195 fi
12197 { echo "$as_me:$LINENO: checking for glClearDepthf" >&5
12198 echo $ECHO_N "checking for glClearDepthf... $ECHO_C" >&6; }
12199 if test "${ac_cv_func_glClearDepthf+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202 cat >conftest.$ac_ext <<_ACEOF
12203 /* confdefs.h. */
12204 _ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 /* Define glClearDepthf to an innocuous variant, in case <limits.h> declares glClearDepthf.
12209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12210 #define glClearDepthf innocuous_glClearDepthf
12212 /* System header to define __stub macros and hopefully few prototypes,
12213 which can conflict with char glClearDepthf (); below.
12214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12215 <limits.h> exists even on freestanding compilers. */
12217 #ifdef __STDC__
12218 # include <limits.h>
12219 #else
12220 # include <assert.h>
12221 #endif
12223 #undef glClearDepthf
12225 /* Override any GCC internal prototype to avoid an error.
12226 Use char because int might match the return type of a GCC
12227 builtin and then its argument prototype would still apply. */
12228 #ifdef __cplusplus
12229 extern "C"
12230 #endif
12231 char glClearDepthf ();
12232 /* The GNU C library defines this for functions which it implements
12233 to always fail with ENOSYS. Some functions are actually named
12234 something starting with __ and the normal name is an alias. */
12235 #if defined __stub_glClearDepthf || defined __stub___glClearDepthf
12236 choke me
12237 #endif
12239 int
12240 main ()
12241 {
12242 return glClearDepthf ();
12243 ;
12244 return 0;
12245 }
12246 _ACEOF
12247 rm -f conftest.$ac_objext conftest$ac_exeext
12248 if { (ac_try="$ac_link"
12249 case "(($ac_try" in
12250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_link") 2>conftest.er1
12255 ac_status=$?
12256 grep -v '^ *+' conftest.er1 >conftest.err
12257 rm -f conftest.er1
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } && {
12261 test -z "$ac_c_werror_flag" ||
12262 test ! -s conftest.err
12263 } && test -s conftest$ac_exeext &&
12264 $as_test_x conftest$ac_exeext; then
12265 ac_cv_func_glClearDepthf=yes
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 ac_cv_func_glClearDepthf=no
12271 fi
12273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12274 conftest$ac_exeext conftest.$ac_ext
12275 fi
12276 { echo "$as_me:$LINENO: result: $ac_cv_func_glClearDepthf" >&5
12277 echo "${ECHO_T}$ac_cv_func_glClearDepthf" >&6; }
12278 if test $ac_cv_func_glClearDepthf = yes; then
12280 cat >>confdefs.h <<\_ACEOF
12281 #define HAVE_OPENGL_CLEAR_DEPTHF 1
12282 _ACEOF
12284 fi
12286 { echo "$as_me:$LINENO: checking for glAreTexturesResident" >&5
12287 echo $ECHO_N "checking for glAreTexturesResident... $ECHO_C" >&6; }
12288 if test "${ac_cv_func_glAreTexturesResident+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h. */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h. */
12297 /* Define glAreTexturesResident to an innocuous variant, in case <limits.h> declares glAreTexturesResident.
12298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12299 #define glAreTexturesResident innocuous_glAreTexturesResident
12301 /* System header to define __stub macros and hopefully few prototypes,
12302 which can conflict with char glAreTexturesResident (); below.
12303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12304 <limits.h> exists even on freestanding compilers. */
12306 #ifdef __STDC__
12307 # include <limits.h>
12308 #else
12309 # include <assert.h>
12310 #endif
12312 #undef glAreTexturesResident
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char glAreTexturesResident ();
12321 /* The GNU C library defines this for functions which it implements
12322 to always fail with ENOSYS. Some functions are actually named
12323 something starting with __ and the normal name is an alias. */
12324 #if defined __stub_glAreTexturesResident || defined __stub___glAreTexturesResident
12325 choke me
12326 #endif
12328 int
12329 main ()
12330 {
12331 return glAreTexturesResident ();
12332 ;
12333 return 0;
12334 }
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_link") 2>conftest.er1
12344 ac_status=$?
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest$ac_exeext &&
12353 $as_test_x conftest$ac_exeext; then
12354 ac_cv_func_glAreTexturesResident=yes
12355 else
12356 echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12359 ac_cv_func_glAreTexturesResident=no
12360 fi
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363 conftest$ac_exeext conftest.$ac_ext
12364 fi
12365 { echo "$as_me:$LINENO: result: $ac_cv_func_glAreTexturesResident" >&5
12366 echo "${ECHO_T}$ac_cv_func_glAreTexturesResident" >&6; }
12367 if test $ac_cv_func_glAreTexturesResident = yes; then
12369 cat >>confdefs.h <<\_ACEOF
12370 #define HAVE_OPENGL_TEX_RESIDENT 1
12371 _ACEOF
12373 fi
12375 { echo "$as_me:$LINENO: checking for glTexEnvi" >&5
12376 echo $ECHO_N "checking for glTexEnvi... $ECHO_C" >&6; }
12377 if test "${ac_cv_func_glTexEnvi+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 else
12380 cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h. */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12386 /* Define glTexEnvi to an innocuous variant, in case <limits.h> declares glTexEnvi.
12387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12388 #define glTexEnvi innocuous_glTexEnvi
12390 /* System header to define __stub macros and hopefully few prototypes,
12391 which can conflict with char glTexEnvi (); below.
12392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12393 <limits.h> exists even on freestanding compilers. */
12395 #ifdef __STDC__
12396 # include <limits.h>
12397 #else
12398 # include <assert.h>
12399 #endif
12401 #undef glTexEnvi
12403 /* Override any GCC internal prototype to avoid an error.
12404 Use char because int might match the return type of a GCC
12405 builtin and then its argument prototype would still apply. */
12406 #ifdef __cplusplus
12407 extern "C"
12408 #endif
12409 char glTexEnvi ();
12410 /* The GNU C library defines this for functions which it implements
12411 to always fail with ENOSYS. Some functions are actually named
12412 something starting with __ and the normal name is an alias. */
12413 #if defined __stub_glTexEnvi || defined __stub___glTexEnvi
12414 choke me
12415 #endif
12417 int
12418 main ()
12419 {
12420 return glTexEnvi ();
12421 ;
12422 return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (ac_try="$ac_link"
12427 case "(($ac_try" in
12428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12429 *) ac_try_echo=$ac_try;;
12430 esac
12431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12432 (eval "$ac_link") 2>conftest.er1
12433 ac_status=$?
12434 grep -v '^ *+' conftest.er1 >conftest.err
12435 rm -f conftest.er1
12436 cat conftest.err >&5
12437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438 (exit $ac_status); } && {
12439 test -z "$ac_c_werror_flag" ||
12440 test ! -s conftest.err
12441 } && test -s conftest$ac_exeext &&
12442 $as_test_x conftest$ac_exeext; then
12443 ac_cv_func_glTexEnvi=yes
12444 else
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 ac_cv_func_glTexEnvi=no
12449 fi
12451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12452 conftest$ac_exeext conftest.$ac_ext
12453 fi
12454 { echo "$as_me:$LINENO: result: $ac_cv_func_glTexEnvi" >&5
12455 echo "${ECHO_T}$ac_cv_func_glTexEnvi" >&6; }
12456 if test $ac_cv_func_glTexEnvi = yes; then
12458 cat >>confdefs.h <<\_ACEOF
12459 #define HAVE_OPENGL_FIXEDFUNC 1
12460 _ACEOF
12462 fi
12468 if test "x$enable_translator" != "xno"; then
12469 case $host_cpu in
12470 i386|i486|i586|i686|x86_64)
12471 SH4_TRANSLATOR="x86"
12473 cat >>confdefs.h <<_ACEOF
12474 #define SH4_TRANSLATOR TARGET_X86
12475 _ACEOF
12476 ;;
12477 esac
12478 fi
12481 if test "$SH4_TRANSLATOR" = "x86"; then
12482 BUILD_SH4X86_TRUE=
12483 BUILD_SH4X86_FALSE='#'
12484 else
12485 BUILD_SH4X86_TRUE='#'
12486 BUILD_SH4X86_FALSE=
12487 fi
12490 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12491 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12492 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12493 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
12495 fi
12496 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12497 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12498 else
12499 # Is the header compilable?
12500 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
12501 echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
12502 cat >conftest.$ac_ext <<_ACEOF
12503 /* confdefs.h. */
12504 _ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12508 $ac_includes_default
12509 #include <CoreAudio/CoreAudio.h>
12510 _ACEOF
12511 rm -f conftest.$ac_objext
12512 if { (ac_try="$ac_compile"
12513 case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12516 esac
12517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12518 (eval "$ac_compile") 2>conftest.er1
12519 ac_status=$?
12520 grep -v '^ *+' conftest.er1 >conftest.err
12521 rm -f conftest.er1
12522 cat conftest.err >&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); } && {
12525 test -z "$ac_c_werror_flag" ||
12526 test ! -s conftest.err
12527 } && test -s conftest.$ac_objext; then
12528 ac_header_compiler=yes
12529 else
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 ac_header_compiler=no
12534 fi
12536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12538 echo "${ECHO_T}$ac_header_compiler" >&6; }
12540 # Is the header present?
12541 { echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
12542 echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
12543 cat >conftest.$ac_ext <<_ACEOF
12544 /* confdefs.h. */
12545 _ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12549 #include <CoreAudio/CoreAudio.h>
12550 _ACEOF
12551 if { (ac_try="$ac_cpp conftest.$ac_ext"
12552 case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12555 esac
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12558 ac_status=$?
12559 grep -v '^ *+' conftest.er1 >conftest.err
12560 rm -f conftest.er1
12561 cat conftest.err >&5
12562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563 (exit $ac_status); } >/dev/null && {
12564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12565 test ! -s conftest.err
12566 }; then
12567 ac_header_preproc=yes
12568 else
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 ac_header_preproc=no
12573 fi
12575 rm -f conftest.err conftest.$ac_ext
12576 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12577 echo "${ECHO_T}$ac_header_preproc" >&6; }
12579 # So? What about this header?
12580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12581 yes:no: )
12582 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12583 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12584 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
12585 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
12586 ac_header_preproc=yes
12587 ;;
12588 no:yes:* )
12589 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
12590 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
12592 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
12594 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
12595 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
12596 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12597 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
12598 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
12599 { echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
12600 echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
12602 ;;
12603 esac
12604 { echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
12605 echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
12606 if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 else
12609 ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
12610 fi
12611 { echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
12612 echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
12614 fi
12615 if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
12617 HAVE_CORE_AUDIO=yes
12618 LIBS="$LIBS -framework CoreAudio"
12619 AUDIO_DRIVERS="$AUDIO_DRIVERS osx"
12621 cat >>confdefs.h <<\_ACEOF
12622 #define HAVE_CORE_AUDIO 1
12623 _ACEOF
12625 else
12626 true
12627 fi
12632 if test "$HAVE_CORE_AUDIO" = 'yes' ; then
12633 AUDIO_OSX_TRUE=
12634 AUDIO_OSX_FALSE='#'
12635 else
12636 AUDIO_OSX_TRUE='#'
12637 AUDIO_OSX_FALSE=
12638 fi
12641 if test "x$with_sdl" != "xno"; then
12643 pkg_failed=no
12644 { echo "$as_me:$LINENO: checking for SDL" >&5
12645 echo $ECHO_N "checking for SDL... $ECHO_C" >&6; }
12647 if test -n "$SDL_CFLAGS"; then
12648 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
12649 elif test -n "$PKG_CONFIG"; then
12650 if test -n "$PKG_CONFIG" && \
12651 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
12652 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12653 ac_status=$?
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); }; then
12656 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
12657 else
12658 pkg_failed=yes
12659 fi
12660 else
12661 pkg_failed=untried
12662 fi
12663 if test -n "$SDL_LIBS"; then
12664 pkg_cv_SDL_LIBS="$SDL_LIBS"
12665 elif test -n "$PKG_CONFIG"; then
12666 if test -n "$PKG_CONFIG" && \
12667 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sdl\"") >&5
12668 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; then
12672 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
12673 else
12674 pkg_failed=yes
12675 fi
12676 else
12677 pkg_failed=untried
12678 fi
12682 if test $pkg_failed = yes; then
12684 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12685 _pkg_short_errors_supported=yes
12686 else
12687 _pkg_short_errors_supported=no
12688 fi
12689 if test $_pkg_short_errors_supported = yes; then
12690 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sdl" 2>&1`
12691 else
12692 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors "sdl" 2>&1`
12693 fi
12694 # Put the nasty error message in config.log where it belongs
12695 echo "$SDL_PKG_ERRORS" >&5
12697 { echo "$as_me:$LINENO: result: no" >&5
12698 echo "${ECHO_T}no" >&6; }
12700 if test "x$with_sdl" = "xyes"; then
12701 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
12702 See \`config.log' for more details." >&5
12703 echo "$as_me: error: \"SDL libraries could not be found (but were required)
12704 See \`config.log' for more details." >&2;}
12705 { (exit 1); exit 1; }; }
12706 fi
12708 elif test $pkg_failed = untried; then
12710 if test "x$with_sdl" = "xyes"; then
12711 { { echo "$as_me:$LINENO: error: \"SDL libraries could not be found (but were required)
12712 See \`config.log' for more details." >&5
12713 echo "$as_me: error: \"SDL libraries could not be found (but were required)
12714 See \`config.log' for more details." >&2;}
12715 { (exit 1); exit 1; }; }
12716 fi
12718 else
12719 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
12720 SDL_LIBS=$pkg_cv_SDL_LIBS
12721 { echo "$as_me:$LINENO: result: yes" >&5
12722 echo "${ECHO_T}yes" >&6; }
12724 HAVE_SDL='yes'
12725 AUDIO_DRIVERS="$AUDIO_DRIVERS sdl"
12727 cat >>confdefs.h <<\_ACEOF
12728 #define HAVE_SDL 1
12729 _ACEOF
12732 fi
12733 fi
12736 if test "$HAVE_SDL" = 'yes' ; then
12737 AUDIO_SDL_TRUE=
12738 AUDIO_SDL_FALSE='#'
12739 else
12740 AUDIO_SDL_TRUE='#'
12741 AUDIO_SDL_FALSE=
12742 fi
12745 if test "x$with_pulse" != "xno"; then
12747 pkg_failed=no
12748 { echo "$as_me:$LINENO: checking for PULSE" >&5
12749 echo $ECHO_N "checking for PULSE... $ECHO_C" >&6; }
12751 if test -n "$PULSE_CFLAGS"; then
12752 pkg_cv_PULSE_CFLAGS="$PULSE_CFLAGS"
12753 elif test -n "$PKG_CONFIG"; then
12754 if test -n "$PKG_CONFIG" && \
12755 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
12756 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; then
12760 pkg_cv_PULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse-simple" 2>/dev/null`
12761 else
12762 pkg_failed=yes
12763 fi
12764 else
12765 pkg_failed=untried
12766 fi
12767 if test -n "$PULSE_LIBS"; then
12768 pkg_cv_PULSE_LIBS="$PULSE_LIBS"
12769 elif test -n "$PKG_CONFIG"; then
12770 if test -n "$PKG_CONFIG" && \
12771 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpulse-simple\"") >&5
12772 ($PKG_CONFIG --exists --print-errors "libpulse-simple") 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; then
12776 pkg_cv_PULSE_LIBS=`$PKG_CONFIG --libs "libpulse-simple" 2>/dev/null`
12777 else
12778 pkg_failed=yes
12779 fi
12780 else
12781 pkg_failed=untried
12782 fi
12786 if test $pkg_failed = yes; then
12788 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12789 _pkg_short_errors_supported=yes
12790 else
12791 _pkg_short_errors_supported=no
12792 fi
12793 if test $_pkg_short_errors_supported = yes; then
12794 PULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse-simple" 2>&1`
12795 else
12796 PULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse-simple" 2>&1`
12797 fi
12798 # Put the nasty error message in config.log where it belongs
12799 echo "$PULSE_PKG_ERRORS" >&5
12801 { echo "$as_me:$LINENO: result: no" >&5
12802 echo "${ECHO_T}no" >&6; }
12804 if test "x$with_pulse" = "xyes"; then
12805 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
12806 See \`config.log' for more details." >&5
12807 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
12808 See \`config.log' for more details." >&2;}
12809 { (exit 1); exit 1; }; }
12810 fi
12812 elif test $pkg_failed = untried; then
12814 if test "x$with_pulse" = "xyes"; then
12815 { { echo "$as_me:$LINENO: error: PulseAudio audio package could not be found (but was required)
12816 See \`config.log' for more details." >&5
12817 echo "$as_me: error: PulseAudio audio package could not be found (but was required)
12818 See \`config.log' for more details." >&2;}
12819 { (exit 1); exit 1; }; }
12820 fi
12822 else
12823 PULSE_CFLAGS=$pkg_cv_PULSE_CFLAGS
12824 PULSE_LIBS=$pkg_cv_PULSE_LIBS
12825 { echo "$as_me:$LINENO: result: yes" >&5
12826 echo "${ECHO_T}yes" >&6; }
12828 HAVE_PULSE='yes'
12829 AUDIO_DRIVERS="$AUDIO_DRIVERS pulse"
12831 cat >>confdefs.h <<\_ACEOF
12832 #define HAVE_PULSE 1
12833 _ACEOF
12836 fi
12837 fi
12840 if test "$HAVE_PULSE" = 'yes' ; then
12841 AUDIO_PULSE_TRUE=
12842 AUDIO_PULSE_FALSE='#'
12843 else
12844 AUDIO_PULSE_TRUE='#'
12845 AUDIO_PULSE_FALSE=
12846 fi
12849 if test "x$with_esd" != "xno"; then
12851 pkg_failed=no
12852 { echo "$as_me:$LINENO: checking for ESOUND" >&5
12853 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
12855 if test -n "$ESOUND_CFLAGS"; then
12856 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
12857 elif test -n "$PKG_CONFIG"; then
12858 if test -n "$PKG_CONFIG" && \
12859 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12860 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; then
12864 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
12865 else
12866 pkg_failed=yes
12867 fi
12868 else
12869 pkg_failed=untried
12870 fi
12871 if test -n "$ESOUND_LIBS"; then
12872 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
12873 elif test -n "$PKG_CONFIG"; then
12874 if test -n "$PKG_CONFIG" && \
12875 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
12876 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); }; then
12880 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
12881 else
12882 pkg_failed=yes
12883 fi
12884 else
12885 pkg_failed=untried
12886 fi
12890 if test $pkg_failed = yes; then
12892 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12893 _pkg_short_errors_supported=yes
12894 else
12895 _pkg_short_errors_supported=no
12896 fi
12897 if test $_pkg_short_errors_supported = yes; then
12898 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "esound" 2>&1`
12899 else
12900 ESOUND_PKG_ERRORS=`$PKG_CONFIG --print-errors "esound" 2>&1`
12901 fi
12902 # Put the nasty error message in config.log where it belongs
12903 echo "$ESOUND_PKG_ERRORS" >&5
12905 { echo "$as_me:$LINENO: result: no" >&5
12906 echo "${ECHO_T}no" >&6; }
12908 if test "x$with_esd" = "xyes"; then
12909 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
12910 See \`config.log' for more details." >&5
12911 echo "$as_me: error: ESounD audio package could not be found (but was required)
12912 See \`config.log' for more details." >&2;}
12913 { (exit 1); exit 1; }; }
12914 fi
12916 elif test $pkg_failed = untried; then
12918 if test "x$with_esd" = "xyes"; then
12919 { { echo "$as_me:$LINENO: error: ESounD audio package could not be found (but was required)
12920 See \`config.log' for more details." >&5
12921 echo "$as_me: error: ESounD audio package could not be found (but was required)
12922 See \`config.log' for more details." >&2;}
12923 { (exit 1); exit 1; }; }
12924 fi
12926 else
12927 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
12928 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
12929 { echo "$as_me:$LINENO: result: yes" >&5
12930 echo "${ECHO_T}yes" >&6; }
12932 HAVE_ESOUND='yes'
12933 AUDIO_DRIVERS="$AUDIO_DRIVERS esd"
12935 cat >>confdefs.h <<\_ACEOF
12936 #define HAVE_ESOUND 1
12937 _ACEOF
12940 fi
12941 fi
12944 if test "$HAVE_ESOUND" = 'yes' ; then
12945 AUDIO_ESOUND_TRUE=
12946 AUDIO_ESOUND_FALSE='#'
12947 else
12948 AUDIO_ESOUND_TRUE='#'
12949 AUDIO_ESOUND_FALSE=
12950 fi
12954 pkg_failed=no
12955 { echo "$as_me:$LINENO: checking for ALSA" >&5
12956 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
12958 if test -n "$ALSA_CFLAGS"; then
12959 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
12960 elif test -n "$PKG_CONFIG"; then
12961 if test -n "$PKG_CONFIG" && \
12962 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12963 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12964 ac_status=$?
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; then
12967 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
12968 else
12969 pkg_failed=yes
12970 fi
12971 else
12972 pkg_failed=untried
12973 fi
12974 if test -n "$ALSA_LIBS"; then
12975 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
12976 elif test -n "$PKG_CONFIG"; then
12977 if test -n "$PKG_CONFIG" && \
12978 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
12979 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; then
12983 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
12984 else
12985 pkg_failed=yes
12986 fi
12987 else
12988 pkg_failed=untried
12989 fi
12993 if test $pkg_failed = yes; then
12995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12996 _pkg_short_errors_supported=yes
12997 else
12998 _pkg_short_errors_supported=no
12999 fi
13000 if test $_pkg_short_errors_supported = yes; then
13001 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
13002 else
13003 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
13004 fi
13005 # Put the nasty error message in config.log where it belongs
13006 echo "$ALSA_PKG_ERRORS" >&5
13008 { echo "$as_me:$LINENO: result: no" >&5
13009 echo "${ECHO_T}no" >&6; }
13010 true
13011 elif test $pkg_failed = untried; then
13012 true
13013 else
13014 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
13015 ALSA_LIBS=$pkg_cv_ALSA_LIBS
13016 { echo "$as_me:$LINENO: result: yes" >&5
13017 echo "${ECHO_T}yes" >&6; }
13019 HAVE_ALSA='yes'
13020 AUDIO_DRIVERS="$AUDIO_DRIVERS alsa"
13022 cat >>confdefs.h <<\_ACEOF
13023 #define HAVE_ALSA 1
13024 _ACEOF
13026 fi
13029 if test "$HAVE_ALSA" = 'yes' ; then
13030 AUDIO_ALSA_TRUE=
13031 AUDIO_ALSA_FALSE='#'
13032 else
13033 AUDIO_ALSA_TRUE='#'
13034 AUDIO_ALSA_FALSE=
13035 fi
13039 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13040 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13041 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13042 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13043 echo $ECHO_N "(cached) $ECHO_C" >&6
13044 fi
13045 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13046 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13047 else
13048 # Is the header compilable?
13049 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
13050 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
13051 cat >conftest.$ac_ext <<_ACEOF
13052 /* confdefs.h. */
13053 _ACEOF
13054 cat confdefs.h >>conftest.$ac_ext
13055 cat >>conftest.$ac_ext <<_ACEOF
13056 /* end confdefs.h. */
13057 $ac_includes_default
13058 #include <linux/cdrom.h>
13059 _ACEOF
13060 rm -f conftest.$ac_objext
13061 if { (ac_try="$ac_compile"
13062 case "(($ac_try" in
13063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13064 *) ac_try_echo=$ac_try;;
13065 esac
13066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13067 (eval "$ac_compile") 2>conftest.er1
13068 ac_status=$?
13069 grep -v '^ *+' conftest.er1 >conftest.err
13070 rm -f conftest.er1
13071 cat conftest.err >&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); } && {
13074 test -z "$ac_c_werror_flag" ||
13075 test ! -s conftest.err
13076 } && test -s conftest.$ac_objext; then
13077 ac_header_compiler=yes
13078 else
13079 echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13082 ac_header_compiler=no
13083 fi
13085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13086 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13087 echo "${ECHO_T}$ac_header_compiler" >&6; }
13089 # Is the header present?
13090 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
13091 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
13092 cat >conftest.$ac_ext <<_ACEOF
13093 /* confdefs.h. */
13094 _ACEOF
13095 cat confdefs.h >>conftest.$ac_ext
13096 cat >>conftest.$ac_ext <<_ACEOF
13097 /* end confdefs.h. */
13098 #include <linux/cdrom.h>
13099 _ACEOF
13100 if { (ac_try="$ac_cpp conftest.$ac_ext"
13101 case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13104 esac
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13107 ac_status=$?
13108 grep -v '^ *+' conftest.er1 >conftest.err
13109 rm -f conftest.er1
13110 cat conftest.err >&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } >/dev/null && {
13113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13114 test ! -s conftest.err
13115 }; then
13116 ac_header_preproc=yes
13117 else
13118 echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 ac_header_preproc=no
13122 fi
13124 rm -f conftest.err conftest.$ac_ext
13125 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13126 echo "${ECHO_T}$ac_header_preproc" >&6; }
13128 # So? What about this header?
13129 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13130 yes:no: )
13131 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
13132 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
13134 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
13135 ac_header_preproc=yes
13136 ;;
13137 no:yes:* )
13138 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
13139 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
13141 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
13143 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
13144 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
13145 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
13146 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
13147 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
13148 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
13149 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
13151 ;;
13152 esac
13153 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
13154 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
13155 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13157 else
13158 ac_cv_header_linux_cdrom_h=$ac_header_preproc
13159 fi
13160 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
13161 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
13163 fi
13164 if test $ac_cv_header_linux_cdrom_h = yes; then
13166 CDROM_DRIVER=linux
13167 { echo "$as_me:$LINENO: checking C99 compliant kernel headers" >&5
13168 echo $ECHO_N "checking C99 compliant kernel headers... $ECHO_C" >&6; }
13169 old_CFLAGS="$CFLAGS"
13170 CFLAGS="$CFLAGS $STDCFLAG"
13171 cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h. */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13177 #include <linux/cdrom.h>
13178 int
13179 main ()
13180 {
13182 ;
13183 return 0;
13184 }
13185 _ACEOF
13186 rm -f conftest.$ac_objext
13187 if { (ac_try="$ac_compile"
13188 case "(($ac_try" in
13189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190 *) ac_try_echo=$ac_try;;
13191 esac
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193 (eval "$ac_compile") 2>conftest.er1
13194 ac_status=$?
13195 grep -v '^ *+' conftest.er1 >conftest.err
13196 rm -f conftest.er1
13197 cat conftest.err >&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); } && {
13200 test -z "$ac_c_werror_flag" ||
13201 test ! -s conftest.err
13202 } && test -s conftest.$ac_objext; then
13203 { echo "$as_me:$LINENO: result: Yes" >&5
13204 echo "${ECHO_T}Yes" >&6; }
13205 else
13206 echo "$as_me: failed program was:" >&5
13207 sed 's/^/| /' conftest.$ac_ext >&5
13210 { echo "$as_me:$LINENO: result: No" >&5
13211 echo "${ECHO_T}No" >&6; }
13212 STDCFLAG="-std=gnu99"
13213 fi
13215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13216 CFLAGS="$old_CFLAGS"
13218 else
13219 true
13220 fi
13223 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13224 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13225 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13226 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13228 fi
13229 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13230 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13231 else
13232 # Is the header compilable?
13233 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h usability" >&5
13234 echo $ECHO_N "checking IOKit/IOKitLib.h usability... $ECHO_C" >&6; }
13235 cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h. */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241 $ac_includes_default
13242 #include <IOKit/IOKitLib.h>
13243 _ACEOF
13244 rm -f conftest.$ac_objext
13245 if { (ac_try="$ac_compile"
13246 case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13249 esac
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_compile") 2>conftest.er1
13252 ac_status=$?
13253 grep -v '^ *+' conftest.er1 >conftest.err
13254 rm -f conftest.er1
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_c_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest.$ac_objext; then
13261 ac_header_compiler=yes
13262 else
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ac_header_compiler=no
13267 fi
13269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13271 echo "${ECHO_T}$ac_header_compiler" >&6; }
13273 # Is the header present?
13274 { echo "$as_me:$LINENO: checking IOKit/IOKitLib.h presence" >&5
13275 echo $ECHO_N "checking IOKit/IOKitLib.h presence... $ECHO_C" >&6; }
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <IOKit/IOKitLib.h>
13283 _ACEOF
13284 if { (ac_try="$ac_cpp conftest.$ac_ext"
13285 case "(($ac_try" in
13286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13287 *) ac_try_echo=$ac_try;;
13288 esac
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13291 ac_status=$?
13292 grep -v '^ *+' conftest.er1 >conftest.err
13293 rm -f conftest.er1
13294 cat conftest.err >&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev/null && {
13297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13298 test ! -s conftest.err
13299 }; then
13300 ac_header_preproc=yes
13301 else
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.$ac_ext >&5
13305 ac_header_preproc=no
13306 fi
13308 rm -f conftest.err conftest.$ac_ext
13309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13310 echo "${ECHO_T}$ac_header_preproc" >&6; }
13312 # So? What about this header?
13313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13314 yes:no: )
13315 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13316 echo "$as_me: WARNING: IOKit/IOKitLib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&5
13318 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the compiler's result" >&2;}
13319 ac_header_preproc=yes
13320 ;;
13321 no:yes:* )
13322 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&5
13323 echo "$as_me: WARNING: IOKit/IOKitLib.h: present but cannot be compiled" >&2;}
13324 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&5
13325 echo "$as_me: WARNING: IOKit/IOKitLib.h: check for missing prerequisite headers?" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&5
13327 echo "$as_me: WARNING: IOKit/IOKitLib.h: see the Autoconf documentation" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&5
13329 echo "$as_me: WARNING: IOKit/IOKitLib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&5
13331 echo "$as_me: WARNING: IOKit/IOKitLib.h: proceeding with the preprocessor's result" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&5
13333 echo "$as_me: WARNING: IOKit/IOKitLib.h: in the future, the compiler will take precedence" >&2;}
13335 ;;
13336 esac
13337 { echo "$as_me:$LINENO: checking for IOKit/IOKitLib.h" >&5
13338 echo $ECHO_N "checking for IOKit/IOKitLib.h... $ECHO_C" >&6; }
13339 if test "${ac_cv_header_IOKit_IOKitLib_h+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13341 else
13342 ac_cv_header_IOKit_IOKitLib_h=$ac_header_preproc
13343 fi
13344 { echo "$as_me:$LINENO: result: $ac_cv_header_IOKit_IOKitLib_h" >&5
13345 echo "${ECHO_T}$ac_cv_header_IOKit_IOKitLib_h" >&6; }
13347 fi
13348 if test $ac_cv_header_IOKit_IOKitLib_h = yes; then
13350 CDROM_DRIVER=osx
13351 LIBS="$LIBS -framework IOKit"
13352 else
13353 true
13354 fi
13359 if test "x$CDROM_DRIVER" = "xlinux"; then
13360 CDROM_LINUX_TRUE=
13361 CDROM_LINUX_FALSE='#'
13362 else
13363 CDROM_LINUX_TRUE='#'
13364 CDROM_LINUX_FALSE=
13365 fi
13369 if test "x$CDROM_DRIVER" = "xosx"; then
13370 CDROM_OSX_TRUE=
13371 CDROM_OSX_FALSE='#'
13372 else
13373 CDROM_OSX_TRUE='#'
13374 CDROM_OSX_FALSE=
13375 fi
13379 if test "x$CDROM_DRIVER" = "x"; then
13380 CDROM_NONE_TRUE=
13381 CDROM_NONE_FALSE='#'
13382 else
13383 CDROM_NONE_TRUE='#'
13384 CDROM_NONE_FALSE=
13385 fi
13387 if test "x$CDROM_DRIVER" = "xlinux"; then
13389 cat >>confdefs.h <<\_ACEOF
13390 #define HAVE_LINUX_CDROM 1
13391 _ACEOF
13393 fi
13395 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13396 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13397 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13398 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13399 echo $ECHO_N "(cached) $ECHO_C" >&6
13400 fi
13401 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13402 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13403 else
13404 # Is the header compilable?
13405 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
13406 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
13407 cat >conftest.$ac_ext <<_ACEOF
13408 /* confdefs.h. */
13409 _ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h. */
13413 $ac_includes_default
13414 #include <linux/joystick.h>
13415 _ACEOF
13416 rm -f conftest.$ac_objext
13417 if { (ac_try="$ac_compile"
13418 case "(($ac_try" in
13419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420 *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_compile") 2>conftest.er1
13424 ac_status=$?
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } && {
13430 test -z "$ac_c_werror_flag" ||
13431 test ! -s conftest.err
13432 } && test -s conftest.$ac_objext; then
13433 ac_header_compiler=yes
13434 else
13435 echo "$as_me: failed program was:" >&5
13436 sed 's/^/| /' conftest.$ac_ext >&5
13438 ac_header_compiler=no
13439 fi
13441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13443 echo "${ECHO_T}$ac_header_compiler" >&6; }
13445 # Is the header present?
13446 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
13447 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
13448 cat >conftest.$ac_ext <<_ACEOF
13449 /* confdefs.h. */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 #include <linux/joystick.h>
13455 _ACEOF
13456 if { (ac_try="$ac_cpp conftest.$ac_ext"
13457 case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13460 esac
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13463 ac_status=$?
13464 grep -v '^ *+' conftest.er1 >conftest.err
13465 rm -f conftest.er1
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } >/dev/null && {
13469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13470 test ! -s conftest.err
13471 }; then
13472 ac_header_preproc=yes
13473 else
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 ac_header_preproc=no
13478 fi
13480 rm -f conftest.err conftest.$ac_ext
13481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13482 echo "${ECHO_T}$ac_header_preproc" >&6; }
13484 # So? What about this header?
13485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13486 yes:no: )
13487 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
13488 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13489 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
13490 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
13491 ac_header_preproc=yes
13492 ;;
13493 no:yes:* )
13494 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
13495 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
13496 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
13497 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
13498 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
13499 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
13500 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
13501 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
13503 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
13505 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
13507 ;;
13508 esac
13509 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
13510 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
13511 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13513 else
13514 ac_cv_header_linux_joystick_h=$ac_header_preproc
13515 fi
13516 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
13517 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
13519 fi
13520 if test $ac_cv_header_linux_joystick_h = yes; then
13522 HAVE_LINUX_JOYSTICK_H=yes
13524 cat >>confdefs.h <<\_ACEOF
13525 #define HAVE_LINUX_JOYSTICK 1
13526 _ACEOF
13528 INPUT_DRIVERS="$INPUT_DRIVERS joy_linux"
13529 else
13530 echo "Linux Joystick support not found, building without it."
13531 fi
13536 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
13537 JOY_LINUX_TRUE=
13538 JOY_LINUX_FALSE='#'
13539 else
13540 JOY_LINUX_TRUE='#'
13541 JOY_LINUX_FALSE=
13542 fi
13545 if test "x$with_lirc" != "xno"; then
13546 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13547 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13548 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13549 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 fi
13552 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13553 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13554 else
13555 # Is the header compilable?
13556 { echo "$as_me:$LINENO: checking lirc/lirc_client.h usability" >&5
13557 echo $ECHO_N "checking lirc/lirc_client.h usability... $ECHO_C" >&6; }
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h. */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564 $ac_includes_default
13565 #include <lirc/lirc_client.h>
13566 _ACEOF
13567 rm -f conftest.$ac_objext
13568 if { (ac_try="$ac_compile"
13569 case "(($ac_try" in
13570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13571 *) ac_try_echo=$ac_try;;
13572 esac
13573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13574 (eval "$ac_compile") 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } && {
13581 test -z "$ac_c_werror_flag" ||
13582 test ! -s conftest.err
13583 } && test -s conftest.$ac_objext; then
13584 ac_header_compiler=yes
13585 else
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_header_compiler=no
13590 fi
13592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13594 echo "${ECHO_T}$ac_header_compiler" >&6; }
13596 # Is the header present?
13597 { echo "$as_me:$LINENO: checking lirc/lirc_client.h presence" >&5
13598 echo $ECHO_N "checking lirc/lirc_client.h presence... $ECHO_C" >&6; }
13599 cat >conftest.$ac_ext <<_ACEOF
13600 /* confdefs.h. */
13601 _ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h. */
13605 #include <lirc/lirc_client.h>
13606 _ACEOF
13607 if { (ac_try="$ac_cpp conftest.$ac_ext"
13608 case "(($ac_try" in
13609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13610 *) ac_try_echo=$ac_try;;
13611 esac
13612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13614 ac_status=$?
13615 grep -v '^ *+' conftest.er1 >conftest.err
13616 rm -f conftest.er1
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } >/dev/null && {
13620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13621 test ! -s conftest.err
13622 }; then
13623 ac_header_preproc=yes
13624 else
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_header_preproc=no
13629 fi
13631 rm -f conftest.err conftest.$ac_ext
13632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13633 echo "${ECHO_T}$ac_header_preproc" >&6; }
13635 # So? What about this header?
13636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13637 yes:no: )
13638 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&5
13639 echo "$as_me: WARNING: lirc/lirc_client.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13640 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&5
13641 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the compiler's result" >&2;}
13642 ac_header_preproc=yes
13643 ;;
13644 no:yes:* )
13645 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&5
13646 echo "$as_me: WARNING: lirc/lirc_client.h: present but cannot be compiled" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&5
13648 echo "$as_me: WARNING: lirc/lirc_client.h: check for missing prerequisite headers?" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&5
13650 echo "$as_me: WARNING: lirc/lirc_client.h: see the Autoconf documentation" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&5
13652 echo "$as_me: WARNING: lirc/lirc_client.h: section \"Present But Cannot Be Compiled\"" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&5
13654 echo "$as_me: WARNING: lirc/lirc_client.h: proceeding with the preprocessor's result" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&5
13656 echo "$as_me: WARNING: lirc/lirc_client.h: in the future, the compiler will take precedence" >&2;}
13658 ;;
13659 esac
13660 { echo "$as_me:$LINENO: checking for lirc/lirc_client.h" >&5
13661 echo $ECHO_N "checking for lirc/lirc_client.h... $ECHO_C" >&6; }
13662 if test "${ac_cv_header_lirc_lirc_client_h+set}" = set; then
13663 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665 ac_cv_header_lirc_lirc_client_h=$ac_header_preproc
13666 fi
13667 { echo "$as_me:$LINENO: result: $ac_cv_header_lirc_lirc_client_h" >&5
13668 echo "${ECHO_T}$ac_cv_header_lirc_lirc_client_h" >&6; }
13670 fi
13671 if test $ac_cv_header_lirc_lirc_client_h = yes; then
13673 HAVE_LIRC_CLIENT_H=yes
13675 cat >>confdefs.h <<\_ACEOF
13676 #define HAVE_LIRC 1
13677 _ACEOF
13679 INPUT_DRIVERS="$INPUT_DRIVERS lirc"
13681 else
13682 echo "LIRC support not found, building without it."
13683 fi
13686 fi
13689 if test "$HAVE_LIRC_CLIENT_H" = "yes"; then
13690 INPUT_LIRC_TRUE=
13691 INPUT_LIRC_FALSE='#'
13692 else
13693 INPUT_LIRC_TRUE='#'
13694 INPUT_LIRC_FALSE=
13695 fi
13698 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
13699 set dummy sh-elf-gcc; ac_word=$2
13700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13702 if test "${ac_cv_path_SHCC+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13704 else
13705 case $SHCC in
13706 [\\/]* | ?:[\\/]*)
13707 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
13708 ;;
13709 *)
13710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $PATH
13712 do
13713 IFS=$as_save_IFS
13714 test -z "$as_dir" && as_dir=.
13715 for ac_exec_ext in '' $ac_executable_extensions; do
13716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13717 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
13718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13719 break 2
13720 fi
13721 done
13722 done
13723 IFS=$as_save_IFS
13725 ;;
13726 esac
13727 fi
13728 SHCC=$ac_cv_path_SHCC
13729 if test -n "$SHCC"; then
13730 { echo "$as_me:$LINENO: result: $SHCC" >&5
13731 echo "${ECHO_T}$SHCC" >&6; }
13732 else
13733 { echo "$as_me:$LINENO: result: no" >&5
13734 echo "${ECHO_T}no" >&6; }
13735 fi
13738 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
13739 set dummy sh-elf-ld; ac_word=$2
13740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13742 if test "${ac_cv_path_SHLD+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13744 else
13745 case $SHLD in
13746 [\\/]* | ?:[\\/]*)
13747 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
13748 ;;
13749 *)
13750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13751 for as_dir in $PATH
13752 do
13753 IFS=$as_save_IFS
13754 test -z "$as_dir" && as_dir=.
13755 for ac_exec_ext in '' $ac_executable_extensions; do
13756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13757 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
13758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13759 break 2
13760 fi
13761 done
13762 done
13763 IFS=$as_save_IFS
13765 ;;
13766 esac
13767 fi
13768 SHLD=$ac_cv_path_SHLD
13769 if test -n "$SHLD"; then
13770 { echo "$as_me:$LINENO: result: $SHLD" >&5
13771 echo "${ECHO_T}$SHLD" >&6; }
13772 else
13773 { echo "$as_me:$LINENO: result: no" >&5
13774 echo "${ECHO_T}no" >&6; }
13775 fi
13778 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
13779 set dummy sh-elf-objcopy; ac_word=$2
13780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13782 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 case $SHOBJCOPY in
13786 [\\/]* | ?:[\\/]*)
13787 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
13788 ;;
13789 *)
13790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13791 for as_dir in $PATH
13792 do
13793 IFS=$as_save_IFS
13794 test -z "$as_dir" && as_dir=.
13795 for ac_exec_ext in '' $ac_executable_extensions; do
13796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13797 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
13798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13799 break 2
13800 fi
13801 done
13802 done
13803 IFS=$as_save_IFS
13805 ;;
13806 esac
13807 fi
13808 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
13809 if test -n "$SHOBJCOPY"; then
13810 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
13811 echo "${ECHO_T}$SHOBJCOPY" >&6; }
13812 else
13813 { echo "$as_me:$LINENO: result: no" >&5
13814 echo "${ECHO_T}no" >&6; }
13815 fi
13818 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
13819 set dummy arm-elf-gcc; ac_word=$2
13820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13822 if test "${ac_cv_path_ARMCC+set}" = set; then
13823 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 else
13825 case $ARMCC in
13826 [\\/]* | ?:[\\/]*)
13827 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
13828 ;;
13829 *)
13830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831 for as_dir in $PATH
13832 do
13833 IFS=$as_save_IFS
13834 test -z "$as_dir" && as_dir=.
13835 for ac_exec_ext in '' $ac_executable_extensions; do
13836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13837 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
13838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13839 break 2
13840 fi
13841 done
13842 done
13843 IFS=$as_save_IFS
13845 ;;
13846 esac
13847 fi
13848 ARMCC=$ac_cv_path_ARMCC
13849 if test -n "$ARMCC"; then
13850 { echo "$as_me:$LINENO: result: $ARMCC" >&5
13851 echo "${ECHO_T}$ARMCC" >&6; }
13852 else
13853 { echo "$as_me:$LINENO: result: no" >&5
13854 echo "${ECHO_T}no" >&6; }
13855 fi
13858 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
13859 set dummy arm-elf-ld; ac_word=$2
13860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13862 if test "${ac_cv_path_ARMLD+set}" = set; then
13863 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 else
13865 case $ARMLD in
13866 [\\/]* | ?:[\\/]*)
13867 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
13868 ;;
13869 *)
13870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13871 for as_dir in $PATH
13872 do
13873 IFS=$as_save_IFS
13874 test -z "$as_dir" && as_dir=.
13875 for ac_exec_ext in '' $ac_executable_extensions; do
13876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13877 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
13878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13879 break 2
13880 fi
13881 done
13882 done
13883 IFS=$as_save_IFS
13885 ;;
13886 esac
13887 fi
13888 ARMLD=$ac_cv_path_ARMLD
13889 if test -n "$ARMLD"; then
13890 { echo "$as_me:$LINENO: result: $ARMLD" >&5
13891 echo "${ECHO_T}$ARMLD" >&6; }
13892 else
13893 { echo "$as_me:$LINENO: result: no" >&5
13894 echo "${ECHO_T}no" >&6; }
13895 fi
13898 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
13899 set dummy arm-elf-objcopy; ac_word=$2
13900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13902 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 else
13905 case $ARMOBJCOPY in
13906 [\\/]* | ?:[\\/]*)
13907 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
13908 ;;
13909 *)
13910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13911 for as_dir in $PATH
13912 do
13913 IFS=$as_save_IFS
13914 test -z "$as_dir" && as_dir=.
13915 for ac_exec_ext in '' $ac_executable_extensions; do
13916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13917 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
13918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13919 break 2
13920 fi
13921 done
13922 done
13923 IFS=$as_save_IFS
13925 ;;
13926 esac
13927 fi
13928 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
13929 if test -n "$ARMOBJCOPY"; then
13930 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
13931 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
13932 else
13933 { echo "$as_me:$LINENO: result: no" >&5
13934 echo "${ECHO_T}no" >&6; }
13935 fi
13939 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
13940 BUILD_SH="no"
13941 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
13942 else
13943 BUILD_SH="yes"
13944 fi
13945 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
13946 BUILD_ARM="no"
13947 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
13948 else
13949 BUILD_ARM="yes"
13950 fi
13953 if test "$BUILD_SH" = "yes"; then
13954 BUILD_SYSTEST_TRUE=
13955 BUILD_SYSTEST_FALSE='#'
13956 else
13957 BUILD_SYSTEST_TRUE='#'
13958 BUILD_SYSTEST_FALSE=
13959 fi
13963 if test "$BUILD_ARM" = "yes"; then
13964 BUILD_ARMTEST_TRUE=
13965 BUILD_ARMTEST_FALSE='#'
13966 else
13967 BUILD_ARMTEST_TRUE='#'
13968 BUILD_ARMTEST_FALSE=
13969 fi
13972 CFLAGS="$CFLAGS $STDCFLAG"
13974 GETTEXT_PACKAGE=lxdream
13975 LXDREAM_LIBS="$LIBS"
13976 LIBS=""
13980 cat >>confdefs.h <<_ACEOF
13981 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
13982 _ACEOF
13985 ALL_LINGUAS="de es it nl pt_BR"
13988 for ac_header in locale.h
13989 do
13990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 fi
13997 ac_res=`eval echo '${'$as_ac_Header'}'`
13998 { echo "$as_me:$LINENO: result: $ac_res" >&5
13999 echo "${ECHO_T}$ac_res" >&6; }
14000 else
14001 # Is the header compilable?
14002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 $ac_includes_default
14011 #include <$ac_header>
14012 _ACEOF
14013 rm -f conftest.$ac_objext
14014 if { (ac_try="$ac_compile"
14015 case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14018 esac
14019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 (eval "$ac_compile") 2>conftest.er1
14021 ac_status=$?
14022 grep -v '^ *+' conftest.er1 >conftest.err
14023 rm -f conftest.er1
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } && {
14027 test -z "$ac_c_werror_flag" ||
14028 test ! -s conftest.err
14029 } && test -s conftest.$ac_objext; then
14030 ac_header_compiler=yes
14031 else
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14035 ac_header_compiler=no
14036 fi
14038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14040 echo "${ECHO_T}$ac_header_compiler" >&6; }
14042 # Is the header present?
14043 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14045 cat >conftest.$ac_ext <<_ACEOF
14046 /* confdefs.h. */
14047 _ACEOF
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 #include <$ac_header>
14052 _ACEOF
14053 if { (ac_try="$ac_cpp conftest.$ac_ext"
14054 case "(($ac_try" in
14055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056 *) ac_try_echo=$ac_try;;
14057 esac
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14060 ac_status=$?
14061 grep -v '^ *+' conftest.er1 >conftest.err
14062 rm -f conftest.er1
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } >/dev/null && {
14066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14067 test ! -s conftest.err
14068 }; then
14069 ac_header_preproc=yes
14070 else
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14074 ac_header_preproc=no
14075 fi
14077 rm -f conftest.err conftest.$ac_ext
14078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14079 echo "${ECHO_T}$ac_header_preproc" >&6; }
14081 # So? What about this header?
14082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14083 yes:no: )
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14085 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14088 ac_header_preproc=yes
14089 ;;
14090 no:yes:* )
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14092 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14094 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14096 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14098 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14101 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14102 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14104 ;;
14105 esac
14106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14109 echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111 eval "$as_ac_Header=\$ac_header_preproc"
14112 fi
14113 ac_res=`eval echo '${'$as_ac_Header'}'`
14114 { echo "$as_me:$LINENO: result: $ac_res" >&5
14115 echo "${ECHO_T}$ac_res" >&6; }
14117 fi
14118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14119 cat >>confdefs.h <<_ACEOF
14120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14121 _ACEOF
14123 fi
14125 done
14127 if test $ac_cv_header_locale_h = yes; then
14128 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14129 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
14130 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133 cat >conftest.$ac_ext <<_ACEOF
14134 /* confdefs.h. */
14135 _ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14139 #include <locale.h>
14140 int
14141 main ()
14142 {
14143 return LC_MESSAGES
14144 ;
14145 return 0;
14146 }
14147 _ACEOF
14148 rm -f conftest.$ac_objext conftest$ac_exeext
14149 if { (ac_try="$ac_link"
14150 case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14153 esac
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_link") 2>conftest.er1
14156 ac_status=$?
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } && {
14162 test -z "$ac_c_werror_flag" ||
14163 test ! -s conftest.err
14164 } && test -s conftest$ac_exeext &&
14165 $as_test_x conftest$ac_exeext; then
14166 am_cv_val_LC_MESSAGES=yes
14167 else
14168 echo "$as_me: failed program was:" >&5
14169 sed 's/^/| /' conftest.$ac_ext >&5
14171 am_cv_val_LC_MESSAGES=no
14172 fi
14174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14175 conftest$ac_exeext conftest.$ac_ext
14176 fi
14177 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14178 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
14179 if test $am_cv_val_LC_MESSAGES = yes; then
14181 cat >>confdefs.h <<\_ACEOF
14182 #define HAVE_LC_MESSAGES 1
14183 _ACEOF
14185 fi
14186 fi
14187 USE_NLS=yes
14190 gt_cv_have_gettext=no
14192 CATOBJEXT=NONE
14193 XGETTEXT=:
14194 INTLLIBS=
14196 if test "${ac_cv_header_libintl_h+set}" = set; then
14197 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14198 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14199 if test "${ac_cv_header_libintl_h+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14201 fi
14202 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14203 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14204 else
14205 # Is the header compilable?
14206 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
14207 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
14208 cat >conftest.$ac_ext <<_ACEOF
14209 /* confdefs.h. */
14210 _ACEOF
14211 cat confdefs.h >>conftest.$ac_ext
14212 cat >>conftest.$ac_ext <<_ACEOF
14213 /* end confdefs.h. */
14214 $ac_includes_default
14215 #include <libintl.h>
14216 _ACEOF
14217 rm -f conftest.$ac_objext
14218 if { (ac_try="$ac_compile"
14219 case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14222 esac
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_compile") 2>conftest.er1
14225 ac_status=$?
14226 grep -v '^ *+' conftest.er1 >conftest.err
14227 rm -f conftest.er1
14228 cat conftest.err >&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); } && {
14231 test -z "$ac_c_werror_flag" ||
14232 test ! -s conftest.err
14233 } && test -s conftest.$ac_objext; then
14234 ac_header_compiler=yes
14235 else
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14239 ac_header_compiler=no
14240 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14244 echo "${ECHO_T}$ac_header_compiler" >&6; }
14246 # Is the header present?
14247 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
14248 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h. */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h. */
14255 #include <libintl.h>
14256 _ACEOF
14257 if { (ac_try="$ac_cpp conftest.$ac_ext"
14258 case "(($ac_try" in
14259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14260 *) ac_try_echo=$ac_try;;
14261 esac
14262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14264 ac_status=$?
14265 grep -v '^ *+' conftest.er1 >conftest.err
14266 rm -f conftest.er1
14267 cat conftest.err >&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } >/dev/null && {
14270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14271 test ! -s conftest.err
14272 }; then
14273 ac_header_preproc=yes
14274 else
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14278 ac_header_preproc=no
14279 fi
14281 rm -f conftest.err conftest.$ac_ext
14282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14283 echo "${ECHO_T}$ac_header_preproc" >&6; }
14285 # So? What about this header?
14286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14287 yes:no: )
14288 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14289 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14290 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
14291 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
14292 ac_header_preproc=yes
14293 ;;
14294 no:yes:* )
14295 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14296 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14297 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14298 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14299 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
14300 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
14301 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
14302 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
14303 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14304 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14305 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
14306 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
14308 ;;
14309 esac
14310 { echo "$as_me:$LINENO: checking for libintl.h" >&5
14311 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
14312 if test "${ac_cv_header_libintl_h+set}" = set; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14314 else
14315 ac_cv_header_libintl_h=$ac_header_preproc
14316 fi
14317 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14318 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
14320 fi
14321 if test $ac_cv_header_libintl_h = yes; then
14322 gt_cv_func_dgettext_libintl="no"
14323 libintl_extra_libs=""
14325 #
14326 # First check in libc
14327 #
14328 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
14329 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
14330 if test "${gt_cv_func_ngettext_libc+set}" = set; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h. */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h. */
14340 #include <libintl.h>
14342 int
14343 main ()
14344 {
14345 return !ngettext ("","", 1)
14346 ;
14347 return 0;
14348 }
14349 _ACEOF
14350 rm -f conftest.$ac_objext conftest$ac_exeext
14351 if { (ac_try="$ac_link"
14352 case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14355 esac
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_link") 2>conftest.er1
14358 ac_status=$?
14359 grep -v '^ *+' conftest.er1 >conftest.err
14360 rm -f conftest.er1
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } && {
14364 test -z "$ac_c_werror_flag" ||
14365 test ! -s conftest.err
14366 } && test -s conftest$ac_exeext &&
14367 $as_test_x conftest$ac_exeext; then
14368 gt_cv_func_ngettext_libc=yes
14369 else
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 gt_cv_func_ngettext_libc=no
14374 fi
14376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14377 conftest$ac_exeext conftest.$ac_ext
14379 fi
14380 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
14381 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
14383 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14384 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
14385 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
14386 if test "${gt_cv_func_dgettext_libc+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 else
14389 cat >conftest.$ac_ext <<_ACEOF
14390 /* confdefs.h. */
14391 _ACEOF
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14396 #include <libintl.h>
14398 int
14399 main ()
14400 {
14401 return !dgettext ("","")
14402 ;
14403 return 0;
14404 }
14405 _ACEOF
14406 rm -f conftest.$ac_objext conftest$ac_exeext
14407 if { (ac_try="$ac_link"
14408 case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_link") 2>conftest.er1
14414 ac_status=$?
14415 grep -v '^ *+' conftest.er1 >conftest.err
14416 rm -f conftest.er1
14417 cat conftest.err >&5
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); } && {
14420 test -z "$ac_c_werror_flag" ||
14421 test ! -s conftest.err
14422 } && test -s conftest$ac_exeext &&
14423 $as_test_x conftest$ac_exeext; then
14424 gt_cv_func_dgettext_libc=yes
14425 else
14426 echo "$as_me: failed program was:" >&5
14427 sed 's/^/| /' conftest.$ac_ext >&5
14429 gt_cv_func_dgettext_libc=no
14430 fi
14432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14433 conftest$ac_exeext conftest.$ac_ext
14435 fi
14436 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
14437 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
14438 fi
14440 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
14442 for ac_func in bind_textdomain_codeset
14443 do
14444 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14445 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14446 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14447 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 else
14450 cat >conftest.$ac_ext <<_ACEOF
14451 /* confdefs.h. */
14452 _ACEOF
14453 cat confdefs.h >>conftest.$ac_ext
14454 cat >>conftest.$ac_ext <<_ACEOF
14455 /* end confdefs.h. */
14456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14458 #define $ac_func innocuous_$ac_func
14460 /* System header to define __stub macros and hopefully few prototypes,
14461 which can conflict with char $ac_func (); below.
14462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14463 <limits.h> exists even on freestanding compilers. */
14465 #ifdef __STDC__
14466 # include <limits.h>
14467 #else
14468 # include <assert.h>
14469 #endif
14471 #undef $ac_func
14473 /* Override any GCC internal prototype to avoid an error.
14474 Use char because int might match the return type of a GCC
14475 builtin and then its argument prototype would still apply. */
14476 #ifdef __cplusplus
14477 extern "C"
14478 #endif
14479 char $ac_func ();
14480 /* The GNU C library defines this for functions which it implements
14481 to always fail with ENOSYS. Some functions are actually named
14482 something starting with __ and the normal name is an alias. */
14483 #if defined __stub_$ac_func || defined __stub___$ac_func
14484 choke me
14485 #endif
14487 int
14488 main ()
14489 {
14490 return $ac_func ();
14491 ;
14492 return 0;
14493 }
14494 _ACEOF
14495 rm -f conftest.$ac_objext conftest$ac_exeext
14496 if { (ac_try="$ac_link"
14497 case "(($ac_try" in
14498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499 *) ac_try_echo=$ac_try;;
14500 esac
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_link") 2>conftest.er1
14503 ac_status=$?
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } && {
14509 test -z "$ac_c_werror_flag" ||
14510 test ! -s conftest.err
14511 } && test -s conftest$ac_exeext &&
14512 $as_test_x conftest$ac_exeext; then
14513 eval "$as_ac_var=yes"
14514 else
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 eval "$as_ac_var=no"
14519 fi
14521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14522 conftest$ac_exeext conftest.$ac_ext
14523 fi
14524 ac_res=`eval echo '${'$as_ac_var'}'`
14525 { echo "$as_me:$LINENO: result: $ac_res" >&5
14526 echo "${ECHO_T}$ac_res" >&6; }
14527 if test `eval echo '${'$as_ac_var'}'` = yes; then
14528 cat >>confdefs.h <<_ACEOF
14529 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14530 _ACEOF
14532 fi
14533 done
14535 fi
14537 #
14538 # If we don't have everything we want, check in libintl
14539 #
14540 if test "$gt_cv_func_dgettext_libc" != "yes" \
14541 || test "$gt_cv_func_ngettext_libc" != "yes" \
14542 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
14544 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
14545 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
14546 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14548 else
14549 ac_check_lib_save_LIBS=$LIBS
14550 LIBS="-lintl $LIBS"
14551 cat >conftest.$ac_ext <<_ACEOF
14552 /* confdefs.h. */
14553 _ACEOF
14554 cat confdefs.h >>conftest.$ac_ext
14555 cat >>conftest.$ac_ext <<_ACEOF
14556 /* end confdefs.h. */
14558 /* Override any GCC internal prototype to avoid an error.
14559 Use char because int might match the return type of a GCC
14560 builtin and then its argument prototype would still apply. */
14561 #ifdef __cplusplus
14562 extern "C"
14563 #endif
14564 char bindtextdomain ();
14565 int
14566 main ()
14567 {
14568 return bindtextdomain ();
14569 ;
14570 return 0;
14571 }
14572 _ACEOF
14573 rm -f conftest.$ac_objext conftest$ac_exeext
14574 if { (ac_try="$ac_link"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14578 esac
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_link") 2>conftest.er1
14581 ac_status=$?
14582 grep -v '^ *+' conftest.er1 >conftest.err
14583 rm -f conftest.er1
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } && {
14587 test -z "$ac_c_werror_flag" ||
14588 test ! -s conftest.err
14589 } && test -s conftest$ac_exeext &&
14590 $as_test_x conftest$ac_exeext; then
14591 ac_cv_lib_intl_bindtextdomain=yes
14592 else
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 ac_cv_lib_intl_bindtextdomain=no
14597 fi
14599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14600 conftest$ac_exeext conftest.$ac_ext
14601 LIBS=$ac_check_lib_save_LIBS
14602 fi
14603 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
14604 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
14605 if test $ac_cv_lib_intl_bindtextdomain = yes; then
14606 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14607 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14608 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611 ac_check_lib_save_LIBS=$LIBS
14612 LIBS="-lintl $LIBS"
14613 cat >conftest.$ac_ext <<_ACEOF
14614 /* confdefs.h. */
14615 _ACEOF
14616 cat confdefs.h >>conftest.$ac_ext
14617 cat >>conftest.$ac_ext <<_ACEOF
14618 /* end confdefs.h. */
14620 /* Override any GCC internal prototype to avoid an error.
14621 Use char because int might match the return type of a GCC
14622 builtin and then its argument prototype would still apply. */
14623 #ifdef __cplusplus
14624 extern "C"
14625 #endif
14626 char ngettext ();
14627 int
14628 main ()
14629 {
14630 return ngettext ();
14631 ;
14632 return 0;
14633 }
14634 _ACEOF
14635 rm -f conftest.$ac_objext conftest$ac_exeext
14636 if { (ac_try="$ac_link"
14637 case "(($ac_try" in
14638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14639 *) ac_try_echo=$ac_try;;
14640 esac
14641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14642 (eval "$ac_link") 2>conftest.er1
14643 ac_status=$?
14644 grep -v '^ *+' conftest.er1 >conftest.err
14645 rm -f conftest.er1
14646 cat conftest.err >&5
14647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14648 (exit $ac_status); } && {
14649 test -z "$ac_c_werror_flag" ||
14650 test ! -s conftest.err
14651 } && test -s conftest$ac_exeext &&
14652 $as_test_x conftest$ac_exeext; then
14653 ac_cv_lib_intl_ngettext=yes
14654 else
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14658 ac_cv_lib_intl_ngettext=no
14659 fi
14661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14662 conftest$ac_exeext conftest.$ac_ext
14663 LIBS=$ac_check_lib_save_LIBS
14664 fi
14665 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
14666 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
14667 if test $ac_cv_lib_intl_ngettext = yes; then
14668 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14669 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
14670 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673 ac_check_lib_save_LIBS=$LIBS
14674 LIBS="-lintl $LIBS"
14675 cat >conftest.$ac_ext <<_ACEOF
14676 /* confdefs.h. */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14682 /* Override any GCC internal prototype to avoid an error.
14683 Use char because int might match the return type of a GCC
14684 builtin and then its argument prototype would still apply. */
14685 #ifdef __cplusplus
14686 extern "C"
14687 #endif
14688 char dgettext ();
14689 int
14690 main ()
14691 {
14692 return dgettext ();
14693 ;
14694 return 0;
14695 }
14696 _ACEOF
14697 rm -f conftest.$ac_objext conftest$ac_exeext
14698 if { (ac_try="$ac_link"
14699 case "(($ac_try" in
14700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701 *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704 (eval "$ac_link") 2>conftest.er1
14705 ac_status=$?
14706 grep -v '^ *+' conftest.er1 >conftest.err
14707 rm -f conftest.er1
14708 cat conftest.err >&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); } && {
14711 test -z "$ac_c_werror_flag" ||
14712 test ! -s conftest.err
14713 } && test -s conftest$ac_exeext &&
14714 $as_test_x conftest$ac_exeext; then
14715 ac_cv_lib_intl_dgettext=yes
14716 else
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_cv_lib_intl_dgettext=no
14721 fi
14723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14724 conftest$ac_exeext conftest.$ac_ext
14725 LIBS=$ac_check_lib_save_LIBS
14726 fi
14727 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14728 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
14729 if test $ac_cv_lib_intl_dgettext = yes; then
14730 gt_cv_func_dgettext_libintl=yes
14731 fi
14733 fi
14735 fi
14738 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
14739 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
14740 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
14741 { echo "$as_me:$LINENO: result: " >&5
14742 echo "${ECHO_T}" >&6; }
14743 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
14744 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
14745 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 else
14748 ac_check_lib_save_LIBS=$LIBS
14749 LIBS="-lintl -liconv $LIBS"
14750 cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h. */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14757 /* Override any GCC internal prototype to avoid an error.
14758 Use char because int might match the return type of a GCC
14759 builtin and then its argument prototype would still apply. */
14760 #ifdef __cplusplus
14761 extern "C"
14762 #endif
14763 char ngettext ();
14764 int
14765 main ()
14766 {
14767 return ngettext ();
14768 ;
14769 return 0;
14770 }
14771 _ACEOF
14772 rm -f conftest.$ac_objext conftest$ac_exeext
14773 if { (ac_try="$ac_link"
14774 case "(($ac_try" in
14775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14776 *) ac_try_echo=$ac_try;;
14777 esac
14778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14779 (eval "$ac_link") 2>conftest.er1
14780 ac_status=$?
14781 grep -v '^ *+' conftest.er1 >conftest.err
14782 rm -f conftest.er1
14783 cat conftest.err >&5
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); } && {
14786 test -z "$ac_c_werror_flag" ||
14787 test ! -s conftest.err
14788 } && test -s conftest$ac_exeext &&
14789 $as_test_x conftest$ac_exeext; then
14790 ac_cv_lib_intl_ngettext=yes
14791 else
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 ac_cv_lib_intl_ngettext=no
14796 fi
14798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14799 conftest$ac_exeext conftest.$ac_ext
14800 LIBS=$ac_check_lib_save_LIBS
14801 fi
14802 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
14803 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
14804 if test $ac_cv_lib_intl_ngettext = yes; then
14805 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
14806 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
14807 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810 ac_check_lib_save_LIBS=$LIBS
14811 LIBS="-lintl -liconv $LIBS"
14812 cat >conftest.$ac_ext <<_ACEOF
14813 /* confdefs.h. */
14814 _ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14819 /* Override any GCC internal prototype to avoid an error.
14820 Use char because int might match the return type of a GCC
14821 builtin and then its argument prototype would still apply. */
14822 #ifdef __cplusplus
14823 extern "C"
14824 #endif
14825 char dcgettext ();
14826 int
14827 main ()
14828 {
14829 return dcgettext ();
14830 ;
14831 return 0;
14832 }
14833 _ACEOF
14834 rm -f conftest.$ac_objext conftest$ac_exeext
14835 if { (ac_try="$ac_link"
14836 case "(($ac_try" in
14837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14838 *) ac_try_echo=$ac_try;;
14839 esac
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_link") 2>conftest.er1
14842 ac_status=$?
14843 grep -v '^ *+' conftest.er1 >conftest.err
14844 rm -f conftest.er1
14845 cat conftest.err >&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); } && {
14848 test -z "$ac_c_werror_flag" ||
14849 test ! -s conftest.err
14850 } && test -s conftest$ac_exeext &&
14851 $as_test_x conftest$ac_exeext; then
14852 ac_cv_lib_intl_dcgettext=yes
14853 else
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14857 ac_cv_lib_intl_dcgettext=no
14858 fi
14860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14861 conftest$ac_exeext conftest.$ac_ext
14862 LIBS=$ac_check_lib_save_LIBS
14863 fi
14864 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
14865 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
14866 if test $ac_cv_lib_intl_dcgettext = yes; then
14867 gt_cv_func_dgettext_libintl=yes
14868 libintl_extra_libs=-liconv
14869 else
14870 :
14871 fi
14873 else
14874 :
14875 fi
14877 fi
14879 #
14880 # If we found libintl, then check in it for bind_textdomain_codeset();
14881 # we'll prefer libc if neither have bind_textdomain_codeset(),
14882 # and both have dgettext and ngettext
14883 #
14884 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
14885 glib_save_LIBS="$LIBS"
14886 LIBS="$LIBS -lintl $libintl_extra_libs"
14887 unset ac_cv_func_bind_textdomain_codeset
14889 for ac_func in bind_textdomain_codeset
14890 do
14891 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h. */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h. */
14903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14905 #define $ac_func innocuous_$ac_func
14907 /* System header to define __stub macros and hopefully few prototypes,
14908 which can conflict with char $ac_func (); below.
14909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14910 <limits.h> exists even on freestanding compilers. */
14912 #ifdef __STDC__
14913 # include <limits.h>
14914 #else
14915 # include <assert.h>
14916 #endif
14918 #undef $ac_func
14920 /* Override any GCC internal prototype to avoid an error.
14921 Use char because int might match the return type of a GCC
14922 builtin and then its argument prototype would still apply. */
14923 #ifdef __cplusplus
14924 extern "C"
14925 #endif
14926 char $ac_func ();
14927 /* The GNU C library defines this for functions which it implements
14928 to always fail with ENOSYS. Some functions are actually named
14929 something starting with __ and the normal name is an alias. */
14930 #if defined __stub_$ac_func || defined __stub___$ac_func
14931 choke me
14932 #endif
14934 int
14935 main ()
14936 {
14937 return $ac_func ();
14938 ;
14939 return 0;
14940 }
14941 _ACEOF
14942 rm -f conftest.$ac_objext conftest$ac_exeext
14943 if { (ac_try="$ac_link"
14944 case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947 esac
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_link") 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && {
14956 test -z "$ac_c_werror_flag" ||
14957 test ! -s conftest.err
14958 } && test -s conftest$ac_exeext &&
14959 $as_test_x conftest$ac_exeext; then
14960 eval "$as_ac_var=yes"
14961 else
14962 echo "$as_me: failed program was:" >&5
14963 sed 's/^/| /' conftest.$ac_ext >&5
14965 eval "$as_ac_var=no"
14966 fi
14968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14969 conftest$ac_exeext conftest.$ac_ext
14970 fi
14971 ac_res=`eval echo '${'$as_ac_var'}'`
14972 { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14974 if test `eval echo '${'$as_ac_var'}'` = yes; then
14975 cat >>confdefs.h <<_ACEOF
14976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14977 _ACEOF
14979 fi
14980 done
14982 LIBS="$glib_save_LIBS"
14984 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
14985 gt_cv_func_dgettext_libc=no
14986 else
14987 if test "$gt_cv_func_dgettext_libc" = "yes" \
14988 && test "$gt_cv_func_ngettext_libc" = "yes"; then
14989 gt_cv_func_dgettext_libintl=no
14990 fi
14991 fi
14992 fi
14993 fi
14995 if test "$gt_cv_func_dgettext_libc" = "yes" \
14996 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
14997 gt_cv_have_gettext=yes
14998 fi
15000 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
15001 INTLLIBS="-lintl $libintl_extra_libs"
15002 fi
15004 if test "$gt_cv_have_gettext" = "yes"; then
15006 cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_GETTEXT 1
15008 _ACEOF
15010 # Extract the first word of "msgfmt", so it can be a program name with args.
15011 set dummy msgfmt; ac_word=$2
15012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15014 if test "${ac_cv_path_MSGFMT+set}" = set; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15016 else
15017 case "$MSGFMT" in
15018 /*)
15019 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15020 ;;
15021 *)
15022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15023 for ac_dir in $PATH; do
15024 test -z "$ac_dir" && ac_dir=.
15025 if test -f $ac_dir/$ac_word; then
15026 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
15027 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15028 break
15029 fi
15030 fi
15031 done
15032 IFS="$ac_save_ifs"
15033 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
15034 ;;
15035 esac
15036 fi
15037 MSGFMT="$ac_cv_path_MSGFMT"
15038 if test "$MSGFMT" != "no"; then
15039 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
15040 echo "${ECHO_T}$MSGFMT" >&6; }
15041 else
15042 { echo "$as_me:$LINENO: result: no" >&5
15043 echo "${ECHO_T}no" >&6; }
15044 fi
15045 if test "$MSGFMT" != "no"; then
15046 glib_save_LIBS="$LIBS"
15047 LIBS="$LIBS $INTLLIBS"
15049 for ac_func in dcgettext
15050 do
15051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057 cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h. */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15065 #define $ac_func innocuous_$ac_func
15067 /* System header to define __stub macros and hopefully few prototypes,
15068 which can conflict with char $ac_func (); below.
15069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15070 <limits.h> exists even on freestanding compilers. */
15072 #ifdef __STDC__
15073 # include <limits.h>
15074 #else
15075 # include <assert.h>
15076 #endif
15078 #undef $ac_func
15080 /* Override any GCC internal prototype to avoid an error.
15081 Use char because int might match the return type of a GCC
15082 builtin and then its argument prototype would still apply. */
15083 #ifdef __cplusplus
15084 extern "C"
15085 #endif
15086 char $ac_func ();
15087 /* The GNU C library defines this for functions which it implements
15088 to always fail with ENOSYS. Some functions are actually named
15089 something starting with __ and the normal name is an alias. */
15090 #if defined __stub_$ac_func || defined __stub___$ac_func
15091 choke me
15092 #endif
15094 int
15095 main ()
15096 {
15097 return $ac_func ();
15098 ;
15099 return 0;
15100 }
15101 _ACEOF
15102 rm -f conftest.$ac_objext conftest$ac_exeext
15103 if { (ac_try="$ac_link"
15104 case "(($ac_try" in
15105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106 *) ac_try_echo=$ac_try;;
15107 esac
15108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109 (eval "$ac_link") 2>conftest.er1
15110 ac_status=$?
15111 grep -v '^ *+' conftest.er1 >conftest.err
15112 rm -f conftest.er1
15113 cat conftest.err >&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } && {
15116 test -z "$ac_c_werror_flag" ||
15117 test ! -s conftest.err
15118 } && test -s conftest$ac_exeext &&
15119 $as_test_x conftest$ac_exeext; then
15120 eval "$as_ac_var=yes"
15121 else
15122 echo "$as_me: failed program was:" >&5
15123 sed 's/^/| /' conftest.$ac_ext >&5
15125 eval "$as_ac_var=no"
15126 fi
15128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15129 conftest$ac_exeext conftest.$ac_ext
15130 fi
15131 ac_res=`eval echo '${'$as_ac_var'}'`
15132 { echo "$as_me:$LINENO: result: $ac_res" >&5
15133 echo "${ECHO_T}$ac_res" >&6; }
15134 if test `eval echo '${'$as_ac_var'}'` = yes; then
15135 cat >>confdefs.h <<_ACEOF
15136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15137 _ACEOF
15139 fi
15140 done
15142 MSGFMT_OPTS=
15143 { echo "$as_me:$LINENO: checking if msgfmt accepts -c" >&5
15144 echo $ECHO_N "checking if msgfmt accepts -c... $ECHO_C" >&6; }
15145 cat >conftest.foo <<_ACEOF
15147 msgid ""
15148 msgstr ""
15149 "Content-Type: text/plain; charset=UTF-8\n"
15150 "Project-Id-Version: test 1.0\n"
15151 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
15152 "Last-Translator: test <foo@bar.xx>\n"
15153 "Language-Team: C <LL@li.org>\n"
15154 "MIME-Version: 1.0\n"
15155 "Content-Transfer-Encoding: 8bit\n"
15157 _ACEOF
15158 if { (echo "$as_me:$LINENO: \$MSGFMT -c -o /dev/null conftest.foo") >&5
15159 ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
15160 ac_status=$?
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; then
15163 MSGFMT_OPTS=-c; { echo "$as_me:$LINENO: result: yes" >&5
15164 echo "${ECHO_T}yes" >&6; }
15165 else { echo "$as_me:$LINENO: result: no" >&5
15166 echo "${ECHO_T}no" >&6; }
15167 echo "$as_me: failed input was:" >&5
15168 sed 's/^/| /' conftest.foo >&5
15169 fi
15171 # Extract the first word of "gmsgfmt", so it can be a program name with args.
15172 set dummy gmsgfmt; ac_word=$2
15173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15175 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15177 else
15178 case $GMSGFMT in
15179 [\\/]* | ?:[\\/]*)
15180 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15181 ;;
15182 *)
15183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15184 for as_dir in $PATH
15185 do
15186 IFS=$as_save_IFS
15187 test -z "$as_dir" && as_dir=.
15188 for ac_exec_ext in '' $ac_executable_extensions; do
15189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15190 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15192 break 2
15193 fi
15194 done
15195 done
15196 IFS=$as_save_IFS
15198 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15199 ;;
15200 esac
15201 fi
15202 GMSGFMT=$ac_cv_path_GMSGFMT
15203 if test -n "$GMSGFMT"; then
15204 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15205 echo "${ECHO_T}$GMSGFMT" >&6; }
15206 else
15207 { echo "$as_me:$LINENO: result: no" >&5
15208 echo "${ECHO_T}no" >&6; }
15209 fi
15212 # Extract the first word of "xgettext", so it can be a program name with args.
15213 set dummy xgettext; ac_word=$2
15214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15216 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219 case "$XGETTEXT" in
15220 /*)
15221 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15222 ;;
15223 *)
15224 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15225 for ac_dir in $PATH; do
15226 test -z "$ac_dir" && ac_dir=.
15227 if test -f $ac_dir/$ac_word; then
15228 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
15229 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15230 break
15231 fi
15232 fi
15233 done
15234 IFS="$ac_save_ifs"
15235 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15236 ;;
15237 esac
15238 fi
15239 XGETTEXT="$ac_cv_path_XGETTEXT"
15240 if test "$XGETTEXT" != ":"; then
15241 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15242 echo "${ECHO_T}$XGETTEXT" >&6; }
15243 else
15244 { echo "$as_me:$LINENO: result: no" >&5
15245 echo "${ECHO_T}no" >&6; }
15246 fi
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15255 int
15256 main ()
15257 {
15258 extern int _nl_msg_cat_cntr;
15259 return _nl_msg_cat_cntr
15260 ;
15261 return 0;
15262 }
15263 _ACEOF
15264 rm -f conftest.$ac_objext conftest$ac_exeext
15265 if { (ac_try="$ac_link"
15266 case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_link") 2>conftest.er1
15272 ac_status=$?
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } && {
15278 test -z "$ac_c_werror_flag" ||
15279 test ! -s conftest.err
15280 } && test -s conftest$ac_exeext &&
15281 $as_test_x conftest$ac_exeext; then
15282 CATOBJEXT=.gmo
15283 DATADIRNAME=share
15284 else
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 case $host in
15289 *-*-solaris*)
15290 { echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
15291 echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6; }
15292 if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
15293 echo $ECHO_N "(cached) $ECHO_C" >&6
15294 else
15295 cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h. */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15301 /* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
15302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15303 #define bind_textdomain_codeset innocuous_bind_textdomain_codeset
15305 /* System header to define __stub macros and hopefully few prototypes,
15306 which can conflict with char bind_textdomain_codeset (); below.
15307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15308 <limits.h> exists even on freestanding compilers. */
15310 #ifdef __STDC__
15311 # include <limits.h>
15312 #else
15313 # include <assert.h>
15314 #endif
15316 #undef bind_textdomain_codeset
15318 /* Override any GCC internal prototype to avoid an error.
15319 Use char because int might match the return type of a GCC
15320 builtin and then its argument prototype would still apply. */
15321 #ifdef __cplusplus
15322 extern "C"
15323 #endif
15324 char bind_textdomain_codeset ();
15325 /* The GNU C library defines this for functions which it implements
15326 to always fail with ENOSYS. Some functions are actually named
15327 something starting with __ and the normal name is an alias. */
15328 #if defined __stub_bind_textdomain_codeset || defined __stub___bind_textdomain_codeset
15329 choke me
15330 #endif
15332 int
15333 main ()
15334 {
15335 return bind_textdomain_codeset ();
15336 ;
15337 return 0;
15338 }
15339 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (ac_try="$ac_link"
15342 case "(($ac_try" in
15343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15344 *) ac_try_echo=$ac_try;;
15345 esac
15346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15347 (eval "$ac_link") 2>conftest.er1
15348 ac_status=$?
15349 grep -v '^ *+' conftest.er1 >conftest.err
15350 rm -f conftest.er1
15351 cat conftest.err >&5
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } && {
15354 test -z "$ac_c_werror_flag" ||
15355 test ! -s conftest.err
15356 } && test -s conftest$ac_exeext &&
15357 $as_test_x conftest$ac_exeext; then
15358 ac_cv_func_bind_textdomain_codeset=yes
15359 else
15360 echo "$as_me: failed program was:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ac_cv_func_bind_textdomain_codeset=no
15364 fi
15366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15367 conftest$ac_exeext conftest.$ac_ext
15368 fi
15369 { echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
15370 echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6; }
15371 if test $ac_cv_func_bind_textdomain_codeset = yes; then
15372 CATOBJEXT=.gmo
15373 DATADIRNAME=share
15374 else
15375 CATOBJEXT=.mo
15376 DATADIRNAME=lib
15377 fi
15379 ;;
15380 *)
15381 CATOBJEXT=.mo
15382 DATADIRNAME=lib
15383 ;;
15384 esac
15385 fi
15387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15388 conftest$ac_exeext conftest.$ac_ext
15389 LIBS="$glib_save_LIBS"
15390 INSTOBJEXT=.mo
15391 else
15392 gt_cv_have_gettext=no
15393 fi
15394 fi
15396 fi
15400 if test "$gt_cv_have_gettext" = "yes" ; then
15402 cat >>confdefs.h <<\_ACEOF
15403 #define ENABLE_NLS 1
15404 _ACEOF
15406 fi
15408 if test "$XGETTEXT" != ":"; then
15409 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
15410 : ;
15411 else
15412 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15413 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
15414 XGETTEXT=":"
15415 fi
15416 fi
15418 # We need to process the po/ directory.
15419 POSUB=po
15421 ac_config_commands="$ac_config_commands default-1"
15424 for lang in $ALL_LINGUAS; do
15425 GMOFILES="$GMOFILES $lang.gmo"
15426 POFILES="$POFILES $lang.po"
15427 done
15441 if test "$gt_cv_have_gettext" = "yes"; then
15442 if test "x$ALL_LINGUAS" = "x"; then
15443 LINGUAS=
15444 else
15445 { echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15446 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6; }
15447 NEW_LINGUAS=
15448 for presentlang in $ALL_LINGUAS; do
15449 useit=no
15450 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
15451 desiredlanguages="$LINGUAS"
15452 else
15453 desiredlanguages="$ALL_LINGUAS"
15454 fi
15455 for desiredlang in $desiredlanguages; do
15456 # Use the presentlang catalog if desiredlang is
15457 # a. equal to presentlang, or
15458 # b. a variant of presentlang (because in this case,
15459 # presentlang can be used as a fallback for messages
15460 # which are not translated in the desiredlang catalog).
15461 case "$desiredlang" in
15462 "$presentlang"*) useit=yes;;
15463 esac
15464 done
15465 if test $useit = yes; then
15466 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15467 fi
15468 done
15469 LINGUAS=$NEW_LINGUAS
15470 { echo "$as_me:$LINENO: result: $LINGUAS" >&5
15471 echo "${ECHO_T}$LINGUAS" >&6; }
15472 fi
15474 if test -n "$LINGUAS"; then
15475 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15476 fi
15477 fi
15479 MKINSTALLDIRS=
15480 if test -n "$ac_aux_dir"; then
15481 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15482 fi
15483 if test -z "$MKINSTALLDIRS"; then
15484 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15485 fi
15488 test -d po || mkdir po
15489 if test "x$srcdir" != "x."; then
15490 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
15491 posrcprefix="$srcdir/"
15492 else
15493 posrcprefix="../$srcdir/"
15494 fi
15495 else
15496 posrcprefix="../"
15497 fi
15498 rm -f po/POTFILES
15499 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
15500 < $srcdir/po/POTFILES.in > po/POTFILES
15503 ac_config_files="$ac_config_files Makefile src/Makefile src/tools/Makefile po/Makefile.in test/Makefile Info.plist"
15505 cat >confcache <<\_ACEOF
15506 # This file is a shell script that caches the results of configure
15507 # tests run on this system so they can be shared between configure
15508 # scripts and configure runs, see configure's option --config-cache.
15509 # It is not useful on other systems. If it contains results you don't
15510 # want to keep, you may remove or edit it.
15511 #
15512 # config.status only pays attention to the cache file if you give it
15513 # the --recheck option to rerun configure.
15514 #
15515 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15516 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15517 # following values.
15519 _ACEOF
15521 # The following way of writing the cache mishandles newlines in values,
15522 # but we know of no workaround that is simple, portable, and efficient.
15523 # So, we kill variables containing newlines.
15524 # Ultrix sh set writes to stderr and can't be redirected directly,
15525 # and sets the high bit in the cache file unless we assign to the vars.
15526 (
15527 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15528 eval ac_val=\$$ac_var
15529 case $ac_val in #(
15530 *${as_nl}*)
15531 case $ac_var in #(
15532 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15533 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15534 esac
15535 case $ac_var in #(
15536 _ | IFS | as_nl) ;; #(
15537 *) $as_unset $ac_var ;;
15538 esac ;;
15539 esac
15540 done
15542 (set) 2>&1 |
15543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15544 *${as_nl}ac_space=\ *)
15545 # `set' does not quote correctly, so add quotes (double-quote
15546 # substitution turns \\\\ into \\, and sed turns \\ into \).
15547 sed -n \
15548 "s/'/'\\\\''/g;
15549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15550 ;; #(
15551 *)
15552 # `set' quotes correctly as required by POSIX, so do not add quotes.
15553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15554 ;;
15555 esac |
15556 sort
15557 ) |
15558 sed '
15559 /^ac_cv_env_/b end
15560 t clear
15561 :clear
15562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15563 t end
15564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15565 :end' >>confcache
15566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15567 if test -w "$cache_file"; then
15568 test "x$cache_file" != "x/dev/null" &&
15569 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15570 echo "$as_me: updating cache $cache_file" >&6;}
15571 cat confcache >$cache_file
15572 else
15573 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15574 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15575 fi
15576 fi
15577 rm -f confcache
15579 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15580 # Let make expand exec_prefix.
15581 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15583 DEFS=-DHAVE_CONFIG_H
15585 ac_libobjs=
15586 ac_ltlibobjs=
15587 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15588 # 1. Remove the extension, and $U if already installed.
15589 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15590 ac_i=`echo "$ac_i" | sed "$ac_script"`
15591 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15592 # will be set to the directory where LIBOBJS objects are built.
15593 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15594 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15595 done
15596 LIBOBJS=$ac_libobjs
15598 LTLIBOBJS=$ac_ltlibobjs
15601 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15602 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15603 Usually this means the macro was only invoked conditionally." >&5
15604 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15605 Usually this means the macro was only invoked conditionally." >&2;}
15606 { (exit 1); exit 1; }; }
15607 fi
15608 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15609 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15610 Usually this means the macro was only invoked conditionally." >&5
15611 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15612 Usually this means the macro was only invoked conditionally." >&2;}
15613 { (exit 1); exit 1; }; }
15614 fi
15615 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15616 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15617 Usually this means the macro was only invoked conditionally." >&5
15618 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15619 Usually this means the macro was only invoked conditionally." >&2;}
15620 { (exit 1); exit 1; }; }
15621 fi
15622 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15623 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15624 Usually this means the macro was only invoked conditionally." >&5
15625 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15626 Usually this means the macro was only invoked conditionally." >&2;}
15627 { (exit 1); exit 1; }; }
15628 fi
15629 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15630 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15631 Usually this means the macro was only invoked conditionally." >&5
15632 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15633 Usually this means the macro was only invoked conditionally." >&2;}
15634 { (exit 1); exit 1; }; }
15635 fi
15636 if test -z "${am__fastdepCC_FOR_BUILD_TRUE}" && test -z "${am__fastdepCC_FOR_BUILD_FALSE}"; then
15637 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
15638 Usually this means the macro was only invoked conditionally." >&5
15639 echo "$as_me: error: conditional \"am__fastdepCC_FOR_BUILD\" was never defined.
15640 Usually this means the macro was only invoked conditionally." >&2;}
15641 { (exit 1); exit 1; }; }
15642 fi
15643 if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
15644 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepOBJC\" was never defined.
15645 Usually this means the macro was only invoked conditionally." >&5
15646 echo "$as_me: error: conditional \"am__fastdepOBJC\" was never defined.
15647 Usually this means the macro was only invoked conditionally." >&2;}
15648 { (exit 1); exit 1; }; }
15649 fi
15650 if test -z "${GUI_COCOA_TRUE}" && test -z "${GUI_COCOA_FALSE}"; then
15651 { { echo "$as_me:$LINENO: error: conditional \"GUI_COCOA\" was never defined.
15652 Usually this means the macro was only invoked conditionally." >&5
15653 echo "$as_me: error: conditional \"GUI_COCOA\" was never defined.
15654 Usually this means the macro was only invoked conditionally." >&2;}
15655 { (exit 1); exit 1; }; }
15656 fi
15657 if test -z "${BUILD_PLUGINS_TRUE}" && test -z "${BUILD_PLUGINS_FALSE}"; then
15658 { { echo "$as_me:$LINENO: error: conditional \"BUILD_PLUGINS\" was never defined.
15659 Usually this means the macro was only invoked conditionally." >&5
15660 echo "$as_me: error: conditional \"BUILD_PLUGINS\" was never defined.
15661 Usually this means the macro was only invoked conditionally." >&2;}
15662 { (exit 1); exit 1; }; }
15663 fi
15664 if test -z "${GUI_GTK_TRUE}" && test -z "${GUI_GTK_FALSE}"; then
15665 { { echo "$as_me:$LINENO: error: conditional \"GUI_GTK\" was never defined.
15666 Usually this means the macro was only invoked conditionally." >&5
15667 echo "$as_me: error: conditional \"GUI_GTK\" was never defined.
15668 Usually this means the macro was only invoked conditionally." >&2;}
15669 { (exit 1); exit 1; }; }
15670 fi
15671 if test -z "${VIDEO_OSMESA_TRUE}" && test -z "${VIDEO_OSMESA_FALSE}"; then
15672 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_OSMESA\" was never defined.
15673 Usually this means the macro was only invoked conditionally." >&5
15674 echo "$as_me: error: conditional \"VIDEO_OSMESA\" was never defined.
15675 Usually this means the macro was only invoked conditionally." >&2;}
15676 { (exit 1); exit 1; }; }
15677 fi
15678 if test -z "${VIDEO_GLX_TRUE}" && test -z "${VIDEO_GLX_FALSE}"; then
15679 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_GLX\" was never defined.
15680 Usually this means the macro was only invoked conditionally." >&5
15681 echo "$as_me: error: conditional \"VIDEO_GLX\" was never defined.
15682 Usually this means the macro was only invoked conditionally." >&2;}
15683 { (exit 1); exit 1; }; }
15684 fi
15685 if test -z "${VIDEO_NSGL_TRUE}" && test -z "${VIDEO_NSGL_FALSE}"; then
15686 { { echo "$as_me:$LINENO: error: conditional \"VIDEO_NSGL\" was never defined.
15687 Usually this means the macro was only invoked conditionally." >&5
15688 echo "$as_me: error: conditional \"VIDEO_NSGL\" was never defined.
15689 Usually this means the macro was only invoked conditionally." >&2;}
15690 { (exit 1); exit 1; }; }
15691 fi
15692 if test -z "${BUILD_SH4X86_TRUE}" && test -z "${BUILD_SH4X86_FALSE}"; then
15693 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SH4X86\" was never defined.
15694 Usually this means the macro was only invoked conditionally." >&5
15695 echo "$as_me: error: conditional \"BUILD_SH4X86\" was never defined.
15696 Usually this means the macro was only invoked conditionally." >&2;}
15697 { (exit 1); exit 1; }; }
15698 fi
15699 if test -z "${AUDIO_OSX_TRUE}" && test -z "${AUDIO_OSX_FALSE}"; then
15700 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_OSX\" was never defined.
15701 Usually this means the macro was only invoked conditionally." >&5
15702 echo "$as_me: error: conditional \"AUDIO_OSX\" was never defined.
15703 Usually this means the macro was only invoked conditionally." >&2;}
15704 { (exit 1); exit 1; }; }
15705 fi
15706 if test -z "${AUDIO_SDL_TRUE}" && test -z "${AUDIO_SDL_FALSE}"; then
15707 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_SDL\" was never defined.
15708 Usually this means the macro was only invoked conditionally." >&5
15709 echo "$as_me: error: conditional \"AUDIO_SDL\" was never defined.
15710 Usually this means the macro was only invoked conditionally." >&2;}
15711 { (exit 1); exit 1; }; }
15712 fi
15713 if test -z "${AUDIO_PULSE_TRUE}" && test -z "${AUDIO_PULSE_FALSE}"; then
15714 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_PULSE\" was never defined.
15715 Usually this means the macro was only invoked conditionally." >&5
15716 echo "$as_me: error: conditional \"AUDIO_PULSE\" was never defined.
15717 Usually this means the macro was only invoked conditionally." >&2;}
15718 { (exit 1); exit 1; }; }
15719 fi
15720 if test -z "${AUDIO_ESOUND_TRUE}" && test -z "${AUDIO_ESOUND_FALSE}"; then
15721 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ESOUND\" was never defined.
15722 Usually this means the macro was only invoked conditionally." >&5
15723 echo "$as_me: error: conditional \"AUDIO_ESOUND\" was never defined.
15724 Usually this means the macro was only invoked conditionally." >&2;}
15725 { (exit 1); exit 1; }; }
15726 fi
15727 if test -z "${AUDIO_ALSA_TRUE}" && test -z "${AUDIO_ALSA_FALSE}"; then
15728 { { echo "$as_me:$LINENO: error: conditional \"AUDIO_ALSA\" was never defined.
15729 Usually this means the macro was only invoked conditionally." >&5
15730 echo "$as_me: error: conditional \"AUDIO_ALSA\" was never defined.
15731 Usually this means the macro was only invoked conditionally." >&2;}
15732 { (exit 1); exit 1; }; }
15733 fi
15734 if test -z "${CDROM_LINUX_TRUE}" && test -z "${CDROM_LINUX_FALSE}"; then
15735 { { echo "$as_me:$LINENO: error: conditional \"CDROM_LINUX\" was never defined.
15736 Usually this means the macro was only invoked conditionally." >&5
15737 echo "$as_me: error: conditional \"CDROM_LINUX\" was never defined.
15738 Usually this means the macro was only invoked conditionally." >&2;}
15739 { (exit 1); exit 1; }; }
15740 fi
15741 if test -z "${CDROM_OSX_TRUE}" && test -z "${CDROM_OSX_FALSE}"; then
15742 { { echo "$as_me:$LINENO: error: conditional \"CDROM_OSX\" was never defined.
15743 Usually this means the macro was only invoked conditionally." >&5
15744 echo "$as_me: error: conditional \"CDROM_OSX\" was never defined.
15745 Usually this means the macro was only invoked conditionally." >&2;}
15746 { (exit 1); exit 1; }; }
15747 fi
15748 if test -z "${CDROM_NONE_TRUE}" && test -z "${CDROM_NONE_FALSE}"; then
15749 { { echo "$as_me:$LINENO: error: conditional \"CDROM_NONE\" was never defined.
15750 Usually this means the macro was only invoked conditionally." >&5
15751 echo "$as_me: error: conditional \"CDROM_NONE\" was never defined.
15752 Usually this means the macro was only invoked conditionally." >&2;}
15753 { (exit 1); exit 1; }; }
15754 fi
15755 if test -z "${JOY_LINUX_TRUE}" && test -z "${JOY_LINUX_FALSE}"; then
15756 { { echo "$as_me:$LINENO: error: conditional \"JOY_LINUX\" was never defined.
15757 Usually this means the macro was only invoked conditionally." >&5
15758 echo "$as_me: error: conditional \"JOY_LINUX\" was never defined.
15759 Usually this means the macro was only invoked conditionally." >&2;}
15760 { (exit 1); exit 1; }; }
15761 fi
15762 if test -z "${INPUT_LIRC_TRUE}" && test -z "${INPUT_LIRC_FALSE}"; then
15763 { { echo "$as_me:$LINENO: error: conditional \"INPUT_LIRC\" was never defined.
15764 Usually this means the macro was only invoked conditionally." >&5
15765 echo "$as_me: error: conditional \"INPUT_LIRC\" was never defined.
15766 Usually this means the macro was only invoked conditionally." >&2;}
15767 { (exit 1); exit 1; }; }
15768 fi
15769 if test -z "${BUILD_SYSTEST_TRUE}" && test -z "${BUILD_SYSTEST_FALSE}"; then
15770 { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYSTEST\" was never defined.
15771 Usually this means the macro was only invoked conditionally." >&5
15772 echo "$as_me: error: conditional \"BUILD_SYSTEST\" was never defined.
15773 Usually this means the macro was only invoked conditionally." >&2;}
15774 { (exit 1); exit 1; }; }
15775 fi
15776 if test -z "${BUILD_ARMTEST_TRUE}" && test -z "${BUILD_ARMTEST_FALSE}"; then
15777 { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARMTEST\" was never defined.
15778 Usually this means the macro was only invoked conditionally." >&5
15779 echo "$as_me: error: conditional \"BUILD_ARMTEST\" was never defined.
15780 Usually this means the macro was only invoked conditionally." >&2;}
15781 { (exit 1); exit 1; }; }
15782 fi
15784 : ${CONFIG_STATUS=./config.status}
15785 ac_clean_files_save=$ac_clean_files
15786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15787 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15788 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15789 cat >$CONFIG_STATUS <<_ACEOF
15790 #! $SHELL
15791 # Generated by $as_me.
15792 # Run this file to recreate the current configuration.
15793 # Compiler output produced by configure, useful for debugging
15794 # configure, is in config.log if it exists.
15796 debug=false
15797 ac_cs_recheck=false
15798 ac_cs_silent=false
15799 SHELL=\${CONFIG_SHELL-$SHELL}
15800 _ACEOF
15802 cat >>$CONFIG_STATUS <<\_ACEOF
15803 ## --------------------- ##
15804 ## M4sh Initialization. ##
15805 ## --------------------- ##
15807 # Be more Bourne compatible
15808 DUALCASE=1; export DUALCASE # for MKS sh
15809 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15810 emulate sh
15811 NULLCMD=:
15812 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15813 # is contrary to our usage. Disable this feature.
15814 alias -g '${1+"$@"}'='"$@"'
15815 setopt NO_GLOB_SUBST
15816 else
15817 case `(set -o) 2>/dev/null` in
15818 *posix*) set -o posix ;;
15819 esac
15821 fi
15826 # PATH needs CR
15827 # Avoid depending upon Character Ranges.
15828 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15829 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15830 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15831 as_cr_digits='0123456789'
15832 as_cr_alnum=$as_cr_Letters$as_cr_digits
15834 # The user is always right.
15835 if test "${PATH_SEPARATOR+set}" != set; then
15836 echo "#! /bin/sh" >conf$$.sh
15837 echo "exit 0" >>conf$$.sh
15838 chmod +x conf$$.sh
15839 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15840 PATH_SEPARATOR=';'
15841 else
15842 PATH_SEPARATOR=:
15843 fi
15844 rm -f conf$$.sh
15845 fi
15847 # Support unset when possible.
15848 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15849 as_unset=unset
15850 else
15851 as_unset=false
15852 fi
15855 # IFS
15856 # We need space, tab and new line, in precisely that order. Quoting is
15857 # there to prevent editors from complaining about space-tab.
15858 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15859 # splitting by setting IFS to empty value.)
15860 as_nl='
15861 '
15862 IFS=" "" $as_nl"
15864 # Find who we are. Look in the path if we contain no directory separator.
15865 case $0 in
15866 *[\\/]* ) as_myself=$0 ;;
15867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15868 for as_dir in $PATH
15869 do
15870 IFS=$as_save_IFS
15871 test -z "$as_dir" && as_dir=.
15872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15873 done
15874 IFS=$as_save_IFS
15876 ;;
15877 esac
15878 # We did not find ourselves, most probably we were run as `sh COMMAND'
15879 # in which case we are not to be found in the path.
15880 if test "x$as_myself" = x; then
15881 as_myself=$0
15882 fi
15883 if test ! -f "$as_myself"; then
15884 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15885 { (exit 1); exit 1; }
15886 fi
15888 # Work around bugs in pre-3.0 UWIN ksh.
15889 for as_var in ENV MAIL MAILPATH
15890 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15891 done
15892 PS1='$ '
15893 PS2='> '
15894 PS4='+ '
15896 # NLS nuisances.
15897 for as_var in \
15898 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15899 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15900 LC_TELEPHONE LC_TIME
15901 do
15902 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15903 eval $as_var=C; export $as_var
15904 else
15905 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15906 fi
15907 done
15909 # Required to use basename.
15910 if expr a : '\(a\)' >/dev/null 2>&1 &&
15911 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15912 as_expr=expr
15913 else
15914 as_expr=false
15915 fi
15917 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15918 as_basename=basename
15919 else
15920 as_basename=false
15921 fi
15924 # Name of the executable.
15925 as_me=`$as_basename -- "$0" ||
15926 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15927 X"$0" : 'X\(//\)$' \| \
15928 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15929 echo X/"$0" |
15930 sed '/^.*\/\([^/][^/]*\)\/*$/{
15931 s//\1/
15932 q
15933 }
15934 /^X\/\(\/\/\)$/{
15935 s//\1/
15936 q
15937 }
15938 /^X\/\(\/\).*/{
15939 s//\1/
15940 q
15941 }
15942 s/.*/./; q'`
15944 # CDPATH.
15945 $as_unset CDPATH
15949 as_lineno_1=$LINENO
15950 as_lineno_2=$LINENO
15951 test "x$as_lineno_1" != "x$as_lineno_2" &&
15952 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15954 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15955 # uniformly replaced by the line number. The first 'sed' inserts a
15956 # line-number line after each line using $LINENO; the second 'sed'
15957 # does the real work. The second script uses 'N' to pair each
15958 # line-number line with the line containing $LINENO, and appends
15959 # trailing '-' during substitution so that $LINENO is not a special
15960 # case at line end.
15961 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15962 # scripts with optimization help from Paolo Bonzini. Blame Lee
15963 # E. McMahon (1931-1989) for sed's syntax. :-)
15964 sed -n '
15965 p
15966 /[$]LINENO/=
15967 ' <$as_myself |
15968 sed '
15969 s/[$]LINENO.*/&-/
15970 t lineno
15971 b
15972 :lineno
15973 N
15974 :loop
15975 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15976 t loop
15977 s/-\n.*//
15978 ' >$as_me.lineno &&
15979 chmod +x "$as_me.lineno" ||
15980 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15981 { (exit 1); exit 1; }; }
15983 # Don't try to exec as it changes $[0], causing all sort of problems
15984 # (the dirname of $[0] is not the place where we might find the
15985 # original and so on. Autoconf is especially sensitive to this).
15986 . "./$as_me.lineno"
15987 # Exit status is that of the last command.
15988 exit
15989 }
15992 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15993 as_dirname=dirname
15994 else
15995 as_dirname=false
15996 fi
15998 ECHO_C= ECHO_N= ECHO_T=
15999 case `echo -n x` in
16000 -n*)
16001 case `echo 'x\c'` in
16002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16003 *) ECHO_C='\c';;
16004 esac;;
16005 *)
16006 ECHO_N='-n';;
16007 esac
16009 if expr a : '\(a\)' >/dev/null 2>&1 &&
16010 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16011 as_expr=expr
16012 else
16013 as_expr=false
16014 fi
16016 rm -f conf$$ conf$$.exe conf$$.file
16017 if test -d conf$$.dir; then
16018 rm -f conf$$.dir/conf$$.file
16019 else
16020 rm -f conf$$.dir
16021 mkdir conf$$.dir
16022 fi
16023 echo >conf$$.file
16024 if ln -s conf$$.file conf$$ 2>/dev/null; then
16025 as_ln_s='ln -s'
16026 # ... but there are two gotchas:
16027 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16028 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16029 # In both cases, we have to default to `cp -p'.
16030 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16031 as_ln_s='cp -p'
16032 elif ln conf$$.file conf$$ 2>/dev/null; then
16033 as_ln_s=ln
16034 else
16035 as_ln_s='cp -p'
16036 fi
16037 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16038 rmdir conf$$.dir 2>/dev/null
16040 if mkdir -p . 2>/dev/null; then
16041 as_mkdir_p=:
16042 else
16043 test -d ./-p && rmdir ./-p
16044 as_mkdir_p=false
16045 fi
16047 if test -x / >/dev/null 2>&1; then
16048 as_test_x='test -x'
16049 else
16050 if ls -dL / >/dev/null 2>&1; then
16051 as_ls_L_option=L
16052 else
16053 as_ls_L_option=
16054 fi
16055 as_test_x='
16056 eval sh -c '\''
16057 if test -d "$1"; then
16058 test -d "$1/.";
16059 else
16060 case $1 in
16061 -*)set "./$1";;
16062 esac;
16063 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16064 ???[sx]*):;;*)false;;esac;fi
16065 '\'' sh
16066 '
16067 fi
16068 as_executable_p=$as_test_x
16070 # Sed expression to map a string onto a valid CPP name.
16071 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16073 # Sed expression to map a string onto a valid variable name.
16074 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16077 exec 6>&1
16079 # Save the log message, to keep $[0] and so on meaningful, and to
16080 # report actual input values of CONFIG_FILES etc. instead of their
16081 # values after options handling.
16082 ac_log="
16083 This file was extended by $as_me, which was
16084 generated by GNU Autoconf 2.61. Invocation command line was
16086 CONFIG_FILES = $CONFIG_FILES
16087 CONFIG_HEADERS = $CONFIG_HEADERS
16088 CONFIG_LINKS = $CONFIG_LINKS
16089 CONFIG_COMMANDS = $CONFIG_COMMANDS
16090 $ $0 $@
16092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16093 "
16095 _ACEOF
16097 cat >>$CONFIG_STATUS <<_ACEOF
16098 # Files that config.status was made for.
16099 config_files="$ac_config_files"
16100 config_headers="$ac_config_headers"
16101 config_commands="$ac_config_commands"
16103 _ACEOF
16105 cat >>$CONFIG_STATUS <<\_ACEOF
16106 ac_cs_usage="\
16107 \`$as_me' instantiates files from templates according to the
16108 current configuration.
16110 Usage: $0 [OPTIONS] [FILE]...
16112 -h, --help print this help, then exit
16113 -V, --version print version number and configuration settings, then exit
16114 -q, --quiet do not print progress messages
16115 -d, --debug don't remove temporary files
16116 --recheck update $as_me by reconfiguring in the same conditions
16117 --file=FILE[:TEMPLATE]
16118 instantiate the configuration file FILE
16119 --header=FILE[:TEMPLATE]
16120 instantiate the configuration header FILE
16122 Configuration files:
16123 $config_files
16125 Configuration headers:
16126 $config_headers
16128 Configuration commands:
16129 $config_commands
16131 Report bugs to <bug-autoconf@gnu.org>."
16133 _ACEOF
16134 cat >>$CONFIG_STATUS <<_ACEOF
16135 ac_cs_version="\\
16136 config.status
16137 configured by $0, generated by GNU Autoconf 2.61,
16138 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16140 Copyright (C) 2006 Free Software Foundation, Inc.
16141 This config.status script is free software; the Free Software Foundation
16142 gives unlimited permission to copy, distribute and modify it."
16144 ac_pwd='$ac_pwd'
16145 srcdir='$srcdir'
16146 INSTALL='$INSTALL'
16147 _ACEOF
16149 cat >>$CONFIG_STATUS <<\_ACEOF
16150 # If no file are specified by the user, then we need to provide default
16151 # value. By we need to know if files were specified by the user.
16152 ac_need_defaults=:
16153 while test $# != 0
16154 do
16155 case $1 in
16156 --*=*)
16157 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16158 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16159 ac_shift=:
16160 ;;
16161 *)
16162 ac_option=$1
16163 ac_optarg=$2
16164 ac_shift=shift
16165 ;;
16166 esac
16168 case $ac_option in
16169 # Handling of the options.
16170 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16171 ac_cs_recheck=: ;;
16172 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16173 echo "$ac_cs_version"; exit ;;
16174 --debug | --debu | --deb | --de | --d | -d )
16175 debug=: ;;
16176 --file | --fil | --fi | --f )
16177 $ac_shift
16178 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16179 ac_need_defaults=false;;
16180 --header | --heade | --head | --hea )
16181 $ac_shift
16182 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16183 ac_need_defaults=false;;
16184 --he | --h)
16185 # Conflict between --help and --header
16186 { echo "$as_me: error: ambiguous option: $1
16187 Try \`$0 --help' for more information." >&2
16188 { (exit 1); exit 1; }; };;
16189 --help | --hel | -h )
16190 echo "$ac_cs_usage"; exit ;;
16191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16192 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16193 ac_cs_silent=: ;;
16195 # This is an error.
16196 -*) { echo "$as_me: error: unrecognized option: $1
16197 Try \`$0 --help' for more information." >&2
16198 { (exit 1); exit 1; }; } ;;
16200 *) ac_config_targets="$ac_config_targets $1"
16201 ac_need_defaults=false ;;
16203 esac
16204 shift
16205 done
16207 ac_configure_extra_args=
16209 if $ac_cs_silent; then
16210 exec 6>/dev/null
16211 ac_configure_extra_args="$ac_configure_extra_args --silent"
16212 fi
16214 _ACEOF
16215 cat >>$CONFIG_STATUS <<_ACEOF
16216 if \$ac_cs_recheck; then
16217 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16218 CONFIG_SHELL=$SHELL
16219 export CONFIG_SHELL
16220 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16221 fi
16223 _ACEOF
16224 cat >>$CONFIG_STATUS <<\_ACEOF
16225 exec 5>>config.log
16226 {
16227 echo
16228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16229 ## Running $as_me. ##
16230 _ASBOX
16231 echo "$ac_log"
16232 } >&5
16234 _ACEOF
16235 cat >>$CONFIG_STATUS <<_ACEOF
16236 #
16237 # INIT-COMMANDS
16238 #
16239 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16242 _ACEOF
16244 cat >>$CONFIG_STATUS <<\_ACEOF
16246 # Handling of arguments.
16247 for ac_config_target in $ac_config_targets
16248 do
16249 case $ac_config_target in
16250 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16251 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16252 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16253 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16254 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16255 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
16256 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16257 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16258 "Info.plist") CONFIG_FILES="$CONFIG_FILES Info.plist" ;;
16260 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16261 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16262 { (exit 1); exit 1; }; };;
16263 esac
16264 done
16267 # If the user did not use the arguments to specify the items to instantiate,
16268 # then the envvar interface is used. Set only those that are not.
16269 # We use the long form for the default assignment because of an extremely
16270 # bizarre bug on SunOS 4.1.3.
16271 if $ac_need_defaults; then
16272 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16273 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16274 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16275 fi
16277 # Have a temporary directory for convenience. Make it in the build tree
16278 # simply because there is no reason against having it here, and in addition,
16279 # creating and moving files from /tmp can sometimes cause problems.
16280 # Hook for its removal unless debugging.
16281 # Note that there is a small window in which the directory will not be cleaned:
16282 # after its creation but before its name has been assigned to `$tmp'.
16283 $debug ||
16284 {
16285 tmp=
16286 trap 'exit_status=$?
16287 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16288 ' 0
16289 trap '{ (exit 1); exit 1; }' 1 2 13 15
16290 }
16291 # Create a (secure) tmp directory for tmp files.
16293 {
16294 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16295 test -n "$tmp" && test -d "$tmp"
16296 } ||
16297 {
16298 tmp=./conf$$-$RANDOM
16299 (umask 077 && mkdir "$tmp")
16300 } ||
16301 {
16302 echo "$me: cannot create a temporary directory in ." >&2
16303 { (exit 1); exit 1; }
16304 }
16306 #
16307 # Set up the sed scripts for CONFIG_FILES section.
16308 #
16310 # No need to generate the scripts if there are no CONFIG_FILES.
16311 # This happens for instance when ./config.status config.h
16312 if test -n "$CONFIG_FILES"; then
16314 _ACEOF
16318 ac_delim='%!_!# '
16319 for ac_last_try in false false false false false :; do
16320 cat >conf$$subs.sed <<_ACEOF
16321 SHELL!$SHELL$ac_delim
16322 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16323 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16324 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16325 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16326 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16327 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16328 exec_prefix!$exec_prefix$ac_delim
16329 prefix!$prefix$ac_delim
16330 program_transform_name!$program_transform_name$ac_delim
16331 bindir!$bindir$ac_delim
16332 sbindir!$sbindir$ac_delim
16333 libexecdir!$libexecdir$ac_delim
16334 datarootdir!$datarootdir$ac_delim
16335 datadir!$datadir$ac_delim
16336 sysconfdir!$sysconfdir$ac_delim
16337 sharedstatedir!$sharedstatedir$ac_delim
16338 localstatedir!$localstatedir$ac_delim
16339 includedir!$includedir$ac_delim
16340 oldincludedir!$oldincludedir$ac_delim
16341 docdir!$docdir$ac_delim
16342 infodir!$infodir$ac_delim
16343 htmldir!$htmldir$ac_delim
16344 dvidir!$dvidir$ac_delim
16345 pdfdir!$pdfdir$ac_delim
16346 psdir!$psdir$ac_delim
16347 libdir!$libdir$ac_delim
16348 localedir!$localedir$ac_delim
16349 mandir!$mandir$ac_delim
16350 DEFS!$DEFS$ac_delim
16351 ECHO_C!$ECHO_C$ac_delim
16352 ECHO_N!$ECHO_N$ac_delim
16353 ECHO_T!$ECHO_T$ac_delim
16354 LIBS!$LIBS$ac_delim
16355 build_alias!$build_alias$ac_delim
16356 host_alias!$host_alias$ac_delim
16357 target_alias!$target_alias$ac_delim
16358 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16359 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16360 INSTALL_DATA!$INSTALL_DATA$ac_delim
16361 CYGPATH_W!$CYGPATH_W$ac_delim
16362 PACKAGE!$PACKAGE$ac_delim
16363 VERSION!$VERSION$ac_delim
16364 ACLOCAL!$ACLOCAL$ac_delim
16365 AUTOCONF!$AUTOCONF$ac_delim
16366 AUTOMAKE!$AUTOMAKE$ac_delim
16367 AUTOHEADER!$AUTOHEADER$ac_delim
16368 MAKEINFO!$MAKEINFO$ac_delim
16369 install_sh!$install_sh$ac_delim
16370 STRIP!$STRIP$ac_delim
16371 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
16372 mkdir_p!$mkdir_p$ac_delim
16373 AWK!$AWK$ac_delim
16374 SET_MAKE!$SET_MAKE$ac_delim
16375 am__leading_dot!$am__leading_dot$ac_delim
16376 AMTAR!$AMTAR$ac_delim
16377 am__tar!$am__tar$ac_delim
16378 am__untar!$am__untar$ac_delim
16379 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
16380 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
16381 MAINT!$MAINT$ac_delim
16382 build!$build$ac_delim
16383 build_cpu!$build_cpu$ac_delim
16384 build_vendor!$build_vendor$ac_delim
16385 build_os!$build_os$ac_delim
16386 host!$host$ac_delim
16387 host_cpu!$host_cpu$ac_delim
16388 host_vendor!$host_vendor$ac_delim
16389 host_os!$host_os$ac_delim
16390 CC!$CC$ac_delim
16391 CFLAGS!$CFLAGS$ac_delim
16392 LDFLAGS!$LDFLAGS$ac_delim
16393 CPPFLAGS!$CPPFLAGS$ac_delim
16394 ac_ct_CC!$ac_ct_CC$ac_delim
16395 EXEEXT!$EXEEXT$ac_delim
16396 OBJEXT!$OBJEXT$ac_delim
16397 DEPDIR!$DEPDIR$ac_delim
16398 am__include!$am__include$ac_delim
16399 am__quote!$am__quote$ac_delim
16400 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
16401 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
16402 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
16403 CCDEPMODE!$CCDEPMODE$ac_delim
16404 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
16405 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
16406 CPP!$CPP$ac_delim
16407 CC!$CC$ac_delim
16408 CFLAGS!$CFLAGS$ac_delim
16409 CPPFLAGS!$CPPFLAGS$ac_delim
16410 CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
16411 ac_ct_CC_FOR_BUILD!$ac_ct_CC_FOR_BUILD$ac_delim
16412 CC_FOR_BUILDDEPMODE!$CC_FOR_BUILDDEPMODE$ac_delim
16413 am__fastdepCC_FOR_BUILD_TRUE!$am__fastdepCC_FOR_BUILD_TRUE$ac_delim
16414 am__fastdepCC_FOR_BUILD_FALSE!$am__fastdepCC_FOR_BUILD_FALSE$ac_delim
16415 CPP!$CPP$ac_delim
16416 CPPFLAGS!$CPPFLAGS$ac_delim
16417 CPP_FOR_BUILD!$CPP_FOR_BUILD$ac_delim
16418 _ACEOF
16420 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16421 break
16422 elif $ac_last_try; then
16423 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16424 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16425 { (exit 1); exit 1; }; }
16426 else
16427 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16428 fi
16429 done
16431 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16432 if test -n "$ac_eof"; then
16433 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16434 ac_eof=`expr $ac_eof + 1`
16435 fi
16437 cat >>$CONFIG_STATUS <<_ACEOF
16438 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16439 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16440 _ACEOF
16441 sed '
16442 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16443 s/^/s,@/; s/!/@,|#_!!_#|/
16444 :n
16445 t n
16446 s/'"$ac_delim"'$/,g/; t
16447 s/$/\\/; p
16448 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16449 ' >>$CONFIG_STATUS <conf$$subs.sed
16450 rm -f conf$$subs.sed
16451 cat >>$CONFIG_STATUS <<_ACEOF
16452 CEOF$ac_eof
16453 _ACEOF
16456 ac_delim='%!_!# '
16457 for ac_last_try in false false false false false :; do
16458 cat >conf$$subs.sed <<_ACEOF
16459 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
16460 BUILD_OBJEXT!$BUILD_OBJEXT$ac_delim
16461 CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
16462 CPPFLAGS_FOR_BUILD!$CPPFLAGS_FOR_BUILD$ac_delim
16463 OBJC!$OBJC$ac_delim
16464 OBJCFLAGS!$OBJCFLAGS$ac_delim
16465 ac_ct_OBJC!$ac_ct_OBJC$ac_delim
16466 SED!$SED$ac_delim
16467 CCAS!$CCAS$ac_delim
16468 CCASFLAGS!$CCASFLAGS$ac_delim
16469 RANLIB!$RANLIB$ac_delim
16470 GREP!$GREP$ac_delim
16471 EGREP!$EGREP$ac_delim
16472 OBJCDEPMODE!$OBJCDEPMODE$ac_delim
16473 am__fastdepOBJC_TRUE!$am__fastdepOBJC_TRUE$ac_delim
16474 am__fastdepOBJC_FALSE!$am__fastdepOBJC_FALSE$ac_delim
16475 POD2MAN!$POD2MAN$ac_delim
16476 POD2HTML!$POD2HTML$ac_delim
16477 GUI_COCOA_TRUE!$GUI_COCOA_TRUE$ac_delim
16478 GUI_COCOA_FALSE!$GUI_COCOA_FALSE$ac_delim
16479 SOEXT!$SOEXT$ac_delim
16480 PLUGINCFLAGS!$PLUGINCFLAGS$ac_delim
16481 PLUGINLDFLAGS!$PLUGINLDFLAGS$ac_delim
16482 LXDREAMLDFLAGS!$LXDREAMLDFLAGS$ac_delim
16483 BUILD_PLUGINS_TRUE!$BUILD_PLUGINS_TRUE$ac_delim
16484 BUILD_PLUGINS_FALSE!$BUILD_PLUGINS_FALSE$ac_delim
16485 LXDREAMCPPFLAGS!$LXDREAMCPPFLAGS$ac_delim
16486 PKG_CONFIG!$PKG_CONFIG$ac_delim
16487 LIBPNG_CFLAGS!$LIBPNG_CFLAGS$ac_delim
16488 LIBPNG_LIBS!$LIBPNG_LIBS$ac_delim
16489 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
16490 GLIB_LIBS!$GLIB_LIBS$ac_delim
16491 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
16492 GTK_LIBS!$GTK_LIBS$ac_delim
16493 GLIB_FOR_BUILD_CFLAGS!$GLIB_FOR_BUILD_CFLAGS$ac_delim
16494 GLIB_FOR_BUILD_LIBS!$GLIB_FOR_BUILD_LIBS$ac_delim
16495 GUI_GTK_TRUE!$GUI_GTK_TRUE$ac_delim
16496 GUI_GTK_FALSE!$GUI_GTK_FALSE$ac_delim
16497 LIBISOFS_CFLAGS!$LIBISOFS_CFLAGS$ac_delim
16498 LIBISOFS_LIBS!$LIBISOFS_LIBS$ac_delim
16499 LIBGL_CFLAGS!$LIBGL_CFLAGS$ac_delim
16500 LIBGL_LIBS!$LIBGL_LIBS$ac_delim
16501 VIDEO_OSMESA_TRUE!$VIDEO_OSMESA_TRUE$ac_delim
16502 VIDEO_OSMESA_FALSE!$VIDEO_OSMESA_FALSE$ac_delim
16503 VIDEO_GLX_TRUE!$VIDEO_GLX_TRUE$ac_delim
16504 VIDEO_GLX_FALSE!$VIDEO_GLX_FALSE$ac_delim
16505 VIDEO_NSGL_TRUE!$VIDEO_NSGL_TRUE$ac_delim
16506 VIDEO_NSGL_FALSE!$VIDEO_NSGL_FALSE$ac_delim
16507 BUILD_SH4X86_TRUE!$BUILD_SH4X86_TRUE$ac_delim
16508 BUILD_SH4X86_FALSE!$BUILD_SH4X86_FALSE$ac_delim
16509 AUDIO_OSX_TRUE!$AUDIO_OSX_TRUE$ac_delim
16510 AUDIO_OSX_FALSE!$AUDIO_OSX_FALSE$ac_delim
16511 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
16512 SDL_LIBS!$SDL_LIBS$ac_delim
16513 AUDIO_SDL_TRUE!$AUDIO_SDL_TRUE$ac_delim
16514 AUDIO_SDL_FALSE!$AUDIO_SDL_FALSE$ac_delim
16515 PULSE_CFLAGS!$PULSE_CFLAGS$ac_delim
16516 PULSE_LIBS!$PULSE_LIBS$ac_delim
16517 AUDIO_PULSE_TRUE!$AUDIO_PULSE_TRUE$ac_delim
16518 AUDIO_PULSE_FALSE!$AUDIO_PULSE_FALSE$ac_delim
16519 ESOUND_CFLAGS!$ESOUND_CFLAGS$ac_delim
16520 ESOUND_LIBS!$ESOUND_LIBS$ac_delim
16521 AUDIO_ESOUND_TRUE!$AUDIO_ESOUND_TRUE$ac_delim
16522 AUDIO_ESOUND_FALSE!$AUDIO_ESOUND_FALSE$ac_delim
16523 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
16524 ALSA_LIBS!$ALSA_LIBS$ac_delim
16525 AUDIO_ALSA_TRUE!$AUDIO_ALSA_TRUE$ac_delim
16526 AUDIO_ALSA_FALSE!$AUDIO_ALSA_FALSE$ac_delim
16527 CDROM_LINUX_TRUE!$CDROM_LINUX_TRUE$ac_delim
16528 CDROM_LINUX_FALSE!$CDROM_LINUX_FALSE$ac_delim
16529 CDROM_OSX_TRUE!$CDROM_OSX_TRUE$ac_delim
16530 CDROM_OSX_FALSE!$CDROM_OSX_FALSE$ac_delim
16531 CDROM_NONE_TRUE!$CDROM_NONE_TRUE$ac_delim
16532 CDROM_NONE_FALSE!$CDROM_NONE_FALSE$ac_delim
16533 JOY_LINUX_TRUE!$JOY_LINUX_TRUE$ac_delim
16534 JOY_LINUX_FALSE!$JOY_LINUX_FALSE$ac_delim
16535 INPUT_LIRC_TRUE!$INPUT_LIRC_TRUE$ac_delim
16536 INPUT_LIRC_FALSE!$INPUT_LIRC_FALSE$ac_delim
16537 SHCC!$SHCC$ac_delim
16538 SHLD!$SHLD$ac_delim
16539 SHOBJCOPY!$SHOBJCOPY$ac_delim
16540 ARMCC!$ARMCC$ac_delim
16541 ARMLD!$ARMLD$ac_delim
16542 ARMOBJCOPY!$ARMOBJCOPY$ac_delim
16543 BUILD_SYSTEST_TRUE!$BUILD_SYSTEST_TRUE$ac_delim
16544 BUILD_SYSTEST_FALSE!$BUILD_SYSTEST_FALSE$ac_delim
16545 BUILD_ARMTEST_TRUE!$BUILD_ARMTEST_TRUE$ac_delim
16546 BUILD_ARMTEST_FALSE!$BUILD_ARMTEST_FALSE$ac_delim
16547 LXDREAM_LIBS!$LXDREAM_LIBS$ac_delim
16548 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16549 USE_NLS!$USE_NLS$ac_delim
16550 MSGFMT!$MSGFMT$ac_delim
16551 MSGFMT_OPTS!$MSGFMT_OPTS$ac_delim
16552 GMSGFMT!$GMSGFMT$ac_delim
16553 XGETTEXT!$XGETTEXT$ac_delim
16554 CATALOGS!$CATALOGS$ac_delim
16555 CATOBJEXT!$CATOBJEXT$ac_delim
16556 _ACEOF
16558 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
16559 break
16560 elif $ac_last_try; then
16561 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16562 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16563 { (exit 1); exit 1; }; }
16564 else
16565 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16566 fi
16567 done
16569 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16570 if test -n "$ac_eof"; then
16571 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16572 ac_eof=`expr $ac_eof + 1`
16573 fi
16575 cat >>$CONFIG_STATUS <<_ACEOF
16576 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16577 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16578 _ACEOF
16579 sed '
16580 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16581 s/^/s,@/; s/!/@,|#_!!_#|/
16582 :n
16583 t n
16584 s/'"$ac_delim"'$/,g/; t
16585 s/$/\\/; p
16586 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16587 ' >>$CONFIG_STATUS <conf$$subs.sed
16588 rm -f conf$$subs.sed
16589 cat >>$CONFIG_STATUS <<_ACEOF
16590 CEOF$ac_eof
16591 _ACEOF
16594 ac_delim='%!_!# '
16595 for ac_last_try in false false false false false :; do
16596 cat >conf$$subs.sed <<_ACEOF
16597 DATADIRNAME!$DATADIRNAME$ac_delim
16598 GMOFILES!$GMOFILES$ac_delim
16599 INSTOBJEXT!$INSTOBJEXT$ac_delim
16600 INTLLIBS!$INTLLIBS$ac_delim
16601 PO_IN_DATADIR_TRUE!$PO_IN_DATADIR_TRUE$ac_delim
16602 PO_IN_DATADIR_FALSE!$PO_IN_DATADIR_FALSE$ac_delim
16603 POFILES!$POFILES$ac_delim
16604 POSUB!$POSUB$ac_delim
16605 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16606 LIBOBJS!$LIBOBJS$ac_delim
16607 LTLIBOBJS!$LTLIBOBJS$ac_delim
16608 _ACEOF
16610 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
16611 break
16612 elif $ac_last_try; then
16613 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16614 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16615 { (exit 1); exit 1; }; }
16616 else
16617 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16618 fi
16619 done
16621 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16622 if test -n "$ac_eof"; then
16623 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16624 ac_eof=`expr $ac_eof + 1`
16625 fi
16627 cat >>$CONFIG_STATUS <<_ACEOF
16628 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
16629 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16630 _ACEOF
16631 sed '
16632 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16633 s/^/s,@/; s/!/@,|#_!!_#|/
16634 :n
16635 t n
16636 s/'"$ac_delim"'$/,g/; t
16637 s/$/\\/; p
16638 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16639 ' >>$CONFIG_STATUS <conf$$subs.sed
16640 rm -f conf$$subs.sed
16641 cat >>$CONFIG_STATUS <<_ACEOF
16642 :end
16643 s/|#_!!_#|//g
16644 CEOF$ac_eof
16645 _ACEOF
16648 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16649 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16650 # trailing colons and then remove the whole line if VPATH becomes empty
16651 # (actually we leave an empty line to preserve line numbers).
16652 if test "x$srcdir" = x.; then
16653 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16654 s/:*\$(srcdir):*/:/
16655 s/:*\${srcdir}:*/:/
16656 s/:*@srcdir@:*/:/
16657 s/^\([^=]*=[ ]*\):*/\1/
16658 s/:*$//
16659 s/^[^=]*=[ ]*$//
16660 }'
16661 fi
16663 cat >>$CONFIG_STATUS <<\_ACEOF
16664 fi # test -n "$CONFIG_FILES"
16667 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
16668 do
16669 case $ac_tag in
16670 :[FHLC]) ac_mode=$ac_tag; continue;;
16671 esac
16672 case $ac_mode$ac_tag in
16673 :[FHL]*:*);;
16674 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16675 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16676 { (exit 1); exit 1; }; };;
16677 :[FH]-) ac_tag=-:-;;
16678 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16679 esac
16680 ac_save_IFS=$IFS
16681 IFS=:
16682 set x $ac_tag
16683 IFS=$ac_save_IFS
16684 shift
16685 ac_file=$1
16686 shift
16688 case $ac_mode in
16689 :L) ac_source=$1;;
16690 :[FH])
16691 ac_file_inputs=
16692 for ac_f
16693 do
16694 case $ac_f in
16695 -) ac_f="$tmp/stdin";;
16696 *) # Look for the file first in the build tree, then in the source tree
16697 # (if the path is not absolute). The absolute path cannot be DOS-style,
16698 # because $ac_f cannot contain `:'.
16699 test -f "$ac_f" ||
16700 case $ac_f in
16701 [\\/$]*) false;;
16702 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16703 esac ||
16704 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16705 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16706 { (exit 1); exit 1; }; };;
16707 esac
16708 ac_file_inputs="$ac_file_inputs $ac_f"
16709 done
16711 # Let's still pretend it is `configure' which instantiates (i.e., don't
16712 # use $as_me), people would be surprised to read:
16713 # /* config.h. Generated by config.status. */
16714 configure_input="Generated from "`IFS=:
16715 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16716 if test x"$ac_file" != x-; then
16717 configure_input="$ac_file. $configure_input"
16718 { echo "$as_me:$LINENO: creating $ac_file" >&5
16719 echo "$as_me: creating $ac_file" >&6;}
16720 fi
16722 case $ac_tag in
16723 *:-:* | *:-) cat >"$tmp/stdin";;
16724 esac
16725 ;;
16726 esac
16728 ac_dir=`$as_dirname -- "$ac_file" ||
16729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16730 X"$ac_file" : 'X\(//\)[^/]' \| \
16731 X"$ac_file" : 'X\(//\)$' \| \
16732 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16733 echo X"$ac_file" |
16734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16735 s//\1/
16736 q
16737 }
16738 /^X\(\/\/\)[^/].*/{
16739 s//\1/
16740 q
16741 }
16742 /^X\(\/\/\)$/{
16743 s//\1/
16744 q
16745 }
16746 /^X\(\/\).*/{
16747 s//\1/
16748 q
16749 }
16750 s/.*/./; q'`
16751 { as_dir="$ac_dir"
16752 case $as_dir in #(
16753 -*) as_dir=./$as_dir;;
16754 esac
16755 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16756 as_dirs=
16757 while :; do
16758 case $as_dir in #(
16759 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16760 *) as_qdir=$as_dir;;
16761 esac
16762 as_dirs="'$as_qdir' $as_dirs"
16763 as_dir=`$as_dirname -- "$as_dir" ||
16764 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16765 X"$as_dir" : 'X\(//\)[^/]' \| \
16766 X"$as_dir" : 'X\(//\)$' \| \
16767 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16768 echo X"$as_dir" |
16769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16770 s//\1/
16771 q
16772 }
16773 /^X\(\/\/\)[^/].*/{
16774 s//\1/
16775 q
16776 }
16777 /^X\(\/\/\)$/{
16778 s//\1/
16779 q
16780 }
16781 /^X\(\/\).*/{
16782 s//\1/
16783 q
16784 }
16785 s/.*/./; q'`
16786 test -d "$as_dir" && break
16787 done
16788 test -z "$as_dirs" || eval "mkdir $as_dirs"
16789 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16790 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16791 { (exit 1); exit 1; }; }; }
16792 ac_builddir=.
16794 case "$ac_dir" in
16795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16796 *)
16797 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16798 # A ".." for each directory in $ac_dir_suffix.
16799 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16800 case $ac_top_builddir_sub in
16801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16803 esac ;;
16804 esac
16805 ac_abs_top_builddir=$ac_pwd
16806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16807 # for backward compatibility:
16808 ac_top_builddir=$ac_top_build_prefix
16810 case $srcdir in
16811 .) # We are building in place.
16812 ac_srcdir=.
16813 ac_top_srcdir=$ac_top_builddir_sub
16814 ac_abs_top_srcdir=$ac_pwd ;;
16815 [\\/]* | ?:[\\/]* ) # Absolute name.
16816 ac_srcdir=$srcdir$ac_dir_suffix;
16817 ac_top_srcdir=$srcdir
16818 ac_abs_top_srcdir=$srcdir ;;
16819 *) # Relative name.
16820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16821 ac_top_srcdir=$ac_top_build_prefix$srcdir
16822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16823 esac
16824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16827 case $ac_mode in
16828 :F)
16829 #
16830 # CONFIG_FILE
16831 #
16833 case $INSTALL in
16834 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16835 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16836 esac
16837 _ACEOF
16839 cat >>$CONFIG_STATUS <<\_ACEOF
16840 # If the template does not know about datarootdir, expand it.
16841 # FIXME: This hack should be removed a few years after 2.60.
16842 ac_datarootdir_hack=; ac_datarootdir_seen=
16844 case `sed -n '/datarootdir/ {
16845 p
16846 q
16847 }
16848 /@datadir@/p
16849 /@docdir@/p
16850 /@infodir@/p
16851 /@localedir@/p
16852 /@mandir@/p
16853 ' $ac_file_inputs` in
16854 *datarootdir*) ac_datarootdir_seen=yes;;
16855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16856 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16857 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16858 _ACEOF
16859 cat >>$CONFIG_STATUS <<_ACEOF
16860 ac_datarootdir_hack='
16861 s&@datadir@&$datadir&g
16862 s&@docdir@&$docdir&g
16863 s&@infodir@&$infodir&g
16864 s&@localedir@&$localedir&g
16865 s&@mandir@&$mandir&g
16866 s&\\\${datarootdir}&$datarootdir&g' ;;
16867 esac
16868 _ACEOF
16870 # Neutralize VPATH when `$srcdir' = `.'.
16871 # Shell code in configure.ac might set extrasub.
16872 # FIXME: do we really want to maintain this feature?
16873 cat >>$CONFIG_STATUS <<_ACEOF
16874 sed "$ac_vpsub
16875 $extrasub
16876 _ACEOF
16877 cat >>$CONFIG_STATUS <<\_ACEOF
16878 :t
16879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16880 s&@configure_input@&$configure_input&;t t
16881 s&@top_builddir@&$ac_top_builddir_sub&;t t
16882 s&@srcdir@&$ac_srcdir&;t t
16883 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16884 s&@top_srcdir@&$ac_top_srcdir&;t t
16885 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16886 s&@builddir@&$ac_builddir&;t t
16887 s&@abs_builddir@&$ac_abs_builddir&;t t
16888 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16889 s&@INSTALL@&$ac_INSTALL&;t t
16890 $ac_datarootdir_hack
16891 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
16893 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16894 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16895 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16896 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16897 which seems to be undefined. Please make sure it is defined." >&5
16898 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16899 which seems to be undefined. Please make sure it is defined." >&2;}
16901 rm -f "$tmp/stdin"
16902 case $ac_file in
16903 -) cat "$tmp/out"; rm -f "$tmp/out";;
16904 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16905 esac
16906 ;;
16907 :H)
16908 #
16909 # CONFIG_HEADER
16910 #
16911 _ACEOF
16913 # Transform confdefs.h into a sed script `conftest.defines', that
16914 # substitutes the proper values into config.h.in to produce config.h.
16915 rm -f conftest.defines conftest.tail
16916 # First, append a space to every undef/define line, to ease matching.
16917 echo 's/$/ /' >conftest.defines
16918 # Then, protect against being on the right side of a sed subst, or in
16919 # an unquoted here document, in config.status. If some macros were
16920 # called several times there might be several #defines for the same
16921 # symbol, which is useless. But do not sort them, since the last
16922 # AC_DEFINE must be honored.
16923 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16924 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
16925 # NAME is the cpp macro being defined, VALUE is the value it is being given.
16926 # PARAMS is the parameter list in the macro definition--in most cases, it's
16927 # just an empty string.
16928 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
16929 ac_dB='\\)[ (].*,\\1define\\2'
16930 ac_dC=' '
16931 ac_dD=' ,'
16933 uniq confdefs.h |
16934 sed -n '
16935 t rset
16936 :rset
16937 s/^[ ]*#[ ]*define[ ][ ]*//
16938 t ok
16939 d
16940 :ok
16941 s/[\\&,]/\\&/g
16942 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
16943 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
16944 ' >>conftest.defines
16946 # Remove the space that was appended to ease matching.
16947 # Then replace #undef with comments. This is necessary, for
16948 # example, in the case of _POSIX_SOURCE, which is predefined and required
16949 # on some systems where configure will not decide to define it.
16950 # (The regexp can be short, since the line contains either #define or #undef.)
16951 echo 's/ $//
16952 s,^[ #]*u.*,/* & */,' >>conftest.defines
16954 # Break up conftest.defines:
16955 ac_max_sed_lines=50
16957 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
16958 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
16959 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
16960 # et cetera.
16961 ac_in='$ac_file_inputs'
16962 ac_out='"$tmp/out1"'
16963 ac_nxt='"$tmp/out2"'
16965 while :
16966 do
16967 # Write a here document:
16968 cat >>$CONFIG_STATUS <<_ACEOF
16969 # First, check the format of the line:
16970 cat >"\$tmp/defines.sed" <<\\CEOF
16971 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
16972 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
16973 b
16974 :def
16975 _ACEOF
16976 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
16977 echo 'CEOF
16978 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
16979 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
16980 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
16981 grep . conftest.tail >/dev/null || break
16982 rm -f conftest.defines
16983 mv conftest.tail conftest.defines
16984 done
16985 rm -f conftest.defines conftest.tail
16987 echo "ac_result=$ac_in" >>$CONFIG_STATUS
16988 cat >>$CONFIG_STATUS <<\_ACEOF
16989 if test x"$ac_file" != x-; then
16990 echo "/* $configure_input */" >"$tmp/config.h"
16991 cat "$ac_result" >>"$tmp/config.h"
16992 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
16993 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16994 echo "$as_me: $ac_file is unchanged" >&6;}
16995 else
16996 rm -f $ac_file
16997 mv "$tmp/config.h" $ac_file
16998 fi
16999 else
17000 echo "/* $configure_input */"
17001 cat "$ac_result"
17002 fi
17003 rm -f "$tmp/out12"
17004 # Compute $ac_file's index in $config_headers.
17005 _am_stamp_count=1
17006 for _am_header in $config_headers :; do
17007 case $_am_header in
17008 $ac_file | $ac_file:* )
17009 break ;;
17010 * )
17011 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17012 esac
17013 done
17014 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17015 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17016 X$ac_file : 'X\(//\)[^/]' \| \
17017 X$ac_file : 'X\(//\)$' \| \
17018 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17019 echo X$ac_file |
17020 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17021 s//\1/
17022 q
17023 }
17024 /^X\(\/\/\)[^/].*/{
17025 s//\1/
17026 q
17027 }
17028 /^X\(\/\/\)$/{
17029 s//\1/
17030 q
17031 }
17032 /^X\(\/\).*/{
17033 s//\1/
17034 q
17035 }
17036 s/.*/./; q'`/stamp-h$_am_stamp_count
17037 ;;
17039 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17040 echo "$as_me: executing $ac_file commands" >&6;}
17041 ;;
17042 esac
17045 case $ac_file$ac_mode in
17046 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17047 # Strip MF so we end up with the name of the file.
17048 mf=`echo "$mf" | sed -e 's/:.*$//'`
17049 # Check whether this is an Automake generated Makefile or not.
17050 # We used to match only the files named `Makefile.in', but
17051 # some people rename them; so instead we look at the file content.
17052 # Grep'ing the first line is not enough: some people post-process
17053 # each Makefile.in and add a new line on top of each file to say so.
17054 # So let's grep whole file.
17055 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17056 dirpart=`$as_dirname -- "$mf" ||
17057 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17058 X"$mf" : 'X\(//\)[^/]' \| \
17059 X"$mf" : 'X\(//\)$' \| \
17060 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17061 echo X"$mf" |
17062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17063 s//\1/
17064 q
17065 }
17066 /^X\(\/\/\)[^/].*/{
17067 s//\1/
17068 q
17069 }
17070 /^X\(\/\/\)$/{
17071 s//\1/
17072 q
17073 }
17074 /^X\(\/\).*/{
17075 s//\1/
17076 q
17077 }
17078 s/.*/./; q'`
17079 else
17080 continue
17081 fi
17082 # Extract the definition of DEPDIR, am__include, and am__quote
17083 # from the Makefile without running `make'.
17084 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17085 test -z "$DEPDIR" && continue
17086 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17087 test -z "am__include" && continue
17088 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17089 # When using ansi2knr, U may be empty or an underscore; expand it
17090 U=`sed -n 's/^U = //p' < "$mf"`
17091 # Find all dependency output files, they are included files with
17092 # $(DEPDIR) in their names. We invoke sed twice because it is the
17093 # simplest approach to changing $(DEPDIR) to its actual value in the
17094 # expansion.
17095 for file in `sed -n "
17096 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17097 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17098 # Make sure the directory exists.
17099 test -f "$dirpart/$file" && continue
17100 fdir=`$as_dirname -- "$file" ||
17101 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17102 X"$file" : 'X\(//\)[^/]' \| \
17103 X"$file" : 'X\(//\)$' \| \
17104 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17105 echo X"$file" |
17106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17107 s//\1/
17108 q
17109 }
17110 /^X\(\/\/\)[^/].*/{
17111 s//\1/
17112 q
17113 }
17114 /^X\(\/\/\)$/{
17115 s//\1/
17116 q
17117 }
17118 /^X\(\/\).*/{
17119 s//\1/
17120 q
17121 }
17122 s/.*/./; q'`
17123 { as_dir=$dirpart/$fdir
17124 case $as_dir in #(
17125 -*) as_dir=./$as_dir;;
17126 esac
17127 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17128 as_dirs=
17129 while :; do
17130 case $as_dir in #(
17131 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17132 *) as_qdir=$as_dir;;
17133 esac
17134 as_dirs="'$as_qdir' $as_dirs"
17135 as_dir=`$as_dirname -- "$as_dir" ||
17136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17137 X"$as_dir" : 'X\(//\)[^/]' \| \
17138 X"$as_dir" : 'X\(//\)$' \| \
17139 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17140 echo X"$as_dir" |
17141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17142 s//\1/
17143 q
17144 }
17145 /^X\(\/\/\)[^/].*/{
17146 s//\1/
17147 q
17148 }
17149 /^X\(\/\/\)$/{
17150 s//\1/
17151 q
17152 }
17153 /^X\(\/\).*/{
17154 s//\1/
17155 q
17156 }
17157 s/.*/./; q'`
17158 test -d "$as_dir" && break
17159 done
17160 test -z "$as_dirs" || eval "mkdir $as_dirs"
17161 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17162 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17163 { (exit 1); exit 1; }; }; }
17164 # echo "creating $dirpart/$file"
17165 echo '# dummy' > "$dirpart/$file"
17166 done
17167 done
17168 ;;
17169 "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
17170 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
17171 esac ;;
17173 esac
17174 done # for ac_tag
17177 { (exit 0); exit 0; }
17178 _ACEOF
17179 chmod +x $CONFIG_STATUS
17180 ac_clean_files=$ac_clean_files_save
17183 # configure is writing to config.log, and then calls config.status.
17184 # config.status does its own redirection, appending to config.log.
17185 # Unfortunately, on DOS this fails, as config.log is still kept open
17186 # by configure, so config.status won't be able to write to it; its
17187 # output is simply discarded. So we exec the FD to /dev/null,
17188 # effectively closing config.log, so it can be properly (re)opened and
17189 # appended to by config.status. When coming back to configure, we
17190 # need to make the FD available again.
17191 if test "$no_create" != yes; then
17192 ac_cs_success=:
17193 ac_config_status_args=
17194 test "$silent" = yes &&
17195 ac_config_status_args="$ac_config_status_args --quiet"
17196 exec 5>/dev/null
17197 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17198 exec 5>>config.log
17199 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17200 # would make configure fail if this is the last instruction.
17201 $ac_cs_success || { (exit 1); exit 1; }
17202 fi
17204 { as_dir=test/sh4
17205 case $as_dir in #(
17206 -*) as_dir=./$as_dir;;
17207 esac
17208 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17209 as_dirs=
17210 while :; do
17211 case $as_dir in #(
17212 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17213 *) as_qdir=$as_dir;;
17214 esac
17215 as_dirs="'$as_qdir' $as_dirs"
17216 as_dir=`$as_dirname -- "$as_dir" ||
17217 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17218 X"$as_dir" : 'X\(//\)[^/]' \| \
17219 X"$as_dir" : 'X\(//\)$' \| \
17220 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17221 echo X"$as_dir" |
17222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17223 s//\1/
17224 q
17225 }
17226 /^X\(\/\/\)[^/].*/{
17227 s//\1/
17228 q
17229 }
17230 /^X\(\/\/\)$/{
17231 s//\1/
17232 q
17233 }
17234 /^X\(\/\).*/{
17235 s//\1/
17236 q
17237 }
17238 s/.*/./; q'`
17239 test -d "$as_dir" && break
17240 done
17241 test -z "$as_dirs" || eval "mkdir $as_dirs"
17242 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17243 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17244 { (exit 1); exit 1; }; }; }
17247 echo
17248 echo "Configuration complete"
17249 echo
17251 if test "x$HAVE_GTK" = x; then
17252 if test "x$HAVE_COCOA" = x; then
17253 echo " User interface: none"
17254 else
17255 echo " User interface: Cocoa"
17256 fi
17257 else
17258 echo " User interface: GTK"
17259 fi
17261 if test "x$SH4_TRANSLATOR" = "x"; then
17262 echo " SH4 translator: None (emulation core only)"
17263 else
17264 echo " SH4 translator: $SH4_TRANSLATOR"
17265 fi
17267 if test "x$VIDEO_DRIVERS" = "x"; then
17268 echo " Video drivers: none (no supported GL found)"
17269 else
17270 echo " Video drivers: $VIDEO_DRIVERS"
17271 fi
17273 if test "x$AUDIO_DRIVERS" = "x"; then
17274 echo " Audio drivers: none (no supported output devices found)"
17275 else
17276 echo " Audio drivers: $AUDIO_DRIVERS"
17277 fi
17279 if test "x$INPUT_DRIVERS" = "x"; then
17280 echo " Input drivers: none (no supported input devices found)"
17281 else
17282 echo " Input drivers: $INPUT_DRIVERS"
17283 fi
17285 if test "x$CDROM_DRIVER" = "x"; then
17286 echo " CD-ROM driver: none (no supported cd-rom devices found)"
17287 else
17288 echo " CD-ROM driver: $CDROM_DRIVER"
17289 fi
.