Debian Codegraph @

configure

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