Debian Codegraph @

configure

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