Debian Codegraph @

configure

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