Debian Codegraph @

configure

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
•14 ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
17 ac_default_prefix=/usr/local
18 ac_help="$ac_help
19 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)"
20 ac_help="$ac_help
21 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
22 ac_help="$ac_help
23 --disable-sdltest Do not try to compile and run a test SDL program"
24
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
28 build=NONE
29 cache_file=./config.cache
30 exec_prefix=NONE
31 host=NONE
32 no_create=
33 nonopt=NONE
34 no_recursion=
35 prefix=NONE
36 program_prefix=NONE
37 program_suffix=NONE
38 program_transform_name=s,x,x,
39 silent=
40 site=
41 srcdir=
42 target=NONE
43 verbose=
44 x_includes=NONE
45 x_libraries=NONE
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
58
59 # Initialize some other variables.
60 subdirs=
61 MFLAGS= MAKEFLAGS=
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
64 ac_max_here_lines=12
65
66 ac_prev=
67 for ac_option
68 do
69
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
73 ac_prev=
74 continue
75 fi
76
77 case "$ac_option" in
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 *) ac_optarg= ;;
80 esac
81
82 # Accept the important Cygnus configure options, so we can diagnose typos.
83
84 case "$ac_option" in
85
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
87 ac_prev=bindir ;;
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
90
91 -build | --build | --buil | --bui | --bu)
92 ac_prev=build ;;
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
94 build="$ac_optarg" ;;
95
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
98 ac_prev=cache_file ;;
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
102
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
104 ac_prev=datadir ;;
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
106 | --da=*)
107 datadir="$ac_optarg" ;;
108
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 fi
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
117
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
123 fi
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 case "$ac_option" in
126 *=*) ;;
127 *) ac_optarg=yes ;;
128 esac
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
130
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
139
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
142 with_gas=yes ;;
143
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
147 cat << EOF
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
150 Configuration:
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
158 [$ac_default_prefix]
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
160 [same as prefix]
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
165 [PREFIX/share]
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
168 [PREFIX/com]
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
180 EOF
181 cat << EOF
182 Host type:
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
193 EOF
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
196 fi
197 exit 0 ;;
198
199 -host | --host | --hos | --ho)
200 ac_prev=host ;;
201 -host=* | --host=* | --hos=* | --ho=*)
202 host="$ac_optarg" ;;
203
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
210
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
212 ac_prev=infodir ;;
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
215
216 -libdir | --libdir | --libdi | --libd)
217 ac_prev=libdir ;;
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
220
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
227
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
236
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
238 ac_prev=mandir ;;
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
241
242 -nfp | --nfp | --nf)
243 # Obsolete; use --without-fp.
244 with_fp=no ;;
245
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
247 | --no-cr | --no-c)
248 no_create=yes ;;
249
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
252 no_recursion=yes ;;
253
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
262
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
264 ac_prev=prefix ;;
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
267
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
274
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
281
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
298
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
301 silent=yes ;;
302
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
304 ac_prev=sbindir ;;
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
306 | --sbi=* | --sb=*)
307 sbindir="$ac_optarg" ;;
308
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
312 | --sha | --sh)
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
317 | --sha=* | --sh=*)
318 sharedstatedir="$ac_optarg" ;;
319
320 -site | --site | --sit)
321 ac_prev=site ;;
322 -site=* | --site=* | --sit=*)
323 site="$ac_optarg" ;;
324
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
326 ac_prev=srcdir ;;
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
329
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
336
337 -target | --target | --targe | --targ | --tar | --ta | --t)
338 ac_prev=target ;;
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
341
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
343 verbose=yes ;;
344
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
347 exit 0 ;;
348
349 -with-* | --with-*)
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
354 fi
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 case "$ac_option" in
357 *=*) ;;
358 *) ac_optarg=yes ;;
359 esac
360 eval "with_${ac_package}='$ac_optarg'" ;;
361
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
367 fi
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
370
371 --x)
372 # Obsolete; use --with-x.
373 with_x=yes ;;
374
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
381
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
388
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 ;;
391
392 *)
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
395 fi
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
398 fi
399 nonopt="$ac_option"
400 ;;
401
402 esac
403 done
404
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
407 fi
408
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
410
411 # File descriptor usage:
412 # 0 standard input
413 # 1 file creation
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
420 exec 6>/dev/null
421 else
422 exec 6>&1
423 fi
424 exec 5>./config.log
425
426 echo "\
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
429 " 1>&5
430
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
433 ac_configure_args=
434 for ac_arg
435 do
436 case "$ac_arg" in
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444 esac
445 done
446
447 # NLS nuisances.
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
456
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
460 echo > confdefs.h
461
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=README
465
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
470 ac_prog=$0
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
473 srcdir=$ac_confdir
474 if test ! -r $srcdir/$ac_unique_file; then
475 srcdir=..
476 fi
477 else
478 ac_srcdir_defaulted=no
479 fi
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
483 else
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
485 fi
486 fi
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
488
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
493 else
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
495 fi
496 fi
497 for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
500 . "$ac_site_file"
501 fi
502 done
503
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
506 . $cache_file
507 else
508 echo "creating cache $cache_file"
509 > $cache_file
510 fi
511
512 ac_ext=c
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
518
519 ac_exeext=
520 ac_objext=o
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='
525 ' ac_t=' '
526 else
527 ac_n=-n ac_c= ac_t=
528 fi
529 else
530 ac_n= ac_c='\c' ac_t=
531 fi
532
533
534 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
•535 echo "configure:536: checking how to run the C preprocessor" >&5
536 # On Suns, sometimes $CPP names a directory.
537 if test -n "$CPP" && test -d "$CPP"; then
538 CPP=
539 fi
540 if test -z "$CPP"; then
541 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
542 echo $ac_n "(cached) $ac_c" 1>&6
543 else
544 # This must be in double quotes, not single quotes, because CPP may get
545 # substituted into the Makefile and "${CC-cc}" will confuse make.
546 CPP="${CC-cc} -E"
547 # On the NeXT, cc -E runs the code through the compiler's parser,
548 # not just through cpp.
549 cat > conftest.$ac_ext <<EOF
•550 #line 551 "configure"
551 #include "confdefs.h"
552 #include <assert.h>
553 Syntax Error
554 EOF
555 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
•556 { (eval echo configure:557: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
557 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
558 if test -z "$ac_err"; then
559 :
560 else
561 echo "$ac_err" >&5
562 echo "configure: failed program was:" >&5
563 cat conftest.$ac_ext >&5
564 rm -rf conftest*
565 CPP="${CC-cc} -E -traditional-cpp"
566 cat > conftest.$ac_ext <<EOF
•567 #line 568 "configure"
568 #include "confdefs.h"
569 #include <assert.h>
570 Syntax Error
571 EOF
572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
•573 { (eval echo configure:574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
575 if test -z "$ac_err"; then
576 :
577 else
578 echo "$ac_err" >&5
579 echo "configure: failed program was:" >&5
580 cat conftest.$ac_ext >&5
581 rm -rf conftest*
582 CPP="${CC-cc} -nologo -E"
583 cat > conftest.$ac_ext <<EOF
•584 #line 585 "configure"
585 #include "confdefs.h"
586 #include <assert.h>
587 Syntax Error
588 EOF
589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
•590 { (eval echo configure:591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
592 if test -z "$ac_err"; then
593 :
594 else
595 echo "$ac_err" >&5
596 echo "configure: failed program was:" >&5
597 cat conftest.$ac_ext >&5
598 rm -rf conftest*
599 CPP=/lib/cpp
600 fi
601 rm -f conftest*
602 fi
603 rm -f conftest*
604 fi
605 rm -f conftest*
606 ac_cv_prog_CPP="$CPP"
607 fi
608 CPP="$ac_cv_prog_CPP"
609 else
610 ac_cv_prog_CPP="$CPP"
611 fi
612 echo "$ac_t""$CPP" 1>&6
613
614 missing_dir=`cd $ac_aux_dir && pwd`
615 for ac_prog in flex lex
616 do
617 # Extract the first word of "$ac_prog", so it can be a program name with args.
618 set dummy $ac_prog; ac_word=$2
619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•620 echo "configure:621: checking for $ac_word" >&5
621 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
622 echo $ac_n "(cached) $ac_c" 1>&6
623 else
624 if test -n "$LEX"; then
625 ac_cv_prog_LEX="$LEX" # Let the user override the test.
626 else
627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
628 ac_dummy="$PATH"
629 for ac_dir in $ac_dummy; do
630 test -z "$ac_dir" && ac_dir=.
631 if test -f $ac_dir/$ac_word; then
632 ac_cv_prog_LEX="$ac_prog"
633 break
634 fi
635 done
636 IFS="$ac_save_ifs"
637 fi
638 fi
639 LEX="$ac_cv_prog_LEX"
640 if test -n "$LEX"; then
641 echo "$ac_t""$LEX" 1>&6
642 else
643 echo "$ac_t""no" 1>&6
644 fi
645
646 test -n "$LEX" && break
647 done
648 test -n "$LEX" || LEX=""$missing_dir/missing flex""
649
650 # Extract the first word of "flex", so it can be a program name with args.
651 set dummy flex; ac_word=$2
652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•653 echo "configure:654: checking for $ac_word" >&5
654 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656 else
657 if test -n "$LEX"; then
658 ac_cv_prog_LEX="$LEX" # Let the user override the test.
659 else
660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
661 ac_dummy="$PATH"
662 for ac_dir in $ac_dummy; do
663 test -z "$ac_dir" && ac_dir=.
664 if test -f $ac_dir/$ac_word; then
665 ac_cv_prog_LEX="flex"
666 break
667 fi
668 done
669 IFS="$ac_save_ifs"
670 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
671 fi
672 fi
673 LEX="$ac_cv_prog_LEX"
674 if test -n "$LEX"; then
675 echo "$ac_t""$LEX" 1>&6
676 else
677 echo "$ac_t""no" 1>&6
678 fi
679
680 if test -z "$LEXLIB"
681 then
682 case "$LEX" in
683 flex*) ac_lib=fl ;;
684 *) ac_lib=l ;;
685 esac
686 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
•687 echo "configure:688: checking for yywrap in -l$ac_lib" >&5
688 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
691 else
692 ac_save_LIBS="$LIBS"
693 LIBS="-l$ac_lib $LIBS"
694 cat > conftest.$ac_ext <<EOF
•695 #line 696 "configure"
696 #include "confdefs.h"
697 /* Override any gcc2 internal prototype to avoid an error. */
698 /* We use char because int might match the return type of a gcc2
699 builtin and then its argument prototype would still apply. */
700 char yywrap();
701
702 int main() {
703 yywrap()
704 ; return 0; }
705 EOF
•706 if { (eval echo configure:707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
707 rm -rf conftest*
708 eval "ac_cv_lib_$ac_lib_var=yes"
709 else
710 echo "configure: failed program was:" >&5
711 cat conftest.$ac_ext >&5
712 rm -rf conftest*
713 eval "ac_cv_lib_$ac_lib_var=no"
714 fi
715 rm -f conftest*
716 LIBS="$ac_save_LIBS"
717
718 fi
719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
720 echo "$ac_t""yes" 1>&6
721 LEXLIB="-l$ac_lib"
722 else
723 echo "$ac_t""no" 1>&6
724 fi
725
726 fi
727
728 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
•729 echo "configure:730: checking lex output file root" >&5
730 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
732 else
733 # The minimal lex program is just a single line: %%. But some broken lexes
734 # (Solaris, I think it was) want two %% lines, so accommodate them.
735 echo '%%
736 %%' | $LEX
737 if test -f lex.yy.c; then
738 ac_cv_prog_lex_root=lex.yy
739 elif test -f lexyy.c; then
740 ac_cv_prog_lex_root=lexyy
741 else
742 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
743 fi
744 fi
745
746 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
747 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
748
749 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
•750 echo "configure:751: checking whether yytext is a pointer" >&5
751 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 # POSIX says lex can declare yytext either as a pointer or an array; the
755 # default is implementation-dependent. Figure out which it is, since
756 # not all implementations provide the %pointer and %array declarations.
757 ac_cv_prog_lex_yytext_pointer=no
758 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
759 ac_save_LIBS="$LIBS"
760 LIBS="$LIBS $LEXLIB"
761 cat > conftest.$ac_ext <<EOF
•762 #line 763 "configure"
763 #include "confdefs.h"
764 `cat $LEX_OUTPUT_ROOT.c`
765 int main() {
766
767 ; return 0; }
768 EOF
•769 if { (eval echo configure:770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
770 rm -rf conftest*
771 ac_cv_prog_lex_yytext_pointer=yes
772 else
773 echo "configure: failed program was:" >&5
774 cat conftest.$ac_ext >&5
775 fi
776 rm -f conftest*
777 LIBS="$ac_save_LIBS"
778 rm -f "${LEX_OUTPUT_ROOT}.c"
779
780 fi
781
782 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
783 if test $ac_cv_prog_lex_yytext_pointer = yes; then
784 cat >> confdefs.h <<\EOF
785 #define YYTEXT_POINTER 1
786 EOF
787
788 fi
789
790
791 # The AM_INIT_AUTOMAKE macro tells automake the name and version number
792 # of the software package so it can generate rules for building a source
793 # archive.
794
795 ac_aux_dir=
796 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
797 if test -f $ac_dir/install-sh; then
798 ac_aux_dir=$ac_dir
799 ac_install_sh="$ac_aux_dir/install-sh -c"
800 break
801 elif test -f $ac_dir/install.sh; then
802 ac_aux_dir=$ac_dir
803 ac_install_sh="$ac_aux_dir/install.sh -c"
804 break
805 fi
806 done
807 if test -z "$ac_aux_dir"; then
808 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
809 fi
810 ac_config_guess=$ac_aux_dir/config.guess
811 ac_config_sub=$ac_aux_dir/config.sub
812 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
813
•814 am__api_version="1.4"
815 # Find a good install program. We prefer a C program (faster),
816 # so one script is as good as another. But avoid the broken or
817 # incompatible versions:
818 # SysV /etc/install, /usr/sbin/install
819 # SunOS /usr/etc/install
820 # IRIX /sbin/install
821 # AIX /bin/install
822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
825 # ./install, which can be erroneously created by make from ./install.sh.
826 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
•827 echo "configure:828: checking for a BSD compatible install" >&5
828 if test -z "$INSTALL"; then
829 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
830 echo $ac_n "(cached) $ac_c" 1>&6
831 else
832 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
833 for ac_dir in $PATH; do
834 # Account for people who put trailing slashes in PATH elements.
835 case "$ac_dir/" in
836 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
837 *)
838 # OSF1 and SCO ODT 3.0 have their own names for install.
839 # Don't use installbsd from OSF since it installs stuff as root
840 # by default.
841 for ac_prog in ginstall scoinst install; do
842 if test -f $ac_dir/$ac_prog; then
843 if test $ac_prog = install &&
844 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
845 # AIX install. It has an incompatible calling convention.
846 :
847 else
848 ac_cv_path_install="$ac_dir/$ac_prog -c"
849 break 2
850 fi
851 fi
852 done
853 ;;
854 esac
855 done
856 IFS="$ac_save_IFS"
857
858 fi
859 if test "${ac_cv_path_install+set}" = set; then
860 INSTALL="$ac_cv_path_install"
861 else
862 # As a last resort, use the slow shell script. We don't cache a
863 # path for INSTALL within a source directory, because that will
864 # break other packages using the cache if that directory is
865 # removed, or if the path is relative.
866 INSTALL="$ac_install_sh"
867 fi
868 fi
869 echo "$ac_t""$INSTALL" 1>&6
870
871 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
872 # It thinks the first close brace ends the variable substitution.
873 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
874
875 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
876
877 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
878
879 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
•880 echo "configure:881: checking whether build environment is sane" >&5
881 # Just in case
882 sleep 1
883 echo timestamp > conftestfile
884 # Do `set' in a subshell so we don't clobber the current shell's
885 # arguments. Must try -L first in case configure is actually a
886 # symlink; some systems play weird games with the mod time of symlinks
887 # (eg FreeBSD returns the mod time of the symlink's containing
888 # directory).
889 if (
890 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
891 if test "$*" = "X"; then
892 # -L didn't work.
893 set X `ls -t $srcdir/configure conftestfile`
894 fi
895 if test "$*" != "X $srcdir/configure conftestfile" \
896 && test "$*" != "X conftestfile $srcdir/configure"; then
897
898 # If neither matched, then we have a broken ls. This can happen
899 # if, for instance, CONFIG_SHELL is bash and it inherits a
900 # broken ls alias from the environment. This has actually
901 # happened. Such a system could not be considered "sane".
902 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
903 alias in your environment" 1>&2; exit 1; }
904 fi
905
906 test "$2" = conftestfile
907 )
908 then
909 # Ok.
910 :
911 else
912 { echo "configure: error: newly created file is older than distributed files!
913 Check your system clock" 1>&2; exit 1; }
914 fi
915 rm -f conftest*
916 echo "$ac_t""yes" 1>&6
917 if test "$program_transform_name" = s,x,x,; then
918 program_transform_name=
919 else
920 # Double any \ or $. echo might interpret backslashes.
921 cat <<\EOF_SED > conftestsed
922 s,\\,\\\\,g; s,\$,$$,g
923 EOF_SED
924 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
925 rm -f conftestsed
926 fi
927 test "$program_prefix" != NONE &&
928 program_transform_name="s,^,${program_prefix},; $program_transform_name"
929 # Use a double $ so make ignores it.
930 test "$program_suffix" != NONE &&
931 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
932
933 # sed with no file args requires a program.
934 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
935
936 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
•937 echo "configure:938: checking whether ${MAKE-make} sets \${MAKE}" >&5
938 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
939 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
941 else
942 cat > conftestmake <<\EOF
943 all:
944 @echo 'ac_maketemp="${MAKE}"'
945 EOF
946 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
947 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
948 if test -n "$ac_maketemp"; then
949 eval ac_cv_prog_make_${ac_make}_set=yes
950 else
951 eval ac_cv_prog_make_${ac_make}_set=no
952 fi
953 rm -f conftestmake
954 fi
955 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
956 echo "$ac_t""yes" 1>&6
957 SET_MAKE=
958 else
959 echo "$ac_t""no" 1>&6
960 SET_MAKE="MAKE=${MAKE-make}"
961 fi
962
963
964 PACKAGE=pipenightdreams
965
966 VERSION=0.10.0
967
968 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
969 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
970 fi
971 cat >> confdefs.h <<EOF
972 #define PACKAGE "$PACKAGE"
973 EOF
974
975 cat >> confdefs.h <<EOF
976 #define VERSION "$VERSION"
977 EOF
978
979
980
981 missing_dir=`cd $ac_aux_dir && pwd`
•982 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
983 echo "configure:984: checking for working aclocal-${am__api_version}" >&5
984 # Run test in a subshell; some versions of sh will print an error if
985 # an executable is not found, even if stderr is redirected.
986 # Redirect stdin to placate older versions of autoconf. Sigh.
•987 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
988 ACLOCAL=aclocal-${am__api_version}
989 echo "$ac_t""found" 1>&6
990 else
•991 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
992 echo "$ac_t""missing" 1>&6
993 fi
994
995 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
•996 echo "configure:997: checking for working autoconf" >&5
997 # Run test in a subshell; some versions of sh will print an error if
998 # an executable is not found, even if stderr is redirected.
999 # Redirect stdin to placate older versions of autoconf. Sigh.
1000 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1001 AUTOCONF=autoconf
1002 echo "$ac_t""found" 1>&6
1003 else
1004 AUTOCONF="$missing_dir/missing autoconf"
1005 echo "$ac_t""missing" 1>&6
1006 fi
1007
•1008 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
1009 echo "configure:1010: checking for working automake-${am__api_version}" >&5
1010 # Run test in a subshell; some versions of sh will print an error if
1011 # an executable is not found, even if stderr is redirected.
1012 # Redirect stdin to placate older versions of autoconf. Sigh.
•1013 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1014 AUTOMAKE=automake-${am__api_version}
1015 echo "$ac_t""found" 1>&6
1016 else
•1017 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1018 echo "$ac_t""missing" 1>&6
1019 fi
1020
1021 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
•1022 echo "configure:1023: checking for working autoheader" >&5
1023 # Run test in a subshell; some versions of sh will print an error if
1024 # an executable is not found, even if stderr is redirected.
1025 # Redirect stdin to placate older versions of autoconf. Sigh.
1026 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1027 AUTOHEADER=autoheader
1028 echo "$ac_t""found" 1>&6
1029 else
1030 AUTOHEADER="$missing_dir/missing autoheader"
1031 echo "$ac_t""missing" 1>&6
1032 fi
1033
1034 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
•1035 echo "configure:1036: checking for working makeinfo" >&5
1036 # Run test in a subshell; some versions of sh will print an error if
1037 # an executable is not found, even if stderr is redirected.
1038 # Redirect stdin to placate older versions of autoconf. Sigh.
1039 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1040 MAKEINFO=makeinfo
1041 echo "$ac_t""found" 1>&6
1042 else
1043 MAKEINFO="$missing_dir/missing makeinfo"
1044 echo "$ac_t""missing" 1>&6
1045 fi
1046
1047
•1048 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1049 echo "configure:1050: checking whether to enable maintainer-specific portions of Makefiles" >&5
1050 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1051 if test "${enable_maintainer_mode+set}" = set; then
1052 enableval="$enable_maintainer_mode"
1053 USE_MAINTAINER_MODE=$enableval
1054 else
1055 USE_MAINTAINER_MODE=no
1056 fi
1057
1058 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1059
1060
1061 if test $USE_MAINTAINER_MODE = yes; then
1062 MAINTAINER_MODE_TRUE=
1063 MAINTAINER_MODE_FALSE='#'
1064 else
1065 MAINTAINER_MODE_TRUE='#'
1066 MAINTAINER_MODE_FALSE=
1067 fi
1068 MAINT=$MAINTAINER_MODE_TRUE
1069
1070
1071
1072
1073
1074
1075
1076 # We now have a list of macros which tell autoconf what tools we need to
1077 # build our software, in this case "make", a C++ compiler, and "install".
1078 # If we were creating a C program, we would use AC_PROC_CC instead of CXX.
1079
1080 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
•1081 echo "configure:1082: checking whether ${MAKE-make} sets \${MAKE}" >&5
1082 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1083 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086 cat > conftestmake <<\EOF
1087 all:
1088 @echo 'ac_maketemp="${MAKE}"'
1089 EOF
1090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1091 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1092 if test -n "$ac_maketemp"; then
1093 eval ac_cv_prog_make_${ac_make}_set=yes
1094 else
1095 eval ac_cv_prog_make_${ac_make}_set=no
1096 fi
1097 rm -f conftestmake
1098 fi
1099 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1100 echo "$ac_t""yes" 1>&6
1101 SET_MAKE=
1102 else
1103 echo "$ac_t""no" 1>&6
1104 SET_MAKE="MAKE=${MAKE-make}"
1105 fi
1106
1107 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1108 do
1109 # Extract the first word of "$ac_prog", so it can be a program name with args.
1110 set dummy $ac_prog; ac_word=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 if test -n "$CXX"; then
1117 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1118 else
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1120 ac_dummy="$PATH"
1121 for ac_dir in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_CXX="$ac_prog"
1125 break
1126 fi
1127 done
1128 IFS="$ac_save_ifs"
1129 fi
1130 fi
1131 CXX="$ac_cv_prog_CXX"
1132 if test -n "$CXX"; then
1133 echo "$ac_t""$CXX" 1>&6
1134 else
1135 echo "$ac_t""no" 1>&6
1136 fi
1137
1138 test -n "$CXX" && break
1139 done
1140 test -n "$CXX" || CXX="gcc"
1141
1142
1143 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
•1144 echo "configure:1145: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1145
1146 ac_ext=C
1147 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1148 ac_cpp='$CXXCPP $CPPFLAGS'
1149 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1150 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1151 cross_compiling=$ac_cv_prog_cxx_cross
1152
1153 cat > conftest.$ac_ext << EOF
1154
•1155 #line 1156 "configure"
1156 #include "confdefs.h"
1157
1158 int main(){return(0);}
1159 EOF
•1160 if { (eval echo configure:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1161 ac_cv_prog_cxx_works=yes
1162 # If we can't run a trivial program, we are probably using a cross compiler.
1163 if (./conftest; exit) 2>/dev/null; then
1164 ac_cv_prog_cxx_cross=no
1165 else
1166 ac_cv_prog_cxx_cross=yes
1167 fi
1168 else
1169 echo "configure: failed program was:" >&5
1170 cat conftest.$ac_ext >&5
1171 ac_cv_prog_cxx_works=no
1172 fi
1173 rm -fr conftest*
1174 ac_ext=c
1175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1176 ac_cpp='$CPP $CPPFLAGS'
1177 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1178 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1179 cross_compiling=$ac_cv_prog_cc_cross
1180
1181 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1182 if test $ac_cv_prog_cxx_works = no; then
1183 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1184 fi
1185 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
•1186 echo "configure:1187: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1187 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1188 cross_compiling=$ac_cv_prog_cxx_cross
1189
1190 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
•1191 echo "configure:1192: checking whether we are using GNU C++" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1194 else
1195 cat > conftest.C <<EOF
1196 #ifdef __GNUC__
1197 yes;
1198 #endif
1199 EOF
•1200 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1201 ac_cv_prog_gxx=yes
1202 else
1203 ac_cv_prog_gxx=no
1204 fi
1205 fi
1206
1207 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1208
1209 if test $ac_cv_prog_gxx = yes; then
1210 GXX=yes
1211 else
1212 GXX=
1213 fi
1214
1215 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1216 ac_save_CXXFLAGS="$CXXFLAGS"
1217 CXXFLAGS=
1218 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
•1219 echo "configure:1220: checking whether ${CXX-g++} accepts -g" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1222 else
1223 echo 'void f(){}' > conftest.cc
1224 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1225 ac_cv_prog_cxx_g=yes
1226 else
1227 ac_cv_prog_cxx_g=no
1228 fi
1229 rm -f conftest*
1230
1231 fi
1232
1233 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1234 if test "$ac_test_CXXFLAGS" = set; then
1235 CXXFLAGS="$ac_save_CXXFLAGS"
1236 elif test $ac_cv_prog_cxx_g = yes; then
1237 if test "$GXX" = yes; then
1238 CXXFLAGS="-g -O2"
1239 else
1240 CXXFLAGS="-g"
1241 fi
1242 else
1243 if test "$GXX" = yes; then
1244 CXXFLAGS="-O2"
1245 else
1246 CXXFLAGS=
1247 fi
1248 fi
1249
1250 # Find a good install program. We prefer a C program (faster),
1251 # so one script is as good as another. But avoid the broken or
1252 # incompatible versions:
1253 # SysV /etc/install, /usr/sbin/install
1254 # SunOS /usr/etc/install
1255 # IRIX /sbin/install
1256 # AIX /bin/install
1257 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1258 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1259 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1260 # ./install, which can be erroneously created by make from ./install.sh.
1261 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
•1262 echo "configure:1263: checking for a BSD compatible install" >&5
1263 if test -z "$INSTALL"; then
1264 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1265 echo $ac_n "(cached) $ac_c" 1>&6
1266 else
1267 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1268 for ac_dir in $PATH; do
1269 # Account for people who put trailing slashes in PATH elements.
1270 case "$ac_dir/" in
1271 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1272 *)
1273 # OSF1 and SCO ODT 3.0 have their own names for install.
1274 # Don't use installbsd from OSF since it installs stuff as root
1275 # by default.
1276 for ac_prog in ginstall scoinst install; do
1277 if test -f $ac_dir/$ac_prog; then
1278 if test $ac_prog = install &&
1279 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1280 # AIX install. It has an incompatible calling convention.
1281 :
1282 else
1283 ac_cv_path_install="$ac_dir/$ac_prog -c"
1284 break 2
1285 fi
1286 fi
1287 done
1288 ;;
1289 esac
1290 done
1291 IFS="$ac_save_IFS"
1292
1293 fi
1294 if test "${ac_cv_path_install+set}" = set; then
1295 INSTALL="$ac_cv_path_install"
1296 else
1297 # As a last resort, use the slow shell script. We don't cache a
1298 # path for INSTALL within a source directory, because that will
1299 # break other packages using the cache if that directory is
1300 # removed, or if the path is relative.
1301 INSTALL="$ac_install_sh"
1302 fi
1303 fi
1304 echo "$ac_t""$INSTALL" 1>&6
1305
1306 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1307 # It thinks the first close brace ends the variable substitution.
1308 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1309
1310 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1311
1312 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1313
1314
1315 # This is a trick I learned at Loki - the current compiler for the alpha
1316 # architecture doesn't produce code that works on all versions of the
1317 # alpha processor. This bit detects the current compile architecture
1318 # and sets the compiler flags to produce portable binary code.
1319
1320 #AC_CANONICAL_HOST
1321 echo $ac_n "checking target system type""... $ac_c" 1>&6
•1322 echo "configure:1323: checking target system type" >&5
1323
1324 target_alias=$target
1325 case "$target_alias" in
1326 NONE)
1327 case $nonopt in
1328 NONE) target_alias=$host_alias ;;
1329 *) target_alias=$nonopt ;;
1330 esac ;;
1331 esac
1332
1333 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1334 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1335 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1336 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1337 echo "$ac_t""$target" 1>&6
1338
1339 case "$target" in
1340 alpha*-*-linux*)
1341 CXXFLAGS="$CXXFLAGS -mcpu=ev4 -Wa,-mall"
1342 ;;
1343 esac
1344
1345 # Use the macro SDL provides to check the installed version of the SDL
1346 # development environment. Abort the configuration process if the
1347 # minimum version we require isn't available.
1348 SDL_VERSION=1.1.5
1349 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
1350 if test "${with_sdl_prefix+set}" = set; then
1351 withval="$with_sdl_prefix"
1352 sdl_prefix="$withval"
1353 else
1354 sdl_prefix=""
1355 fi
1356
1357 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
1358 if test "${with_sdl_exec_prefix+set}" = set; then
1359 withval="$with_sdl_exec_prefix"
1360 sdl_exec_prefix="$withval"
1361 else
1362 sdl_exec_prefix=""
1363 fi
1364
1365 # Check whether --enable-sdltest or --disable-sdltest was given.
1366 if test "${enable_sdltest+set}" = set; then
1367 enableval="$enable_sdltest"
1368 :
1369 else
1370 enable_sdltest=yes
1371 fi
1372
1373
1374 if test x$sdl_exec_prefix != x ; then
1375 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
1376 if test x${SDL_CONFIG+set} != xset ; then
1377 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
1378 fi
1379 fi
1380 if test x$sdl_prefix != x ; then
1381 sdl_args="$sdl_args --prefix=$sdl_prefix"
1382 if test x${SDL_CONFIG+set} != xset ; then
1383 SDL_CONFIG=$sdl_prefix/bin/sdl-config
1384 fi
1385 fi
1386
1387 # Extract the first word of "sdl-config", so it can be a program name with args.
1388 set dummy sdl-config; ac_word=$2
1389 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
•1390 echo "configure:1391: checking for $ac_word" >&5
1391 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1393 else
1394 case "$SDL_CONFIG" in
1395 /*)
1396 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
1397 ;;
1398 ?:/*)
1399 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
1400 ;;
1401 *)
1402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1403 ac_dummy="$PATH"
1404 for ac_dir in $ac_dummy; do
1405 test -z "$ac_dir" && ac_dir=.
1406 if test -f $ac_dir/$ac_word; then
1407 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
1408 break
1409 fi
1410 done
1411 IFS="$ac_save_ifs"
1412 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
1413 ;;
1414 esac
1415 fi
1416 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
1417 if test -n "$SDL_CONFIG"; then
1418 echo "$ac_t""$SDL_CONFIG" 1>&6
1419 else
1420 echo "$ac_t""no" 1>&6
1421 fi
1422
1423 min_sdl_version=$SDL_VERSION
1424 echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
•1425 echo "configure:1426: checking for SDL - version >= $min_sdl_version" >&5
1426 no_sdl=""
1427 if test "$SDL_CONFIG" = "no" ; then
1428 no_sdl=yes
1429 else
1430 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
1431 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
1432
1433 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
1434 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1435 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
1436 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1437 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
1438 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1439 if test "x$enable_sdltest" = "xyes" ; then
1440 ac_save_CFLAGS="$CFLAGS"
1441 ac_save_LIBS="$LIBS"
1442 CFLAGS="$CFLAGS $SDL_CFLAGS"
1443 LIBS="$LIBS $SDL_LIBS"
1444 rm -f conf.sdltest
1445 if test "$cross_compiling" = yes; then
1446 echo $ac_n "cross compiling; assumed OK... $ac_c"
1447 else
1448 cat > conftest.$ac_ext <<EOF
•1449 #line 1450 "configure"
1450 #include "confdefs.h"
1451
1452 #include <stdio.h>
1453 #include <stdlib.h>
1454 #include <string.h>
1455 #include <SDL/SDL.h>
1456
1457 char*
1458 my_strdup (char *str)
1459 {
1460 char *new_str;
1461
1462 if (str)
1463 {
1464 new_str = malloc ((strlen (str) + 1) * sizeof(char));
1465 strcpy (new_str, str);
1466 }
1467 else
1468 new_str = NULL;
1469
1470 return new_str;
1471 }
1472
1473 int main ()
1474 {
1475 int major, minor, micro;
1476 char *tmp_version;
1477
1478 system ("touch conf.sdltest");
1479
1480 /* HP/UX 9 (%@#!) writes to sscanf strings */
1481 tmp_version = my_strdup("$min_sdl_version");
1482 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
1483 printf("%s, bad version string\n", "$min_sdl_version");
1484 exit(1);
1485 }
1486
1487 if (($sdl_major_version > major) ||
1488 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
1489 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
1490 {
1491 return 0;
1492 }
1493 else
1494 {
1495 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
1496 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
1497 printf("*** best to upgrade to the required version.\n");
1498 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
1499 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
1500 printf("*** config.cache before re-running configure\n");
1501 return 1;
1502 }
1503 }
1504
1505
1506 EOF
•1507 if { (eval echo configure:1508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1508 then
1509 :
1510 else
1511 echo "configure: failed program was:" >&5
1512 cat conftest.$ac_ext >&5
1513 rm -fr conftest*
1514 no_sdl=yes
1515 fi
1516 rm -fr conftest*
1517 fi
1518
1519 CFLAGS="$ac_save_CFLAGS"
1520 LIBS="$ac_save_LIBS"
1521 fi
1522 fi
1523 if test "x$no_sdl" = x ; then
1524 echo "$ac_t""yes" 1>&6
1525 :
1526 else
1527 echo "$ac_t""no" 1>&6
1528 if test "$SDL_CONFIG" = "no" ; then
1529 echo "*** The sdl-config script installed by SDL could not be found"
1530 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
1531 echo "*** your path, or set the SDL_CONFIG environment variable to the"
1532 echo "*** full path to sdl-config."
1533 else
1534 if test -f conf.sdltest ; then
1535 :
1536 else
1537 echo "*** Could not run SDL test program, checking why..."
1538 CFLAGS="$CFLAGS $SDL_CFLAGS"
1539 LIBS="$LIBS $SDL_LIBS"
1540 cat > conftest.$ac_ext <<EOF
•1541 #line 1542 "configure"
1542 #include "confdefs.h"
1543
1544 #include <stdio.h>
1545 #include <SDL/SDL.h>
1546
1547 int main() {
1548 return 0;
1549 ; return 0; }
1550 EOF
•1551 if { (eval echo configure:1552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1552 rm -rf conftest*
1553 echo "*** The test program compiled, but did not run. This usually means"
1554 echo "*** that the run-time linker is not finding SDL or finding the wrong"
1555 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
1556 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1557 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1558 echo "*** is required on your system"
1559 echo "***"
1560 echo "*** If you have an old version installed, it is best to remove it, although"
1561 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1562 else
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 rm -rf conftest*
1566 echo "*** The test program failed to compile or link. See the file config.log for the"
1567 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
1568 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
1569 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
1570 fi
1571 rm -f conftest*
1572 CFLAGS="$ac_save_CFLAGS"
1573 LIBS="$ac_save_LIBS"
1574 fi
1575 fi
1576 SDL_CFLAGS=""
1577 SDL_LIBS=""
1578 { echo "configure: error: *** SDL version $SDL_VERSION not found!" 1>&2; exit 1; }
1579
1580 fi
1581
1582
1583 rm -f conf.sdltest
1584
1585 # Add the SDL preprocessor flags and libraries to the build process
1586 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
1587 LIBS="$LIBS $SDL_LIBS"
1588
1589 echo $ac_n "checking for IMG_Load in -lSDL_image""... $ac_c" 1>&6
•1590 echo "configure:1591: checking for IMG_Load in -lSDL_image" >&5
1591 ac_lib_var=`echo SDL_image'_'IMG_Load | sed 'y%./+-%__p_%'`
1592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1593 echo $ac_n "(cached) $ac_c" 1>&6
1594 else
1595 ac_save_LIBS="$LIBS"
1596 LIBS="-lSDL_image $LIBS"
1597 cat > conftest.$ac_ext <<EOF
•1598 #line 1599 "configure"
1599 #include "confdefs.h"
1600 /* Override any gcc2 internal prototype to avoid an error. */
1601 /* We use char because int might match the return type of a gcc2
1602 builtin and then its argument prototype would still apply. */
1603 char IMG_Load();
1604
1605 int main() {
1606 IMG_Load()
1607 ; return 0; }
1608 EOF
•1609 if { (eval echo configure:1610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1610 rm -rf conftest*
1611 eval "ac_cv_lib_$ac_lib_var=yes"
1612 else
1613 echo "configure: failed program was:" >&5
1614 cat conftest.$ac_ext >&5
1615 rm -rf conftest*
1616 eval "ac_cv_lib_$ac_lib_var=no"
1617 fi
1618 rm -f conftest*
1619 LIBS="$ac_save_LIBS"
1620
1621 fi
1622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1623 echo "$ac_t""yes" 1>&6
1624 ac_tr_lib=HAVE_LIB`echo SDL_image | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1625 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1626 cat >> confdefs.h <<EOF
1627 #define $ac_tr_lib 1
1628 EOF
1629
1630 LIBS="-lSDL_image $LIBS"
1631
1632 else
1633 echo "$ac_t""no" 1>&6
1634 fi
1635
1636
1637 LIBTOOL=../libtool
1638
1639
1640 #Thanks to Ingo Ruhnke <[email protected]>
1641
1642 game_datadir="$datadir/games/$PACKAGE"
1643 game_datadir=`(
1644 test "x$prefix" = xNONE && prefix=${ac_default_prefix}
1645 test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
1646 eval echo \""$game_datadir"\"
1647 )`
1648
1649 cat >> confdefs.h <<EOF
1650 #define GAME_DATADIR "$game_datadir"
1651 EOF
1652
1653
1654 # Finally create all the generated files
1655 # The configure script takes "file.in" and substitutes variables to produce
1656 # "file". In this case we are just generating the Makefiles, but this could
1657 # be used to generate any number of automatically generated files.
1658 trap '' 1 2 15
1659 cat > confcache <<\EOF
1660 # This file is a shell script that caches the results of configure
1661 # tests run on this system so they can be shared between configure
1662 # scripts and configure runs. It is not useful on other systems.
1663 # If it contains results you don't want to keep, you may remove or edit it.
1664 #
1665 # By default, configure uses ./config.cache as the cache file,
1666 # creating it if it does not exist already. You can give configure
1667 # the --cache-file=FILE option to use a different cache file; that is
1668 # what configure does when it calls configure scripts in
1669 # subdirectories, so they share the cache.
1670 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1671 # config.status only pays attention to the cache file if you give it the
1672 # --recheck option to rerun configure.
1673 #
1674 EOF
1675 # The following way of writing the cache mishandles newlines in values,
1676 # but we know of no workaround that is simple, portable, and efficient.
1677 # So, don't put newlines in cache variables' values.
1678 # Ultrix sh set writes to stderr and can't be redirected directly,
1679 # and sets the high bit in the cache file unless we assign to the vars.
1680 (set) 2>&1 |
1681 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1682 *ac_space=\ *)
1683 # `set' does not quote correctly, so add quotes (double-quote substitution
1684 # turns \\\\ into \\, and sed turns \\ into \).
1685 sed -n \
1686 -e "s/'/'\\\\''/g" \
1687 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1688 ;;
1689 *)
1690 # `set' quotes correctly as required by POSIX, so do not add quotes.
1691 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1692 ;;
1693 esac >> confcache
1694 if cmp -s $cache_file confcache; then
1695 :
1696 else
1697 if test -w $cache_file; then
1698 echo "updating cache $cache_file"
1699 cat confcache > $cache_file
1700 else
1701 echo "not updating unwritable cache $cache_file"
1702 fi
1703 fi
1704 rm -f confcache
1705
1706 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1707
1708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1709 # Let make expand exec_prefix.
1710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1711
1712 # Any assignment to VPATH causes Sun make to only execute
1713 # the first set of double-colon rules, so remove it if not needed.
1714 # If there is a colon in the path, we need to keep it.
1715 if test "x$srcdir" = x.; then
1716 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1717 fi
1718
1719 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1720
1721 DEFS=-DHAVE_CONFIG_H
1722
1723 # Without the "./", some shells look in PATH for config.status.
1724 : ${CONFIG_STATUS=./config.status}
1725
1726 echo creating $CONFIG_STATUS
1727 rm -f $CONFIG_STATUS
1728 cat > $CONFIG_STATUS <<EOF
1729 #! /bin/sh
1730 # Generated automatically by configure.
1731 # Run this file to recreate the current configuration.
1732 # This directory was configured as follows,
1733 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1734 #
1735 # $0 $ac_configure_args
1736 #
1737 # Compiler output produced by configure, useful for debugging
1738 # configure, is in ./config.log if it exists.
1739
1740 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1741 for ac_option
1742 do
1743 case "\$ac_option" in
1744 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1745 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1746 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1747 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1748 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1749 exit 0 ;;
1750 -help | --help | --hel | --he | --h)
1751 echo "\$ac_cs_usage"; exit 0 ;;
1752 *) echo "\$ac_cs_usage"; exit 1 ;;
1753 esac
1754 done
1755
1756 ac_given_srcdir=$srcdir
1757 ac_given_INSTALL="$INSTALL"
1758
1759 trap 'rm -fr `echo "
1760 Makefile
1761 src/Makefile
1762 levels/Makefile
1763 images/Makefile
1764 images/arrows_yellow/Makefile
1765 images/flow_green/Makefile
1766 images/pipes_toys/Makefile
1767 images/default/Makefile
1768 images/flow_light/Makefile
1769 images/pipes_cables/Makefile
1770 images/pipes_wire/Makefile
1771 images/pipes_metal/Makefile
1772 images/arrows_grey/Makefile
1773 images/flow_blue/Makefile
1774 images/pipes_space/Makefile
1775 images/pipes_space/back01/Makefile
1776 images/pipes_space/back02/Makefile
1777 images/pipes_space/back03/Makefile
1778 images/pipes_space/back04/Makefile
1779 images/pipes_space/back05/Makefile
1780 man/Makefile
1781 src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1782 EOF
1783 cat >> $CONFIG_STATUS <<EOF
1784
1785 # Protect against being on the right side of a sed subst in config.status.
1786 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1787 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1788 $ac_vpsub
1789 $extrasub
1790 s%@SHELL@%$SHELL%g
1791 s%@CFLAGS@%$CFLAGS%g
1792 s%@CPPFLAGS@%$CPPFLAGS%g
1793 s%@CXXFLAGS@%$CXXFLAGS%g
1794 s%@FFLAGS@%$FFLAGS%g
1795 s%@DEFS@%$DEFS%g
1796 s%@LDFLAGS@%$LDFLAGS%g
1797 s%@LIBS@%$LIBS%g
1798 s%@exec_prefix@%$exec_prefix%g
1799 s%@prefix@%$prefix%g
1800 s%@program_transform_name@%$program_transform_name%g
1801 s%@bindir@%$bindir%g
1802 s%@sbindir@%$sbindir%g
1803 s%@libexecdir@%$libexecdir%g
1804 s%@datadir@%$datadir%g
1805 s%@sysconfdir@%$sysconfdir%g
1806 s%@sharedstatedir@%$sharedstatedir%g
1807 s%@localstatedir@%$localstatedir%g
1808 s%@libdir@%$libdir%g
1809 s%@includedir@%$includedir%g
1810 s%@oldincludedir@%$oldincludedir%g
1811 s%@infodir@%$infodir%g
1812 s%@mandir@%$mandir%g
1813 s%@LEX@%$LEX%g
1814 s%@LEXLIB@%$LEXLIB%g
1815 s%@CPP@%$CPP%g
1816 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
1817 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1818 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1819 s%@INSTALL_DATA@%$INSTALL_DATA%g
1820 s%@PACKAGE@%$PACKAGE%g
1821 s%@VERSION@%$VERSION%g
1822 s%@ACLOCAL@%$ACLOCAL%g
1823 s%@AUTOCONF@%$AUTOCONF%g
1824 s%@AUTOMAKE@%$AUTOMAKE%g
1825 s%@AUTOHEADER@%$AUTOHEADER%g
1826 s%@MAKEINFO@%$MAKEINFO%g
1827 s%@SET_MAKE@%$SET_MAKE%g
•1828 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
1829 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
1830 s%@MAINT@%$MAINT%g
1831 s%@CXX@%$CXX%g
1832 s%@target@%$target%g
1833 s%@target_alias@%$target_alias%g
1834 s%@target_cpu@%$target_cpu%g
1835 s%@target_vendor@%$target_vendor%g
1836 s%@target_os@%$target_os%g
1837 s%@SDL_CONFIG@%$SDL_CONFIG%g
1838 s%@SDL_CFLAGS@%$SDL_CFLAGS%g
1839 s%@SDL_LIBS@%$SDL_LIBS%g
1840 s%@LIBTOOL@%$LIBTOOL%g
1841
1842 CEOF
1843 EOF
1844
1845 cat >> $CONFIG_STATUS <<\EOF
1846
1847 # Split the substitutions into bite-sized pieces for seds with
1848 # small command number limits, like on Digital OSF/1 and HP-UX.
1849 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1850 ac_file=1 # Number of current file.
1851 ac_beg=1 # First line for current file.
1852 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1853 ac_more_lines=:
1854 ac_sed_cmds=""
1855 while $ac_more_lines; do
1856 if test $ac_beg -gt 1; then
1857 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1858 else
1859 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1860 fi
1861 if test ! -s conftest.s$ac_file; then
1862 ac_more_lines=false
1863 rm -f conftest.s$ac_file
1864 else
1865 if test -z "$ac_sed_cmds"; then
1866 ac_sed_cmds="sed -f conftest.s$ac_file"
1867 else
1868 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1869 fi
1870 ac_file=`expr $ac_file + 1`
1871 ac_beg=$ac_end
1872 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1873 fi
1874 done
1875 if test -z "$ac_sed_cmds"; then
1876 ac_sed_cmds=cat
1877 fi
1878 EOF
1879
1880 cat >> $CONFIG_STATUS <<EOF
1881
1882 CONFIG_FILES=\${CONFIG_FILES-"Makefile
1883 src/Makefile
1884 levels/Makefile
1885 images/Makefile
1886 images/arrows_yellow/Makefile
1887 images/flow_green/Makefile
1888 images/pipes_toys/Makefile
1889 images/default/Makefile
1890 images/flow_light/Makefile
1891 images/pipes_cables/Makefile
1892 images/pipes_wire/Makefile
1893 images/pipes_metal/Makefile
1894 images/arrows_grey/Makefile
1895 images/flow_blue/Makefile
1896 images/pipes_space/Makefile
1897 images/pipes_space/back01/Makefile
1898 images/pipes_space/back02/Makefile
1899 images/pipes_space/back03/Makefile
1900 images/pipes_space/back04/Makefile
1901 images/pipes_space/back05/Makefile
1902 man/Makefile
1903 "}
1904 EOF
1905 cat >> $CONFIG_STATUS <<\EOF
1906 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1907 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1908 case "$ac_file" in
1909 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1910 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1911 *) ac_file_in="${ac_file}.in" ;;
1912 esac
1913
1914 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1915
1916 # Remove last slash and all that follows it. Not all systems have dirname.
1917 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1918 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1919 # The file is in a subdirectory.
1920 test ! -d "$ac_dir" && mkdir "$ac_dir"
1921 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1922 # A "../" for each directory in $ac_dir_suffix.
1923 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1924 else
1925 ac_dir_suffix= ac_dots=
1926 fi
1927
1928 case "$ac_given_srcdir" in
1929 .) srcdir=.
1930 if test -z "$ac_dots"; then top_srcdir=.
1931 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1932 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1933 *) # Relative path.
1934 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1935 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1936 esac
1937
1938 case "$ac_given_INSTALL" in
1939 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1940 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1941 esac
1942
1943 echo creating "$ac_file"
1944 rm -f "$ac_file"
1945 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1946 case "$ac_file" in
1947 *Makefile*) ac_comsub="1i\\
1948 # $configure_input" ;;
1949 *) ac_comsub= ;;
1950 esac
1951
1952 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1953 sed -e "$ac_comsub
1954 s%@configure_input@%$configure_input%g
1955 s%@srcdir@%$srcdir%g
1956 s%@top_srcdir@%$top_srcdir%g
1957 s%@INSTALL@%$INSTALL%g
1958 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1959 fi; done
1960 rm -f conftest.s*
1961
1962 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1963 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1964 #
1965 # ac_d sets the value in "#define NAME VALUE" lines.
1966 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1967 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1968 ac_dC='\3'
1969 ac_dD='%g'
1970 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1971 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1972 ac_uB='\([ ]\)%\1#\2define\3'
1973 ac_uC=' '
1974 ac_uD='\4%g'
1975 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1976 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1977 ac_eB='$%\1#\2define\3'
1978 ac_eC=' '
1979 ac_eD='%g'
1980
1981 if test "${CONFIG_HEADERS+set}" != set; then
1982 EOF
1983 cat >> $CONFIG_STATUS <<EOF
1984 CONFIG_HEADERS="src/config.h"
1985 EOF
1986 cat >> $CONFIG_STATUS <<\EOF
1987 fi
1988 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1989 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1990 case "$ac_file" in
1991 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1992 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1993 *) ac_file_in="${ac_file}.in" ;;
1994 esac
1995
1996 echo creating $ac_file
1997
1998 rm -f conftest.frag conftest.in conftest.out
1999 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2000 cat $ac_file_inputs > conftest.in
2001
2002 EOF
2003
2004 # Transform confdefs.h into a sed script conftest.vals that substitutes
2005 # the proper values into config.h.in to produce config.h. And first:
2006 # Protect against being on the right side of a sed subst in config.status.
2007 # Protect against being in an unquoted here document in config.status.
2008 rm -f conftest.vals
2009 cat > conftest.hdr <<\EOF
2010 s/[\\&%]/\\&/g
2011 s%[\\$`]%\\&%g
2012 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2013 s%ac_d%ac_u%gp
2014 s%ac_u%ac_e%gp
2015 EOF
2016 sed -n -f conftest.hdr confdefs.h > conftest.vals
2017 rm -f conftest.hdr
2018
2019 # This sed command replaces #undef with comments. This is necessary, for
2020 # example, in the case of _POSIX_SOURCE, which is predefined and required
2021 # on some systems where configure will not decide to define it.
2022 cat >> conftest.vals <<\EOF
2023 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2024 EOF
2025
2026 # Break up conftest.vals because some shells have a limit on
2027 # the size of here documents, and old seds have small limits too.
2028
2029 rm -f conftest.tail
2030 while :
2031 do
2032 ac_lines=`grep -c . conftest.vals`
2033 # grep -c gives empty output for an empty file on some AIX systems.
2034 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2035 # Write a limited-size here document to conftest.frag.
2036 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2037 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2038 echo 'CEOF
2039 sed -f conftest.frag conftest.in > conftest.out
2040 rm -f conftest.in
2041 mv conftest.out conftest.in
2042 ' >> $CONFIG_STATUS
2043 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2044 rm -f conftest.vals
2045 mv conftest.tail conftest.vals
2046 done
2047 rm -f conftest.vals
2048
2049 cat >> $CONFIG_STATUS <<\EOF
2050 rm -f conftest.frag conftest.h
2051 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2052 cat conftest.in >> conftest.h
2053 rm -f conftest.in
2054 if cmp -s $ac_file conftest.h 2>/dev/null; then
2055 echo "$ac_file is unchanged"
2056 rm -f conftest.h
2057 else
2058 # Remove last slash and all that follows it. Not all systems have dirname.
2059 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2060 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2061 # The file is in a subdirectory.
2062 test ! -d "$ac_dir" && mkdir "$ac_dir"
2063 fi
2064 rm -f $ac_file
2065 mv conftest.h $ac_file
2066 fi
2067 fi; done
2068
2069 EOF
2070 cat >> $CONFIG_STATUS <<EOF
2071
2072
2073 EOF
2074 cat >> $CONFIG_STATUS <<\EOF
2075 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
2076
2077 exit 0
2078 EOF
2079 chmod +x $CONFIG_STATUS
2080 rm -fr confdefs* $ac_clean_files
2081 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2082