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.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
15
--with-sdl-prefix=PFX Prefix where SDL is installed (optional)"
17
--with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
19
--disable-sdltest Do not try to compile and run a test SDL program"
21
# Initialize some variables set by options.
22
# The variables have the same names as the options, with
23
# dashes changed to underlines.
25
cache_file=./config.cache
34
program_transform_name=s,x,x,
42
bindir='${exec_prefix}/bin'
43
sbindir='${exec_prefix}/sbin'
44
libexecdir='${exec_prefix}/libexec'
45
datadir='${prefix}/share'
46
sysconfdir='${prefix}/etc'
47
sharedstatedir='${prefix}/com'
48
localstatedir='${prefix}/var'
49
libdir='${exec_prefix}/lib'
50
includedir='${prefix}/include'
51
oldincludedir='/usr/include'
52
infodir='${prefix}/info'
53
mandir='${prefix}/man'
55
# Initialize some other variables.
58
SHELL=${CONFIG_SHELL-/bin/sh}
59
# Maximum number of lines to put in a shell here document.
66
# If the previous option needs an argument, assign it.
67
if test -n "$ac_prev"; then
68
eval "$ac_prev=\$ac_option"
74
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78
# Accept the important Cygnus configure options, so we can diagnose typos.
82
-bindir | --bindir | --bindi | --bind | --bin | --bi)
84
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85
bindir="$ac_optarg" ;;
87
-build | --build | --buil | --bui | --bu)
89
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
92
-cache-file | --cache-file | --cache-fil | --cache-fi \
93
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97
cache_file="$ac_optarg" ;;
99
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103
datadir="$ac_optarg" ;;
105
-disable-* | --disable-*)
106
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107
# Reject names that are not valid shell variable names.
108
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112
eval "enable_${ac_feature}=no" ;;
114
-enable-* | --enable-*)
115
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116
# Reject names that are not valid shell variable names.
117
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125
eval "enable_${ac_feature}='$ac_optarg'" ;;
127
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129
| --exec | --exe | --ex)
130
ac_prev=exec_prefix ;;
131
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133
| --exec=* | --exe=* | --ex=*)
134
exec_prefix="$ac_optarg" ;;
136
-gas | --gas | --ga | --g)
137
# Obsolete; use --with-gas.
140
-help | --help | --hel | --he)
141
# Omit some internal or obsolete options to make the list less imposing.
142
# This message is too long to be a string in the A/UX 3.1 sh.
144
Usage: configure [options] [host]
145
Options: [defaults in brackets after descriptions]
147
--cache-file=FILE cache test results in FILE
148
--help print this message
149
--no-create do not create output files
150
--quiet, --silent do not print \`checking...' messages
151
--version print the version of autoconf that created configure
152
Directory and file names:
153
--prefix=PREFIX install architecture-independent files in PREFIX
155
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157
--bindir=DIR user executables in DIR [EPREFIX/bin]
158
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160
--datadir=DIR read-only architecture-independent data in DIR
162
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163
--sharedstatedir=DIR modifiable architecture-independent data in DIR
165
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
167
--includedir=DIR C header files in DIR [PREFIX/include]
168
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169
--infodir=DIR info documentation in DIR [PREFIX/info]
170
--mandir=DIR man documentation in DIR [PREFIX/man]
171
--srcdir=DIR find the sources in DIR [configure dir or ..]
172
--program-prefix=PREFIX prepend PREFIX to installed program names
173
--program-suffix=SUFFIX append SUFFIX to installed program names
174
--program-transform-name=PROGRAM
175
run sed PROGRAM on installed program names
179
--build=BUILD configure for building on BUILD [BUILD=HOST]
180
--host=HOST configure for HOST [guessed]
181
--target=TARGET configure for TARGET [TARGET=HOST]
182
Features and packages:
183
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187
--x-includes=DIR X include files are in DIR
188
--x-libraries=DIR X library files are in DIR
190
if test -n "$ac_help"; then
191
echo "--enable and --with options recognized:$ac_help"
195
-host | --host | --hos | --ho)
197
-host=* | --host=* | --hos=* | --ho=*)
200
-includedir | --includedir | --includedi | --included | --include \
201
| --includ | --inclu | --incl | --inc)
202
ac_prev=includedir ;;
203
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204
| --includ=* | --inclu=* | --incl=* | --inc=*)
205
includedir="$ac_optarg" ;;
207
-infodir | --infodir | --infodi | --infod | --info | --inf)
209
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210
infodir="$ac_optarg" ;;
212
-libdir | --libdir | --libdi | --libd)
214
-libdir=* | --libdir=* | --libdi=* | --libd=*)
215
libdir="$ac_optarg" ;;
217
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218
| --libexe | --libex | --libe)
219
ac_prev=libexecdir ;;
220
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221
| --libexe=* | --libex=* | --libe=*)
222
libexecdir="$ac_optarg" ;;
224
-localstatedir | --localstatedir | --localstatedi | --localstated \
225
| --localstate | --localstat | --localsta | --localst \
226
| --locals | --local | --loca | --loc | --lo)
227
ac_prev=localstatedir ;;
228
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
230
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231
localstatedir="$ac_optarg" ;;
233
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236
mandir="$ac_optarg" ;;
239
# Obsolete; use --without-fp.
242
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
246
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
247
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252
| --oldin | --oldi | --old | --ol | --o)
253
ac_prev=oldincludedir ;;
254
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257
oldincludedir="$ac_optarg" ;;
259
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262
prefix="$ac_optarg" ;;
264
-program-prefix | --program-prefix | --program-prefi | --program-pref \
265
| --program-pre | --program-pr | --program-p)
266
ac_prev=program_prefix ;;
267
-program-prefix=* | --program-prefix=* | --program-prefi=* \
268
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269
program_prefix="$ac_optarg" ;;
271
-program-suffix | --program-suffix | --program-suffi | --program-suff \
272
| --program-suf | --program-su | --program-s)
273
ac_prev=program_suffix ;;
274
-program-suffix=* | --program-suffix=* | --program-suffi=* \
275
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276
program_suffix="$ac_optarg" ;;
278
-program-transform-name | --program-transform-name \
279
| --program-transform-nam | --program-transform-na \
280
| --program-transform-n | --program-transform- \
281
| --program-transform | --program-transfor \
282
| --program-transfo | --program-transf \
283
| --program-trans | --program-tran \
284
| --progr-tra | --program-tr | --program-t)
285
ac_prev=program_transform_name ;;
286
-program-transform-name=* | --program-transform-name=* \
287
| --program-transform-nam=* | --program-transform-na=* \
288
| --program-transform-n=* | --program-transform-=* \
289
| --program-transform=* | --program-transfor=* \
290
| --program-transfo=* | --program-transf=* \
291
| --program-trans=* | --program-tran=* \
292
| --progr-tra=* | --program-tr=* | --program-t=*)
293
program_transform_name="$ac_optarg" ;;
295
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
296
| -silent | --silent | --silen | --sile | --sil)
299
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303
sbindir="$ac_optarg" ;;
305
-sharedstatedir | --sharedstatedir | --sharedstatedi \
306
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307
| --sharedst | --shareds | --shared | --share | --shar \
309
ac_prev=sharedstatedir ;;
310
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314
sharedstatedir="$ac_optarg" ;;
316
-site | --site | --sit)
318
-site=* | --site=* | --sit=*)
321
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324
srcdir="$ac_optarg" ;;
326
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327
| --syscon | --sysco | --sysc | --sys | --sy)
328
ac_prev=sysconfdir ;;
329
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331
sysconfdir="$ac_optarg" ;;
333
-target | --target | --targe | --targ | --tar | --ta | --t)
335
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336
target="$ac_optarg" ;;
338
-v | -verbose | --verbose | --verbos | --verbo | --verb)
341
-version | --version | --versio | --versi | --vers)
342
echo "configure generated by autoconf version 2.13"
346
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347
# Reject names that are not valid shell variable names.
348
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351
ac_package=`echo $ac_package| sed 's/-/_/g'`
356
eval "with_${ac_package}='$ac_optarg'" ;;
358
-without-* | --without-*)
359
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360
# Reject names that are not valid shell variable names.
361
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364
ac_package=`echo $ac_package| sed 's/-/_/g'`
365
eval "with_${ac_package}=no" ;;
368
# Obsolete; use --with-x.
371
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372
| --x-incl | --x-inc | --x-in | --x-i)
373
ac_prev=x_includes ;;
374
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376
x_includes="$ac_optarg" ;;
378
-x-libraries | --x-libraries | --x-librarie | --x-librari \
379
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380
ac_prev=x_libraries ;;
381
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383
x_libraries="$ac_optarg" ;;
385
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390
echo "configure: warning: $ac_option: invalid host type" 1>&2
392
if test "x$nonopt" != xNONE; then
393
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401
if test -n "$ac_prev"; then
402
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407
# File descriptor usage:
410
# 2 errors and warnings
411
# 3 some systems may open it to /dev/tty
412
# 4 used on the Kubota Titan
413
# 6 checking for... messages and results
414
# 5 compiler messages saved in config.log
415
if test "$silent" = yes; then
423
This file contains any messages produced by compilers while
424
running configure, to aid debugging if configure makes a mistake.
427
# Strip out --no-create and --no-recursion so they do not pile up.
428
# Also quote any args containing shell metacharacters.
433
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
434
| --no-cr | --no-c) ;;
435
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
436
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
444
# Only set these to C if already set. These must not be set unconditionally
445
# because not all systems understand e.g. LANG=C (notably SCO).
446
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447
# Non-C LC_CTYPE values break the ctype check.
448
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453
# confdefs.h avoids OS command line length limits that DEFS can exceed.
454
rm -rf conftest* confdefs.h
455
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
458
# A filename unique to this package, relative to the directory that
459
# configure is in, which we can look for to find out if srcdir is correct.
460
ac_unique_file=README
462
# Find the source files, if location was not specified.
463
if test -z "$srcdir"; then
464
ac_srcdir_defaulted=yes
465
# Try the directory containing this script, then its parent.
467
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470
if test ! -r $srcdir/$ac_unique_file; then
474
ac_srcdir_defaulted=no
476
if test ! -r $srcdir/$ac_unique_file; then
477
if test "$ac_srcdir_defaulted" = yes; then
478
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485
# Prefer explicitly selected file to automatically selected ones.
486
if test -z "$CONFIG_SITE"; then
487
if test "x$prefix" != xNONE; then
488
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493
for ac_site_file in $CONFIG_SITE; do
494
if test -r "$ac_site_file"; then
495
echo "loading site script $ac_site_file"
500
if test -r "$cache_file"; then
501
echo "loading cache $cache_file"
504
echo "creating cache $cache_file"
509
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510
ac_cpp='$CPP $CPPFLAGS'
511
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513
cross_compiling=$ac_cv_prog_cc_cross
517
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526
ac_n= ac_c='\c' ac_t=
531
######## Setup for automake
532
NAME="penguin-command"
535
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
536
if test -f $ac_dir/install-sh; then
538
ac_install_sh="$ac_aux_dir/install-sh -c"
540
elif test -f $ac_dir/install.sh; then
542
ac_install_sh="$ac_aux_dir/install.sh -c"
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; }
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.
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
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
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.
574
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
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
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.
586
ac_cv_path_install="$ac_dir/$ac_prog -c"
597
if test "${ac_cv_path_install+set}" = set; then
598
INSTALL="$ac_cv_path_install"
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"
607
echo "$ac_t""$INSTALL" 1>&6
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}'
613
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
615
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
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
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
628
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
629
if test "$*" = "X"; then
631
set X `ls -t $srcdir/configure conftestfile`
633
if test "$*" != "X $srcdir/configure conftestfile" \
634
&& test "$*" != "X conftestfile $srcdir/configure"; then
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; }
644
test "$2" = conftestfile
650
{ echo "configure: error: newly created file is older than distributed files!
651
Check your system clock" 1>&2; exit 1; }
654
echo "$ac_t""yes" 1>&6
655
if test "$program_transform_name" = s,x,x,; then
656
program_transform_name=
658
# Double any \ or $. echo might interpret backslashes.
659
cat <<\EOF_SED > conftestsed
660
s,\\,\\\\,g; s,\$,$$,g
662
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
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"
671
# sed with no file args requires a program.
672
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
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
680
cat > conftestmake <<\EOF
682
@echo 'ac_maketemp="${MAKE}"'
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
689
eval ac_cv_prog_make_${ac_make}_set=no
693
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
694
echo "$ac_t""yes" 1>&6
697
echo "$ac_t""no" 1>&6
698
SET_MAKE="MAKE=${MAKE-make}"
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; }
709
cat >> confdefs.h <<EOF
710
#define PACKAGE "$PACKAGE"
713
cat >> confdefs.h <<EOF
714
#define VERSION "$VERSION"
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
727
echo "$ac_t""found" 1>&6
729
ACLOCAL="$missing_dir/missing aclocal"
730
echo "$ac_t""missing" 1>&6
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
740
echo "$ac_t""found" 1>&6
742
AUTOCONF="$missing_dir/missing autoconf"
743
echo "$ac_t""missing" 1>&6
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
753
echo "$ac_t""found" 1>&6
755
AUTOMAKE="$missing_dir/missing automake"
756
echo "$ac_t""missing" 1>&6
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
768
AUTOHEADER="$missing_dir/missing autoheader"
769
echo "$ac_t""missing" 1>&6
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
779
echo "$ac_t""found" 1>&6
781
MAKEINFO="$missing_dir/missing makeinfo"
782
echo "$ac_t""missing" 1>&6
787
######## Detect the canonical host and target build environment
789
# Make sure we can run config.sub.
790
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
791
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
794
echo $ac_n "checking host system type""... $ac_c" 1>&6
795
echo "configure:796: checking host system type" >&5
798
case "$host_alias" in
802
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
803
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
805
*) host_alias=$nonopt ;;
809
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
810
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
811
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
812
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
813
echo "$ac_t""$host" 1>&6
815
echo $ac_n "checking target system type""... $ac_c" 1>&6
816
echo "configure:817: checking target system type" >&5
819
case "$target_alias" in
822
NONE) target_alias=$host_alias ;;
823
*) target_alias=$nonopt ;;
827
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
828
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
829
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
830
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
831
echo "$ac_t""$target" 1>&6
834
######## Check for tools
835
# Extract the first word of "gcc", so it can be a program name with args.
836
set dummy gcc; ac_word=$2
837
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838
echo "configure:839: checking for $ac_word" >&5
839
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
840
echo $ac_n "(cached) $ac_c" 1>&6
842
if test -n "$CC"; then
843
ac_cv_prog_CC="$CC" # Let the user override the test.
845
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
847
for ac_dir in $ac_dummy; do
848
test -z "$ac_dir" && ac_dir=.
849
if test -f $ac_dir/$ac_word; then
858
if test -n "$CC"; then
859
echo "$ac_t""$CC" 1>&6
861
echo "$ac_t""no" 1>&6
864
if test -z "$CC"; then
865
# Extract the first word of "cc", so it can be a program name with args.
866
set dummy cc; ac_word=$2
867
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
868
echo "configure:869: checking for $ac_word" >&5
869
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
870
echo $ac_n "(cached) $ac_c" 1>&6
872
if test -n "$CC"; then
873
ac_cv_prog_CC="$CC" # Let the user override the test.
875
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
878
for ac_dir in $ac_dummy; do
879
test -z "$ac_dir" && ac_dir=.
880
if test -f $ac_dir/$ac_word; then
881
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
890
if test $ac_prog_rejected = yes; then
891
# We found a bogon in the path, so make sure we never use it.
892
set dummy $ac_cv_prog_CC
894
if test $# -gt 0; then
895
# We chose a different compiler from the bogus one.
896
# However, it has the same basename, so the bogon will be chosen
897
# first if we set CC to just the basename; use the full file name.
899
set dummy "$ac_dir/$ac_word" "$@"
907
if test -n "$CC"; then
908
echo "$ac_t""$CC" 1>&6
910
echo "$ac_t""no" 1>&6
913
if test -z "$CC"; then
916
# Extract the first word of "cl", so it can be a program name with args.
917
set dummy cl; ac_word=$2
918
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
919
echo "configure:920: checking for $ac_word" >&5
920
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
921
echo $ac_n "(cached) $ac_c" 1>&6
923
if test -n "$CC"; then
924
ac_cv_prog_CC="$CC" # Let the user override the test.
926
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
928
for ac_dir in $ac_dummy; do
929
test -z "$ac_dir" && ac_dir=.
930
if test -f $ac_dir/$ac_word; then
939
if test -n "$CC"; then
940
echo "$ac_t""$CC" 1>&6
942
echo "$ac_t""no" 1>&6
947
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
950
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
951
echo "configure:952: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
954
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
955
ac_cpp='$CPP $CPPFLAGS'
956
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
957
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
958
cross_compiling=$ac_cv_prog_cc_cross
960
cat > conftest.$ac_ext << EOF
962
#line 963 "configure"
963
#include "confdefs.h"
967
if { (eval echo configure:968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
968
ac_cv_prog_cc_works=yes
969
# If we can't run a trivial program, we are probably using a cross compiler.
970
if (./conftest; exit) 2>/dev/null; then
971
ac_cv_prog_cc_cross=no
973
ac_cv_prog_cc_cross=yes
976
echo "configure: failed program was:" >&5
977
cat conftest.$ac_ext >&5
978
ac_cv_prog_cc_works=no
982
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
983
ac_cpp='$CPP $CPPFLAGS'
984
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
985
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
986
cross_compiling=$ac_cv_prog_cc_cross
988
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
989
if test $ac_cv_prog_cc_works = no; then
990
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
992
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
993
echo "configure:994: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
994
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
995
cross_compiling=$ac_cv_prog_cc_cross
997
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
998
echo "configure:999: checking whether we are using GNU C" >&5
999
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1000
echo $ac_n "(cached) $ac_c" 1>&6
1002
cat > conftest.c <<EOF
1007
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1014
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1016
if test $ac_cv_prog_gcc = yes; then
1022
ac_test_CFLAGS="${CFLAGS+set}"
1023
ac_save_CFLAGS="$CFLAGS"
1025
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1026
echo "configure:1027: checking whether ${CC-cc} accepts -g" >&5
1027
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1028
echo $ac_n "(cached) $ac_c" 1>&6
1030
echo 'void f(){}' > conftest.c
1031
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1040
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1041
if test "$ac_test_CFLAGS" = set; then
1042
CFLAGS="$ac_save_CFLAGS"
1043
elif test $ac_cv_prog_cc_g = yes; then
1044
if test "$GCC" = yes; then
1050
if test "$GCC" = yes; then
1057
# Find a good install program. We prefer a C program (faster),
1058
# so one script is as good as another. But avoid the broken or
1059
# incompatible versions:
1060
# SysV /etc/install, /usr/sbin/install
1061
# SunOS /usr/etc/install
1062
# IRIX /sbin/install
1064
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1065
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1066
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1067
# ./install, which can be erroneously created by make from ./install.sh.
1068
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1069
echo "configure:1070: checking for a BSD compatible install" >&5
1070
if test -z "$INSTALL"; then
1071
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1072
echo $ac_n "(cached) $ac_c" 1>&6
1074
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1075
for ac_dir in $PATH; do
1076
# Account for people who put trailing slashes in PATH elements.
1078
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1080
# OSF1 and SCO ODT 3.0 have their own names for install.
1081
# Don't use installbsd from OSF since it installs stuff as root
1083
for ac_prog in ginstall scoinst install; do
1084
if test -f $ac_dir/$ac_prog; then
1085
if test $ac_prog = install &&
1086
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1087
# AIX install. It has an incompatible calling convention.
1090
ac_cv_path_install="$ac_dir/$ac_prog -c"
1101
if test "${ac_cv_path_install+set}" = set; then
1102
INSTALL="$ac_cv_path_install"
1104
# As a last resort, use the slow shell script. We don't cache a
1105
# path for INSTALL within a source directory, because that will
1106
# break other packages using the cache if that directory is
1107
# removed, or if the path is relative.
1108
INSTALL="$ac_install_sh"
1111
echo "$ac_t""$INSTALL" 1>&6
1113
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1114
# It thinks the first close brace ends the variable substitution.
1115
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1117
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1119
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1121
# Extract the first word of "ranlib", so it can be a program name with args.
1122
set dummy ranlib; ac_word=$2
1123
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1124
echo "configure:1125: checking for $ac_word" >&5
1125
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1126
echo $ac_n "(cached) $ac_c" 1>&6
1128
if test -n "$RANLIB"; then
1129
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1131
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1133
for ac_dir in $ac_dummy; do
1134
test -z "$ac_dir" && ac_dir=.
1135
if test -f $ac_dir/$ac_word; then
1136
ac_cv_prog_RANLIB="ranlib"
1141
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1144
RANLIB="$ac_cv_prog_RANLIB"
1145
if test -n "$RANLIB"; then
1146
echo "$ac_t""$RANLIB" 1>&6
1148
echo "$ac_t""no" 1>&6
1152
######## Check for compiler environment
1153
echo $ac_n "checking for working const""... $ac_c" 1>&6
1154
echo "configure:1155: checking for working const" >&5
1155
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1156
echo $ac_n "(cached) $ac_c" 1>&6
1158
cat > conftest.$ac_ext <<EOF
1159
#line 1160 "configure"
1160
#include "confdefs.h"
1164
/* Ultrix mips cc rejects this. */
1165
typedef int charset[2]; const charset x = {0,0};
1166
/* SunOS 4.1.1 cc rejects this. */
1167
char const *const *ccp;
1169
/* NEC SVR4.0.2 mips cc rejects this. */
1170
struct point {int x, y;};
1171
static struct point const zero = {0,0};
1172
/* AIX XL C 1.02.0.0 rejects this.
1173
It does not let you subtract one const X* pointer from another in an arm
1174
of an if-expression whose if-part is not a constant expression */
1175
const char *g = "string";
1176
ccp = &g + (g ? g-g : 0);
1177
/* HPUX 7.0 cc rejects these. */
1180
ccp = (char const *const *) p;
1181
{ /* SCO 3.2v4 cc rejects this. */
1183
char const *s = 0 ? (char *) 0 : (char const *) 0;
1187
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1189
const int *foo = &x[0];
1192
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1193
typedef const int *iptr;
1197
{ /* AIX XL C 1.02.0.0 rejects this saying
1198
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1199
struct s { int j; const int *ap[3]; };
1200
struct s *b; b->j = 5;
1202
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1208
if { (eval echo configure:1209: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1212
echo "configure: failed program was:" >&5
1213
cat conftest.$ac_ext >&5
1220
echo "$ac_t""$ac_cv_c_const" 1>&6
1221
if test $ac_cv_c_const = no; then
1222
cat >> confdefs.h <<\EOF
1229
######## Figure out which math library to use
1239
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1240
echo "configure:1241: checking for main in -lm" >&5
1241
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1242
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1243
echo $ac_n "(cached) $ac_c" 1>&6
1245
ac_save_LIBS="$LIBS"
1247
cat > conftest.$ac_ext <<EOF
1248
#line 1249 "configure"
1249
#include "confdefs.h"
1255
if { (eval echo configure:1256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1257
eval "ac_cv_lib_$ac_lib_var=yes"
1259
echo "configure: failed program was:" >&5
1260
cat conftest.$ac_ext >&5
1262
eval "ac_cv_lib_$ac_lib_var=no"
1265
LIBS="$ac_save_LIBS"
1268
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1269
echo "$ac_t""yes" 1>&6
1270
ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1271
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1272
cat >> confdefs.h <<EOF
1273
#define $ac_tr_lib 1
1279
echo "$ac_t""no" 1>&6
1280
{ echo "configure: error: Your system is missing libm (mathlib)!" 1>&2; exit 1; }
1287
######## Check for SDL
1288
# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
1289
if test "${with_sdl_prefix+set}" = set; then
1290
withval="$with_sdl_prefix"
1291
sdl_prefix="$withval"
1296
# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
1297
if test "${with_sdl_exec_prefix+set}" = set; then
1298
withval="$with_sdl_exec_prefix"
1299
sdl_exec_prefix="$withval"
1304
# Check whether --enable-sdltest or --disable-sdltest was given.
1305
if test "${enable_sdltest+set}" = set; then
1306
enableval="$enable_sdltest"
1313
if test x$sdl_exec_prefix != x ; then
1314
sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
1315
if test x${SDL_CONFIG+set} != xset ; then
1316
SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
1319
if test x$sdl_prefix != x ; then
1320
sdl_args="$sdl_args --prefix=$sdl_prefix"
1321
if test x${SDL_CONFIG+set} != xset ; then
1322
SDL_CONFIG=$sdl_prefix/bin/sdl-config
1326
# Extract the first word of "sdl-config", so it can be a program name with args.
1327
set dummy sdl-config; ac_word=$2
1328
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329
echo "configure:1330: checking for $ac_word" >&5
1330
if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
1331
echo $ac_n "(cached) $ac_c" 1>&6
1333
case "$SDL_CONFIG" in
1335
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
1338
ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
1341
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1343
for ac_dir in $ac_dummy; do
1344
test -z "$ac_dir" && ac_dir=.
1345
if test -f $ac_dir/$ac_word; then
1346
ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
1351
test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
1355
SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
1356
if test -n "$SDL_CONFIG"; then
1357
echo "$ac_t""$SDL_CONFIG" 1>&6
1359
echo "$ac_t""no" 1>&6
1362
min_sdl_version=$SDL_VERSION
1363
echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
1364
echo "configure:1365: checking for SDL - version >= $min_sdl_version" >&5
1366
if test "$SDL_CONFIG" = "no" ; then
1369
SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
1370
SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
1372
sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
1373
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
1374
sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
1375
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
1376
sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
1377
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
1378
if test "x$enable_sdltest" = "xyes" ; then
1379
ac_save_CFLAGS="$CFLAGS"
1380
ac_save_LIBS="$LIBS"
1381
CFLAGS="$CFLAGS $SDL_CFLAGS"
1382
LIBS="$LIBS $SDL_LIBS"
1384
if test "$cross_compiling" = yes; then
1385
echo $ac_n "cross compiling; assumed OK... $ac_c"
1387
cat > conftest.$ac_ext <<EOF
1388
#line 1389 "configure"
1389
#include "confdefs.h"
1394
#include <SDL/SDL.h>
1397
my_strdup (char *str)
1403
new_str = malloc ((strlen (str) + 1) * sizeof(char));
1404
strcpy (new_str, str);
1412
int main (int argc, char *argv[])
1414
int major, minor, micro;
1417
/* This hangs on some systems (?)
1418
system ("touch conf.sdltest");
1420
{ FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
1422
/* HP/UX 9 (%@#!) writes to sscanf strings */
1423
tmp_version = my_strdup("$min_sdl_version");
1424
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
1425
printf("%s, bad version string\n", "$min_sdl_version");
1429
if (($sdl_major_version > major) ||
1430
(($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
1431
(($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
1437
printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
1438
printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
1439
printf("*** best to upgrade to the required version.\n");
1440
printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
1441
printf("*** to point to the correct copy of sdl-config, and remove the file\n");
1442
printf("*** config.cache before re-running configure\n");
1449
if { (eval echo configure:1450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1453
echo "configure: failed program was:" >&5
1454
cat conftest.$ac_ext >&5
1461
CFLAGS="$ac_save_CFLAGS"
1462
LIBS="$ac_save_LIBS"
1465
if test "x$no_sdl" = x ; then
1466
echo "$ac_t""yes" 1>&6
1469
echo "$ac_t""no" 1>&6
1470
if test "$SDL_CONFIG" = "no" ; then
1471
echo "*** The sdl-config script installed by SDL could not be found"
1472
echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
1473
echo "*** your path, or set the SDL_CONFIG environment variable to the"
1474
echo "*** full path to sdl-config."
1476
if test -f conf.sdltest ; then
1479
echo "*** Could not run SDL test program, checking why..."
1480
CFLAGS="$CFLAGS $SDL_CFLAGS"
1481
LIBS="$LIBS $SDL_LIBS"
1482
cat > conftest.$ac_ext <<EOF
1483
#line 1484 "configure"
1484
#include "confdefs.h"
1487
#include <SDL/SDL.h>
1493
if { (eval echo configure:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1495
echo "*** The test program compiled, but did not run. This usually means"
1496
echo "*** that the run-time linker is not finding SDL or finding the wrong"
1497
echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
1498
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1499
echo "*** to the installed location Also, make sure you have run ldconfig if that"
1500
echo "*** is required on your system"
1502
echo "*** If you have an old version installed, it is best to remove it, although"
1503
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1505
echo "configure: failed program was:" >&5
1506
cat conftest.$ac_ext >&5
1508
echo "*** The test program failed to compile or link. See the file config.log for the"
1509
echo "*** exact error that occured. This usually means SDL was incorrectly installed"
1510
echo "*** or that you have moved SDL since it was installed. In the latter case, you"
1511
echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
1514
CFLAGS="$ac_save_CFLAGS"
1515
LIBS="$ac_save_LIBS"
1520
{ echo "configure: error: *** SDL version $SDL_VERSION not found!" 1>&2; exit 1; }
1528
######## Just some defs to speed up my cross compiling
1529
#CFLAGS="$CFLAGS -I/usr/cross-tools/include"
1531
######## Check for headers
1532
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1533
echo "configure:1534: checking how to run the C preprocessor" >&5
1534
# On Suns, sometimes $CPP names a directory.
1535
if test -n "$CPP" && test -d "$CPP"; then
1538
if test -z "$CPP"; then
1539
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1540
echo $ac_n "(cached) $ac_c" 1>&6
1542
# This must be in double quotes, not single quotes, because CPP may get
1543
# substituted into the Makefile and "${CC-cc}" will confuse make.
1545
# On the NeXT, cc -E runs the code through the compiler's parser,
1546
# not just through cpp.
1547
cat > conftest.$ac_ext <<EOF
1548
#line 1549 "configure"
1549
#include "confdefs.h"
1553
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554
{ (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556
if test -z "$ac_err"; then
1560
echo "configure: failed program was:" >&5
1561
cat conftest.$ac_ext >&5
1563
CPP="${CC-cc} -E -traditional-cpp"
1564
cat > conftest.$ac_ext <<EOF
1565
#line 1566 "configure"
1566
#include "confdefs.h"
1570
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1571
{ (eval echo configure:1572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1572
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1573
if test -z "$ac_err"; then
1577
echo "configure: failed program was:" >&5
1578
cat conftest.$ac_ext >&5
1580
CPP="${CC-cc} -nologo -E"
1581
cat > conftest.$ac_ext <<EOF
1582
#line 1583 "configure"
1583
#include "confdefs.h"
1587
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1588
{ (eval echo configure:1589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1589
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1590
if test -z "$ac_err"; then
1594
echo "configure: failed program was:" >&5
1595
cat conftest.$ac_ext >&5
1604
ac_cv_prog_CPP="$CPP"
1606
CPP="$ac_cv_prog_CPP"
1608
ac_cv_prog_CPP="$CPP"
1610
echo "$ac_t""$CPP" 1>&6
1614
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1615
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1616
echo "configure:1617: checking for $ac_hdr" >&5
1617
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1618
echo $ac_n "(cached) $ac_c" 1>&6
1620
cat > conftest.$ac_ext <<EOF
1621
#line 1622 "configure"
1622
#include "confdefs.h"
1625
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1626
{ (eval echo configure:1627: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1627
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1628
if test -z "$ac_err"; then
1630
eval "ac_cv_header_$ac_safe=yes"
1633
echo "configure: failed program was:" >&5
1634
cat conftest.$ac_ext >&5
1636
eval "ac_cv_header_$ac_safe=no"
1640
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1641
echo "$ac_t""yes" 1>&6
1642
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1643
cat >> confdefs.h <<EOF
1644
#define $ac_tr_hdr 1
1648
echo "$ac_t""no" 1>&6
1649
{ echo "configure: error: Your system is missing png.h ! You will probably have to install the png-devel package" 1>&2; exit 1; }
1653
for ac_hdr in zlib.h
1655
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1656
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1657
echo "configure:1658: checking for $ac_hdr" >&5
1658
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1659
echo $ac_n "(cached) $ac_c" 1>&6
1661
cat > conftest.$ac_ext <<EOF
1662
#line 1663 "configure"
1663
#include "confdefs.h"
1666
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1667
{ (eval echo configure:1668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1668
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1669
if test -z "$ac_err"; then
1671
eval "ac_cv_header_$ac_safe=yes"
1674
echo "configure: failed program was:" >&5
1675
cat conftest.$ac_ext >&5
1677
eval "ac_cv_header_$ac_safe=no"
1681
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1682
echo "$ac_t""yes" 1>&6
1683
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1684
cat >> confdefs.h <<EOF
1685
#define $ac_tr_hdr 1
1689
echo "$ac_t""no" 1>&6
1690
{ echo "configure: error: Your system is missing png.h ! You will probably have to install the zlib-devel package" 1>&2; exit 1; }
1694
for ac_hdr in math.h
1696
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1697
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1698
echo "configure:1699: checking for $ac_hdr" >&5
1699
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1700
echo $ac_n "(cached) $ac_c" 1>&6
1702
cat > conftest.$ac_ext <<EOF
1703
#line 1704 "configure"
1704
#include "confdefs.h"
1707
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1708
{ (eval echo configure:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1709
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1710
if test -z "$ac_err"; then
1712
eval "ac_cv_header_$ac_safe=yes"
1715
echo "configure: failed program was:" >&5
1716
cat conftest.$ac_ext >&5
1718
eval "ac_cv_header_$ac_safe=no"
1722
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1723
echo "$ac_t""yes" 1>&6
1724
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1725
cat >> confdefs.h <<EOF
1726
#define $ac_tr_hdr 1
1730
echo "$ac_t""no" 1>&6
1731
{ echo "configure: error: Your system is missing math.h !" 1>&2; exit 1; }
1736
######## Check for other libs
1737
echo $ac_n "checking for main in -lz""... $ac_c" 1>&6
1738
echo "configure:1739: checking for main in -lz" >&5
1739
ac_lib_var=`echo z'_'main | sed 'y%./+-%__p_%'`
1740
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1741
echo $ac_n "(cached) $ac_c" 1>&6
1743
ac_save_LIBS="$LIBS"
1745
cat > conftest.$ac_ext <<EOF
1746
#line 1747 "configure"
1747
#include "confdefs.h"
1753
if { (eval echo configure:1754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1755
eval "ac_cv_lib_$ac_lib_var=yes"
1757
echo "configure: failed program was:" >&5
1758
cat conftest.$ac_ext >&5
1760
eval "ac_cv_lib_$ac_lib_var=no"
1763
LIBS="$ac_save_LIBS"
1766
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1767
echo "$ac_t""yes" 1>&6
1768
ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1769
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1770
cat >> confdefs.h <<EOF
1771
#define $ac_tr_lib 1
1777
echo "$ac_t""no" 1>&6
1778
{ echo "configure: error: Your system is missing libz!" 1>&2; exit 1; }
1781
echo $ac_n "checking for main in -lm""... $ac_c" 1>&6
1782
echo "configure:1783: checking for main in -lm" >&5
1783
ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`
1784
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1785
echo $ac_n "(cached) $ac_c" 1>&6
1787
ac_save_LIBS="$LIBS"
1789
cat > conftest.$ac_ext <<EOF
1790
#line 1791 "configure"
1791
#include "confdefs.h"
1797
if { (eval echo configure:1798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1799
eval "ac_cv_lib_$ac_lib_var=yes"
1801
echo "configure: failed program was:" >&5
1802
cat conftest.$ac_ext >&5
1804
eval "ac_cv_lib_$ac_lib_var=no"
1807
LIBS="$ac_save_LIBS"
1810
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1811
echo "$ac_t""yes" 1>&6
1812
ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1813
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1814
cat >> confdefs.h <<EOF
1815
#define $ac_tr_lib 1
1821
echo "$ac_t""no" 1>&6
1822
{ echo "configure: error: Your system is missing libz!" 1>&2; exit 1; }
1825
#AC_CHECK_LIB(GL, main, GL="-lGL"; CFLAGS="$CFLAGS -DGL_SUPPORT" )
1826
#AC_CHECK_LIB(png, main, , AC_MSG_ERROR(Your system is missing libpng!))
1828
#AC_CHECK_LIB(SDL_mixer, main, SOUND="-lSDL_mixer";CFLAGS="$CFLAGS -DUSE_SOUND")
1829
#if $MIXER_INCLUDED; then
1831
CFLAGS="$CFLAGS -DUSE_SOUND -Imixer";
1835
######## Set compiler flags and libraries
1836
CFLAGS="$CFLAGS $SDL_CFLAGS -Wall -DDATADIR=\"\\\"$datadir/penguin-command\\\"\""
1837
LIBS="$SDL_LIBS -lpng -Lmixer $SOUND -lz -lSDL -lm"
1839
######## Finally create all the generated files
1841
cat > confcache <<\EOF
1842
# This file is a shell script that caches the results of configure
1843
# tests run on this system so they can be shared between configure
1844
# scripts and configure runs. It is not useful on other systems.
1845
# If it contains results you don't want to keep, you may remove or edit it.
1847
# By default, configure uses ./config.cache as the cache file,
1848
# creating it if it does not exist already. You can give configure
1849
# the --cache-file=FILE option to use a different cache file; that is
1850
# what configure does when it calls configure scripts in
1851
# subdirectories, so they share the cache.
1852
# Giving --cache-file=/dev/null disables caching, for debugging configure.
1853
# config.status only pays attention to the cache file if you give it the
1854
# --recheck option to rerun configure.
1857
# The following way of writing the cache mishandles newlines in values,
1858
# but we know of no workaround that is simple, portable, and efficient.
1859
# So, don't put newlines in cache variables' values.
1860
# Ultrix sh set writes to stderr and can't be redirected directly,
1861
# and sets the high bit in the cache file unless we assign to the vars.
1863
case `(ac_space=' '; set | grep ac_space) 2>&1` in
1865
# `set' does not quote correctly, so add quotes (double-quote substitution
1866
# turns \\\\ into \\, and sed turns \\ into \).
1868
-e "s/'/'\\\\''/g" \
1869
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1872
# `set' quotes correctly as required by POSIX, so do not add quotes.
1873
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1876
if cmp -s $cache_file confcache; then
1879
if test -w $cache_file; then
1880
echo "updating cache $cache_file"
1881
cat confcache > $cache_file
1883
echo "not updating unwritable cache $cache_file"
1888
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1890
test "x$prefix" = xNONE && prefix=$ac_default_prefix
1891
# Let make expand exec_prefix.
1892
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1894
# Any assignment to VPATH causes Sun make to only execute
1895
# the first set of double-colon rules, so remove it if not needed.
1896
# If there is a colon in the path, we need to keep it.
1897
if test "x$srcdir" = x.; then
1898
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1901
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1903
# Transform confdefs.h into DEFS.
1904
# Protect against shell expansion while executing Makefile rules.
1905
# Protect against Makefile macro expansion.
1906
cat > conftest.defs <<\EOF
1907
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1908
s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1913
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1917
# Without the "./", some shells look in PATH for config.status.
1918
: ${CONFIG_STATUS=./config.status}
1920
echo creating $CONFIG_STATUS
1921
rm -f $CONFIG_STATUS
1922
cat > $CONFIG_STATUS <<EOF
1924
# Generated automatically by configure.
1925
# Run this file to recreate the current configuration.
1926
# This directory was configured as follows,
1927
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1929
# $0 $ac_configure_args
1931
# Compiler output produced by configure, useful for debugging
1932
# configure, is in ./config.log if it exists.
1934
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1937
case "\$ac_option" in
1938
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1939
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1940
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1941
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1942
echo "$CONFIG_STATUS generated by autoconf version 2.13"
1944
-help | --help | --hel | --he | --h)
1945
echo "\$ac_cs_usage"; exit 0 ;;
1946
*) echo "\$ac_cs_usage"; exit 1 ;;
1950
ac_given_srcdir=$srcdir
1951
ac_given_INSTALL="$INSTALL"
1953
trap 'rm -fr `echo "
1959
" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1961
cat >> $CONFIG_STATUS <<EOF
1963
# Protect against being on the right side of a sed subst in config.status.
1964
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1965
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1969
s%@CFLAGS@%$CFLAGS%g
1970
s%@CPPFLAGS@%$CPPFLAGS%g
1971
s%@CXXFLAGS@%$CXXFLAGS%g
1972
s%@FFLAGS@%$FFLAGS%g
1974
s%@LDFLAGS@%$LDFLAGS%g
1976
s%@exec_prefix@%$exec_prefix%g
1977
s%@prefix@%$prefix%g
1978
s%@program_transform_name@%$program_transform_name%g
1979
s%@bindir@%$bindir%g
1980
s%@sbindir@%$sbindir%g
1981
s%@libexecdir@%$libexecdir%g
1982
s%@datadir@%$datadir%g
1983
s%@sysconfdir@%$sysconfdir%g
1984
s%@sharedstatedir@%$sharedstatedir%g
1985
s%@localstatedir@%$localstatedir%g
1986
s%@libdir@%$libdir%g
1987
s%@includedir@%$includedir%g
1988
s%@oldincludedir@%$oldincludedir%g
1989
s%@infodir@%$infodir%g
1990
s%@mandir@%$mandir%g
1991
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1992
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1993
s%@INSTALL_DATA@%$INSTALL_DATA%g
1994
s%@PACKAGE@%$PACKAGE%g
1995
s%@VERSION@%$VERSION%g
1996
s%@ACLOCAL@%$ACLOCAL%g
1997
s%@AUTOCONF@%$AUTOCONF%g
1998
s%@AUTOMAKE@%$AUTOMAKE%g
1999
s%@AUTOHEADER@%$AUTOHEADER%g
2000
s%@MAKEINFO@%$MAKEINFO%g
2001
s%@SET_MAKE@%$SET_MAKE%g
2003
s%@host_alias@%$host_alias%g
2004
s%@host_cpu@%$host_cpu%g
2005
s%@host_vendor@%$host_vendor%g
2006
s%@host_os@%$host_os%g
2007
s%@target@%$target%g
2008
s%@target_alias@%$target_alias%g
2009
s%@target_cpu@%$target_cpu%g
2010
s%@target_vendor@%$target_vendor%g
2011
s%@target_os@%$target_os%g
2013
s%@RANLIB@%$RANLIB%g
2014
s%@MATHLIB@%$MATHLIB%g
2015
s%@SDL_CONFIG@%$SDL_CONFIG%g
2016
s%@SDL_CFLAGS@%$SDL_CFLAGS%g
2017
s%@SDL_LIBS@%$SDL_LIBS%g
2023
cat >> $CONFIG_STATUS <<\EOF
2025
# Split the substitutions into bite-sized pieces for seds with
2026
# small command number limits, like on Digital OSF/1 and HP-UX.
2027
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2028
ac_file=1 # Number of current file.
2029
ac_beg=1 # First line for current file.
2030
ac_end=$ac_max_sed_cmds # Line after last line for current file.
2033
while $ac_more_lines; do
2034
if test $ac_beg -gt 1; then
2035
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2037
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2039
if test ! -s conftest.s$ac_file; then
2041
rm -f conftest.s$ac_file
2043
if test -z "$ac_sed_cmds"; then
2044
ac_sed_cmds="sed -f conftest.s$ac_file"
2046
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2048
ac_file=`expr $ac_file + 1`
2050
ac_end=`expr $ac_end + $ac_max_sed_cmds`
2053
if test -z "$ac_sed_cmds"; then
2058
cat >> $CONFIG_STATUS <<EOF
2060
CONFIG_FILES=\${CONFIG_FILES-"Makefile
2067
cat >> $CONFIG_STATUS <<\EOF
2068
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2069
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2071
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2072
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2073
*) ac_file_in="${ac_file}.in" ;;
2076
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2078
# Remove last slash and all that follows it. Not all systems have dirname.
2079
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2080
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2081
# The file is in a subdirectory.
2082
test ! -d "$ac_dir" && mkdir "$ac_dir"
2083
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2084
# A "../" for each directory in $ac_dir_suffix.
2085
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2087
ac_dir_suffix= ac_dots=
2090
case "$ac_given_srcdir" in
2092
if test -z "$ac_dots"; then top_srcdir=.
2093
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2094
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2096
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2097
top_srcdir="$ac_dots$ac_given_srcdir" ;;
2100
case "$ac_given_INSTALL" in
2101
[/$]*) INSTALL="$ac_given_INSTALL" ;;
2102
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2105
echo creating "$ac_file"
2107
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2109
*Makefile*) ac_comsub="1i\\
2110
# $configure_input" ;;
2114
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2116
s%@configure_input@%$configure_input%g
2117
s%@srcdir@%$srcdir%g
2118
s%@top_srcdir@%$top_srcdir%g
2119
s%@INSTALL@%$INSTALL%g
2120
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2125
cat >> $CONFIG_STATUS <<EOF
2128
cat >> $CONFIG_STATUS <<\EOF
2132
chmod +x $CONFIG_STATUS
2133
rm -fr confdefs* $ac_clean_files
2134
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1