Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/mousetrap.cpp"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 INSTALL_PROGRAM
654 INSTALL_SCRIPT
655 INSTALL_DATA
656 CYGPATH_W
657 PACKAGE
658 VERSION
659 ACLOCAL
660 AUTOCONF
661 AUTOMAKE
662 AUTOHEADER
663 MAKEINFO
664 install_sh
665 STRIP
666 INSTALL_STRIP_PROGRAM
667 mkdir_p
668 AWK
669 SET_MAKE
670 am__leading_dot
671 AMTAR
672 am__tar
673 am__untar
674 CC
675 CFLAGS
676 LDFLAGS
677 CPPFLAGS
678 ac_ct_CC
679 EXEEXT
680 OBJEXT
681 DEPDIR
682 am__include
683 am__quote
684 AMDEP_TRUE
685 AMDEP_FALSE
686 AMDEPBACKSLASH
687 CCDEPMODE
688 am__fastdepCC_TRUE
689 am__fastdepCC_FALSE
690 CPP
691 CXX
692 CXXFLAGS
693 ac_ct_CXX
694 CXXDEPMODE
695 am__fastdepCXX_TRUE
696 am__fastdepCXX_FALSE
697 GREP
698 EGREP
699 SDL_CONFIG
700 SDL_CFLAGS
701 SDL_LIBS
702 DEFAULT_LIBDIR
703 LIBOBJS
704 LTLIBOBJS'
705 ac_subst_files=''
706 ac_precious_vars='build_alias
707 host_alias
708 target_alias
709 CC
710 CFLAGS
711 LDFLAGS
712 LIBS
713 CPPFLAGS
714 CPP
715 CXX
716 CXXFLAGS
717 CCC'
718
719
720 # Initialize some variables set by options.
721 ac_init_help=
722 ac_init_version=false
723 # The variables have the same names as the options, with
724 # dashes changed to underlines.
725 cache_file=/dev/null
726 exec_prefix=NONE
727 no_create=
728 no_recursion=
729 prefix=NONE
730 program_prefix=NONE
731 program_suffix=NONE
732 program_transform_name=s,x,x,
733 silent=
734 site=
735 srcdir=
736 verbose=
737 x_includes=NONE
738 x_libraries=NONE
739
740 # Installation directory options.
741 # These are left unexpanded so users can "make install exec_prefix=/foo"
742 # and all the variables that are supposed to be based on exec_prefix
743 # by default will actually change.
744 # Use braces instead of parens because sh, perl, etc. also accept them.
745 # (The list follows the same order as the GNU Coding Standards.)
746 bindir='${exec_prefix}/bin'
747 sbindir='${exec_prefix}/sbin'
748 libexecdir='${exec_prefix}/libexec'
749 datarootdir='${prefix}/share'
750 datadir='${datarootdir}'
751 sysconfdir='${prefix}/etc'
752 sharedstatedir='${prefix}/com'
753 localstatedir='${prefix}/var'
754 includedir='${prefix}/include'
755 oldincludedir='/usr/include'
756 docdir='${datarootdir}/doc/${PACKAGE}'
757 infodir='${datarootdir}/info'
758 htmldir='${docdir}'
759 dvidir='${docdir}'
760 pdfdir='${docdir}'
761 psdir='${docdir}'
762 libdir='${exec_prefix}/lib'
763 localedir='${datarootdir}/locale'
764 mandir='${datarootdir}/man'
765
766 ac_prev=
767 ac_dashdash=
768 for ac_option
769 do
770 # If the previous option needs an argument, assign it.
771 if test -n "$ac_prev"; then
772 eval $ac_prev=\$ac_option
773 ac_prev=
774 continue
775 fi
776
777 case $ac_option in
778 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
779 *) ac_optarg=yes ;;
780 esac
781
782 # Accept the important Cygnus configure options, so we can diagnose typos.
783
784 case $ac_dashdash$ac_option in
785 --)
786 ac_dashdash=yes ;;
787
788 -bindir | --bindir | --bindi | --bind | --bin | --bi)
789 ac_prev=bindir ;;
790 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791 bindir=$ac_optarg ;;
792
793 -build | --build | --buil | --bui | --bu)
794 ac_prev=build_alias ;;
795 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
796 build_alias=$ac_optarg ;;
797
798 -cache-file | --cache-file | --cache-fil | --cache-fi \
799 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
800 ac_prev=cache_file ;;
801 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
802 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
803 cache_file=$ac_optarg ;;
804
805 --config-cache | -C)
806 cache_file=config.cache ;;
807
808 -datadir | --datadir | --datadi | --datad)
809 ac_prev=datadir ;;
810 -datadir=* | --datadir=* | --datadi=* | --datad=*)
811 datadir=$ac_optarg ;;
812
813 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
814 | --dataroo | --dataro | --datar)
815 ac_prev=datarootdir ;;
816 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
817 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
818 datarootdir=$ac_optarg ;;
819
820 -disable-* | --disable-*)
821 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
822 # Reject names that are not valid shell variable names.
823 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
824 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
825 { (exit 1); exit 1; }; }
826 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
827 eval enable_$ac_feature=no ;;
828
829 -docdir | --docdir | --docdi | --doc | --do)
830 ac_prev=docdir ;;
831 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832 docdir=$ac_optarg ;;
833
834 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
835 ac_prev=dvidir ;;
836 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837 dvidir=$ac_optarg ;;
838
839 -enable-* | --enable-*)
840 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_$ac_feature=\$ac_optarg ;;
847
848 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
849 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
850 | --exec | --exe | --ex)
851 ac_prev=exec_prefix ;;
852 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
853 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
854 | --exec=* | --exe=* | --ex=*)
855 exec_prefix=$ac_optarg ;;
856
857 -gas | --gas | --ga | --g)
858 # Obsolete; use --with-gas.
859 with_gas=yes ;;
860
861 -help | --help | --hel | --he | -h)
862 ac_init_help=long ;;
863 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
864 ac_init_help=recursive ;;
865 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
866 ac_init_help=short ;;
867
868 -host | --host | --hos | --ho)
869 ac_prev=host_alias ;;
870 -host=* | --host=* | --hos=* | --ho=*)
871 host_alias=$ac_optarg ;;
872
873 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
874 ac_prev=htmldir ;;
875 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
876 | --ht=*)
877 htmldir=$ac_optarg ;;
878
879 -includedir | --includedir | --includedi | --included | --include \
880 | --includ | --inclu | --incl | --inc)
881 ac_prev=includedir ;;
882 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
883 | --includ=* | --inclu=* | --incl=* | --inc=*)
884 includedir=$ac_optarg ;;
885
886 -infodir | --infodir | --infodi | --infod | --info | --inf)
887 ac_prev=infodir ;;
888 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
889 infodir=$ac_optarg ;;
890
891 -libdir | --libdir | --libdi | --libd)
892 ac_prev=libdir ;;
893 -libdir=* | --libdir=* | --libdi=* | --libd=*)
894 libdir=$ac_optarg ;;
895
896 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
897 | --libexe | --libex | --libe)
898 ac_prev=libexecdir ;;
899 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
900 | --libexe=* | --libex=* | --libe=*)
901 libexecdir=$ac_optarg ;;
902
903 -localedir | --localedir | --localedi | --localed | --locale)
904 ac_prev=localedir ;;
905 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
906 localedir=$ac_optarg ;;
907
908 -localstatedir | --localstatedir | --localstatedi | --localstated \
909 | --localstate | --localstat | --localsta | --localst | --locals)
910 ac_prev=localstatedir ;;
911 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
912 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
913 localstatedir=$ac_optarg ;;
914
915 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
916 ac_prev=mandir ;;
917 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
918 mandir=$ac_optarg ;;
919
920 -nfp | --nfp | --nf)
921 # Obsolete; use --without-fp.
922 with_fp=no ;;
923
924 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
925 | --no-cr | --no-c | -n)
926 no_create=yes ;;
927
928 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
929 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930 no_recursion=yes ;;
931
932 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
933 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
934 | --oldin | --oldi | --old | --ol | --o)
935 ac_prev=oldincludedir ;;
936 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
937 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
938 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
939 oldincludedir=$ac_optarg ;;
940
941 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
942 ac_prev=prefix ;;
943 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
944 prefix=$ac_optarg ;;
945
946 -program-prefix | --program-prefix | --program-prefi | --program-pref \
947 | --program-pre | --program-pr | --program-p)
948 ac_prev=program_prefix ;;
949 -program-prefix=* | --program-prefix=* | --program-prefi=* \
950 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
951 program_prefix=$ac_optarg ;;
952
953 -program-suffix | --program-suffix | --program-suffi | --program-suff \
954 | --program-suf | --program-su | --program-s)
955 ac_prev=program_suffix ;;
956 -program-suffix=* | --program-suffix=* | --program-suffi=* \
957 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
958 program_suffix=$ac_optarg ;;
959
960 -program-transform-name | --program-transform-name \
961 | --program-transform-nam | --program-transform-na \
962 | --program-transform-n | --program-transform- \
963 | --program-transform | --program-transfor \
964 | --program-transfo | --program-transf \
965 | --program-trans | --program-tran \
966 | --progr-tra | --program-tr | --program-t)
967 ac_prev=program_transform_name ;;
968 -program-transform-name=* | --program-transform-name=* \
969 | --program-transform-nam=* | --program-transform-na=* \
970 | --program-transform-n=* | --program-transform-=* \
971 | --program-transform=* | --program-transfor=* \
972 | --program-transfo=* | --program-transf=* \
973 | --program-trans=* | --program-tran=* \
974 | --progr-tra=* | --program-tr=* | --program-t=*)
975 program_transform_name=$ac_optarg ;;
976
977 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
978 ac_prev=pdfdir ;;
979 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980 pdfdir=$ac_optarg ;;
981
982 -psdir | --psdir | --psdi | --psd | --ps)
983 ac_prev=psdir ;;
984 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985 psdir=$ac_optarg ;;
986
987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
988 | -silent | --silent | --silen | --sile | --sil)
989 silent=yes ;;
990
991 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
992 ac_prev=sbindir ;;
993 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
994 | --sbi=* | --sb=*)
995 sbindir=$ac_optarg ;;
996
997 -sharedstatedir | --sharedstatedir | --sharedstatedi \
998 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
999 | --sharedst | --shareds | --shared | --share | --shar \
1000 | --sha | --sh)
1001 ac_prev=sharedstatedir ;;
1002 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1003 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1004 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1005 | --sha=* | --sh=*)
1006 sharedstatedir=$ac_optarg ;;
1007
1008 -site | --site | --sit)
1009 ac_prev=site ;;
1010 -site=* | --site=* | --sit=*)
1011 site=$ac_optarg ;;
1012
1013 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1014 ac_prev=srcdir ;;
1015 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1016 srcdir=$ac_optarg ;;
1017
1018 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1019 | --syscon | --sysco | --sysc | --sys | --sy)
1020 ac_prev=sysconfdir ;;
1021 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1022 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1023 sysconfdir=$ac_optarg ;;
1024
1025 -target | --target | --targe | --targ | --tar | --ta | --t)
1026 ac_prev=target_alias ;;
1027 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1028 target_alias=$ac_optarg ;;
1029
1030 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1031 verbose=yes ;;
1032
1033 -version | --version | --versio | --versi | --vers | -V)
1034 ac_init_version=: ;;
1035
1036 -with-* | --with-*)
1037 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040 { echo "$as_me: error: invalid package name: $ac_package" >&2
1041 { (exit 1); exit 1; }; }
1042 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1043 eval with_$ac_package=\$ac_optarg ;;
1044
1045 -without-* | --without-*)
1046 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1049 { echo "$as_me: error: invalid package name: $ac_package" >&2
1050 { (exit 1); exit 1; }; }
1051 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1052 eval with_$ac_package=no ;;
1053
1054 --x)
1055 # Obsolete; use --with-x.
1056 with_x=yes ;;
1057
1058 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1059 | --x-incl | --x-inc | --x-in | --x-i)
1060 ac_prev=x_includes ;;
1061 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1062 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1063 x_includes=$ac_optarg ;;
1064
1065 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1066 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1067 ac_prev=x_libraries ;;
1068 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1069 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1070 x_libraries=$ac_optarg ;;
1071
1072 -*) { echo "$as_me: error: unrecognized option: $ac_option
1073 Try \`$0 --help' for more information." >&2
1074 { (exit 1); exit 1; }; }
1075 ;;
1076
1077 *=*)
1078 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1081 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1082 { (exit 1); exit 1; }; }
1083 eval $ac_envvar=\$ac_optarg
1084 export $ac_envvar ;;
1085
1086 *)
1087 # FIXME: should be removed in autoconf 3.0.
1088 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1089 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1090 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1091 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1092 ;;
1093
1094 esac
1095 done
1096
1097 if test -n "$ac_prev"; then
1098 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1099 { echo "$as_me: error: missing argument to $ac_option" >&2
1100 { (exit 1); exit 1; }; }
1101 fi
1102
1103 # Be sure to have absolute directory names.
1104 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1105 datadir sysconfdir sharedstatedir localstatedir includedir \
1106 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1107 libdir localedir mandir
1108 do
1109 eval ac_val=\$$ac_var
1110 case $ac_val in
1111 [\\/$]* | ?:[\\/]* ) continue;;
1112 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1113 esac
1114 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1115 { (exit 1); exit 1; }; }
1116 done
1117
1118 # There might be people who depend on the old broken behavior: `$host'
1119 # used to hold the argument of --host etc.
1120 # FIXME: To remove some day.
1121 build=$build_alias
1122 host=$host_alias
1123 target=$target_alias
1124
1125 # FIXME: To remove some day.
1126 if test "x$host_alias" != x; then
1127 if test "x$build_alias" = x; then
1128 cross_compiling=maybe
1129 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1130 If a cross compiler is detected then cross compile mode will be used." >&2
1131 elif test "x$build_alias" != "x$host_alias"; then
1132 cross_compiling=yes
1133 fi
1134 fi
1135
1136 ac_tool_prefix=
1137 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1138
1139 test "$silent" = yes && exec 6>/dev/null
1140
1141
1142 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di=`ls -di .` &&
1144 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1145 { echo "$as_me: error: Working directory cannot be determined" >&2
1146 { (exit 1); exit 1; }; }
1147 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1148 { echo "$as_me: error: pwd does not report name of working directory" >&2
1149 { (exit 1); exit 1; }; }
1150
1151
1152 # Find the source files, if location was not specified.
1153 if test -z "$srcdir"; then
1154 ac_srcdir_defaulted=yes
1155 # Try the directory containing this script, then the parent directory.
1156 ac_confdir=`$as_dirname -- "$0" ||
1157 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1158 X"$0" : 'X\(//\)[^/]' \| \
1159 X"$0" : 'X\(//\)$' \| \
1160 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1161 echo X"$0" |
1162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1163 s//\1/
1164 q
1165 }
1166 /^X\(\/\/\)[^/].*/{
1167 s//\1/
1168 q
1169 }
1170 /^X\(\/\/\)$/{
1171 s//\1/
1172 q
1173 }
1174 /^X\(\/\).*/{
1175 s//\1/
1176 q
1177 }
1178 s/.*/./; q'`
1179 srcdir=$ac_confdir
1180 if test ! -r "$srcdir/$ac_unique_file"; then
1181 srcdir=..
1182 fi
1183 else
1184 ac_srcdir_defaulted=no
1185 fi
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1188 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1189 { (exit 1); exit 1; }; }
1190 fi
1191 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1192 ac_abs_confdir=`(
1193 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1194 { (exit 1); exit 1; }; }
1195 pwd)`
1196 # When building in place, set srcdir=.
1197 if test "$ac_abs_confdir" = "$ac_pwd"; then
1198 srcdir=.
1199 fi
1200 # Remove unnecessary trailing slashes from srcdir.
1201 # Double slashes in file names in object file debugging info
1202 # mess up M-x gdb in Emacs.
1203 case $srcdir in
1204 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1205 esac
1206 for ac_var in $ac_precious_vars; do
1207 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1208 eval ac_env_${ac_var}_value=\$${ac_var}
1209 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1210 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1211 done
1212
1213 #
1214 # Report the --help message.
1215 #
1216 if test "$ac_init_help" = "long"; then
1217 # Omit some internal or obsolete options to make the list less imposing.
1218 # This message is too long to be a string in the A/UX 3.1 sh.
1219 cat <<_ACEOF
1220 \`configure' configures this package to adapt to many kinds of systems.
1221
1222 Usage: $0 [OPTION]... [VAR=VALUE]...
1223
1224 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1225 VAR=VALUE. See below for descriptions of some of the useful variables.
1226
1227 Defaults for the options are specified in brackets.
1228
1229 Configuration:
1230 -h, --help display this help and exit
1231 --help=short display options specific to this package
1232 --help=recursive display the short help of all the included packages
1233 -V, --version display version information and exit
1234 -q, --quiet, --silent do not print \`checking...' messages
1235 --cache-file=FILE cache test results in FILE [disabled]
1236 -C, --config-cache alias for \`--cache-file=config.cache'
1237 -n, --no-create do not create output files
1238 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1239
1240 Installation directories:
1241 --prefix=PREFIX install architecture-independent files in PREFIX
1242 [$ac_default_prefix]
1243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244 [PREFIX]
1245
1246 By default, \`make install' will install all the files in
1247 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1248 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1249 for instance \`--prefix=\$HOME'.
1250
1251 For better control, use the options below.
1252
1253 Fine tuning of the installation directories:
1254 --bindir=DIR user executables [EPREFIX/bin]
1255 --sbindir=DIR system admin executables [EPREFIX/sbin]
1256 --libexecdir=DIR program executables [EPREFIX/libexec]
1257 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1258 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1259 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1260 --libdir=DIR object code libraries [EPREFIX/lib]
1261 --includedir=DIR C header files [PREFIX/include]
1262 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1265 --infodir=DIR info documentation [DATAROOTDIR/info]
1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1267 --mandir=DIR man documentation [DATAROOTDIR/man]
1268 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1269 --htmldir=DIR html documentation [DOCDIR]
1270 --dvidir=DIR dvi documentation [DOCDIR]
1271 --pdfdir=DIR pdf documentation [DOCDIR]
1272 --psdir=DIR ps documentation [DOCDIR]
1273 _ACEOF
1274
1275 cat <<\_ACEOF
1276
1277 Program names:
1278 --program-prefix=PREFIX prepend PREFIX to installed program names
1279 --program-suffix=SUFFIX append SUFFIX to installed program names
1280 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1281 _ACEOF
1282 fi
1283
1284 if test -n "$ac_init_help"; then
1285
1286 cat <<\_ACEOF
1287
1288 Optional Features:
1289 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1290 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1291 --disable-dependency-tracking speeds up one-time build
1292 --enable-dependency-tracking do not reject slow dependency extractors
1293
1294 Optional Packages:
1295 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1296 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1297 --with-sdl build SDL interface
1298
1299 Some influential environment variables:
1300 CC C compiler command
1301 CFLAGS C compiler flags
1302 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1303 nonstandard directory <lib dir>
1304 LIBS libraries to pass to the linker, e.g. -l<library>
1305 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1306 you have headers in a nonstandard directory <include dir>
1307 CPP C preprocessor
1308 CXX C++ compiler command
1309 CXXFLAGS C++ compiler flags
1310
1311 Use these variables to override the choices made by `configure' or to help
1312 it to find libraries and programs with nonstandard names/locations.
1313
1314 _ACEOF
1315 ac_status=$?
1316 fi
1317
1318 if test "$ac_init_help" = "recursive"; then
1319 # If there are subdirs, report their specific --help.
1320 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1321 test -d "$ac_dir" || continue
1322 ac_builddir=.
1323
1324 case "$ac_dir" in
1325 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1326 *)
1327 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1328 # A ".." for each directory in $ac_dir_suffix.
1329 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1330 case $ac_top_builddir_sub in
1331 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1332 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1333 esac ;;
1334 esac
1335 ac_abs_top_builddir=$ac_pwd
1336 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1337 # for backward compatibility:
1338 ac_top_builddir=$ac_top_build_prefix
1339
1340 case $srcdir in
1341 .) # We are building in place.
1342 ac_srcdir=.
1343 ac_top_srcdir=$ac_top_builddir_sub
1344 ac_abs_top_srcdir=$ac_pwd ;;
1345 [\\/]* | ?:[\\/]* ) # Absolute name.
1346 ac_srcdir=$srcdir$ac_dir_suffix;
1347 ac_top_srcdir=$srcdir
1348 ac_abs_top_srcdir=$srcdir ;;
1349 *) # Relative name.
1350 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1351 ac_top_srcdir=$ac_top_build_prefix$srcdir
1352 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1353 esac
1354 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1355
1356 cd "$ac_dir" || { ac_status=$?; continue; }
1357 # Check for guested configure.
1358 if test -f "$ac_srcdir/configure.gnu"; then
1359 echo &&
1360 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1361 elif test -f "$ac_srcdir/configure"; then
1362 echo &&
1363 $SHELL "$ac_srcdir/configure" --help=recursive
1364 else
1365 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1366 fi || ac_status=$?
1367 cd "$ac_pwd" || { ac_status=$?; break; }
1368 done
1369 fi
1370
1371 test -n "$ac_init_help" && exit $ac_status
1372 if $ac_init_version; then
1373 cat <<\_ACEOF
1374 configure
1375 generated by GNU Autoconf 2.61
1376
1377 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1378 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1379 This configure script is free software; the Free Software Foundation
1380 gives unlimited permission to copy, distribute and modify it.
1381 _ACEOF
1382 exit
1383 fi
1384 cat >config.log <<_ACEOF
1385 This file contains any messages produced by compilers while
1386 running configure, to aid debugging if configure makes a mistake.
1387
1388 It was created by $as_me, which was
1389 generated by GNU Autoconf 2.61. Invocation command line was
1390
1391 $ $0 $@
1392
1393 _ACEOF
1394 exec 5>>config.log
1395 {
1396 cat <<_ASUNAME
1397 ## --------- ##
1398 ## Platform. ##
1399 ## --------- ##
1400
1401 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1402 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1403 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1404 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1405 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1406
1407 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1408 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1409
1410 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1411 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1412 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1413 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1414 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1415 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1416 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1417
1418 _ASUNAME
1419
1420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1421 for as_dir in $PATH
1422 do
1423 IFS=$as_save_IFS
1424 test -z "$as_dir" && as_dir=.
1425 echo "PATH: $as_dir"
1426 done
1427 IFS=$as_save_IFS
1428
1429 } >&5
1430
1431 cat >&5 <<_ACEOF
1432
1433
1434 ## ----------- ##
1435 ## Core tests. ##
1436 ## ----------- ##
1437
1438 _ACEOF
1439
1440
1441 # Keep a trace of the command line.
1442 # Strip out --no-create and --no-recursion so they do not pile up.
1443 # Strip out --silent because we don't want to record it for future runs.
1444 # Also quote any args containing shell meta-characters.
1445 # Make two passes to allow for proper duplicate-argument suppression.
1446 ac_configure_args=
1447 ac_configure_args0=
1448 ac_configure_args1=
1449 ac_must_keep_next=false
1450 for ac_pass in 1 2
1451 do
1452 for ac_arg
1453 do
1454 case $ac_arg in
1455 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1457 | -silent | --silent | --silen | --sile | --sil)
1458 continue ;;
1459 *\'*)
1460 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1461 esac
1462 case $ac_pass in
1463 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1464 2)
1465 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1466 if test $ac_must_keep_next = true; then
1467 ac_must_keep_next=false # Got value, back to normal.
1468 else
1469 case $ac_arg in
1470 *=* | --config-cache | -C | -disable-* | --disable-* \
1471 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1472 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1473 | -with-* | --with-* | -without-* | --without-* | --x)
1474 case "$ac_configure_args0 " in
1475 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1476 esac
1477 ;;
1478 -* ) ac_must_keep_next=true ;;
1479 esac
1480 fi
1481 ac_configure_args="$ac_configure_args '$ac_arg'"
1482 ;;
1483 esac
1484 done
1485 done
1486 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1487 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1488
1489 # When interrupted or exit'd, cleanup temporary files, and complete
1490 # config.log. We remove comments because anyway the quotes in there
1491 # would cause problems or look ugly.
1492 # WARNING: Use '\'' to represent an apostrophe within the trap.
1493 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1494 trap 'exit_status=$?
1495 # Save into config.log some information that might help in debugging.
1496 {
1497 echo
1498
1499 cat <<\_ASBOX
1500 ## ---------------- ##
1501 ## Cache variables. ##
1502 ## ---------------- ##
1503 _ASBOX
1504 echo
1505 # The following way of writing the cache mishandles newlines in values,
1506 (
1507 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1508 eval ac_val=\$$ac_var
1509 case $ac_val in #(
1510 *${as_nl}*)
1511 case $ac_var in #(
1512 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1513 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1514 esac
1515 case $ac_var in #(
1516 _ | IFS | as_nl) ;; #(
1517 *) $as_unset $ac_var ;;
1518 esac ;;
1519 esac
1520 done
1521 (set) 2>&1 |
1522 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1523 *${as_nl}ac_space=\ *)
1524 sed -n \
1525 "s/'\''/'\''\\\\'\'''\''/g;
1526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1527 ;; #(
1528 *)
1529 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1530 ;;
1531 esac |
1532 sort
1533 )
1534 echo
1535
1536 cat <<\_ASBOX
1537 ## ----------------- ##
1538 ## Output variables. ##
1539 ## ----------------- ##
1540 _ASBOX
1541 echo
1542 for ac_var in $ac_subst_vars
1543 do
1544 eval ac_val=\$$ac_var
1545 case $ac_val in
1546 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1547 esac
1548 echo "$ac_var='\''$ac_val'\''"
1549 done | sort
1550 echo
1551
1552 if test -n "$ac_subst_files"; then
1553 cat <<\_ASBOX
1554 ## ------------------- ##
1555 ## File substitutions. ##
1556 ## ------------------- ##
1557 _ASBOX
1558 echo
1559 for ac_var in $ac_subst_files
1560 do
1561 eval ac_val=\$$ac_var
1562 case $ac_val in
1563 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1564 esac
1565 echo "$ac_var='\''$ac_val'\''"
1566 done | sort
1567 echo
1568 fi
1569
1570 if test -s confdefs.h; then
1571 cat <<\_ASBOX
1572 ## ----------- ##
1573 ## confdefs.h. ##
1574 ## ----------- ##
1575 _ASBOX
1576 echo
1577 cat confdefs.h
1578 echo
1579 fi
1580 test "$ac_signal" != 0 &&
1581 echo "$as_me: caught signal $ac_signal"
1582 echo "$as_me: exit $exit_status"
1583 } >&5
1584 rm -f core *.core core.conftest.* &&
1585 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1586 exit $exit_status
1587 ' 0
1588 for ac_signal in 1 2 13 15; do
1589 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1590 done
1591 ac_signal=0
1592
1593 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1594 rm -f -r conftest* confdefs.h
1595
1596 # Predefined preprocessor variables.
1597
1598 cat >>confdefs.h <<_ACEOF
1599 #define PACKAGE_NAME "$PACKAGE_NAME"
1600 _ACEOF
1601
1602
1603 cat >>confdefs.h <<_ACEOF
1604 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1605 _ACEOF
1606
1607
1608 cat >>confdefs.h <<_ACEOF
1609 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1610 _ACEOF
1611
1612
1613 cat >>confdefs.h <<_ACEOF
1614 #define PACKAGE_STRING "$PACKAGE_STRING"
1615 _ACEOF
1616
1617
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1620 _ACEOF
1621
1622
1623 # Let the site file select an alternate cache file if it wants to.
1624 # Prefer explicitly selected file to automatically selected ones.
1625 if test -n "$CONFIG_SITE"; then
1626 set x "$CONFIG_SITE"
1627 elif test "x$prefix" != xNONE; then
1628 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1629 else
1630 set x "$ac_default_prefix/share/config.site" \
1631 "$ac_default_prefix/etc/config.site"
1632 fi
1633 shift
1634 for ac_site_file
1635 do
1636 if test -r "$ac_site_file"; then
1637 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1638 echo "$as_me: loading site script $ac_site_file" >&6;}
1639 sed 's/^/| /' "$ac_site_file" >&5
1640 . "$ac_site_file"
1641 fi
1642 done
1643
1644 if test -r "$cache_file"; then
1645 # Some versions of bash will fail to source /dev/null (special
1646 # files actually), so we avoid doing that.
1647 if test -f "$cache_file"; then
1648 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1649 echo "$as_me: loading cache $cache_file" >&6;}
1650 case $cache_file in
1651 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1652 *) . "./$cache_file";;
1653 esac
1654 fi
1655 else
1656 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1657 echo "$as_me: creating cache $cache_file" >&6;}
1658 >$cache_file
1659 fi
1660
1661 # Check that the precious variables saved in the cache have kept the same
1662 # value.
1663 ac_cache_corrupted=false
1664 for ac_var in $ac_precious_vars; do
1665 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1666 eval ac_new_set=\$ac_env_${ac_var}_set
1667 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1668 eval ac_new_val=\$ac_env_${ac_var}_value
1669 case $ac_old_set,$ac_new_set in
1670 set,)
1671 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1672 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1673 ac_cache_corrupted=: ;;
1674 ,set)
1675 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1676 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1677 ac_cache_corrupted=: ;;
1678 ,);;
1679 *)
1680 if test "x$ac_old_val" != "x$ac_new_val"; then
1681 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1682 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1683 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1684 echo "$as_me: former value: $ac_old_val" >&2;}
1685 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1686 echo "$as_me: current value: $ac_new_val" >&2;}
1687 ac_cache_corrupted=:
1688 fi;;
1689 esac
1690 # Pass precious variables to config.status.
1691 if test "$ac_new_set" = set; then
1692 case $ac_new_val in
1693 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1694 *) ac_arg=$ac_var=$ac_new_val ;;
1695 esac
1696 case " $ac_configure_args " in
1697 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1698 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1699 esac
1700 fi
1701 done
1702 if $ac_cache_corrupted; then
1703 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1704 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1705 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1706 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1707 { (exit 1); exit 1; }; }
1708 fi
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726 ac_ext=c
1727 ac_cpp='$CPP $CPPFLAGS'
1728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1731
1732
1733 VERSION=0.9
1734 PACKAGE=mousetrap
1735 ac_config_headers="$ac_config_headers config.h"
1736
1737 am__api_version="1.9"
1738 ac_aux_dir=
1739 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1740 if test -f "$ac_dir/install-sh"; then
1741 ac_aux_dir=$ac_dir
1742 ac_install_sh="$ac_aux_dir/install-sh -c"
1743 break
1744 elif test -f "$ac_dir/install.sh"; then
1745 ac_aux_dir=$ac_dir
1746 ac_install_sh="$ac_aux_dir/install.sh -c"
1747 break
1748 elif test -f "$ac_dir/shtool"; then
1749 ac_aux_dir=$ac_dir
1750 ac_install_sh="$ac_aux_dir/shtool install -c"
1751 break
1752 fi
1753 done
1754 if test -z "$ac_aux_dir"; then
1755 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1756 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1757 { (exit 1); exit 1; }; }
1758 fi
1759
1760 # These three variables are undocumented and unsupported,
1761 # and are intended to be withdrawn in a future Autoconf release.
1762 # They can cause serious problems if a builder's source tree is in a directory
1763 # whose full name contains unusual characters.
1764 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1765 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1766 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1767
1768
1769 # Find a good install program. We prefer a C program (faster),
1770 # so one script is as good as another. But avoid the broken or
1771 # incompatible versions:
1772 # SysV /etc/install, /usr/sbin/install
1773 # SunOS /usr/etc/install
1774 # IRIX /sbin/install
1775 # AIX /bin/install
1776 # AmigaOS /C/install, which installs bootblocks on floppy discs
1777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1780 # OS/2's system install, which has a completely different semantic
1781 # ./install, which can be erroneously created by make from ./install.sh.
1782 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1783 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1784 if test -z "$INSTALL"; then
1785 if test "${ac_cv_path_install+set}" = set; then
1786 echo $ECHO_N "(cached) $ECHO_C" >&6
1787 else
1788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1789 for as_dir in $PATH
1790 do
1791 IFS=$as_save_IFS
1792 test -z "$as_dir" && as_dir=.
1793 # Account for people who put trailing slashes in PATH elements.
1794 case $as_dir/ in
1795 ./ | .// | /cC/* | \
1796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1797 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1798 /usr/ucb/* ) ;;
1799 *)
1800 # OSF1 and SCO ODT 3.0 have their own names for install.
1801 # Don't use installbsd from OSF since it installs stuff as root
1802 # by default.
1803 for ac_prog in ginstall scoinst install; do
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1806 if test $ac_prog = install &&
1807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1808 # AIX install. It has an incompatible calling convention.
1809 :
1810 elif test $ac_prog = install &&
1811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1812 # program-specific install script used by HP pwplus--don't use.
1813 :
1814 else
1815 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1816 break 3
1817 fi
1818 fi
1819 done
1820 done
1821 ;;
1822 esac
1823 done
1824 IFS=$as_save_IFS
1825
1826
1827 fi
1828 if test "${ac_cv_path_install+set}" = set; then
1829 INSTALL=$ac_cv_path_install
1830 else
1831 # As a last resort, use the slow shell script. Don't cache a
1832 # value for INSTALL within a source directory, because that will
1833 # break other packages using the cache if that directory is
1834 # removed, or if the value is a relative name.
1835 INSTALL=$ac_install_sh
1836 fi
1837 fi
1838 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1839 echo "${ECHO_T}$INSTALL" >&6; }
1840
1841 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1842 # It thinks the first close brace ends the variable substitution.
1843 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1844
1845 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1846
1847 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1848
1849 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1850 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1851 # Just in case
1852 sleep 1
1853 echo timestamp > conftest.file
1854 # Do `set' in a subshell so we don't clobber the current shell's
1855 # arguments. Must try -L first in case configure is actually a
1856 # symlink; some systems play weird games with the mod time of symlinks
1857 # (eg FreeBSD returns the mod time of the symlink's containing
1858 # directory).
1859 if (
1860 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1861 if test "$*" = "X"; then
1862 # -L didn't work.
1863 set X `ls -t $srcdir/configure conftest.file`
1864 fi
1865 rm -f conftest.file
1866 if test "$*" != "X $srcdir/configure conftest.file" \
1867 && test "$*" != "X conftest.file $srcdir/configure"; then
1868
1869 # If neither matched, then we have a broken ls. This can happen
1870 # if, for instance, CONFIG_SHELL is bash and it inherits a
1871 # broken ls alias from the environment. This has actually
1872 # happened. Such a system could not be considered "sane".
1873 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1874 alias in your environment" >&5
1875 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1876 alias in your environment" >&2;}
1877 { (exit 1); exit 1; }; }
1878 fi
1879
1880 test "$2" = conftest.file
1881 )
1882 then
1883 # Ok.
1884 :
1885 else
1886 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1887 Check your system clock" >&5
1888 echo "$as_me: error: newly created file is older than distributed files!
1889 Check your system clock" >&2;}
1890 { (exit 1); exit 1; }; }
1891 fi
1892 { echo "$as_me:$LINENO: result: yes" >&5
1893 echo "${ECHO_T}yes" >&6; }
1894 test "$program_prefix" != NONE &&
1895 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1896 # Use a double $ so make ignores it.
1897 test "$program_suffix" != NONE &&
1898 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1899 # Double any \ or $. echo might interpret backslashes.
1900 # By default was `s,x,x', remove it if useless.
1901 cat <<\_ACEOF >conftest.sed
1902 s/[\\$]/&&/g;s/;s,x,x,$//
1903 _ACEOF
1904 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1905 rm -f conftest.sed
1906
1907 # expand $ac_aux_dir to an absolute path
1908 am_aux_dir=`cd $ac_aux_dir && pwd`
1909
1910 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1911 # Use eval to expand $SHELL
1912 if eval "$MISSING --run true"; then
1913 am_missing_run="$MISSING --run "
1914 else
1915 am_missing_run=
1916 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1917 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1918 fi
1919
1920 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1921 # We used to keeping the `.' as first argument, in order to
1922 # allow $(mkdir_p) to be used without argument. As in
1923 # $(mkdir_p) $(somedir)
1924 # where $(somedir) is conditionally defined. However this is wrong
1925 # for two reasons:
1926 # 1. if the package is installed by a user who cannot write `.'
1927 # make install will fail,
1928 # 2. the above comment should most certainly read
1929 # $(mkdir_p) $(DESTDIR)$(somedir)
1930 # so it does not work when $(somedir) is undefined and
1931 # $(DESTDIR) is not.
1932 # To support the latter case, we have to write
1933 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1934 # so the `.' trick is pointless.
1935 mkdir_p='mkdir -p --'
1936 else
1937 # On NextStep and OpenStep, the `mkdir' command does not
1938 # recognize any option. It will interpret all options as
1939 # directories to create, and then abort because `.' already
1940 # exists.
1941 for d in ./-p ./--version;
1942 do
1943 test -d $d && rmdir $d
1944 done
1945 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1946 if test -f "$ac_aux_dir/mkinstalldirs"; then
1947 mkdir_p='$(mkinstalldirs)'
1948 else
1949 mkdir_p='$(install_sh) -d'
1950 fi
1951 fi
1952
1953 for ac_prog in gawk mawk nawk awk
1954 do
1955 # Extract the first word of "$ac_prog", so it can be a program name with args.
1956 set dummy $ac_prog; ac_word=$2
1957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1959 if test "${ac_cv_prog_AWK+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962 if test -n "$AWK"; then
1963 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1964 else
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 for as_dir in $PATH
1967 do
1968 IFS=$as_save_IFS
1969 test -z "$as_dir" && as_dir=.
1970 for ac_exec_ext in '' $ac_executable_extensions; do
1971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1972 ac_cv_prog_AWK="$ac_prog"
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 break 2
1975 fi
1976 done
1977 done
1978 IFS=$as_save_IFS
1979
1980 fi
1981 fi
1982 AWK=$ac_cv_prog_AWK
1983 if test -n "$AWK"; then
1984 { echo "$as_me:$LINENO: result: $AWK" >&5
1985 echo "${ECHO_T}$AWK" >&6; }
1986 else
1987 { echo "$as_me:$LINENO: result: no" >&5
1988 echo "${ECHO_T}no" >&6; }
1989 fi
1990
1991
1992 test -n "$AWK" && break
1993 done
1994
1995 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1996 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1997 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1998 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1999 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001 cat >conftest.make <<\_ACEOF
2002 SHELL = /bin/sh
2003 all:
2004 @echo '@@@%%%=$(MAKE)=@@@%%%'
2005 _ACEOF
2006 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2007 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2008 *@@@%%%=?*=@@@%%%*)
2009 eval ac_cv_prog_make_${ac_make}_set=yes;;
2010 *)
2011 eval ac_cv_prog_make_${ac_make}_set=no;;
2012 esac
2013 rm -f conftest.make
2014 fi
2015 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2016 { echo "$as_me:$LINENO: result: yes" >&5
2017 echo "${ECHO_T}yes" >&6; }
2018 SET_MAKE=
2019 else
2020 { echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6; }
2022 SET_MAKE="MAKE=${MAKE-make}"
2023 fi
2024
2025 rm -rf .tst 2>/dev/null
2026 mkdir .tst 2>/dev/null
2027 if test -d .tst; then
2028 am__leading_dot=.
2029 else
2030 am__leading_dot=_
2031 fi
2032 rmdir .tst 2>/dev/null
2033
2034 # test to see if srcdir already configured
2035 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2036 test -f $srcdir/config.status; then
2037 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2038 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2039 { (exit 1); exit 1; }; }
2040 fi
2041
2042 # test whether we have cygpath
2043 if test -z "$CYGPATH_W"; then
2044 if (cygpath --version) >/dev/null 2>/dev/null; then
2045 CYGPATH_W='cygpath -w'
2046 else
2047 CYGPATH_W=echo
2048 fi
2049 fi
2050
2051
2052 # Define the identity of the package.
2053 PACKAGE=$PACKAGE
2054 VERSION="$VERSION"
2055
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE "$PACKAGE"
2059 _ACEOF
2060
2061
2062 cat >>confdefs.h <<_ACEOF
2063 #define VERSION "$VERSION"
2064 _ACEOF
2065
2066 # Some tools Automake needs.
2067
2068 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2069
2070
2071 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2072
2073
2074 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2075
2076
2077 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2078
2079
2080 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2081
2082 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2083
2084 # Installed binaries are usually stripped using `strip' when the user
2085 # run `make install-strip'. However `strip' might not be the right
2086 # tool to use in cross-compilation environments, therefore Automake
2087 # will honor the `STRIP' environment variable to overrule this program.
2088 if test "$cross_compiling" != no; then
2089 if test -n "$ac_tool_prefix"; then
2090 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2091 set dummy ${ac_tool_prefix}strip; ac_word=$2
2092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2094 if test "${ac_cv_prog_STRIP+set}" = set; then
2095 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 else
2097 if test -n "$STRIP"; then
2098 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2099 else
2100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101 for as_dir in $PATH
2102 do
2103 IFS=$as_save_IFS
2104 test -z "$as_dir" && as_dir=.
2105 for ac_exec_ext in '' $ac_executable_extensions; do
2106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2107 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2109 break 2
2110 fi
2111 done
2112 done
2113 IFS=$as_save_IFS
2114
2115 fi
2116 fi
2117 STRIP=$ac_cv_prog_STRIP
2118 if test -n "$STRIP"; then
2119 { echo "$as_me:$LINENO: result: $STRIP" >&5
2120 echo "${ECHO_T}$STRIP" >&6; }
2121 else
2122 { echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6; }
2124 fi
2125
2126
2127 fi
2128 if test -z "$ac_cv_prog_STRIP"; then
2129 ac_ct_STRIP=$STRIP
2130 # Extract the first word of "strip", so it can be a program name with args.
2131 set dummy strip; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 if test -n "$ac_ct_STRIP"; then
2138 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147 ac_cv_prog_ac_ct_STRIP="strip"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2150 fi
2151 done
2152 done
2153 IFS=$as_save_IFS
2154
2155 fi
2156 fi
2157 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2158 if test -n "$ac_ct_STRIP"; then
2159 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2160 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2161 else
2162 { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2164 fi
2165
2166 if test "x$ac_ct_STRIP" = x; then
2167 STRIP=":"
2168 else
2169 case $cross_compiling:$ac_tool_warned in
2170 yes:)
2171 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2172 whose name does not start with the host triplet. If you think this
2173 configuration is useful to you, please write to [email protected]." >&5
2174 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2175 whose name does not start with the host triplet. If you think this
2176 configuration is useful to you, please write to [email protected]." >&2;}
2177 ac_tool_warned=yes ;;
2178 esac
2179 STRIP=$ac_ct_STRIP
2180 fi
2181 else
2182 STRIP="$ac_cv_prog_STRIP"
2183 fi
2184
2185 fi
2186 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2187
2188 # We need awk for the "check" target. The system "awk" is bad on
2189 # some platforms.
2190 # Always define AMTAR for backward compatibility.
2191
2192 AMTAR=${AMTAR-"${am_missing_run}tar"}
2193
2194 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2195
2196
2197
2198
2199
2200 CFLAGS="$CFLAGS"
2201
2202 if test "x$prefix" = "xNONE"; then
2203 prefix="/usr/local"
2204 fi
2205
2206 ac_ext=c
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 if test -n "$ac_tool_prefix"; then
2212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 else
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 else
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223 for as_dir in $PATH
2224 do
2225 IFS=$as_save_IFS
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231 break 2
2232 fi
2233 done
2234 done
2235 IFS=$as_save_IFS
2236
2237 fi
2238 fi
2239 CC=$ac_cv_prog_CC
2240 if test -n "$CC"; then
2241 { echo "$as_me:$LINENO: result: $CC" >&5
2242 echo "${ECHO_T}$CC" >&6; }
2243 else
2244 { echo "$as_me:$LINENO: result: no" >&5
2245 echo "${ECHO_T}no" >&6; }
2246 fi
2247
2248
2249 fi
2250 if test -z "$ac_cv_prog_CC"; then
2251 ac_ct_CC=$CC
2252 # Extract the first word of "gcc", so it can be a program name with args.
2253 set dummy gcc; ac_word=$2
2254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2256 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 if test -n "$ac_ct_CC"; then
2260 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2261 else
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 for as_dir in $PATH
2264 do
2265 IFS=$as_save_IFS
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269 ac_cv_prog_ac_ct_CC="gcc"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2271 break 2
2272 fi
2273 done
2274 done
2275 IFS=$as_save_IFS
2276
2277 fi
2278 fi
2279 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2280 if test -n "$ac_ct_CC"; then
2281 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2282 echo "${ECHO_T}$ac_ct_CC" >&6; }
2283 else
2284 { echo "$as_me:$LINENO: result: no" >&5
2285 echo "${ECHO_T}no" >&6; }
2286 fi
2287
2288 if test "x$ac_ct_CC" = x; then
2289 CC=""
2290 else
2291 case $cross_compiling:$ac_tool_warned in
2292 yes:)
2293 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2294 whose name does not start with the host triplet. If you think this
2295 configuration is useful to you, please write to [email protected]." >&5
2296 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2297 whose name does not start with the host triplet. If you think this
2298 configuration is useful to you, please write to [email protected]." >&2;}
2299 ac_tool_warned=yes ;;
2300 esac
2301 CC=$ac_ct_CC
2302 fi
2303 else
2304 CC="$ac_cv_prog_CC"
2305 fi
2306
2307 if test -z "$CC"; then
2308 if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2310 set dummy ${ac_tool_prefix}cc; ac_word=$2
2311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2313 if test "${ac_cv_prog_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2321 do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_CC="${ac_tool_prefix}cc"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330 done
2331 done
2332 IFS=$as_save_IFS
2333
2334 fi
2335 fi
2336 CC=$ac_cv_prog_CC
2337 if test -n "$CC"; then
2338 { echo "$as_me:$LINENO: result: $CC" >&5
2339 echo "${ECHO_T}$CC" >&6; }
2340 else
2341 { echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6; }
2343 fi
2344
2345
2346 fi
2347 fi
2348 if test -z "$CC"; then
2349 # Extract the first word of "cc", so it can be a program name with args.
2350 set dummy cc; ac_word=$2
2351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2353 if test "${ac_cv_prog_CC+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 if test -n "$CC"; then
2357 ac_cv_prog_CC="$CC" # Let the user override the test.
2358 else
2359 ac_prog_rejected=no
2360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 for as_dir in $PATH
2362 do
2363 IFS=$as_save_IFS
2364 test -z "$as_dir" && as_dir=.
2365 for ac_exec_ext in '' $ac_executable_extensions; do
2366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2368 ac_prog_rejected=yes
2369 continue
2370 fi
2371 ac_cv_prog_CC="cc"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2373 break 2
2374 fi
2375 done
2376 done
2377 IFS=$as_save_IFS
2378
2379 if test $ac_prog_rejected = yes; then
2380 # We found a bogon in the path, so make sure we never use it.
2381 set dummy $ac_cv_prog_CC
2382 shift
2383 if test $# != 0; then
2384 # We chose a different compiler from the bogus one.
2385 # However, it has the same basename, so the bogon will be chosen
2386 # first if we set CC to just the basename; use the full file name.
2387 shift
2388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2389 fi
2390 fi
2391 fi
2392 fi
2393 CC=$ac_cv_prog_CC
2394 if test -n "$CC"; then
2395 { echo "$as_me:$LINENO: result: $CC" >&5
2396 echo "${ECHO_T}$CC" >&6; }
2397 else
2398 { echo "$as_me:$LINENO: result: no" >&5
2399 echo "${ECHO_T}no" >&6; }
2400 fi
2401
2402
2403 fi
2404 if test -z "$CC"; then
2405 if test -n "$ac_tool_prefix"; then
2406 for ac_prog in cl.exe
2407 do
2408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2412 if test "${ac_cv_prog_CC+set}" = set; then
2413 echo $ECHO_N "(cached) $ECHO_C" >&6
2414 else
2415 if test -n "$CC"; then
2416 ac_cv_prog_CC="$CC" # Let the user override the test.
2417 else
2418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2419 for as_dir in $PATH
2420 do
2421 IFS=$as_save_IFS
2422 test -z "$as_dir" && as_dir=.
2423 for ac_exec_ext in '' $ac_executable_extensions; do
2424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 break 2
2428 fi
2429 done
2430 done
2431 IFS=$as_save_IFS
2432
2433 fi
2434 fi
2435 CC=$ac_cv_prog_CC
2436 if test -n "$CC"; then
2437 { echo "$as_me:$LINENO: result: $CC" >&5
2438 echo "${ECHO_T}$CC" >&6; }
2439 else
2440 { echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6; }
2442 fi
2443
2444
2445 test -n "$CC" && break
2446 done
2447 fi
2448 if test -z "$CC"; then
2449 ac_ct_CC=$CC
2450 for ac_prog in cl.exe
2451 do
2452 # Extract the first word of "$ac_prog", so it can be a program name with args.
2453 set dummy $ac_prog; ac_word=$2
2454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 else
2459 if test -n "$ac_ct_CC"; then
2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_ac_ct_CC="$ac_prog"
2470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2472 fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2476
2477 fi
2478 fi
2479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480 if test -n "$ac_ct_CC"; then
2481 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2482 echo "${ECHO_T}$ac_ct_CC" >&6; }
2483 else
2484 { echo "$as_me:$LINENO: result: no" >&5
2485 echo "${ECHO_T}no" >&6; }
2486 fi
2487
2488
2489 test -n "$ac_ct_CC" && break
2490 done
2491
2492 if test "x$ac_ct_CC" = x; then
2493 CC=""
2494 else
2495 case $cross_compiling:$ac_tool_warned in
2496 yes:)
2497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2498 whose name does not start with the host triplet. If you think this
2499 configuration is useful to you, please write to [email protected]." >&5
2500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2501 whose name does not start with the host triplet. If you think this
2502 configuration is useful to you, please write to [email protected]." >&2;}
2503 ac_tool_warned=yes ;;
2504 esac
2505 CC=$ac_ct_CC
2506 fi
2507 fi
2508
2509 fi
2510
2511
2512 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2513 See \`config.log' for more details." >&5
2514 echo "$as_me: error: no acceptable C compiler found in \$PATH
2515 See \`config.log' for more details." >&2;}
2516 { (exit 1); exit 1; }; }
2517
2518 # Provide some information about the compiler.
2519 echo "$as_me:$LINENO: checking for C compiler version" >&5
2520 ac_compiler=`set X $ac_compile; echo $2`
2521 { (ac_try="$ac_compiler --version >&5"
2522 case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_compiler --version >&5") 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531 { (ac_try="$ac_compiler -v >&5"
2532 case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535 esac
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_compiler -v >&5") 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }
2541 { (ac_try="$ac_compiler -V >&5"
2542 case "(($ac_try" in
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2545 esac
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547 (eval "$ac_compiler -V >&5") 2>&5
2548 ac_status=$?
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }
2551
2552 cat >conftest.$ac_ext <<_ACEOF
2553 /* confdefs.h. */
2554 _ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2558
2559 int
2560 main ()
2561 {
2562
2563 ;
2564 return 0;
2565 }
2566 _ACEOF
2567 ac_clean_files_save=$ac_clean_files
2568 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2569 # Try to create an executable without -o first, disregard a.out.
2570 # It will help us diagnose broken compilers, and finding out an intuition
2571 # of exeext.
2572 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2573 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2574 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2575 #
2576 # List of possible output files, starting from the most likely.
2577 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2578 # only as a last resort. b.out is created by i960 compilers.
2579 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2580 #
2581 # The IRIX 6 linker writes into existing files which may not be
2582 # executable, retaining their permissions. Remove them first so a
2583 # subsequent execution test works.
2584 ac_rmfiles=
2585 for ac_file in $ac_files
2586 do
2587 case $ac_file in
2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2589 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2590 esac
2591 done
2592 rm -f $ac_rmfiles
2593
2594 if { (ac_try="$ac_link_default"
2595 case "(($ac_try" in
2596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2597 *) ac_try_echo=$ac_try;;
2598 esac
2599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2600 (eval "$ac_link_default") 2>&5
2601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; then
2604 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2605 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2606 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2607 # so that the user can short-circuit this test for compilers unknown to
2608 # Autoconf.
2609 for ac_file in $ac_files ''
2610 do
2611 test -f "$ac_file" || continue
2612 case $ac_file in
2613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2614 ;;
2615 [ab].out )
2616 # We found the default executable, but exeext='' is most
2617 # certainly right.
2618 break;;
2619 *.* )
2620 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2621 then :; else
2622 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2623 fi
2624 # We set ac_cv_exeext here because the later test for it is not
2625 # safe: cross compilers may not add the suffix if given an `-o'
2626 # argument, so we may need to know it at that point already.
2627 # Even if this section looks crufty: it has the advantage of
2628 # actually working.
2629 break;;
2630 * )
2631 break;;
2632 esac
2633 done
2634 test "$ac_cv_exeext" = no && ac_cv_exeext=
2635
2636 else
2637 ac_file=''
2638 fi
2639
2640 { echo "$as_me:$LINENO: result: $ac_file" >&5
2641 echo "${ECHO_T}$ac_file" >&6; }
2642 if test -z "$ac_file"; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2647 See \`config.log' for more details." >&5
2648 echo "$as_me: error: C compiler cannot create executables
2649 See \`config.log' for more details." >&2;}
2650 { (exit 77); exit 77; }; }
2651 fi
2652
2653 ac_exeext=$ac_cv_exeext
2654
2655 # Check that the compiler produces executables we can run. If not, either
2656 # the compiler is broken, or we cross compile.
2657 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2658 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2659 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2660 # If not cross compiling, check that we can run a simple program.
2661 if test "$cross_compiling" != yes; then
2662 if { ac_try='./$ac_file'
2663 { (case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_try") 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 cross_compiling=no
2673 else
2674 if test "$cross_compiling" = maybe; then
2675 cross_compiling=yes
2676 else
2677 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2678 If you meant to cross compile, use \`--host'.
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: cannot run C compiled programs.
2681 If you meant to cross compile, use \`--host'.
2682 See \`config.log' for more details." >&2;}
2683 { (exit 1); exit 1; }; }
2684 fi
2685 fi
2686 fi
2687 { echo "$as_me:$LINENO: result: yes" >&5
2688 echo "${ECHO_T}yes" >&6; }
2689
2690 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2691 ac_clean_files=$ac_clean_files_save
2692 # Check that the compiler produces executables we can run. If not, either
2693 # the compiler is broken, or we cross compile.
2694 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2695 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2696 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2697 echo "${ECHO_T}$cross_compiling" >&6; }
2698
2699 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2700 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2701 if { (ac_try="$ac_link"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_link") 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; then
2711 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2712 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2713 # work properly (i.e., refer to `conftest.exe'), while it won't with
2714 # `rm'.
2715 for ac_file in conftest.exe conftest conftest.*; do
2716 test -f "$ac_file" || continue
2717 case $ac_file in
2718 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2719 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2720 break;;
2721 * ) break;;
2722 esac
2723 done
2724 else
2725 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2726 See \`config.log' for more details." >&5
2727 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2728 See \`config.log' for more details." >&2;}
2729 { (exit 1); exit 1; }; }
2730 fi
2731
2732 rm -f conftest$ac_cv_exeext
2733 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2734 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2735
2736 rm -f conftest.$ac_ext
2737 EXEEXT=$ac_cv_exeext
2738 ac_exeext=$EXEEXT
2739 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2740 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2741 if test "${ac_cv_objext+set}" = set; then
2742 echo $ECHO_N "(cached) $ECHO_C" >&6
2743 else
2744 cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h. */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2750
2751 int
2752 main ()
2753 {
2754
2755 ;
2756 return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.o conftest.obj
2760 if { (ac_try="$ac_compile"
2761 case "(($ac_try" in
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2764 esac
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766 (eval "$ac_compile") 2>&5
2767 ac_status=$?
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); }; then
2770 for ac_file in conftest.o conftest.obj conftest.*; do
2771 test -f "$ac_file" || continue;
2772 case $ac_file in
2773 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2774 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2775 break;;
2776 esac
2777 done
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2783 See \`config.log' for more details." >&5
2784 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2785 See \`config.log' for more details." >&2;}
2786 { (exit 1); exit 1; }; }
2787 fi
2788
2789 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2790 fi
2791 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2792 echo "${ECHO_T}$ac_cv_objext" >&6; }
2793 OBJEXT=$ac_cv_objext
2794 ac_objext=$OBJEXT
2795 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2796 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2797 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806
2807 int
2808 main ()
2809 {
2810 #ifndef __GNUC__
2811 choke me
2812 #endif
2813
2814 ;
2815 return 0;
2816 }
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (ac_try="$ac_compile"
2820 case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_compile") 2>conftest.er1
2826 ac_status=$?
2827 grep -v '^ *+' conftest.er1 >conftest.err
2828 rm -f conftest.er1
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } && {
2832 test -z "$ac_c_werror_flag" ||
2833 test ! -s conftest.err
2834 } && test -s conftest.$ac_objext; then
2835 ac_compiler_gnu=yes
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2839
2840 ac_compiler_gnu=no
2841 fi
2842
2843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2845
2846 fi
2847 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2848 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2849 GCC=`test $ac_compiler_gnu = yes && echo yes`
2850 ac_test_CFLAGS=${CFLAGS+set}
2851 ac_save_CFLAGS=$CFLAGS
2852 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2853 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2854 if test "${ac_cv_prog_cc_g+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2856 else
2857 ac_save_c_werror_flag=$ac_c_werror_flag
2858 ac_c_werror_flag=yes
2859 ac_cv_prog_cc_g=no
2860 CFLAGS="-g"
2861 cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h. */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h. */
2867
2868 int
2869 main ()
2870 {
2871
2872 ;
2873 return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2878 case "(($ac_try" in
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_compile") 2>conftest.er1
2884 ac_status=$?
2885 grep -v '^ *+' conftest.er1 >conftest.err
2886 rm -f conftest.er1
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } && {
2890 test -z "$ac_c_werror_flag" ||
2891 test ! -s conftest.err
2892 } && test -s conftest.$ac_objext; then
2893 ac_cv_prog_cc_g=yes
2894 else
2895 echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898 CFLAGS=""
2899 cat >conftest.$ac_ext <<_ACEOF
2900 /* confdefs.h. */
2901 _ACEOF
2902 cat confdefs.h >>conftest.$ac_ext
2903 cat >>conftest.$ac_ext <<_ACEOF
2904 /* end confdefs.h. */
2905
2906 int
2907 main ()
2908 {
2909
2910 ;
2911 return 0;
2912 }
2913 _ACEOF
2914 rm -f conftest.$ac_objext
2915 if { (ac_try="$ac_compile"
2916 case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921 (eval "$ac_compile") 2>conftest.er1
2922 ac_status=$?
2923 grep -v '^ *+' conftest.er1 >conftest.err
2924 rm -f conftest.er1
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } && {
2928 test -z "$ac_c_werror_flag" ||
2929 test ! -s conftest.err
2930 } && test -s conftest.$ac_objext; then
2931 :
2932 else
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2935
2936 ac_c_werror_flag=$ac_save_c_werror_flag
2937 CFLAGS="-g"
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h. */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h. */
2944
2945 int
2946 main ()
2947 {
2948
2949 ;
2950 return 0;
2951 }
2952 _ACEOF
2953 rm -f conftest.$ac_objext
2954 if { (ac_try="$ac_compile"
2955 case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2958 esac
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_compile") 2>conftest.er1
2961 ac_status=$?
2962 grep -v '^ *+' conftest.er1 >conftest.err
2963 rm -f conftest.er1
2964 cat conftest.err >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } && {
2967 test -z "$ac_c_werror_flag" ||
2968 test ! -s conftest.err
2969 } && test -s conftest.$ac_objext; then
2970 ac_cv_prog_cc_g=yes
2971 else
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975
2976 fi
2977
2978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979 fi
2980
2981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982 fi
2983
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_c_werror_flag=$ac_save_c_werror_flag
2986 fi
2987 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2988 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2989 if test "$ac_test_CFLAGS" = set; then
2990 CFLAGS=$ac_save_CFLAGS
2991 elif test $ac_cv_prog_cc_g = yes; then
2992 if test "$GCC" = yes; then
2993 CFLAGS="-g -O2"
2994 else
2995 CFLAGS="-g"
2996 fi
2997 else
2998 if test "$GCC" = yes; then
2999 CFLAGS="-O2"
3000 else
3001 CFLAGS=
3002 fi
3003 fi
3004 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3005 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3006 if test "${ac_cv_prog_cc_c89+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009 ac_cv_prog_cc_c89=no
3010 ac_save_CC=$CC
3011 cat >conftest.$ac_ext <<_ACEOF
3012 /* confdefs.h. */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #include <stdarg.h>
3018 #include <stdio.h>
3019 #include <sys/types.h>
3020 #include <sys/stat.h>
3021 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3022 struct buf { int x; };
3023 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3024 static char *e (p, i)
3025 char **p;
3026 int i;
3027 {
3028 return p[i];
3029 }
3030 static char *f (char * (*g) (char **, int), char **p, ...)
3031 {
3032 char *s;
3033 va_list v;
3034 va_start (v,p);
3035 s = g (p, va_arg (v,int));
3036 va_end (v);
3037 return s;
3038 }
3039
3040 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3041 function prototypes and stuff, but not '\xHH' hex character constants.
3042 These don't provoke an error unfortunately, instead are silently treated
3043 as 'x'. The following induces an error, until -std is added to get
3044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3045 array size at least. It's necessary to write '\x00'==0 to get something
3046 that's true only with -std. */
3047 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3048
3049 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3050 inside strings and character constants. */
3051 #define FOO(x) 'x'
3052 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3053
3054 int test (int i, double x);
3055 struct s1 {int (*f) (int a);};
3056 struct s2 {int (*f) (double a);};
3057 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3058 int argc;
3059 char **argv;
3060 int
3061 main ()
3062 {
3063 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3064 ;
3065 return 0;
3066 }
3067 _ACEOF
3068 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3069 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3070 do
3071 CC="$ac_save_CC $ac_arg"
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3074 case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3080 ac_status=$?
3081 grep -v '^ *+' conftest.er1 >conftest.err
3082 rm -f conftest.er1
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } && {
3086 test -z "$ac_c_werror_flag" ||
3087 test ! -s conftest.err
3088 } && test -s conftest.$ac_objext; then
3089 ac_cv_prog_cc_c89=$ac_arg
3090 else
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3093
3094
3095 fi
3096
3097 rm -f core conftest.err conftest.$ac_objext
3098 test "x$ac_cv_prog_cc_c89" != "xno" && break
3099 done
3100 rm -f conftest.$ac_ext
3101 CC=$ac_save_CC
3102
3103 fi
3104 # AC_CACHE_VAL
3105 case "x$ac_cv_prog_cc_c89" in
3106 x)
3107 { echo "$as_me:$LINENO: result: none needed" >&5
3108 echo "${ECHO_T}none needed" >&6; } ;;
3109 xno)
3110 { echo "$as_me:$LINENO: result: unsupported" >&5
3111 echo "${ECHO_T}unsupported" >&6; } ;;
3112 *)
3113 CC="$CC $ac_cv_prog_cc_c89"
3114 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3115 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3116 esac
3117
3118
3119 ac_ext=c
3120 ac_cpp='$CPP $CPPFLAGS'
3121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3124 DEPDIR="${am__leading_dot}deps"
3125
3126 ac_config_commands="$ac_config_commands depfiles"
3127
3128
3129 am_make=${MAKE-make}
3130 cat > confinc << 'END'
3131 am__doit:
3132 @echo done
3133 .PHONY: am__doit
3134 END
3135 # If we don't find an include directive, just comment out the code.
3136 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3137 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3138 am__include="#"
3139 am__quote=
3140 _am_result=none
3141 # First try GNU make style include.
3142 echo "include confinc" > confmf
3143 # We grep out `Entering directory' and `Leaving directory'
3144 # messages which can occur if `w' ends up in MAKEFLAGS.
3145 # In particular we don't look at `^make:' because GNU make might
3146 # be invoked under some other name (usually "gmake"), in which
3147 # case it prints its new name instead of `make'.
3148 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3149 am__include=include
3150 am__quote=
3151 _am_result=GNU
3152 fi
3153 # Now try BSD make style include.
3154 if test "$am__include" = "#"; then
3155 echo '.include "confinc"' > confmf
3156 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3157 am__include=.include
3158 am__quote="\""
3159 _am_result=BSD
3160 fi
3161 fi
3162
3163
3164 { echo "$as_me:$LINENO: result: $_am_result" >&5
3165 echo "${ECHO_T}$_am_result" >&6; }
3166 rm -f confinc confmf
3167
3168 # Check whether --enable-dependency-tracking was given.
3169 if test "${enable_dependency_tracking+set}" = set; then
3170 enableval=$enable_dependency_tracking;
3171 fi
3172
3173 if test "x$enable_dependency_tracking" != xno; then
3174 am_depcomp="$ac_aux_dir/depcomp"
3175 AMDEPBACKSLASH='\'
3176 fi
3177
3178
3179 if test "x$enable_dependency_tracking" != xno; then
3180 AMDEP_TRUE=
3181 AMDEP_FALSE='#'
3182 else
3183 AMDEP_TRUE='#'
3184 AMDEP_FALSE=
3185 fi
3186
3187
3188
3189
3190 depcc="$CC" am_compiler_list=
3191
3192 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3193 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3194 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3198 # We make a subdir and do the tests there. Otherwise we can end up
3199 # making bogus files that we don't know about and never remove. For
3200 # instance it was reported that on HP-UX the gcc test will end up
3201 # making a dummy file named `D' -- because `-MD' means `put the output
3202 # in D'.
3203 mkdir conftest.dir
3204 # Copy depcomp to subdir because otherwise we won't find it if we're
3205 # using a relative directory.
3206 cp "$am_depcomp" conftest.dir
3207 cd conftest.dir
3208 # We will build objects and dependencies in a subdirectory because
3209 # it helps to detect inapplicable dependency modes. For instance
3210 # both Tru64's cc and ICC support -MD to output dependencies as a
3211 # side effect of compilation, but ICC will put the dependencies in
3212 # the current directory while Tru64 will put them in the object
3213 # directory.
3214 mkdir sub
3215
3216 am_cv_CC_dependencies_compiler_type=none
3217 if test "$am_compiler_list" = ""; then
3218 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3219 fi
3220 for depmode in $am_compiler_list; do
3221 # Setup a source with many dependencies, because some compilers
3222 # like to wrap large dependency lists on column 80 (with \), and
3223 # we should not choose a depcomp mode which is confused by this.
3224 #
3225 # We need to recreate these files for each test, as the compiler may
3226 # overwrite some of them when testing with obscure command lines.
3227 # This happens at least with the AIX C compiler.
3228 : > sub/conftest.c
3229 for i in 1 2 3 4 5 6; do
3230 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3231 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3232 # Solaris 8's {/usr,}/bin/sh.
3233 touch sub/conftst$i.h
3234 done
3235 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3236
3237 case $depmode in
3238 nosideeffect)
3239 # after this tag, mechanisms are not by side-effect, so they'll
3240 # only be used when explicitly requested
3241 if test "x$enable_dependency_tracking" = xyes; then
3242 continue
3243 else
3244 break
3245 fi
3246 ;;
3247 none) break ;;
3248 esac
3249 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3250 # mode. It turns out that the SunPro C++ compiler does not properly
3251 # handle `-M -o', and we need to detect this.
3252 if depmode=$depmode \
3253 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3254 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3255 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3256 >/dev/null 2>conftest.err &&
3257 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3258 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3259 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3260 # icc doesn't choke on unknown options, it will just issue warnings
3261 # or remarks (even with -Werror). So we grep stderr for any message
3262 # that says an option was ignored or not supported.
3263 # When given -MP, icc 7.0 and 7.1 complain thusly:
3264 # icc: Command line warning: ignoring option '-M'; no argument required
3265 # The diagnosis changed in icc 8.0:
3266 # icc: Command line remark: option '-MP' not supported
3267 if (grep 'ignoring option' conftest.err ||
3268 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3269 am_cv_CC_dependencies_compiler_type=$depmode
3270 break
3271 fi
3272 fi
3273 done
3274
3275 cd ..
3276 rm -rf conftest.dir
3277 else
3278 am_cv_CC_dependencies_compiler_type=none
3279 fi
3280
3281 fi
3282 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3283 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3284 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3285
3286
3287
3288 if
3289 test "x$enable_dependency_tracking" != xno \
3290 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3291 am__fastdepCC_TRUE=
3292 am__fastdepCC_FALSE='#'
3293 else
3294 am__fastdepCC_TRUE='#'
3295 am__fastdepCC_FALSE=
3296 fi
3297
3298
3299 ac_ext=c
3300 ac_cpp='$CPP $CPPFLAGS'
3301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3304 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3305 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3306 # On Suns, sometimes $CPP names a directory.
3307 if test -n "$CPP" && test -d "$CPP"; then
3308 CPP=
3309 fi
3310 if test -z "$CPP"; then
3311 if test "${ac_cv_prog_CPP+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314 # Double quotes because CPP needs to be expanded
3315 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3316 do
3317 ac_preproc_ok=false
3318 for ac_c_preproc_warn_flag in '' yes
3319 do
3320 # Use a header file that comes with gcc, so configuring glibc
3321 # with a fresh cross-compiler works.
3322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3323 # <limits.h> exists even on freestanding compilers.
3324 # On the NeXT, cc -E runs the code through the compiler's parser,
3325 # not just through cpp. "Syntax error" is here to catch this case.
3326 cat >conftest.$ac_ext <<_ACEOF
3327 /* confdefs.h. */
3328 _ACEOF
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3332 #ifdef __STDC__
3333 # include <limits.h>
3334 #else
3335 # include <assert.h>
3336 #endif
3337 Syntax error
3338 _ACEOF
3339 if { (ac_try="$ac_cpp conftest.$ac_ext"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } >/dev/null && {
3352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3353 test ! -s conftest.err
3354 }; then
3355 :
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 # Broken: fails on valid input.
3361 continue
3362 fi
3363
3364 rm -f conftest.err conftest.$ac_ext
3365
3366 # OK, works on sane cases. Now check whether nonexistent headers
3367 # can be detected and how.
3368 cat >conftest.$ac_ext <<_ACEOF
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #include <ac_nonexistent.h>
3375 _ACEOF
3376 if { (ac_try="$ac_cpp conftest.$ac_ext"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3383 ac_status=$?
3384 grep -v '^ *+' conftest.er1 >conftest.err
3385 rm -f conftest.er1
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); } >/dev/null && {
3389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 }; then
3392 # Broken: success on invalid input.
3393 continue
3394 else
3395 echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398 # Passes both tests.
3399 ac_preproc_ok=:
3400 break
3401 fi
3402
3403 rm -f conftest.err conftest.$ac_ext
3404
3405 done
3406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407 rm -f conftest.err conftest.$ac_ext
3408 if $ac_preproc_ok; then
3409 break
3410 fi
3411
3412 done
3413 ac_cv_prog_CPP=$CPP
3414
3415 fi
3416 CPP=$ac_cv_prog_CPP
3417 else
3418 ac_cv_prog_CPP=$CPP
3419 fi
3420 { echo "$as_me:$LINENO: result: $CPP" >&5
3421 echo "${ECHO_T}$CPP" >&6; }
3422 ac_preproc_ok=false
3423 for ac_c_preproc_warn_flag in '' yes
3424 do
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat >conftest.$ac_ext <<_ACEOF
3432 /* confdefs.h. */
3433 _ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3437 #ifdef __STDC__
3438 # include <limits.h>
3439 #else
3440 # include <assert.h>
3441 #endif
3442 Syntax error
3443 _ACEOF
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3445 case "(($ac_try" in
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3448 esac
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3451 ac_status=$?
3452 grep -v '^ *+' conftest.er1 >conftest.err
3453 rm -f conftest.er1
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null && {
3457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 }; then
3460 :
3461 else
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3464
3465 # Broken: fails on valid input.
3466 continue
3467 fi
3468
3469 rm -f conftest.err conftest.$ac_ext
3470
3471 # OK, works on sane cases. Now check whether nonexistent headers
3472 # can be detected and how.
3473 cat >conftest.$ac_ext <<_ACEOF
3474 /* confdefs.h. */
3475 _ACEOF
3476 cat confdefs.h >>conftest.$ac_ext
3477 cat >>conftest.$ac_ext <<_ACEOF
3478 /* end confdefs.h. */
3479 #include <ac_nonexistent.h>
3480 _ACEOF
3481 if { (ac_try="$ac_cpp conftest.$ac_ext"
3482 case "(($ac_try" in
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488 ac_status=$?
3489 grep -v '^ *+' conftest.er1 >conftest.err
3490 rm -f conftest.er1
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } >/dev/null && {
3494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 }; then
3497 # Broken: success on invalid input.
3498 continue
3499 else
3500 echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503 # Passes both tests.
3504 ac_preproc_ok=:
3505 break
3506 fi
3507
3508 rm -f conftest.err conftest.$ac_ext
3509
3510 done
3511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512 rm -f conftest.err conftest.$ac_ext
3513 if $ac_preproc_ok; then
3514 :
3515 else
3516 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3517 See \`config.log' for more details." >&5
3518 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3519 See \`config.log' for more details." >&2;}
3520 { (exit 1); exit 1; }; }
3521 fi
3522
3523 ac_ext=c
3524 ac_cpp='$CPP $CPPFLAGS'
3525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528
3529 ac_ext=cpp
3530 ac_cpp='$CXXCPP $CPPFLAGS'
3531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3534 if test -z "$CXX"; then
3535 if test -n "$CCC"; then
3536 CXX=$CCC
3537 else
3538 if test -n "$ac_tool_prefix"; then
3539 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3540 do
3541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3545 if test "${ac_cv_prog_CXX+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 if test -n "$CXX"; then
3549 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3553 do
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3558 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 break 2
3561 fi
3562 done
3563 done
3564 IFS=$as_save_IFS
3565
3566 fi
3567 fi
3568 CXX=$ac_cv_prog_CXX
3569 if test -n "$CXX"; then
3570 { echo "$as_me:$LINENO: result: $CXX" >&5
3571 echo "${ECHO_T}$CXX" >&6; }
3572 else
3573 { echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6; }
3575 fi
3576
3577
3578 test -n "$CXX" && break
3579 done
3580 fi
3581 if test -z "$CXX"; then
3582 ac_ct_CXX=$CXX
3583 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3584 do
3585 # Extract the first word of "$ac_prog", so it can be a program name with args.
3586 set dummy $ac_prog; ac_word=$2
3587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3589 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3591 else
3592 if test -n "$ac_ct_CXX"; then
3593 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3602 ac_cv_prog_ac_ct_CXX="$ac_prog"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606 done
3607 done
3608 IFS=$as_save_IFS
3609
3610 fi
3611 fi
3612 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3613 if test -n "$ac_ct_CXX"; then
3614 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3615 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3616 else
3617 { echo "$as_me:$LINENO: result: no" >&5
3618 echo "${ECHO_T}no" >&6; }
3619 fi
3620
3621
3622 test -n "$ac_ct_CXX" && break
3623 done
3624
3625 if test "x$ac_ct_CXX" = x; then
3626 CXX="g++"
3627 else
3628 case $cross_compiling:$ac_tool_warned in
3629 yes:)
3630 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3631 whose name does not start with the host triplet. If you think this
3632 configuration is useful to you, please write to [email protected]." >&5
3633 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3634 whose name does not start with the host triplet. If you think this
3635 configuration is useful to you, please write to [email protected]." >&2;}
3636 ac_tool_warned=yes ;;
3637 esac
3638 CXX=$ac_ct_CXX
3639 fi
3640 fi
3641
3642 fi
3643 fi
3644 # Provide some information about the compiler.
3645 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3646 ac_compiler=`set X $ac_compile; echo $2`
3647 { (ac_try="$ac_compiler --version >&5"
3648 case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_compiler --version >&5") 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }
3657 { (ac_try="$ac_compiler -v >&5"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_compiler -v >&5") 2>&5
3664 ac_status=$?
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }
3667 { (ac_try="$ac_compiler -V >&5"
3668 case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_compiler -V >&5") 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }
3677
3678 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3679 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3680 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 else
3683 cat >conftest.$ac_ext <<_ACEOF
3684 /* confdefs.h. */
3685 _ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3689
3690 int
3691 main ()
3692 {
3693 #ifndef __GNUC__
3694 choke me
3695 #endif
3696
3697 ;
3698 return 0;
3699 }
3700 _ACEOF
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3703 case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3706 esac
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3709 ac_status=$?
3710 grep -v '^ *+' conftest.er1 >conftest.err
3711 rm -f conftest.er1
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } && {
3715 test -z "$ac_cxx_werror_flag" ||
3716 test ! -s conftest.err
3717 } && test -s conftest.$ac_objext; then
3718 ac_compiler_gnu=yes
3719 else
3720 echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723 ac_compiler_gnu=no
3724 fi
3725
3726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3728
3729 fi
3730 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3731 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3732 GXX=`test $ac_compiler_gnu = yes && echo yes`
3733 ac_test_CXXFLAGS=${CXXFLAGS+set}
3734 ac_save_CXXFLAGS=$CXXFLAGS
3735 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3736 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3737 if test "${ac_cv_prog_cxx_g+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 else
3740 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3741 ac_cxx_werror_flag=yes
3742 ac_cv_prog_cxx_g=no
3743 CXXFLAGS="-g"
3744 cat >conftest.$ac_ext <<_ACEOF
3745 /* confdefs.h. */
3746 _ACEOF
3747 cat confdefs.h >>conftest.$ac_ext
3748 cat >>conftest.$ac_ext <<_ACEOF
3749 /* end confdefs.h. */
3750
3751 int
3752 main ()
3753 {
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 rm -f conftest.$ac_objext
3760 if { (ac_try="$ac_compile"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_compile") 2>conftest.er1
3767 ac_status=$?
3768 grep -v '^ *+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } && {
3773 test -z "$ac_cxx_werror_flag" ||
3774 test ! -s conftest.err
3775 } && test -s conftest.$ac_objext; then
3776 ac_cv_prog_cxx_g=yes
3777 else
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3780
3781 CXXFLAGS=""
3782 cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h. */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788
3789 int
3790 main ()
3791 {
3792
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 rm -f conftest.$ac_objext
3798 if { (ac_try="$ac_compile"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compile") 2>conftest.er1
3805 ac_status=$?
3806 grep -v '^ *+' conftest.er1 >conftest.err
3807 rm -f conftest.er1
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } && {
3811 test -z "$ac_cxx_werror_flag" ||
3812 test ! -s conftest.err
3813 } && test -s conftest.$ac_objext; then
3814 :
3815 else
3816 echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3818
3819 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3820 CXXFLAGS="-g"
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3827
3828 int
3829 main ()
3830 {
3831
3832 ;
3833 return 0;
3834 }
3835 _ACEOF
3836 rm -f conftest.$ac_objext
3837 if { (ac_try="$ac_compile"
3838 case "(($ac_try" in
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3841 esac
3842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3843 (eval "$ac_compile") 2>conftest.er1
3844 ac_status=$?
3845 grep -v '^ *+' conftest.er1 >conftest.err
3846 rm -f conftest.er1
3847 cat conftest.err >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); } && {
3850 test -z "$ac_cxx_werror_flag" ||
3851 test ! -s conftest.err
3852 } && test -s conftest.$ac_objext; then
3853 ac_cv_prog_cxx_g=yes
3854 else
3855 echo "$as_me: failed program was:" >&5
3856 sed 's/^/| /' conftest.$ac_ext >&5
3857
3858
3859 fi
3860
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862 fi
3863
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865 fi
3866
3867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3869 fi
3870 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3871 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3872 if test "$ac_test_CXXFLAGS" = set; then
3873 CXXFLAGS=$ac_save_CXXFLAGS
3874 elif test $ac_cv_prog_cxx_g = yes; then
3875 if test "$GXX" = yes; then
3876 CXXFLAGS="-g -O2"
3877 else
3878 CXXFLAGS="-g"
3879 fi
3880 else
3881 if test "$GXX" = yes; then
3882 CXXFLAGS="-O2"
3883 else
3884 CXXFLAGS=
3885 fi
3886 fi
3887 ac_ext=c
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892
3893 depcc="$CXX" am_compiler_list=
3894
3895 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3896 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3897 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3898 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 else
3900 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3901 # We make a subdir and do the tests there. Otherwise we can end up
3902 # making bogus files that we don't know about and never remove. For
3903 # instance it was reported that on HP-UX the gcc test will end up
3904 # making a dummy file named `D' -- because `-MD' means `put the output
3905 # in D'.
3906 mkdir conftest.dir
3907 # Copy depcomp to subdir because otherwise we won't find it if we're
3908 # using a relative directory.
3909 cp "$am_depcomp" conftest.dir
3910 cd conftest.dir
3911 # We will build objects and dependencies in a subdirectory because
3912 # it helps to detect inapplicable dependency modes. For instance
3913 # both Tru64's cc and ICC support -MD to output dependencies as a
3914 # side effect of compilation, but ICC will put the dependencies in
3915 # the current directory while Tru64 will put them in the object
3916 # directory.
3917 mkdir sub
3918
3919 am_cv_CXX_dependencies_compiler_type=none
3920 if test "$am_compiler_list" = ""; then
3921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3922 fi
3923 for depmode in $am_compiler_list; do
3924 # Setup a source with many dependencies, because some compilers
3925 # like to wrap large dependency lists on column 80 (with \), and
3926 # we should not choose a depcomp mode which is confused by this.
3927 #
3928 # We need to recreate these files for each test, as the compiler may
3929 # overwrite some of them when testing with obscure command lines.
3930 # This happens at least with the AIX C compiler.
3931 : > sub/conftest.c
3932 for i in 1 2 3 4 5 6; do
3933 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3934 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3935 # Solaris 8's {/usr,}/bin/sh.
3936 touch sub/conftst$i.h
3937 done
3938 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3939
3940 case $depmode in
3941 nosideeffect)
3942 # after this tag, mechanisms are not by side-effect, so they'll
3943 # only be used when explicitly requested
3944 if test "x$enable_dependency_tracking" = xyes; then
3945 continue
3946 else
3947 break
3948 fi
3949 ;;
3950 none) break ;;
3951 esac
3952 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3953 # mode. It turns out that the SunPro C++ compiler does not properly
3954 # handle `-M -o', and we need to detect this.
3955 if depmode=$depmode \
3956 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3957 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3958 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3959 >/dev/null 2>conftest.err &&
3960 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3961 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3962 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3963 # icc doesn't choke on unknown options, it will just issue warnings
3964 # or remarks (even with -Werror). So we grep stderr for any message
3965 # that says an option was ignored or not supported.
3966 # When given -MP, icc 7.0 and 7.1 complain thusly:
3967 # icc: Command line warning: ignoring option '-M'; no argument required
3968 # The diagnosis changed in icc 8.0:
3969 # icc: Command line remark: option '-MP' not supported
3970 if (grep 'ignoring option' conftest.err ||
3971 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3972 am_cv_CXX_dependencies_compiler_type=$depmode
3973 break
3974 fi
3975 fi
3976 done
3977
3978 cd ..
3979 rm -rf conftest.dir
3980 else
3981 am_cv_CXX_dependencies_compiler_type=none
3982 fi
3983
3984 fi
3985 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3986 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3987 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3988
3989
3990
3991 if
3992 test "x$enable_dependency_tracking" != xno \
3993 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3994 am__fastdepCXX_TRUE=
3995 am__fastdepCXX_FALSE='#'
3996 else
3997 am__fastdepCXX_TRUE='#'
3998 am__fastdepCXX_FALSE=
3999 fi
4000
4001
4002 # Find a good install program. We prefer a C program (faster),
4003 # so one script is as good as another. But avoid the broken or
4004 # incompatible versions:
4005 # SysV /etc/install, /usr/sbin/install
4006 # SunOS /usr/etc/install
4007 # IRIX /sbin/install
4008 # AIX /bin/install
4009 # AmigaOS /C/install, which installs bootblocks on floppy discs
4010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4013 # OS/2's system install, which has a completely different semantic
4014 # ./install, which can be erroneously created by make from ./install.sh.
4015 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4016 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4017 if test -z "$INSTALL"; then
4018 if test "${ac_cv_path_install+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022 for as_dir in $PATH
4023 do
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
4026 # Account for people who put trailing slashes in PATH elements.
4027 case $as_dir/ in
4028 ./ | .// | /cC/* | \
4029 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4030 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4031 /usr/ucb/* ) ;;
4032 *)
4033 # OSF1 and SCO ODT 3.0 have their own names for install.
4034 # Don't use installbsd from OSF since it installs stuff as root
4035 # by default.
4036 for ac_prog in ginstall scoinst install; do
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4039 if test $ac_prog = install &&
4040 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4041 # AIX install. It has an incompatible calling convention.
4042 :
4043 elif test $ac_prog = install &&
4044 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4045 # program-specific install script used by HP pwplus--don't use.
4046 :
4047 else
4048 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4049 break 3
4050 fi
4051 fi
4052 done
4053 done
4054 ;;
4055 esac
4056 done
4057 IFS=$as_save_IFS
4058
4059
4060 fi
4061 if test "${ac_cv_path_install+set}" = set; then
4062 INSTALL=$ac_cv_path_install
4063 else
4064 # As a last resort, use the slow shell script. Don't cache a
4065 # value for INSTALL within a source directory, because that will
4066 # break other packages using the cache if that directory is
4067 # removed, or if the value is a relative name.
4068 INSTALL=$ac_install_sh
4069 fi
4070 fi
4071 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4072 echo "${ECHO_T}$INSTALL" >&6; }
4073
4074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4075 # It thinks the first close brace ends the variable substitution.
4076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4077
4078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4079
4080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4081
4082 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4083 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4084 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4085 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4087 else
4088 cat >conftest.make <<\_ACEOF
4089 SHELL = /bin/sh
4090 all:
4091 @echo '@@@%%%=$(MAKE)=@@@%%%'
4092 _ACEOF
4093 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4094 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4095 *@@@%%%=?*=@@@%%%*)
4096 eval ac_cv_prog_make_${ac_make}_set=yes;;
4097 *)
4098 eval ac_cv_prog_make_${ac_make}_set=no;;
4099 esac
4100 rm -f conftest.make
4101 fi
4102 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4103 { echo "$as_me:$LINENO: result: yes" >&5
4104 echo "${ECHO_T}yes" >&6; }
4105 SET_MAKE=
4106 else
4107 { echo "$as_me:$LINENO: result: no" >&5
4108 echo "${ECHO_T}no" >&6; }
4109 SET_MAKE="MAKE=${MAKE-make}"
4110 fi
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120 ac_header_dirent=no
4121 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4122 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4123 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4124 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #include <sys/types.h>
4135 #include <$ac_hdr>
4136
4137 int
4138 main ()
4139 {
4140 if ((DIR *) 0)
4141 return 0;
4142 ;
4143 return 0;
4144 }
4145 _ACEOF
4146 rm -f conftest.$ac_objext
4147 if { (ac_try="$ac_compile"
4148 case "(($ac_try" in
4149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4150 *) ac_try_echo=$ac_try;;
4151 esac
4152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4153 (eval "$ac_compile") 2>conftest.er1
4154 ac_status=$?
4155 grep -v '^ *+' conftest.er1 >conftest.err
4156 rm -f conftest.er1
4157 cat conftest.err >&5
4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4159 (exit $ac_status); } && {
4160 test -z "$ac_c_werror_flag" ||
4161 test ! -s conftest.err
4162 } && test -s conftest.$ac_objext; then
4163 eval "$as_ac_Header=yes"
4164 else
4165 echo "$as_me: failed program was:" >&5
4166 sed 's/^/| /' conftest.$ac_ext >&5
4167
4168 eval "$as_ac_Header=no"
4169 fi
4170
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 fi
4173 ac_res=`eval echo '${'$as_ac_Header'}'`
4174 { echo "$as_me:$LINENO: result: $ac_res" >&5
4175 echo "${ECHO_T}$ac_res" >&6; }
4176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4177 cat >>confdefs.h <<_ACEOF
4178 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4179 _ACEOF
4180
4181 ac_header_dirent=$ac_hdr; break
4182 fi
4183
4184 done
4185 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4186 if test $ac_header_dirent = dirent.h; then
4187 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4188 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4189 if test "${ac_cv_search_opendir+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192 ac_func_search_save_LIBS=$LIBS
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h. */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199
4200 /* Override any GCC internal prototype to avoid an error.
4201 Use char because int might match the return type of a GCC
4202 builtin and then its argument prototype would still apply. */
4203 #ifdef __cplusplus
4204 extern "C"
4205 #endif
4206 char opendir ();
4207 int
4208 main ()
4209 {
4210 return opendir ();
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 for ac_lib in '' dir; do
4216 if test -z "$ac_lib"; then
4217 ac_res="none required"
4218 else
4219 ac_res=-l$ac_lib
4220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4221 fi
4222 rm -f conftest.$ac_objext conftest$ac_exeext
4223 if { (ac_try="$ac_link"
4224 case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227 esac
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_link") 2>conftest.er1
4230 ac_status=$?
4231 grep -v '^ *+' conftest.er1 >conftest.err
4232 rm -f conftest.er1
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && {
4236 test -z "$ac_c_werror_flag" ||
4237 test ! -s conftest.err
4238 } && test -s conftest$ac_exeext &&
4239 $as_test_x conftest$ac_exeext; then
4240 ac_cv_search_opendir=$ac_res
4241 else
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245
4246 fi
4247
4248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4249 conftest$ac_exeext
4250 if test "${ac_cv_search_opendir+set}" = set; then
4251 break
4252 fi
4253 done
4254 if test "${ac_cv_search_opendir+set}" = set; then
4255 :
4256 else
4257 ac_cv_search_opendir=no
4258 fi
4259 rm conftest.$ac_ext
4260 LIBS=$ac_func_search_save_LIBS
4261 fi
4262 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4263 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4264 ac_res=$ac_cv_search_opendir
4265 if test "$ac_res" != no; then
4266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4267
4268 fi
4269
4270 else
4271 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4272 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4273 if test "${ac_cv_search_opendir+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276 ac_func_search_save_LIBS=$LIBS
4277 cat >conftest.$ac_ext <<_ACEOF
4278 /* confdefs.h. */
4279 _ACEOF
4280 cat confdefs.h >>conftest.$ac_ext
4281 cat >>conftest.$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4283
4284 /* Override any GCC internal prototype to avoid an error.
4285 Use char because int might match the return type of a GCC
4286 builtin and then its argument prototype would still apply. */
4287 #ifdef __cplusplus
4288 extern "C"
4289 #endif
4290 char opendir ();
4291 int
4292 main ()
4293 {
4294 return opendir ();
4295 ;
4296 return 0;
4297 }
4298 _ACEOF
4299 for ac_lib in '' x; do
4300 if test -z "$ac_lib"; then
4301 ac_res="none required"
4302 else
4303 ac_res=-l$ac_lib
4304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4305 fi
4306 rm -f conftest.$ac_objext conftest$ac_exeext
4307 if { (ac_try="$ac_link"
4308 case "(($ac_try" in
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4311 esac
4312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4313 (eval "$ac_link") 2>conftest.er1
4314 ac_status=$?
4315 grep -v '^ *+' conftest.er1 >conftest.err
4316 rm -f conftest.er1
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } && {
4320 test -z "$ac_c_werror_flag" ||
4321 test ! -s conftest.err
4322 } && test -s conftest$ac_exeext &&
4323 $as_test_x conftest$ac_exeext; then
4324 ac_cv_search_opendir=$ac_res
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329
4330 fi
4331
4332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4333 conftest$ac_exeext
4334 if test "${ac_cv_search_opendir+set}" = set; then
4335 break
4336 fi
4337 done
4338 if test "${ac_cv_search_opendir+set}" = set; then
4339 :
4340 else
4341 ac_cv_search_opendir=no
4342 fi
4343 rm conftest.$ac_ext
4344 LIBS=$ac_func_search_save_LIBS
4345 fi
4346 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4347 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4348 ac_res=$ac_cv_search_opendir
4349 if test "$ac_res" != no; then
4350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4351
4352 fi
4353
4354 fi
4355
4356
4357 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4358 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4359 if test "${ac_cv_path_GREP+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362 # Extract the first word of "grep ggrep" to use in msg output
4363 if test -z "$GREP"; then
4364 set dummy grep ggrep; ac_prog_name=$2
4365 if test "${ac_cv_path_GREP+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368 ac_path_GREP_found=false
4369 # Loop through the user's path and test for each of PROGNAME-LIST
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4372 do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_prog in grep ggrep; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4378 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4379 # Check for GNU ac_path_GREP and select it if it is found.
4380 # Check for GNU $ac_path_GREP
4381 case `"$ac_path_GREP" --version 2>&1` in
4382 *GNU*)
4383 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4384 *)
4385 ac_count=0
4386 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4387 while :
4388 do
4389 cat "conftest.in" "conftest.in" >"conftest.tmp"
4390 mv "conftest.tmp" "conftest.in"
4391 cp "conftest.in" "conftest.nl"
4392 echo 'GREP' >> "conftest.nl"
4393 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395 ac_count=`expr $ac_count + 1`
4396 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4397 # Best one so far, save it but keep looking for a better one
4398 ac_cv_path_GREP="$ac_path_GREP"
4399 ac_path_GREP_max=$ac_count
4400 fi
4401 # 10*(2^10) chars as input seems more than enough
4402 test $ac_count -gt 10 && break
4403 done
4404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405 esac
4406
4407
4408 $ac_path_GREP_found && break 3
4409 done
4410 done
4411
4412 done
4413 IFS=$as_save_IFS
4414
4415
4416 fi
4417
4418 GREP="$ac_cv_path_GREP"
4419 if test -z "$GREP"; then
4420 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4421 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4422 { (exit 1); exit 1; }; }
4423 fi
4424
4425 else
4426 ac_cv_path_GREP=$GREP
4427 fi
4428
4429
4430 fi
4431 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4432 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4433 GREP="$ac_cv_path_GREP"
4434
4435
4436 { echo "$as_me:$LINENO: checking for egrep" >&5
4437 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4438 if test "${ac_cv_path_EGREP+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4442 then ac_cv_path_EGREP="$GREP -E"
4443 else
4444 # Extract the first word of "egrep" to use in msg output
4445 if test -z "$EGREP"; then
4446 set dummy egrep; ac_prog_name=$2
4447 if test "${ac_cv_path_EGREP+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450 ac_path_EGREP_found=false
4451 # Loop through the user's path and test for each of PROGNAME-LIST
4452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4454 do
4455 IFS=$as_save_IFS
4456 test -z "$as_dir" && as_dir=.
4457 for ac_prog in egrep; do
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4460 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4461 # Check for GNU ac_path_EGREP and select it if it is found.
4462 # Check for GNU $ac_path_EGREP
4463 case `"$ac_path_EGREP" --version 2>&1` in
4464 *GNU*)
4465 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4466 *)
4467 ac_count=0
4468 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4469 while :
4470 do
4471 cat "conftest.in" "conftest.in" >"conftest.tmp"
4472 mv "conftest.tmp" "conftest.in"
4473 cp "conftest.in" "conftest.nl"
4474 echo 'EGREP' >> "conftest.nl"
4475 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4476 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4477 ac_count=`expr $ac_count + 1`
4478 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4479 # Best one so far, save it but keep looking for a better one
4480 ac_cv_path_EGREP="$ac_path_EGREP"
4481 ac_path_EGREP_max=$ac_count
4482 fi
4483 # 10*(2^10) chars as input seems more than enough
4484 test $ac_count -gt 10 && break
4485 done
4486 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4487 esac
4488
4489
4490 $ac_path_EGREP_found && break 3
4491 done
4492 done
4493
4494 done
4495 IFS=$as_save_IFS
4496
4497
4498 fi
4499
4500 EGREP="$ac_cv_path_EGREP"
4501 if test -z "$EGREP"; then
4502 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4503 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4504 { (exit 1); exit 1; }; }
4505 fi
4506
4507 else
4508 ac_cv_path_EGREP=$EGREP
4509 fi
4510
4511
4512 fi
4513 fi
4514 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4515 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4516 EGREP="$ac_cv_path_EGREP"
4517
4518
4519 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4520 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4521 if test "${ac_cv_header_stdc+set}" = set; then
4522 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524 cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h. */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4530 #include <stdlib.h>
4531 #include <stdarg.h>
4532 #include <string.h>
4533 #include <float.h>
4534
4535 int
4536 main ()
4537 {
4538
4539 ;
4540 return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4545 case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548 esac
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_compile") 2>conftest.er1
4551 ac_status=$?
4552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && {
4557 test -z "$ac_c_werror_flag" ||
4558 test ! -s conftest.err
4559 } && test -s conftest.$ac_objext; then
4560 ac_cv_header_stdc=yes
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565 ac_cv_header_stdc=no
4566 fi
4567
4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4569
4570 if test $ac_cv_header_stdc = yes; then
4571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4572 cat >conftest.$ac_ext <<_ACEOF
4573 /* confdefs.h. */
4574 _ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 #include <string.h>
4579
4580 _ACEOF
4581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4582 $EGREP "memchr" >/dev/null 2>&1; then
4583 :
4584 else
4585 ac_cv_header_stdc=no
4586 fi
4587 rm -f conftest*
4588
4589 fi
4590
4591 if test $ac_cv_header_stdc = yes; then
4592 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4593 cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h. */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 #include <stdlib.h>
4600
4601 _ACEOF
4602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4603 $EGREP "free" >/dev/null 2>&1; then
4604 :
4605 else
4606 ac_cv_header_stdc=no
4607 fi
4608 rm -f conftest*
4609
4610 fi
4611
4612 if test $ac_cv_header_stdc = yes; then
4613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4614 if test "$cross_compiling" = yes; then
4615 :
4616 else
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 #include <ctype.h>
4624 #include <stdlib.h>
4625 #if ((' ' & 0x0FF) == 0x020)
4626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4628 #else
4629 # define ISLOWER(c) \
4630 (('a' <= (c) && (c) <= 'i') \
4631 || ('j' <= (c) && (c) <= 'r') \
4632 || ('s' <= (c) && (c) <= 'z'))
4633 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4634 #endif
4635
4636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4637 int
4638 main ()
4639 {
4640 int i;
4641 for (i = 0; i < 256; i++)
4642 if (XOR (islower (i), ISLOWER (i))
4643 || toupper (i) != TOUPPER (i))
4644 return 2;
4645 return 0;
4646 }
4647 _ACEOF
4648 rm -f conftest$ac_exeext
4649 if { (ac_try="$ac_link"
4650 case "(($ac_try" in
4651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 *) ac_try_echo=$ac_try;;
4653 esac
4654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655 (eval "$ac_link") 2>&5
4656 ac_status=$?
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4659 { (case "(($ac_try" in
4660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661 *) ac_try_echo=$ac_try;;
4662 esac
4663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4664 (eval "$ac_try") 2>&5
4665 ac_status=$?
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); }; }; then
4668 :
4669 else
4670 echo "$as_me: program exited with status $ac_status" >&5
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4673
4674 ( exit $ac_status )
4675 ac_cv_header_stdc=no
4676 fi
4677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4678 fi
4679
4680
4681 fi
4682 fi
4683 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4684 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4685 if test $ac_cv_header_stdc = yes; then
4686
4687 cat >>confdefs.h <<\_ACEOF
4688 #define STDC_HEADERS 1
4689 _ACEOF
4690
4691 fi
4692
4693 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4694 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
4695 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h. */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4704 #include <sys/types.h>
4705 #include <sys/wait.h>
4706 #ifndef WEXITSTATUS
4707 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4708 #endif
4709 #ifndef WIFEXITED
4710 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4711 #endif
4712
4713 int
4714 main ()
4715 {
4716 int s;
4717 wait (&s);
4718 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 rm -f conftest.$ac_objext
4724 if { (ac_try="$ac_compile"
4725 case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728 esac
4729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4730 (eval "$ac_compile") 2>conftest.er1
4731 ac_status=$?
4732 grep -v '^ *+' conftest.er1 >conftest.err
4733 rm -f conftest.er1
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } && {
4737 test -z "$ac_c_werror_flag" ||
4738 test ! -s conftest.err
4739 } && test -s conftest.$ac_objext; then
4740 ac_cv_header_sys_wait_h=yes
4741 else
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4744
4745 ac_cv_header_sys_wait_h=no
4746 fi
4747
4748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4749 fi
4750 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4751 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
4752 if test $ac_cv_header_sys_wait_h = yes; then
4753
4754 cat >>confdefs.h <<\_ACEOF
4755 #define HAVE_SYS_WAIT_H 1
4756 _ACEOF
4757
4758 fi
4759
4760 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4771 inttypes.h stdint.h unistd.h
4772 do
4773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4777 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 else
4779 cat >conftest.$ac_ext <<_ACEOF
4780 /* confdefs.h. */
4781 _ACEOF
4782 cat confdefs.h >>conftest.$ac_ext
4783 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */
4785 $ac_includes_default
4786
4787 #include <$ac_header>
4788 _ACEOF
4789 rm -f conftest.$ac_objext
4790 if { (ac_try="$ac_compile"
4791 case "(($ac_try" in
4792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793 *) ac_try_echo=$ac_try;;
4794 esac
4795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4796 (eval "$ac_compile") 2>conftest.er1
4797 ac_status=$?
4798 grep -v '^ *+' conftest.er1 >conftest.err
4799 rm -f conftest.er1
4800 cat conftest.err >&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); } && {
4803 test -z "$ac_c_werror_flag" ||
4804 test ! -s conftest.err
4805 } && test -s conftest.$ac_objext; then
4806 eval "$as_ac_Header=yes"
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 eval "$as_ac_Header=no"
4812 fi
4813
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816 ac_res=`eval echo '${'$as_ac_Header'}'`
4817 { echo "$as_me:$LINENO: result: $ac_res" >&5
4818 echo "${ECHO_T}$ac_res" >&6; }
4819 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4820 cat >>confdefs.h <<_ACEOF
4821 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4822 _ACEOF
4823
4824 fi
4825
4826 done
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836 for ac_header in fcntl.h limits.h malloc.h strings.h sys/ioctl.h sys/time.h unistd.h
4837 do
4838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4843 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 fi
4845 ac_res=`eval echo '${'$as_ac_Header'}'`
4846 { echo "$as_me:$LINENO: result: $ac_res" >&5
4847 echo "${ECHO_T}$ac_res" >&6; }
4848 else
4849 # Is the header compilable?
4850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4852 cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h. */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 $ac_includes_default
4859 #include <$ac_header>
4860 _ACEOF
4861 rm -f conftest.$ac_objext
4862 if { (ac_try="$ac_compile"
4863 case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866 esac
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
4878 ac_header_compiler=yes
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ac_header_compiler=no
4884 fi
4885
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4888 echo "${ECHO_T}$ac_header_compiler" >&6; }
4889
4890 # Is the header present?
4891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4893 cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h. */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4899 #include <$ac_header>
4900 _ACEOF
4901 if { (ac_try="$ac_cpp conftest.$ac_ext"
4902 case "(($ac_try" in
4903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904 *) ac_try_echo=$ac_try;;
4905 esac
4906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4908 ac_status=$?
4909 grep -v '^ *+' conftest.er1 >conftest.err
4910 rm -f conftest.er1
4911 cat conftest.err >&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } >/dev/null && {
4914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4915 test ! -s conftest.err
4916 }; then
4917 ac_header_preproc=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_header_preproc=no
4923 fi
4924
4925 rm -f conftest.err conftest.$ac_ext
4926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4927 echo "${ECHO_T}$ac_header_preproc" >&6; }
4928
4929 # So? What about this header?
4930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4931 yes:no: )
4932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4936 ac_header_preproc=yes
4937 ;;
4938 no:yes:* )
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4951
4952 ;;
4953 esac
4954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4957 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 else
4959 eval "$as_ac_Header=\$ac_header_preproc"
4960 fi
4961 ac_res=`eval echo '${'$as_ac_Header'}'`
4962 { echo "$as_me:$LINENO: result: $ac_res" >&5
4963 echo "${ECHO_T}$ac_res" >&6; }
4964
4965 fi
4966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4967 cat >>confdefs.h <<_ACEOF
4968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4969 _ACEOF
4970
4971 fi
4972
4973 done
4974
4975
4976
4977
4978 # Check whether --with-sdl was given.
4979 if test "${with_sdl+set}" = set; then
4980 withval=$with_sdl;
4981 else
4982 with_sdl=yes
4983 fi
4984
4985
4986
4987 if test "$with_sdl" != "no" ; then
4988 # Extract the first word of "sdl-config", so it can be a program name with args.
4989 set dummy sdl-config; ac_word=$2
4990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4992 if test "${ac_cv_prog_SDL_CONFIG+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995 if test -n "$SDL_CONFIG"; then
4996 ac_cv_prog_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test.
4997 else
4998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005 ac_cv_prog_SDL_CONFIG="yes"
5006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 break 2
5008 fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013 fi
5014 fi
5015 SDL_CONFIG=$ac_cv_prog_SDL_CONFIG
5016 if test -n "$SDL_CONFIG"; then
5017 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
5018 echo "${ECHO_T}$SDL_CONFIG" >&6; }
5019 else
5020 { echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6; }
5022 fi
5023
5024
5025 if test x$SDL_CONFIG = "x"; then
5026 { { echo "$as_me:$LINENO: error: SDL_CONFIG not found!!! Install sdl libs" >&5
5027 echo "$as_me: error: SDL_CONFIG not found!!! Install sdl libs" >&2;}
5028 { (exit 1); exit 1; }; }
5029 fi
5030
5031 if test "$SDL_CONFIG" ; then
5032 SDL_LIBS="`sdl-config --libs`"
5033 SDL_CFLAGS="`sdl-config --cflags`"
5034 INCS="$INCS $SDL_CFLAGS"
5035 { echo "$as_me:$LINENO: checking for SDL_Init in -lSDL" >&5
5036 echo $ECHO_N "checking for SDL_Init in -lSDL... $ECHO_C" >&6; }
5037 if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then
5038 echo $ECHO_N "(cached) $ECHO_C" >&6
5039 else
5040 ac_check_lib_save_LIBS=$LIBS
5041 LIBS="-lSDL $SDL_LIBS $LIBS"
5042 cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h. */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048
5049 /* Override any GCC internal prototype to avoid an error.
5050 Use char because int might match the return type of a GCC
5051 builtin and then its argument prototype would still apply. */
5052 #ifdef __cplusplus
5053 extern "C"
5054 #endif
5055 char SDL_Init ();
5056 int
5057 main ()
5058 {
5059 return SDL_Init ();
5060 ;
5061 return 0;
5062 }
5063 _ACEOF
5064 rm -f conftest.$ac_objext conftest$ac_exeext
5065 if { (ac_try="$ac_link"
5066 case "(($ac_try" in
5067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5068 *) ac_try_echo=$ac_try;;
5069 esac
5070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5071 (eval "$ac_link") 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } && {
5078 test -z "$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 } && test -s conftest$ac_exeext &&
5081 $as_test_x conftest$ac_exeext; then
5082 ac_cv_lib_SDL_SDL_Init=yes
5083 else
5084 echo "$as_me: failed program was:" >&5
5085 sed 's/^/| /' conftest.$ac_ext >&5
5086
5087 ac_cv_lib_SDL_SDL_Init=no
5088 fi
5089
5090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5091 conftest$ac_exeext conftest.$ac_ext
5092 LIBS=$ac_check_lib_save_LIBS
5093 fi
5094 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_SDL_Init" >&5
5095 echo "${ECHO_T}$ac_cv_lib_SDL_SDL_Init" >&6; }
5096 if test $ac_cv_lib_SDL_SDL_Init = yes; then
5097
5098
5099 for ac_header in SDL/SDL.h
5100 do
5101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 fi
5108 ac_res=`eval echo '${'$as_ac_Header'}'`
5109 { echo "$as_me:$LINENO: result: $ac_res" >&5
5110 echo "${ECHO_T}$ac_res" >&6; }
5111 else
5112 # Is the header compilable?
5113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5115 cat >conftest.$ac_ext <<_ACEOF
5116 /* confdefs.h. */
5117 _ACEOF
5118 cat confdefs.h >>conftest.$ac_ext
5119 cat >>conftest.$ac_ext <<_ACEOF
5120 /* end confdefs.h. */
5121 $ac_includes_default
5122 #include <$ac_header>
5123 _ACEOF
5124 rm -f conftest.$ac_objext
5125 if { (ac_try="$ac_compile"
5126 case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131 (eval "$ac_compile") 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } && {
5138 test -z "$ac_c_werror_flag" ||
5139 test ! -s conftest.err
5140 } && test -s conftest.$ac_objext; then
5141 ac_header_compiler=yes
5142 else
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5145
5146 ac_header_compiler=no
5147 fi
5148
5149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5151 echo "${ECHO_T}$ac_header_compiler" >&6; }
5152
5153 # Is the header present?
5154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h. */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h. */
5162 #include <$ac_header>
5163 _ACEOF
5164 if { (ac_try="$ac_cpp conftest.$ac_ext"
5165 case "(($ac_try" in
5166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5167 *) ac_try_echo=$ac_try;;
5168 esac
5169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5171 ac_status=$?
5172 grep -v '^ *+' conftest.er1 >conftest.err
5173 rm -f conftest.er1
5174 cat conftest.err >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); } >/dev/null && {
5177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5178 test ! -s conftest.err
5179 }; then
5180 ac_header_preproc=yes
5181 else
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5184
5185 ac_header_preproc=no
5186 fi
5187
5188 rm -f conftest.err conftest.$ac_ext
5189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5190 echo "${ECHO_T}$ac_header_preproc" >&6; }
5191
5192 # So? What about this header?
5193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5194 yes:no: )
5195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5199 ac_header_preproc=yes
5200 ;;
5201 no:yes:* )
5202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5214
5215 ;;
5216 esac
5217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 eval "$as_ac_Header=\$ac_header_preproc"
5223 fi
5224 ac_res=`eval echo '${'$as_ac_Header'}'`
5225 { echo "$as_me:$LINENO: result: $ac_res" >&5
5226 echo "${ECHO_T}$ac_res" >&6; }
5227
5228 fi
5229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5230 cat >>confdefs.h <<_ACEOF
5231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5232 _ACEOF
5233
5234 else
5235
5236 { { echo "$as_me:$LINENO: error: SDL found but headers are missing!!" >&5
5237 echo "$as_me: error: SDL found but headers are missing!!" >&2;}
5238 { (exit 1); exit 1; }; }
5239 with_sdl=no
5240
5241 fi
5242
5243 done
5244
5245 else
5246 with_sdl=no
5247 fi
5248
5249
5250
5251 { echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
5252 echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6; }
5253 if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 ac_check_lib_save_LIBS=$LIBS
5257 LIBS="-lSDL_mixer $SDL_LIBS $LIBS"
5258 cat >conftest.$ac_ext <<_ACEOF
5259 /* confdefs.h. */
5260 _ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5264
5265 /* Override any GCC internal prototype to avoid an error.
5266 Use char because int might match the return type of a GCC
5267 builtin and then its argument prototype would still apply. */
5268 #ifdef __cplusplus
5269 extern "C"
5270 #endif
5271 char Mix_OpenAudio ();
5272 int
5273 main ()
5274 {
5275 return Mix_OpenAudio ();
5276 ;
5277 return 0;
5278 }
5279 _ACEOF
5280 rm -f conftest.$ac_objext conftest$ac_exeext
5281 if { (ac_try="$ac_link"
5282 case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_link") 2>conftest.er1
5288 ac_status=$?
5289 grep -v '^ *+' conftest.er1 >conftest.err
5290 rm -f conftest.er1
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest$ac_exeext &&
5297 $as_test_x conftest$ac_exeext; then
5298 ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
5299 else
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5302
5303 ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
5304 fi
5305
5306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5307 conftest$ac_exeext conftest.$ac_ext
5308 LIBS=$ac_check_lib_save_LIBS
5309 fi
5310 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
5311 echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6; }
5312 if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
5313 cat >>confdefs.h <<_ACEOF
5314 #define HAVE_LIBSDL_MIXER 1
5315 _ACEOF
5316
5317 LIBS="-lSDL_mixer $LIBS"
5318
5319 else
5320
5321 { { echo "$as_me:$LINENO: error: SDL_mixer libs and headers are missing!! Install sdl-mixer libs" >&5
5322 echo "$as_me: error: SDL_mixer libs and headers are missing!! Install sdl-mixer libs" >&2;}
5323 { (exit 1); exit 1; }; }
5324
5325 fi
5326
5327 SDL_LIBS="$SDL_LIBS -lSDL_mixer"
5328
5329
5330
5331 { echo "$as_me:$LINENO: checking for pixelColor in -lSDL_gfx" >&5
5332 echo $ECHO_N "checking for pixelColor in -lSDL_gfx... $ECHO_C" >&6; }
5333 if test "${ac_cv_lib_SDL_gfx_pixelColor+set}" = set; then
5334 echo $ECHO_N "(cached) $ECHO_C" >&6
5335 else
5336 ac_check_lib_save_LIBS=$LIBS
5337 LIBS="-lSDL_gfx $SDL_LIBS $LIBS"
5338 cat >conftest.$ac_ext <<_ACEOF
5339 /* confdefs.h. */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344
5345 /* Override any GCC internal prototype to avoid an error.
5346 Use char because int might match the return type of a GCC
5347 builtin and then its argument prototype would still apply. */
5348 #ifdef __cplusplus
5349 extern "C"
5350 #endif
5351 char pixelColor ();
5352 int
5353 main ()
5354 {
5355 return pixelColor ();
5356 ;
5357 return 0;
5358 }
5359 _ACEOF
5360 rm -f conftest.$ac_objext conftest$ac_exeext
5361 if { (ac_try="$ac_link"
5362 case "(($ac_try" in
5363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5364 *) ac_try_echo=$ac_try;;
5365 esac
5366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5367 (eval "$ac_link") 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && {
5374 test -z "$ac_c_werror_flag" ||
5375 test ! -s conftest.err
5376 } && test -s conftest$ac_exeext &&
5377 $as_test_x conftest$ac_exeext; then
5378 ac_cv_lib_SDL_gfx_pixelColor=yes
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 ac_cv_lib_SDL_gfx_pixelColor=no
5384 fi
5385
5386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5387 conftest$ac_exeext conftest.$ac_ext
5388 LIBS=$ac_check_lib_save_LIBS
5389 fi
5390 { echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_gfx_pixelColor" >&5
5391 echo "${ECHO_T}$ac_cv_lib_SDL_gfx_pixelColor" >&6; }
5392 if test $ac_cv_lib_SDL_gfx_pixelColor = yes; then
5393 cat >>confdefs.h <<_ACEOF
5394 #define HAVE_LIBSDL_GFX 1
5395 _ACEOF
5396
5397 LIBS="-lSDL_gfx $LIBS"
5398
5399 else
5400
5401 { { echo "$as_me:$LINENO: error: SDL_gfx libs and headers are missing!! Install SDL-gfx libs" >&5
5402 echo "$as_me: error: SDL_gfx libs and headers are missing!! Install SDL-gfx libs" >&2;}
5403 { (exit 1); exit 1; }; }
5404
5405 fi
5406
5407 SDL_LIBS="$SDL_LIBS -lSDL_gfx"
5408
5409 else
5410 with_sdl=no
5411 fi
5412 fi
5413
5414
5415
5416
5417 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5418 LIBS="$LIBS $SDL_LIBS"
5419
5420
5421 DEFAULT_LIBDIR="$datadir"
5422
5423
5424
5425 { echo "$as_me:$LINENO: result: " >&5
5426 echo "${ECHO_T}" >&6; }
5427 { echo "$as_me:$LINENO: result: $PACKAGE version $VERSION configured successfully." >&5
5428 echo "${ECHO_T} $PACKAGE version $VERSION configured successfully." >&6; }
5429 { echo "$as_me:$LINENO: result: " >&5
5430 echo "${ECHO_T}" >&6; }
5431 { echo "$as_me:$LINENO: result: Using '$DEFAULT_PREFIX' for installation." >&5
5432 echo "${ECHO_T}Using '$DEFAULT_PREFIX' for installation." >&6; }
5433 { echo "$as_me:$LINENO: result: Using '$DEFAULT_LIBDIR' for installation libraries." >&5
5434 echo "${ECHO_T}Using '$DEFAULT_LIBDIR' for installation libraries." >&6; }
5435 { echo "$as_me:$LINENO: result: Using '$CXX' for C++ compiler." >&5
5436 echo "${ECHO_T}Using '$CXX' for C++ compiler." >&6; }
5437 { echo "$as_me:$LINENO: result: Building with '$SDL_CFLAGS' for C++ compiler flags." >&5
5438 echo "${ECHO_T}Building with '$SDL_CFLAGS' for C++ compiler flags." >&6; }
5439 { echo "$as_me:$LINENO: result: Building with '$SDL_LIBS' for linker flags." >&5
5440 echo "${ECHO_T}Building with '$SDL_LIBS' for linker flags." >&6; }
5441 { echo "$as_me:$LINENO: result: " >&5
5442 echo "${ECHO_T}" >&6; }
5443
5444 ac_config_files="$ac_config_files Makefile src/Makefile"
5445
5446 cat >confcache <<\_ACEOF
5447 # This file is a shell script that caches the results of configure
5448 # tests run on this system so they can be shared between configure
5449 # scripts and configure runs, see configure's option --config-cache.
5450 # It is not useful on other systems. If it contains results you don't
5451 # want to keep, you may remove or edit it.
5452 #
5453 # config.status only pays attention to the cache file if you give it
5454 # the --recheck option to rerun configure.
5455 #
5456 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5457 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5458 # following values.
5459
5460 _ACEOF
5461
5462 # The following way of writing the cache mishandles newlines in values,
5463 # but we know of no workaround that is simple, portable, and efficient.
5464 # So, we kill variables containing newlines.
5465 # Ultrix sh set writes to stderr and can't be redirected directly,
5466 # and sets the high bit in the cache file unless we assign to the vars.
5467 (
5468 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5469 eval ac_val=\$$ac_var
5470 case $ac_val in #(
5471 *${as_nl}*)
5472 case $ac_var in #(
5473 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5474 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5475 esac
5476 case $ac_var in #(
5477 _ | IFS | as_nl) ;; #(
5478 *) $as_unset $ac_var ;;
5479 esac ;;
5480 esac
5481 done
5482
5483 (set) 2>&1 |
5484 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5485 *${as_nl}ac_space=\ *)
5486 # `set' does not quote correctly, so add quotes (double-quote
5487 # substitution turns \\\\ into \\, and sed turns \\ into \).
5488 sed -n \
5489 "s/'/'\\\\''/g;
5490 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5491 ;; #(
5492 *)
5493 # `set' quotes correctly as required by POSIX, so do not add quotes.
5494 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5495 ;;
5496 esac |
5497 sort
5498 ) |
5499 sed '
5500 /^ac_cv_env_/b end
5501 t clear
5502 :clear
5503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5504 t end
5505 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5506 :end' >>confcache
5507 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5508 if test -w "$cache_file"; then
5509 test "x$cache_file" != "x/dev/null" &&
5510 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
5511 echo "$as_me: updating cache $cache_file" >&6;}
5512 cat confcache >$cache_file
5513 else
5514 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5515 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5516 fi
5517 fi
5518 rm -f confcache
5519
5520 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5521 # Let make expand exec_prefix.
5522 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5523
5524 DEFS=-DHAVE_CONFIG_H
5525
5526 ac_libobjs=
5527 ac_ltlibobjs=
5528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5529 # 1. Remove the extension, and $U if already installed.
5530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5531 ac_i=`echo "$ac_i" | sed "$ac_script"`
5532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5533 # will be set to the directory where LIBOBJS objects are built.
5534 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5535 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5536 done
5537 LIBOBJS=$ac_libobjs
5538
5539 LTLIBOBJS=$ac_ltlibobjs
5540
5541
5542 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5543 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5544 Usually this means the macro was only invoked conditionally." >&5
5545 echo "$as_me: error: conditional \"AMDEP\" was never defined.
5546 Usually this means the macro was only invoked conditionally." >&2;}
5547 { (exit 1); exit 1; }; }
5548 fi
5549 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5550 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5551 Usually this means the macro was only invoked conditionally." >&5
5552 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5553 Usually this means the macro was only invoked conditionally." >&2;}
5554 { (exit 1); exit 1; }; }
5555 fi
5556 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5557 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
5558 Usually this means the macro was only invoked conditionally." >&5
5559 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
5560 Usually this means the macro was only invoked conditionally." >&2;}
5561 { (exit 1); exit 1; }; }
5562 fi
5563
5564 : ${CONFIG_STATUS=./config.status}
5565 ac_clean_files_save=$ac_clean_files
5566 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5567 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5568 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5569 cat >$CONFIG_STATUS <<_ACEOF
5570 #! $SHELL
5571 # Generated by $as_me.
5572 # Run this file to recreate the current configuration.
5573 # Compiler output produced by configure, useful for debugging
5574 # configure, is in config.log if it exists.
5575
5576 debug=false
5577 ac_cs_recheck=false
5578 ac_cs_silent=false
5579 SHELL=\${CONFIG_SHELL-$SHELL}
5580 _ACEOF
5581
5582 cat >>$CONFIG_STATUS <<\_ACEOF
5583 ## --------------------- ##
5584 ## M4sh Initialization. ##
5585 ## --------------------- ##
5586
5587 # Be more Bourne compatible
5588 DUALCASE=1; export DUALCASE # for MKS sh
5589 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5590 emulate sh
5591 NULLCMD=:
5592 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5593 # is contrary to our usage. Disable this feature.
5594 alias -g '${1+"$@"}'='"$@"'
5595 setopt NO_GLOB_SUBST
5596 else
5597 case `(set -o) 2>/dev/null` in
5598 *posix*) set -o posix ;;
5599 esac
5600
5601 fi
5602
5603
5604
5605
5606 # PATH needs CR
5607 # Avoid depending upon Character Ranges.
5608 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5609 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5610 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5611 as_cr_digits='0123456789'
5612 as_cr_alnum=$as_cr_Letters$as_cr_digits
5613
5614 # The user is always right.
5615 if test "${PATH_SEPARATOR+set}" != set; then
5616 echo "#! /bin/sh" >conf$$.sh
5617 echo "exit 0" >>conf$$.sh
5618 chmod +x conf$$.sh
5619 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5620 PATH_SEPARATOR=';'
5621 else
5622 PATH_SEPARATOR=:
5623 fi
5624 rm -f conf$$.sh
5625 fi
5626
5627 # Support unset when possible.
5628 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5629 as_unset=unset
5630 else
5631 as_unset=false
5632 fi
5633
5634
5635 # IFS
5636 # We need space, tab and new line, in precisely that order. Quoting is
5637 # there to prevent editors from complaining about space-tab.
5638 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5639 # splitting by setting IFS to empty value.)
5640 as_nl='
5641 '
5642 IFS=" "" $as_nl"
5643
5644 # Find who we are. Look in the path if we contain no directory separator.
5645 case $0 in
5646 *[\\/]* ) as_myself=$0 ;;
5647 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5648 for as_dir in $PATH
5649 do
5650 IFS=$as_save_IFS
5651 test -z "$as_dir" && as_dir=.
5652 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5653 done
5654 IFS=$as_save_IFS
5655
5656 ;;
5657 esac
5658 # We did not find ourselves, most probably we were run as `sh COMMAND'
5659 # in which case we are not to be found in the path.
5660 if test "x$as_myself" = x; then
5661 as_myself=$0
5662 fi
5663 if test ! -f "$as_myself"; then
5664 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5665 { (exit 1); exit 1; }
5666 fi
5667
5668 # Work around bugs in pre-3.0 UWIN ksh.
5669 for as_var in ENV MAIL MAILPATH
5670 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5671 done
5672 PS1='$ '
5673 PS2='> '
5674 PS4='+ '
5675
5676 # NLS nuisances.
5677 for as_var in \
5678 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5679 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5680 LC_TELEPHONE LC_TIME
5681 do
5682 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5683 eval $as_var=C; export $as_var
5684 else
5685 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5686 fi
5687 done
5688
5689 # Required to use basename.
5690 if expr a : '\(a\)' >/dev/null 2>&1 &&
5691 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5692 as_expr=expr
5693 else
5694 as_expr=false
5695 fi
5696
5697 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5698 as_basename=basename
5699 else
5700 as_basename=false
5701 fi
5702
5703
5704 # Name of the executable.
5705 as_me=`$as_basename -- "$0" ||
5706 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5707 X"$0" : 'X\(//\)$' \| \
5708 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5709 echo X/"$0" |
5710 sed '/^.*\/\([^/][^/]*\)\/*$/{
5711 s//\1/
5712 q
5713 }
5714 /^X\/\(\/\/\)$/{
5715 s//\1/
5716 q
5717 }
5718 /^X\/\(\/\).*/{
5719 s//\1/
5720 q
5721 }
5722 s/.*/./; q'`
5723
5724 # CDPATH.
5725 $as_unset CDPATH
5726
5727
5728
5729 as_lineno_1=$LINENO
5730 as_lineno_2=$LINENO
5731 test "x$as_lineno_1" != "x$as_lineno_2" &&
5732 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5733
5734 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5735 # uniformly replaced by the line number. The first 'sed' inserts a
5736 # line-number line after each line using $LINENO; the second 'sed'
5737 # does the real work. The second script uses 'N' to pair each
5738 # line-number line with the line containing $LINENO, and appends
5739 # trailing '-' during substitution so that $LINENO is not a special
5740 # case at line end.
5741 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5742 # scripts with optimization help from Paolo Bonzini. Blame Lee
5743 # E. McMahon (1931-1989) for sed's syntax. :-)
5744 sed -n '
5745 p
5746 /[$]LINENO/=
5747 ' <$as_myself |
5748 sed '
5749 s/[$]LINENO.*/&-/
5750 t lineno
5751 b
5752 :lineno
5753 N
5754 :loop
5755 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5756 t loop
5757 s/-\n.*//
5758 ' >$as_me.lineno &&
5759 chmod +x "$as_me.lineno" ||
5760 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5761 { (exit 1); exit 1; }; }
5762
5763 # Don't try to exec as it changes $[0], causing all sort of problems
5764 # (the dirname of $[0] is not the place where we might find the
5765 # original and so on. Autoconf is especially sensitive to this).
5766 . "./$as_me.lineno"
5767 # Exit status is that of the last command.
5768 exit
5769 }
5770
5771
5772 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5773 as_dirname=dirname
5774 else
5775 as_dirname=false
5776 fi
5777
5778 ECHO_C= ECHO_N= ECHO_T=
5779 case `echo -n x` in
5780 -n*)
5781 case `echo 'x\c'` in
5782 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5783 *) ECHO_C='\c';;
5784 esac;;
5785 *)
5786 ECHO_N='-n';;
5787 esac
5788
5789 if expr a : '\(a\)' >/dev/null 2>&1 &&
5790 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5791 as_expr=expr
5792 else
5793 as_expr=false
5794 fi
5795
5796 rm -f conf$$ conf$$.exe conf$$.file
5797 if test -d conf$$.dir; then
5798 rm -f conf$$.dir/conf$$.file
5799 else
5800 rm -f conf$$.dir
5801 mkdir conf$$.dir
5802 fi
5803 echo >conf$$.file
5804 if ln -s conf$$.file conf$$ 2>/dev/null; then
5805 as_ln_s='ln -s'
5806 # ... but there are two gotchas:
5807 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5808 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5809 # In both cases, we have to default to `cp -p'.
5810 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5811 as_ln_s='cp -p'
5812 elif ln conf$$.file conf$$ 2>/dev/null; then
5813 as_ln_s=ln
5814 else
5815 as_ln_s='cp -p'
5816 fi
5817 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5818 rmdir conf$$.dir 2>/dev/null
5819
5820 if mkdir -p . 2>/dev/null; then
5821 as_mkdir_p=:
5822 else
5823 test -d ./-p && rmdir ./-p
5824 as_mkdir_p=false
5825 fi
5826
5827 if test -x / >/dev/null 2>&1; then
5828 as_test_x='test -x'
5829 else
5830 if ls -dL / >/dev/null 2>&1; then
5831 as_ls_L_option=L
5832 else
5833 as_ls_L_option=
5834 fi
5835 as_test_x='
5836 eval sh -c '\''
5837 if test -d "$1"; then
5838 test -d "$1/.";
5839 else
5840 case $1 in
5841 -*)set "./$1";;
5842 esac;
5843 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
5844 ???[sx]*):;;*)false;;esac;fi
5845 '\'' sh
5846 '
5847 fi
5848 as_executable_p=$as_test_x
5849
5850 # Sed expression to map a string onto a valid CPP name.
5851 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5852
5853 # Sed expression to map a string onto a valid variable name.
5854 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5855
5856
5857 exec 6>&1
5858
5859 # Save the log message, to keep $[0] and so on meaningful, and to
5860 # report actual input values of CONFIG_FILES etc. instead of their
5861 # values after options handling.
5862 ac_log="
5863 This file was extended by $as_me, which was
5864 generated by GNU Autoconf 2.61. Invocation command line was
5865
5866 CONFIG_FILES = $CONFIG_FILES
5867 CONFIG_HEADERS = $CONFIG_HEADERS
5868 CONFIG_LINKS = $CONFIG_LINKS
5869 CONFIG_COMMANDS = $CONFIG_COMMANDS
5870 $ $0 $@
5871
5872 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5873 "
5874
5875 _ACEOF
5876
5877 cat >>$CONFIG_STATUS <<_ACEOF
5878 # Files that config.status was made for.
5879 config_files="$ac_config_files"
5880 config_headers="$ac_config_headers"
5881 config_commands="$ac_config_commands"
5882
5883 _ACEOF
5884
5885 cat >>$CONFIG_STATUS <<\_ACEOF
5886 ac_cs_usage="\
5887 \`$as_me' instantiates files from templates according to the
5888 current configuration.
5889
5890 Usage: $0 [OPTIONS] [FILE]...
5891
5892 -h, --help print this help, then exit
5893 -V, --version print version number and configuration settings, then exit
5894 -q, --quiet do not print progress messages
5895 -d, --debug don't remove temporary files
5896 --recheck update $as_me by reconfiguring in the same conditions
5897 --file=FILE[:TEMPLATE]
5898 instantiate the configuration file FILE
5899 --header=FILE[:TEMPLATE]
5900 instantiate the configuration header FILE
5901
5902 Configuration files:
5903 $config_files
5904
5905 Configuration headers:
5906 $config_headers
5907
5908 Configuration commands:
5909 $config_commands
5910
5911 Report bugs to <[email protected]>."
5912
5913 _ACEOF
5914 cat >>$CONFIG_STATUS <<_ACEOF
5915 ac_cs_version="\\
5916 config.status
5917 configured by $0, generated by GNU Autoconf 2.61,
5918 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
5919
5920 Copyright (C) 2006 Free Software Foundation, Inc.
5921 This config.status script is free software; the Free Software Foundation
5922 gives unlimited permission to copy, distribute and modify it."
5923
5924 ac_pwd='$ac_pwd'
5925 srcdir='$srcdir'
5926 INSTALL='$INSTALL'
5927 _ACEOF
5928
5929 cat >>$CONFIG_STATUS <<\_ACEOF
5930 # If no file are specified by the user, then we need to provide default
5931 # value. By we need to know if files were specified by the user.
5932 ac_need_defaults=:
5933 while test $# != 0
5934 do
5935 case $1 in
5936 --*=*)
5937 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5938 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5939 ac_shift=:
5940 ;;
5941 *)
5942 ac_option=$1
5943 ac_optarg=$2
5944 ac_shift=shift
5945 ;;
5946 esac
5947
5948 case $ac_option in
5949 # Handling of the options.
5950 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5951 ac_cs_recheck=: ;;
5952 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5953 echo "$ac_cs_version"; exit ;;
5954 --debug | --debu | --deb | --de | --d | -d )
5955 debug=: ;;
5956 --file | --fil | --fi | --f )
5957 $ac_shift
5958 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5959 ac_need_defaults=false;;
5960 --header | --heade | --head | --hea )
5961 $ac_shift
5962 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5963 ac_need_defaults=false;;
5964 --he | --h)
5965 # Conflict between --help and --header
5966 { echo "$as_me: error: ambiguous option: $1
5967 Try \`$0 --help' for more information." >&2
5968 { (exit 1); exit 1; }; };;
5969 --help | --hel | -h )
5970 echo "$ac_cs_usage"; exit ;;
5971 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5972 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5973 ac_cs_silent=: ;;
5974
5975 # This is an error.
5976 -*) { echo "$as_me: error: unrecognized option: $1
5977 Try \`$0 --help' for more information." >&2
5978 { (exit 1); exit 1; }; } ;;
5979
5980 *) ac_config_targets="$ac_config_targets $1"
5981 ac_need_defaults=false ;;
5982
5983 esac
5984 shift
5985 done
5986
5987 ac_configure_extra_args=
5988
5989 if $ac_cs_silent; then
5990 exec 6>/dev/null
5991 ac_configure_extra_args="$ac_configure_extra_args --silent"
5992 fi
5993
5994 _ACEOF
5995 cat >>$CONFIG_STATUS <<_ACEOF
5996 if \$ac_cs_recheck; then
5997 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5998 CONFIG_SHELL=$SHELL
5999 export CONFIG_SHELL
6000 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6001 fi
6002
6003 _ACEOF
6004 cat >>$CONFIG_STATUS <<\_ACEOF
6005 exec 5>>config.log
6006 {
6007 echo
6008 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6009 ## Running $as_me. ##
6010 _ASBOX
6011 echo "$ac_log"
6012 } >&5
6013
6014 _ACEOF
6015 cat >>$CONFIG_STATUS <<_ACEOF
6016 #
6017 # INIT-COMMANDS
6018 #
6019 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6020
6021 _ACEOF
6022
6023 cat >>$CONFIG_STATUS <<\_ACEOF
6024
6025 # Handling of arguments.
6026 for ac_config_target in $ac_config_targets
6027 do
6028 case $ac_config_target in
6029 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6030 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6031 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6032 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6033
6034 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6035 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6036 { (exit 1); exit 1; }; };;
6037 esac
6038 done
6039
6040
6041 # If the user did not use the arguments to specify the items to instantiate,
6042 # then the envvar interface is used. Set only those that are not.
6043 # We use the long form for the default assignment because of an extremely
6044 # bizarre bug on SunOS 4.1.3.
6045 if $ac_need_defaults; then
6046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6047 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6048 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6049 fi
6050
6051 # Have a temporary directory for convenience. Make it in the build tree
6052 # simply because there is no reason against having it here, and in addition,
6053 # creating and moving files from /tmp can sometimes cause problems.
6054 # Hook for its removal unless debugging.
6055 # Note that there is a small window in which the directory will not be cleaned:
6056 # after its creation but before its name has been assigned to `$tmp'.
6057 $debug ||
6058 {
6059 tmp=
6060 trap 'exit_status=$?
6061 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6062 ' 0
6063 trap '{ (exit 1); exit 1; }' 1 2 13 15
6064 }
6065 # Create a (secure) tmp directory for tmp files.
6066
6067 {
6068 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6069 test -n "$tmp" && test -d "$tmp"
6070 } ||
6071 {
6072 tmp=./conf$$-$RANDOM
6073 (umask 077 && mkdir "$tmp")
6074 } ||
6075 {
6076 echo "$me: cannot create a temporary directory in ." >&2
6077 { (exit 1); exit 1; }
6078 }
6079
6080 #
6081 # Set up the sed scripts for CONFIG_FILES section.
6082 #
6083
6084 # No need to generate the scripts if there are no CONFIG_FILES.
6085 # This happens for instance when ./config.status config.h
6086 if test -n "$CONFIG_FILES"; then
6087
6088 _ACEOF
6089
6090
6091
6092 ac_delim='%!_!# '
6093 for ac_last_try in false false false false false :; do
6094 cat >conf$$subs.sed <<_ACEOF
6095 SHELL!$SHELL$ac_delim
6096 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6097 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6098 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6099 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6100 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6101 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6102 exec_prefix!$exec_prefix$ac_delim
6103 prefix!$prefix$ac_delim
6104 program_transform_name!$program_transform_name$ac_delim
6105 bindir!$bindir$ac_delim
6106 sbindir!$sbindir$ac_delim
6107 libexecdir!$libexecdir$ac_delim
6108 datarootdir!$datarootdir$ac_delim
6109 datadir!$datadir$ac_delim
6110 sysconfdir!$sysconfdir$ac_delim
6111 sharedstatedir!$sharedstatedir$ac_delim
6112 localstatedir!$localstatedir$ac_delim
6113 includedir!$includedir$ac_delim
6114 oldincludedir!$oldincludedir$ac_delim
6115 docdir!$docdir$ac_delim
6116 infodir!$infodir$ac_delim
6117 htmldir!$htmldir$ac_delim
6118 dvidir!$dvidir$ac_delim
6119 pdfdir!$pdfdir$ac_delim
6120 psdir!$psdir$ac_delim
6121 libdir!$libdir$ac_delim
6122 localedir!$localedir$ac_delim
6123 mandir!$mandir$ac_delim
6124 DEFS!$DEFS$ac_delim
6125 ECHO_C!$ECHO_C$ac_delim
6126 ECHO_N!$ECHO_N$ac_delim
6127 ECHO_T!$ECHO_T$ac_delim
6128 LIBS!$LIBS$ac_delim
6129 build_alias!$build_alias$ac_delim
6130 host_alias!$host_alias$ac_delim
6131 target_alias!$target_alias$ac_delim
6132 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6133 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6134 INSTALL_DATA!$INSTALL_DATA$ac_delim
6135 CYGPATH_W!$CYGPATH_W$ac_delim
6136 PACKAGE!$PACKAGE$ac_delim
6137 VERSION!$VERSION$ac_delim
6138 ACLOCAL!$ACLOCAL$ac_delim
6139 AUTOCONF!$AUTOCONF$ac_delim
6140 AUTOMAKE!$AUTOMAKE$ac_delim
6141 AUTOHEADER!$AUTOHEADER$ac_delim
6142 MAKEINFO!$MAKEINFO$ac_delim
6143 install_sh!$install_sh$ac_delim
6144 STRIP!$STRIP$ac_delim
6145 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
6146 mkdir_p!$mkdir_p$ac_delim
6147 AWK!$AWK$ac_delim
6148 SET_MAKE!$SET_MAKE$ac_delim
6149 am__leading_dot!$am__leading_dot$ac_delim
6150 AMTAR!$AMTAR$ac_delim
6151 am__tar!$am__tar$ac_delim
6152 am__untar!$am__untar$ac_delim
6153 CC!$CC$ac_delim
6154 CFLAGS!$CFLAGS$ac_delim
6155 LDFLAGS!$LDFLAGS$ac_delim
6156 CPPFLAGS!$CPPFLAGS$ac_delim
6157 ac_ct_CC!$ac_ct_CC$ac_delim
6158 EXEEXT!$EXEEXT$ac_delim
6159 OBJEXT!$OBJEXT$ac_delim
6160 DEPDIR!$DEPDIR$ac_delim
6161 am__include!$am__include$ac_delim
6162 am__quote!$am__quote$ac_delim
6163 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
6164 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
6165 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
6166 CCDEPMODE!$CCDEPMODE$ac_delim
6167 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
6168 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
6169 CPP!$CPP$ac_delim
6170 CXX!$CXX$ac_delim
6171 CXXFLAGS!$CXXFLAGS$ac_delim
6172 ac_ct_CXX!$ac_ct_CXX$ac_delim
6173 CXXDEPMODE!$CXXDEPMODE$ac_delim
6174 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
6175 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
6176 GREP!$GREP$ac_delim
6177 EGREP!$EGREP$ac_delim
6178 SDL_CONFIG!$SDL_CONFIG$ac_delim
6179 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
6180 SDL_LIBS!$SDL_LIBS$ac_delim
6181 DEFAULT_LIBDIR!$DEFAULT_LIBDIR$ac_delim
6182 LIBOBJS!$LIBOBJS$ac_delim
6183 LTLIBOBJS!$LTLIBOBJS$ac_delim
6184 _ACEOF
6185
6186 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
6187 break
6188 elif $ac_last_try; then
6189 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6190 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6191 { (exit 1); exit 1; }; }
6192 else
6193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6194 fi
6195 done
6196
6197 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6198 if test -n "$ac_eof"; then
6199 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6200 ac_eof=`expr $ac_eof + 1`
6201 fi
6202
6203 cat >>$CONFIG_STATUS <<_ACEOF
6204 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6205 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6206 _ACEOF
6207 sed '
6208 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6209 s/^/s,@/; s/!/@,|#_!!_#|/
6210 :n
6211 t n
6212 s/'"$ac_delim"'$/,g/; t
6213 s/$/\\/; p
6214 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6215 ' >>$CONFIG_STATUS <conf$$subs.sed
6216 rm -f conf$$subs.sed
6217 cat >>$CONFIG_STATUS <<_ACEOF
6218 :end
6219 s/|#_!!_#|//g
6220 CEOF$ac_eof
6221 _ACEOF
6222
6223
6224 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6225 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6226 # trailing colons and then remove the whole line if VPATH becomes empty
6227 # (actually we leave an empty line to preserve line numbers).
6228 if test "x$srcdir" = x.; then
6229 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6230 s/:*\$(srcdir):*/:/
6231 s/:*\${srcdir}:*/:/
6232 s/:*@srcdir@:*/:/
6233 s/^\([^=]*=[ ]*\):*/\1/
6234 s/:*$//
6235 s/^[^=]*=[ ]*$//
6236 }'
6237 fi
6238
6239 cat >>$CONFIG_STATUS <<\_ACEOF
6240 fi # test -n "$CONFIG_FILES"
6241
6242
6243 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
6244 do
6245 case $ac_tag in
6246 :[FHLC]) ac_mode=$ac_tag; continue;;
6247 esac
6248 case $ac_mode$ac_tag in
6249 :[FHL]*:*);;
6250 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6251 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6252 { (exit 1); exit 1; }; };;
6253 :[FH]-) ac_tag=-:-;;
6254 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6255 esac
6256 ac_save_IFS=$IFS
6257 IFS=:
6258 set x $ac_tag
6259 IFS=$ac_save_IFS
6260 shift
6261 ac_file=$1
6262 shift
6263
6264 case $ac_mode in
6265 :L) ac_source=$1;;
6266 :[FH])
6267 ac_file_inputs=
6268 for ac_f
6269 do
6270 case $ac_f in
6271 -) ac_f="$tmp/stdin";;
6272 *) # Look for the file first in the build tree, then in the source tree
6273 # (if the path is not absolute). The absolute path cannot be DOS-style,
6274 # because $ac_f cannot contain `:'.
6275 test -f "$ac_f" ||
6276 case $ac_f in
6277 [\\/$]*) false;;
6278 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6279 esac ||
6280 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6281 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6282 { (exit 1); exit 1; }; };;
6283 esac
6284 ac_file_inputs="$ac_file_inputs $ac_f"
6285 done
6286
6287 # Let's still pretend it is `configure' which instantiates (i.e., don't
6288 # use $as_me), people would be surprised to read:
6289 # /* config.h. Generated by config.status. */
6290 configure_input="Generated from "`IFS=:
6291 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6292 if test x"$ac_file" != x-; then
6293 configure_input="$ac_file. $configure_input"
6294 { echo "$as_me:$LINENO: creating $ac_file" >&5
6295 echo "$as_me: creating $ac_file" >&6;}
6296 fi
6297
6298 case $ac_tag in
6299 *:-:* | *:-) cat >"$tmp/stdin";;
6300 esac
6301 ;;
6302 esac
6303
6304 ac_dir=`$as_dirname -- "$ac_file" ||
6305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6306 X"$ac_file" : 'X\(//\)[^/]' \| \
6307 X"$ac_file" : 'X\(//\)$' \| \
6308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6309 echo X"$ac_file" |
6310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6311 s//\1/
6312 q
6313 }
6314 /^X\(\/\/\)[^/].*/{
6315 s//\1/
6316 q
6317 }
6318 /^X\(\/\/\)$/{
6319 s//\1/
6320 q
6321 }
6322 /^X\(\/\).*/{
6323 s//\1/
6324 q
6325 }
6326 s/.*/./; q'`
6327 { as_dir="$ac_dir"
6328 case $as_dir in #(
6329 -*) as_dir=./$as_dir;;
6330 esac
6331 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6332 as_dirs=
6333 while :; do
6334 case $as_dir in #(
6335 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6336 *) as_qdir=$as_dir;;
6337 esac
6338 as_dirs="'$as_qdir' $as_dirs"
6339 as_dir=`$as_dirname -- "$as_dir" ||
6340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6341 X"$as_dir" : 'X\(//\)[^/]' \| \
6342 X"$as_dir" : 'X\(//\)$' \| \
6343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6344 echo X"$as_dir" |
6345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6346 s//\1/
6347 q
6348 }
6349 /^X\(\/\/\)[^/].*/{
6350 s//\1/
6351 q
6352 }
6353 /^X\(\/\/\)$/{
6354 s//\1/
6355 q
6356 }
6357 /^X\(\/\).*/{
6358 s//\1/
6359 q
6360 }
6361 s/.*/./; q'`
6362 test -d "$as_dir" && break
6363 done
6364 test -z "$as_dirs" || eval "mkdir $as_dirs"
6365 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6366 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6367 { (exit 1); exit 1; }; }; }
6368 ac_builddir=.
6369
6370 case "$ac_dir" in
6371 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6372 *)
6373 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6374 # A ".." for each directory in $ac_dir_suffix.
6375 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6376 case $ac_top_builddir_sub in
6377 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6378 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6379 esac ;;
6380 esac
6381 ac_abs_top_builddir=$ac_pwd
6382 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6383 # for backward compatibility:
6384 ac_top_builddir=$ac_top_build_prefix
6385
6386 case $srcdir in
6387 .) # We are building in place.
6388 ac_srcdir=.
6389 ac_top_srcdir=$ac_top_builddir_sub
6390 ac_abs_top_srcdir=$ac_pwd ;;
6391 [\\/]* | ?:[\\/]* ) # Absolute name.
6392 ac_srcdir=$srcdir$ac_dir_suffix;
6393 ac_top_srcdir=$srcdir
6394 ac_abs_top_srcdir=$srcdir ;;
6395 *) # Relative name.
6396 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6397 ac_top_srcdir=$ac_top_build_prefix$srcdir
6398 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6399 esac
6400 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6401
6402
6403 case $ac_mode in
6404 :F)
6405 #
6406 # CONFIG_FILE
6407 #
6408
6409 case $INSTALL in
6410 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6411 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6412 esac
6413 _ACEOF
6414
6415 cat >>$CONFIG_STATUS <<\_ACEOF
6416 # If the template does not know about datarootdir, expand it.
6417 # FIXME: This hack should be removed a few years after 2.60.
6418 ac_datarootdir_hack=; ac_datarootdir_seen=
6419
6420 case `sed -n '/datarootdir/ {
6421 p
6422 q
6423 }
6424 /@datadir@/p
6425 /@docdir@/p
6426 /@infodir@/p
6427 /@localedir@/p
6428 /@mandir@/p
6429 ' $ac_file_inputs` in
6430 *datarootdir*) ac_datarootdir_seen=yes;;
6431 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6432 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6433 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6434 _ACEOF
6435 cat >>$CONFIG_STATUS <<_ACEOF
6436 ac_datarootdir_hack='
6437 s&@datadir@&$datadir&g
6438 s&@docdir@&$docdir&g
6439 s&@infodir@&$infodir&g
6440 s&@localedir@&$localedir&g
6441 s&@mandir@&$mandir&g
6442 s&\\\${datarootdir}&$datarootdir&g' ;;
6443 esac
6444 _ACEOF
6445
6446 # Neutralize VPATH when `$srcdir' = `.'.
6447 # Shell code in configure.ac might set extrasub.
6448 # FIXME: do we really want to maintain this feature?
6449 cat >>$CONFIG_STATUS <<_ACEOF
6450 sed "$ac_vpsub
6451 $extrasub
6452 _ACEOF
6453 cat >>$CONFIG_STATUS <<\_ACEOF
6454 :t
6455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6456 s&@configure_input@&$configure_input&;t t
6457 s&@top_builddir@&$ac_top_builddir_sub&;t t
6458 s&@srcdir@&$ac_srcdir&;t t
6459 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6460 s&@top_srcdir@&$ac_top_srcdir&;t t
6461 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6462 s&@builddir@&$ac_builddir&;t t
6463 s&@abs_builddir@&$ac_abs_builddir&;t t
6464 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6465 s&@INSTALL@&$ac_INSTALL&;t t
6466 $ac_datarootdir_hack
6467 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6468
6469 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6470 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6471 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6472 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6473 which seems to be undefined. Please make sure it is defined." >&5
6474 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6475 which seems to be undefined. Please make sure it is defined." >&2;}
6476
6477 rm -f "$tmp/stdin"
6478 case $ac_file in
6479 -) cat "$tmp/out"; rm -f "$tmp/out";;
6480 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6481 esac
6482 ;;
6483 :H)
6484 #
6485 # CONFIG_HEADER
6486 #
6487 _ACEOF
6488
6489 # Transform confdefs.h into a sed script `conftest.defines', that
6490 # substitutes the proper values into config.h.in to produce config.h.
6491 rm -f conftest.defines conftest.tail
6492 # First, append a space to every undef/define line, to ease matching.
6493 echo 's/$/ /' >conftest.defines
6494 # Then, protect against being on the right side of a sed subst, or in
6495 # an unquoted here document, in config.status. If some macros were
6496 # called several times there might be several #defines for the same
6497 # symbol, which is useless. But do not sort them, since the last
6498 # AC_DEFINE must be honored.
6499 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6500 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6501 # NAME is the cpp macro being defined, VALUE is the value it is being given.
6502 # PARAMS is the parameter list in the macro definition--in most cases, it's
6503 # just an empty string.
6504 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6505 ac_dB='\\)[ (].*,\\1define\\2'
6506 ac_dC=' '
6507 ac_dD=' ,'
6508
6509 uniq confdefs.h |
6510 sed -n '
6511 t rset
6512 :rset
6513 s/^[ ]*#[ ]*define[ ][ ]*//
6514 t ok
6515 d
6516 :ok
6517 s/[\\&,]/\\&/g
6518 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6519 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6520 ' >>conftest.defines
6521
6522 # Remove the space that was appended to ease matching.
6523 # Then replace #undef with comments. This is necessary, for
6524 # example, in the case of _POSIX_SOURCE, which is predefined and required
6525 # on some systems where configure will not decide to define it.
6526 # (The regexp can be short, since the line contains either #define or #undef.)
6527 echo 's/ $//
6528 s,^[ #]*u.*,/* & */,' >>conftest.defines
6529
6530 # Break up conftest.defines:
6531 ac_max_sed_lines=50
6532
6533 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6534 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6535 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6536 # et cetera.
6537 ac_in='$ac_file_inputs'
6538 ac_out='"$tmp/out1"'
6539 ac_nxt='"$tmp/out2"'
6540
6541 while :
6542 do
6543 # Write a here document:
6544 cat >>$CONFIG_STATUS <<_ACEOF
6545 # First, check the format of the line:
6546 cat >"\$tmp/defines.sed" <<\\CEOF
6547 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6548 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6549 b
6550 :def
6551 _ACEOF
6552 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6553 echo 'CEOF
6554 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6555 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6556 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6557 grep . conftest.tail >/dev/null || break
6558 rm -f conftest.defines
6559 mv conftest.tail conftest.defines
6560 done
6561 rm -f conftest.defines conftest.tail
6562
6563 echo "ac_result=$ac_in" >>$CONFIG_STATUS
6564 cat >>$CONFIG_STATUS <<\_ACEOF
6565 if test x"$ac_file" != x-; then
6566 echo "/* $configure_input */" >"$tmp/config.h"
6567 cat "$ac_result" >>"$tmp/config.h"
6568 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6569 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6570 echo "$as_me: $ac_file is unchanged" >&6;}
6571 else
6572 rm -f $ac_file
6573 mv "$tmp/config.h" $ac_file
6574 fi
6575 else
6576 echo "/* $configure_input */"
6577 cat "$ac_result"
6578 fi
6579 rm -f "$tmp/out12"
6580 # Compute $ac_file's index in $config_headers.
6581 _am_stamp_count=1
6582 for _am_header in $config_headers :; do
6583 case $_am_header in
6584 $ac_file | $ac_file:* )
6585 break ;;
6586 * )
6587 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6588 esac
6589 done
6590 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
6591 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6592 X$ac_file : 'X\(//\)[^/]' \| \
6593 X$ac_file : 'X\(//\)$' \| \
6594 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
6595 echo X$ac_file |
6596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6597 s//\1/
6598 q
6599 }
6600 /^X\(\/\/\)[^/].*/{
6601 s//\1/
6602 q
6603 }
6604 /^X\(\/\/\)$/{
6605 s//\1/
6606 q
6607 }
6608 /^X\(\/\).*/{
6609 s//\1/
6610 q
6611 }
6612 s/.*/./; q'`/stamp-h$_am_stamp_count
6613 ;;
6614
6615 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
6616 echo "$as_me: executing $ac_file commands" >&6;}
6617 ;;
6618 esac
6619
6620
6621 case $ac_file$ac_mode in
6622 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6623 # Strip MF so we end up with the name of the file.
6624 mf=`echo "$mf" | sed -e 's/:.*$//'`
6625 # Check whether this is an Automake generated Makefile or not.
6626 # We used to match only the files named `Makefile.in', but
6627 # some people rename them; so instead we look at the file content.
6628 # Grep'ing the first line is not enough: some people post-process
6629 # each Makefile.in and add a new line on top of each file to say so.
6630 # So let's grep whole file.
6631 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6632 dirpart=`$as_dirname -- "$mf" ||
6633 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6634 X"$mf" : 'X\(//\)[^/]' \| \
6635 X"$mf" : 'X\(//\)$' \| \
6636 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6637 echo X"$mf" |
6638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6639 s//\1/
6640 q
6641 }
6642 /^X\(\/\/\)[^/].*/{
6643 s//\1/
6644 q
6645 }
6646 /^X\(\/\/\)$/{
6647 s//\1/
6648 q
6649 }
6650 /^X\(\/\).*/{
6651 s//\1/
6652 q
6653 }
6654 s/.*/./; q'`
6655 else
6656 continue
6657 fi
6658 # Extract the definition of DEPDIR, am__include, and am__quote
6659 # from the Makefile without running `make'.
6660 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6661 test -z "$DEPDIR" && continue
6662 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6663 test -z "am__include" && continue
6664 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6665 # When using ansi2knr, U may be empty or an underscore; expand it
6666 U=`sed -n 's/^U = //p' < "$mf"`
6667 # Find all dependency output files, they are included files with
6668 # $(DEPDIR) in their names. We invoke sed twice because it is the
6669 # simplest approach to changing $(DEPDIR) to its actual value in the
6670 # expansion.
6671 for file in `sed -n "
6672 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6673 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6674 # Make sure the directory exists.
6675 test -f "$dirpart/$file" && continue
6676 fdir=`$as_dirname -- "$file" ||
6677 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6678 X"$file" : 'X\(//\)[^/]' \| \
6679 X"$file" : 'X\(//\)$' \| \
6680 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6681 echo X"$file" |
6682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6683 s//\1/
6684 q
6685 }
6686 /^X\(\/\/\)[^/].*/{
6687 s//\1/
6688 q
6689 }
6690 /^X\(\/\/\)$/{
6691 s//\1/
6692 q
6693 }
6694 /^X\(\/\).*/{
6695 s//\1/
6696 q
6697 }
6698 s/.*/./; q'`
6699 { as_dir=$dirpart/$fdir
6700 case $as_dir in #(
6701 -*) as_dir=./$as_dir;;
6702 esac
6703 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6704 as_dirs=
6705 while :; do
6706 case $as_dir in #(
6707 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6708 *) as_qdir=$as_dir;;
6709 esac
6710 as_dirs="'$as_qdir' $as_dirs"
6711 as_dir=`$as_dirname -- "$as_dir" ||
6712 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6713 X"$as_dir" : 'X\(//\)[^/]' \| \
6714 X"$as_dir" : 'X\(//\)$' \| \
6715 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6716 echo X"$as_dir" |
6717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6718 s//\1/
6719 q
6720 }
6721 /^X\(\/\/\)[^/].*/{
6722 s//\1/
6723 q
6724 }
6725 /^X\(\/\/\)$/{
6726 s//\1/
6727 q
6728 }
6729 /^X\(\/\).*/{
6730 s//\1/
6731 q
6732 }
6733 s/.*/./; q'`
6734 test -d "$as_dir" && break
6735 done
6736 test -z "$as_dirs" || eval "mkdir $as_dirs"
6737 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6738 echo "$as_me: error: cannot create directory $as_dir" >&2;}
6739 { (exit 1); exit 1; }; }; }
6740 # echo "creating $dirpart/$file"
6741 echo '# dummy' > "$dirpart/$file"
6742 done
6743 done
6744 ;;
6745
6746 esac
6747 done # for ac_tag
6748
6749
6750 { (exit 0); exit 0; }
6751 _ACEOF
6752 chmod +x $CONFIG_STATUS
6753 ac_clean_files=$ac_clean_files_save
6754
6755
6756 # configure is writing to config.log, and then calls config.status.
6757 # config.status does its own redirection, appending to config.log.
6758 # Unfortunately, on DOS this fails, as config.log is still kept open
6759 # by configure, so config.status won't be able to write to it; its
6760 # output is simply discarded. So we exec the FD to /dev/null,
6761 # effectively closing config.log, so it can be properly (re)opened and
6762 # appended to by config.status. When coming back to configure, we
6763 # need to make the FD available again.
6764 if test "$no_create" != yes; then
6765 ac_cs_success=:
6766 ac_config_status_args=
6767 test "$silent" = yes &&
6768 ac_config_status_args="$ac_config_status_args --quiet"
6769 exec 5>/dev/null
6770 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6771 exec 5>>config.log
6772 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6773 # would make configure fail if this is the last instruction.
6774 $ac_cs_success || { (exit 1); exit 1; }
6775 fi
6776