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 --enable-gprof enable GNU profiling support"
17 --enable-debug enable debugging mode"
19 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)"
21 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
23 --disable-sdltest Do not try to compile and run a test SDL program"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file=./config.cache
38 program_transform_name=s,x,x,
46 bindir='${exec_prefix}/bin'
47 sbindir='${exec_prefix}/sbin'
48 libexecdir='${exec_prefix}/libexec'
49 datadir='${prefix}/share'
50 sysconfdir='${prefix}/etc'
51 sharedstatedir='${prefix}/com'
52 localstatedir='${prefix}/var'
53 libdir='${exec_prefix}/lib'
54 includedir='${prefix}/include'
55 oldincludedir='/usr/include'
56 infodir='${prefix}/info'
57 mandir='${prefix}/man'
59 # Initialize some other variables.
62 SHELL=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir | --bindir | --bindi | --bind | --bin | --bi)
88 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
89 bindir="$ac_optarg" ;;
91 -build | --build | --buil | --bui | --bu)
93 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96 -cache-file | --cache-file | --cache-fil | --cache-fi \
97 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
99 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
100 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
101 cache_file="$ac_optarg" ;;
103 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
105 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
107 datadir="$ac_optarg" ;;
109 -disable-* | --disable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* | --enable-*)
119 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
132 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
133 | --exec | --exe | --ex)
134 ac_prev=exec_prefix ;;
135 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
136 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
137 | --exec=* | --exe=* | --ex=*)
138 exec_prefix="$ac_optarg" ;;
140 -gas | --gas | --ga | --g)
141 # Obsolete; use --with-gas.
144 -help | --help | --hel | --he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host | --host | --hos | --ho)
201 -host=* | --host=* | --hos=* | --ho=*)
204 -includedir | --includedir | --includedi | --included | --include \
205 | --includ | --inclu | --incl | --inc)
206 ac_prev=includedir ;;
207 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
208 | --includ=* | --inclu=* | --incl=* | --inc=*)
209 includedir="$ac_optarg" ;;
211 -infodir | --infodir | --infodi | --infod | --info | --inf)
213 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
214 infodir="$ac_optarg" ;;
216 -libdir | --libdir | --libdi | --libd)
218 -libdir=* | --libdir=* | --libdi=* | --libd=*)
219 libdir="$ac_optarg" ;;
221 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
222 | --libexe | --libex | --libe)
223 ac_prev=libexecdir ;;
224 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
225 | --libexe=* | --libex=* | --libe=*)
226 libexecdir="$ac_optarg" ;;
228 -localstatedir | --localstatedir | --localstatedi | --localstated \
229 | --localstate | --localstat | --localsta | --localst \
230 | --locals | --local | --loca | --loc | --lo)
231 ac_prev=localstatedir ;;
232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
233 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
234 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
235 localstatedir="$ac_optarg" ;;
237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
240 mandir="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
256 | --oldin | --oldi | --old | --ol | --o)
257 ac_prev=oldincludedir ;;
258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
261 oldincludedir="$ac_optarg" ;;
263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
266 prefix="$ac_optarg" ;;
268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
269 | --program-pre | --program-pr | --program-p)
270 ac_prev=program_prefix ;;
271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
273 program_prefix="$ac_optarg" ;;
275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
276 | --program-suf | --program-su | --program-s)
277 ac_prev=program_suffix ;;
278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
280 program_suffix="$ac_optarg" ;;
282 -program-transform-name | --program-transform-name \
283 | --program-transform-nam | --program-transform-na \
284 | --program-transform-n | --program-transform- \
285 | --program-transform | --program-transfor \
286 | --program-transfo | --program-transf \
287 | --program-trans | --program-tran \
288 | --progr-tra | --program-tr | --program-t)
289 ac_prev=program_transform_name ;;
290 -program-transform-name=* | --program-transform-name=* \
291 | --program-transform-nam=* | --program-transform-na=* \
292 | --program-transform-n=* | --program-transform-=* \
293 | --program-transform=* | --program-transfor=* \
294 | --program-transfo=* | --program-transf=* \
295 | --program-trans=* | --program-tran=* \
296 | --progr-tra=* | --program-tr=* | --program-t=*)
297 program_transform_name="$ac_optarg" ;;
299 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
300 | -silent | --silent | --silen | --sile | --sil)
303 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
305 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
307 sbindir="$ac_optarg" ;;
309 -sharedstatedir | --sharedstatedir | --sharedstatedi \
310 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
311 | --sharedst | --shareds | --shared | --share | --shar \
313 ac_prev=sharedstatedir ;;
314 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
315 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
316 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
318 sharedstatedir="$ac_optarg" ;;
320 -site | --site | --sit)
322 -site=* | --site=* | --sit=*)
325 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
328 srcdir="$ac_optarg" ;;
330 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
331 | --syscon | --sysco | --sysc | --sys | --sy)
332 ac_prev=sysconfdir ;;
333 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
334 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
335 sysconfdir="$ac_optarg" ;;
337 -target | --target | --targe | --targ | --tar | --ta | --t)
339 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
340 target="$ac_optarg" ;;
342 -v | -verbose | --verbose | --verbos | --verbo | --verb)
345 -version | --version | --versio | --versi | --vers)
346 echo "configure generated by autoconf version 2.13"
350 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* | --without-*)
363 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
376 | --x-incl | --x-inc | --x-in | --x-i)
377 ac_prev=x_includes ;;
378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
380 x_includes="$ac_optarg" ;;
382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
384 ac_prev=x_libraries ;;
385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
387 x_libraries="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
438 | --no-cr | --no-c) ;;
439 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
440 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
441 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file=src/supertux.c
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE; then
492 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp='$CPP $CPPFLAGS'
515 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
530 ac_n= ac_c='\c' ac_t=
537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538 if test -f $ac_dir/install-sh; then
540 ac_install_sh="$ac_aux_dir/install-sh -c"
542 elif test -f $ac_dir/install.sh; then
544 ac_install_sh="$ac_aux_dir/install.sh -c"
548 if test -z "$ac_aux_dir"; then
549 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
551 ac_config_guess=$ac_aux_dir/config.guess
552 ac_config_sub=$ac_aux_dir/config.sub
553 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
555 am__api_version="1.4"
556 # Find a good install program. We prefer a C program (faster),
557 # so one script is as good as another. But avoid the broken or
558 # incompatible versions:
559 # SysV /etc/install, /usr/sbin/install
560 # SunOS /usr/etc/install
563 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
564 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
565 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
566 # ./install, which can be erroneously created by make from ./install.sh.
567 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
568 echo "configure:569: checking for a BSD compatible install" >&5
569 if test -z "$INSTALL"; then
570 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
571 echo $ac_n "(cached) $ac_c" 1>&6
573 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
574 for ac_dir in $PATH; do
575 # Account for people who put trailing slashes in PATH elements.
577 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
579 # OSF1 and SCO ODT 3.0 have their own names for install.
580 # Don't use installbsd from OSF since it installs stuff as root
582 for ac_prog in ginstall scoinst install; do
583 if test -f $ac_dir/$ac_prog; then
584 if test $ac_prog = install &&
585 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
586 # AIX install. It has an incompatible calling convention.
589 ac_cv_path_install="$ac_dir/$ac_prog -c"
600 if test "${ac_cv_path_install+set}" = set; then
601 INSTALL="$ac_cv_path_install"
603 # As a last resort, use the slow shell script. We don't cache a
604 # path for INSTALL within a source directory, because that will
605 # break other packages using the cache if that directory is
606 # removed, or if the path is relative.
607 INSTALL="$ac_install_sh"
610 echo "$ac_t""$INSTALL" 1>&6
612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
613 # It thinks the first close brace ends the variable substitution.
614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
620 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
621 echo "configure:622: checking whether build environment is sane" >&5
624 echo timestamp > conftestfile
625 # Do `set' in a subshell so we don't clobber the current shell's
626 # arguments. Must try -L first in case configure is actually a
627 # symlink; some systems play weird games with the mod time of symlinks
628 # (eg FreeBSD returns the mod time of the symlink's containing
631 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
632 if test "$*" = "X"; then
634 set X `ls -t $srcdir/configure conftestfile`
636 if test "$*" != "X $srcdir/configure conftestfile" \
637 && test "$*" != "X conftestfile $srcdir/configure"; then
639 # If neither matched, then we have a broken ls. This can happen
640 # if, for instance, CONFIG_SHELL is bash and it inherits a
641 # broken ls alias from the environment. This has actually
642 # happened. Such a system could not be considered "sane".
643 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
644 alias in your environment" 1>&2; exit 1; }
647 test "$2" = conftestfile
653 { echo "configure: error: newly created file is older than distributed files!
654 Check your system clock" 1>&2; exit 1; }
657 echo "$ac_t""yes" 1>&6
658 if test "$program_transform_name" = s,x,x,; then
659 program_transform_name=
661 # Double any \ or $. echo might interpret backslashes.
662 cat <<\EOF_SED > conftestsed
663 s,\\,\\\\,g; s,\$,$$,g
665 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
668 test "$program_prefix" != NONE &&
669 program_transform_name="s,^,${program_prefix},; $program_transform_name"
670 # Use a double $ so make ignores it.
671 test "$program_suffix" != NONE &&
672 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
674 # sed with no file args requires a program.
675 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
677 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
678 echo "configure:679: checking whether ${MAKE-make} sets \${MAKE}" >&5
679 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
680 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
681 echo $ac_n "(cached) $ac_c" 1>&6
683 cat > conftestmake <<\EOF
685 @echo 'ac_maketemp="${MAKE}"'
687 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
688 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
689 if test -n "$ac_maketemp"; then
690 eval ac_cv_prog_make_${ac_make}_set=yes
692 eval ac_cv_prog_make_${ac_make}_set=no
696 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
697 echo "$ac_t""yes" 1>&6
700 echo "$ac_t""no" 1>&6
701 SET_MAKE="MAKE=${MAKE-make}"
709 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
710 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
712 cat >> confdefs.h <<EOF
713 #define PACKAGE "$PACKAGE"
716 cat >> confdefs.h <<EOF
717 #define VERSION "$VERSION"
722 missing_dir=`cd $ac_aux_dir && pwd`
723 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
724 echo "configure:725: checking for working aclocal-${am__api_version}" >&5
725 # Run test in a subshell; some versions of sh will print an error if
726 # an executable is not found, even if stderr is redirected.
727 # Redirect stdin to placate older versions of autoconf. Sigh.
728 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
729 ACLOCAL=aclocal-${am__api_version}
730 echo "$ac_t""found" 1>&6
732 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
733 echo "$ac_t""missing" 1>&6
736 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
737 echo "configure:738: checking for working autoconf" >&5
738 # Run test in a subshell; some versions of sh will print an error if
739 # an executable is not found, even if stderr is redirected.
740 # Redirect stdin to placate older versions of autoconf. Sigh.
741 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
743 echo "$ac_t""found" 1>&6
745 AUTOCONF="$missing_dir/missing autoconf"
746 echo "$ac_t""missing" 1>&6
749 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
750 echo "configure:751: checking for working automake-${am__api_version}" >&5
751 # Run test in a subshell; some versions of sh will print an error if
752 # an executable is not found, even if stderr is redirected.
753 # Redirect stdin to placate older versions of autoconf. Sigh.
754 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
755 AUTOMAKE=automake-${am__api_version}
756 echo "$ac_t""found" 1>&6
758 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
759 echo "$ac_t""missing" 1>&6
762 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
763 echo "configure:764: checking for working autoheader" >&5
764 # Run test in a subshell; some versions of sh will print an error if
765 # an executable is not found, even if stderr is redirected.
766 # Redirect stdin to placate older versions of autoconf. Sigh.
767 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
768 AUTOHEADER=autoheader
769 echo "$ac_t""found" 1>&6
771 AUTOHEADER="$missing_dir/missing autoheader"
772 echo "$ac_t""missing" 1>&6
775 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
776 echo "configure:777: checking for working makeinfo" >&5
777 # Run test in a subshell; some versions of sh will print an error if
778 # an executable is not found, even if stderr is redirected.
779 # Redirect stdin to placate older versions of autoconf. Sigh.
780 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
782 echo "$ac_t""found" 1>&6
784 MAKEINFO="$missing_dir/missing makeinfo"
785 echo "$ac_t""missing" 1>&6
795 # Check whether --enable-gprof or --disable-gprof was given.
796 if test "${enable_gprof+set}" = set; then
797 enableval="$enable_gprof"
801 if test "x${enable_gprof}" = "xyes"; then
807 # Check whether --enable-debug or --disable-debug was given.
808 if test "${enable_debug+set}" = set; then
809 enableval="$enable_debug"
813 if test "x${enable_debug}" = "xyes"; then
814 enable_debug="-DDEBUG"
819 echo $ac_n "checking target system type""... $ac_c" 1>&6
820 echo "configure:821: checking target system type" >&5
823 case "$target_alias" in
826 NONE) target_alias=$host_alias ;;
827 *) target_alias=$nonopt ;;
831 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
832 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
833 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
834 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
835 echo "$ac_t""$target" 1>&6
837 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
838 if test "${with_sdl_prefix+set}" = set; then
839 withval="$with_sdl_prefix"
840 sdl_prefix="$withval"
845 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
846 if test "${with_sdl_exec_prefix+set}" = set; then
847 withval="$with_sdl_exec_prefix"
848 sdl_exec_prefix="$withval"
853 # Check whether --enable-sdltest or --disable-sdltest was given.
854 if test "${enable_sdltest+set}" = set; then
855 enableval="$enable_sdltest"
862 if test x$sdl_exec_prefix != x ; then
863 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
864 if test x${SDL_CONFIG+set} != xset ; then
865 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
868 if test x$sdl_prefix != x ; then
869 sdl_args="$sdl_args --prefix=$sdl_prefix"
870 if test x${SDL_CONFIG+set} != xset ; then
871 SDL_CONFIG=$sdl_prefix/bin/sdl-config
876 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
877 # Extract the first word of "sdl-config", so it can be a program name with args.
878 set dummy sdl-config; ac_word=$2
879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
880 echo "configure:881: checking for $ac_word" >&5
881 if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
882 echo $ac_n "(cached) $ac_c" 1>&6
884 case "$SDL_CONFIG" in
886 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
889 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
892 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
894 for ac_dir in $ac_dummy; do
895 test -z "$ac_dir" && ac_dir=.
896 if test -f $ac_dir/$ac_word; then
897 ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
902 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
906 SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
907 if test -n "$SDL_CONFIG"; then
908 echo "$ac_t""$SDL_CONFIG" 1>&6
910 echo "$ac_t""no" 1>&6
913 min_sdl_version=$SDL_VERSION
914 echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
915 echo "configure:916: checking for SDL - version >= $min_sdl_version" >&5
917 if test "$SDL_CONFIG" = "no" ; then
920 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
921 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
923 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
924 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
925 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
926 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
927 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
929 if test "x$enable_sdltest" = "xyes" ; then
930 ac_save_CFLAGS="$CFLAGS"
932 CFLAGS="$CFLAGS $SDL_CFLAGS"
933 LIBS="$LIBS $SDL_LIBS"
935 if test "$cross_compiling" = yes; then
936 echo $ac_n "cross compiling; assumed OK... $ac_c"
938 cat > conftest.$ac_ext <<EOF
939 #line 940 "configure"
940 #include "confdefs.h"
948 my_strdup (char *str)
954 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
955 strcpy (new_str, str);
963 int main (int argc, char *argv[])
965 int major, minor, micro;
968 /* This hangs on some systems (?)
969 system ("touch conf.sdltest");
971 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
973 /* HP/UX 9 (%@#!) writes to sscanf strings */
974 tmp_version = my_strdup("$min_sdl_version");
975 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
976 printf("%s, bad version string\n", "$min_sdl_version");
980 if (($sdl_major_version > major) ||
981 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
982 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
988 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
989 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
990 printf("*** best to upgrade to the required version.\n");
991 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
992 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
993 printf("*** config.cache before re-running configure\n");
1000 if { (eval echo configure:1001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1004 echo "configure: failed program was:" >&5
1005 cat conftest.$ac_ext >&5
1012 CFLAGS="$ac_save_CFLAGS"
1013 LIBS="$ac_save_LIBS"
1016 if test "x$no_sdl" = x ; then
1017 echo "$ac_t""yes" 1>&6
1020 echo "$ac_t""no" 1>&6
1021 if test "$SDL_CONFIG" = "no" ; then
1022 echo "*** The sdl-config script installed by SDL could not be found"
1023 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
1024 echo "*** your path, or set the SDL_CONFIG environment variable to the"
1025 echo "*** full path to sdl-config."
1027 if test -f conf.sdltest ; then
1030 echo "*** Could not run SDL test program, checking why..."
1031 CFLAGS="$CFLAGS $SDL_CFLAGS"
1032 LIBS="$LIBS $SDL_LIBS"
1033 cat > conftest.$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1040 int main(int argc, char *argv[])
1043 #define main K_and_R_C_main
1049 if { (eval echo configure:1050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1051 echo "*** The test program compiled, but did not run. This usually means"
1052 echo "*** that the run-time linker is not finding SDL or finding the wrong"
1053 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
1054 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
1055 echo "*** to the installed location Also, make sure you have run ldconfig if that"
1056 echo "*** is required on your system"
1058 echo "*** If you have an old version installed, it is best to remove it, although"
1059 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
1061 echo "configure: failed program was:" >&5
1062 cat conftest.$ac_ext >&5
1064 echo "*** The test program failed to compile or link. See the file config.log for the"
1065 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
1066 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
1067 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
1070 CFLAGS="$ac_save_CFLAGS"
1071 LIBS="$ac_save_LIBS"
1076 { echo "configure: error: *** SDL version $SDL_VERSION not found!" 1>&2; exit 1; }
1084 LDFLAGS="-L/usr/X11R6/lib"
1086 echo $ac_n "checking for SDL_OpenAudio in -lSDL_mixer""... $ac_c" 1>&6
1087 echo "configure:1088: checking for SDL_OpenAudio in -lSDL_mixer" >&5
1088 ac_lib_var=`echo SDL_mixer'_'SDL_OpenAudio | sed 'y%./+-%__p_%'`
1089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 ac_save_LIBS="$LIBS"
1093 LIBS="-lSDL_mixer $LIBS"
1094 cat > conftest.$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1097 /* Override any gcc2 internal prototype to avoid an error. */
1098 /* We use char because int might match the return type of a gcc2
1099 builtin and then its argument prototype would still apply. */
1100 char SDL_OpenAudio();
1106 if { (eval echo configure:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1108 eval "ac_cv_lib_$ac_lib_var=yes"
1110 echo "configure: failed program was:" >&5
1111 cat conftest.$ac_ext >&5
1113 eval "ac_cv_lib_$ac_lib_var=no"
1116 LIBS="$ac_save_LIBS"
1119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1120 echo "$ac_t""yes" 1>&6
1121 ac_tr_lib=HAVE_LIB`echo SDL_mixer | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1123 cat >> confdefs.h <<EOF
1124 #define $ac_tr_lib 1
1127 LIBS="-lSDL_mixer $LIBS"
1130 echo "$ac_t""no" 1>&6
1131 { echo "configure: error: SDL_mixer library required" 1>&2; exit 1; }
1134 echo $ac_n "checking for IMG_Load in -lSDL_image""... $ac_c" 1>&6
1135 echo "configure:1136: checking for IMG_Load in -lSDL_image" >&5
1136 ac_lib_var=`echo SDL_image'_'IMG_Load | sed 'y%./+-%__p_%'`
1137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1140 ac_save_LIBS="$LIBS"
1141 LIBS="-lSDL_image $LIBS"
1142 cat > conftest.$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1145 /* Override any gcc2 internal prototype to avoid an error. */
1146 /* We use char because int might match the return type of a gcc2
1147 builtin and then its argument prototype would still apply. */
1154 if { (eval echo configure:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1156 eval "ac_cv_lib_$ac_lib_var=yes"
1158 echo "configure: failed program was:" >&5
1159 cat conftest.$ac_ext >&5
1161 eval "ac_cv_lib_$ac_lib_var=no"
1164 LIBS="$ac_save_LIBS"
1167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1168 echo "$ac_t""yes" 1>&6
1169 ac_tr_lib=HAVE_LIB`echo SDL_image | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1171 cat >> confdefs.h <<EOF
1172 #define $ac_tr_lib 1
1175 LIBS="-lSDL_image $LIBS"
1178 echo "$ac_t""no" 1>&6
1179 { echo "configure: error: SDL_image library required" 1>&2; exit 1; }
1182 echo $ac_n "checking for glBegin in -lGL""... $ac_c" 1>&6
1183 echo "configure:1184: checking for glBegin in -lGL" >&5
1184 ac_lib_var=`echo GL'_'glBegin | sed 'y%./+-%__p_%'`
1185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 ac_save_LIBS="$LIBS"
1190 cat > conftest.$ac_ext <<EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1193 /* Override any gcc2 internal prototype to avoid an error. */
1194 /* We use char because int might match the return type of a gcc2
1195 builtin and then its argument prototype would still apply. */
1202 if { (eval echo configure:1203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1204 eval "ac_cv_lib_$ac_lib_var=yes"
1206 echo "configure: failed program was:" >&5
1207 cat conftest.$ac_ext >&5
1209 eval "ac_cv_lib_$ac_lib_var=no"
1212 LIBS="$ac_save_LIBS"
1215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1216 echo "$ac_t""yes" 1>&6
1217 ac_tr_lib=HAVE_LIB`echo GL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1218 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1219 cat >> confdefs.h <<EOF
1220 #define $ac_tr_lib 1
1226 echo "$ac_t""no" 1>&6
1227 { echo "configure: error: GL library required" 1>&2; exit 1; }
1231 CFLAGS="-DDATA_PREFIX=\\\"$PWD/data\\\" -DLINUX ${enable_debug} ${enable_gprof}"
1232 CFLAGS="$CFLAGS $SDL_CFLAGS"
1233 LDFLAGS="$LDFLAGS $SDL_LIBS"
1236 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1238 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1239 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1240 echo "configure:1241: checking for $ac_hdr that defines DIR" >&5
1241 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 cat > conftest.$ac_ext <<EOF
1245 #line 1246 "configure"
1246 #include "confdefs.h"
1247 #include <sys/types.h>
1253 if { (eval echo configure:1254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1255 eval "ac_cv_header_dirent_$ac_safe=yes"
1257 echo "configure: failed program was:" >&5
1258 cat conftest.$ac_ext >&5
1260 eval "ac_cv_header_dirent_$ac_safe=no"
1264 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1265 echo "$ac_t""yes" 1>&6
1266 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1267 cat >> confdefs.h <<EOF
1268 #define $ac_tr_hdr 1
1270 ac_header_dirent=$ac_hdr; break
1272 echo "$ac_t""no" 1>&6
1275 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1276 if test $ac_header_dirent = dirent.h; then
1277 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1278 echo "configure:1279: checking for opendir in -ldir" >&5
1279 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1280 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1283 ac_save_LIBS="$LIBS"
1285 cat > conftest.$ac_ext <<EOF
1286 #line 1287 "configure"
1287 #include "confdefs.h"
1288 /* Override any gcc2 internal prototype to avoid an error. */
1289 /* We use char because int might match the return type of a gcc2
1290 builtin and then its argument prototype would still apply. */
1297 if { (eval echo configure:1298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1299 eval "ac_cv_lib_$ac_lib_var=yes"
1301 echo "configure: failed program was:" >&5
1302 cat conftest.$ac_ext >&5
1304 eval "ac_cv_lib_$ac_lib_var=no"
1307 LIBS="$ac_save_LIBS"
1310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1311 echo "$ac_t""yes" 1>&6
1314 echo "$ac_t""no" 1>&6
1318 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1319 echo "configure:1320: checking for opendir in -lx" >&5
1320 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1324 ac_save_LIBS="$LIBS"
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1329 /* Override any gcc2 internal prototype to avoid an error. */
1330 /* We use char because int might match the return type of a gcc2
1331 builtin and then its argument prototype would still apply. */
1338 if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1340 eval "ac_cv_lib_$ac_lib_var=yes"
1342 echo "configure: failed program was:" >&5
1343 cat conftest.$ac_ext >&5
1345 eval "ac_cv_lib_$ac_lib_var=no"
1348 LIBS="$ac_save_LIBS"
1351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1352 echo "$ac_t""yes" 1>&6
1355 echo "$ac_t""no" 1>&6
1360 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1361 echo "configure:1362: checking how to run the C preprocessor" >&5
1362 # On Suns, sometimes $CPP names a directory.
1363 if test -n "$CPP" && test -d "$CPP"; then
1366 if test -z "$CPP"; then
1367 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 # This must be in double quotes, not single quotes, because CPP may get
1371 # substituted into the Makefile and "${CC-cc}" will confuse make.
1373 # On the NeXT, cc -E runs the code through the compiler's parser,
1374 # not just through cpp.
1375 cat > conftest.$ac_ext <<EOF
1376 #line 1377 "configure"
1377 #include "confdefs.h"
1381 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1382 { (eval echo configure:1383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1383 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1384 if test -z "$ac_err"; then
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1391 CPP="${CC-cc} -E -traditional-cpp"
1392 cat > conftest.$ac_ext <<EOF
1393 #line 1394 "configure"
1394 #include "confdefs.h"
1398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1399 { (eval echo configure:1400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1401 if test -z "$ac_err"; then
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1408 CPP="${CC-cc} -nologo -E"
1409 cat > conftest.$ac_ext <<EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1416 { (eval echo configure:1417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1418 if test -z "$ac_err"; then
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1432 ac_cv_prog_CPP="$CPP"
1434 CPP="$ac_cv_prog_CPP"
1436 ac_cv_prog_CPP="$CPP"
1438 echo "$ac_t""$CPP" 1>&6
1440 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1441 echo "configure:1442: checking for ANSI C header files" >&5
1442 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1443 echo $ac_n "(cached) $ac_c" 1>&6
1445 cat > conftest.$ac_ext <<EOF
1446 #line 1447 "configure"
1447 #include "confdefs.h"
1453 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1454 { (eval echo configure:1455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1455 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1456 if test -z "$ac_err"; then
1458 ac_cv_header_stdc=yes
1461 echo "configure: failed program was:" >&5
1462 cat conftest.$ac_ext >&5
1464 ac_cv_header_stdc=no
1468 if test $ac_cv_header_stdc = yes; then
1469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1476 egrep "memchr" >/dev/null 2>&1; then
1480 ac_cv_header_stdc=no
1486 if test $ac_cv_header_stdc = yes; then
1487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1488 cat > conftest.$ac_ext <<EOF
1489 #line 1490 "configure"
1490 #include "confdefs.h"
1493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1494 egrep "free" >/dev/null 2>&1; then
1498 ac_cv_header_stdc=no
1504 if test $ac_cv_header_stdc = yes; then
1505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1506 if test "$cross_compiling" = yes; then
1509 cat > conftest.$ac_ext <<EOF
1510 #line 1511 "configure"
1511 #include "confdefs.h"
1513 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1514 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1515 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1516 int main () { int i; for (i = 0; i < 256; i++)
1517 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1521 if { (eval echo configure:1522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1525 echo "configure: failed program was:" >&5
1526 cat conftest.$ac_ext >&5
1528 ac_cv_header_stdc=no
1536 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1537 if test $ac_cv_header_stdc = yes; then
1538 cat >> confdefs.h <<\EOF
1539 #define STDC_HEADERS 1
1544 for ac_hdr in unistd.h
1546 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1547 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1548 echo "configure:1549: checking for $ac_hdr" >&5
1549 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1550 echo $ac_n "(cached) $ac_c" 1>&6
1552 cat > conftest.$ac_ext <<EOF
1553 #line 1554 "configure"
1554 #include "confdefs.h"
1557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1558 { (eval echo configure:1559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1560 if test -z "$ac_err"; then
1562 eval "ac_cv_header_$ac_safe=yes"
1565 echo "configure: failed program was:" >&5
1566 cat conftest.$ac_ext >&5
1568 eval "ac_cv_header_$ac_safe=no"
1572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1573 echo "$ac_t""yes" 1>&6
1574 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1575 cat >> confdefs.h <<EOF
1576 #define $ac_tr_hdr 1
1580 echo "$ac_t""no" 1>&6
1585 echo $ac_n "checking for working const""... $ac_c" 1>&6
1586 echo "configure:1587: checking for working const" >&5
1587 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1588 echo $ac_n "(cached) $ac_c" 1>&6
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1596 /* Ultrix mips cc rejects this. */
1597 typedef int charset[2]; const charset x;
1598 /* SunOS 4.1.1 cc rejects this. */
1599 char const *const *ccp;
1601 /* NEC SVR4.0.2 mips cc rejects this. */
1602 struct point {int x, y;};
1603 static struct point const zero = {0,0};
1604 /* AIX XL C 1.02.0.0 rejects this.
1605 It does not let you subtract one const X* pointer from another in an arm
1606 of an if-expression whose if-part is not a constant expression */
1607 const char *g = "string";
1608 ccp = &g + (g ? g-g : 0);
1609 /* HPUX 7.0 cc rejects these. */
1612 ccp = (char const *const *) p;
1613 { /* SCO 3.2v4 cc rejects this. */
1615 char const *s = 0 ? (char *) 0 : (char const *) 0;
1619 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1621 const int *foo = &x[0];
1624 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1625 typedef const int *iptr;
1629 { /* AIX XL C 1.02.0.0 rejects this saying
1630 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1631 struct s { int j; const int *ap[3]; };
1632 struct s *b; b->j = 5;
1634 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1640 if { (eval echo configure:1641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1644 echo "configure: failed program was:" >&5
1645 cat conftest.$ac_ext >&5
1652 echo "$ac_t""$ac_cv_c_const" 1>&6
1653 if test $ac_cv_c_const = no; then
1654 cat >> confdefs.h <<\EOF
1661 for ac_func in mkdir strdup strstr
1663 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1664 echo "configure:1665: checking for $ac_func" >&5
1665 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 cat > conftest.$ac_ext <<EOF
1669 #line 1670 "configure"
1670 #include "confdefs.h"
1671 /* System header to define __stub macros and hopefully few prototypes,
1672 which can conflict with char $ac_func(); below. */
1674 /* Override any gcc2 internal prototype to avoid an error. */
1675 /* We use char because int might match the return type of a gcc2
1676 builtin and then its argument prototype would still apply. */
1681 /* The GNU C library defines this for functions which it implements
1682 to always fail with ENOSYS. Some functions are actually named
1683 something starting with __ and the normal name is an alias. */
1684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1692 if { (eval echo configure:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1694 eval "ac_cv_func_$ac_func=yes"
1696 echo "configure: failed program was:" >&5
1697 cat conftest.$ac_ext >&5
1699 eval "ac_cv_func_$ac_func=no"
1704 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1705 echo "$ac_t""yes" 1>&6
1706 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1707 cat >> confdefs.h <<EOF
1708 #define $ac_tr_func 1
1712 echo "$ac_t""no" 1>&6
1718 cat > confcache <<\EOF
1719 # This file is a shell script that caches the results of configure
1720 # tests run on this system so they can be shared between configure
1721 # scripts and configure runs. It is not useful on other systems.
1722 # If it contains results you don't want to keep, you may remove or edit it.
1724 # By default, configure uses ./config.cache as the cache file,
1725 # creating it if it does not exist already. You can give configure
1726 # the --cache-file=FILE option to use a different cache file; that is
1727 # what configure does when it calls configure scripts in
1728 # subdirectories, so they share the cache.
1729 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1730 # config.status only pays attention to the cache file if you give it the
1731 # --recheck option to rerun configure.
1734 # The following way of writing the cache mishandles newlines in values,
1735 # but we know of no workaround that is simple, portable, and efficient.
1736 # So, don't put newlines in cache variables' values.
1737 # Ultrix sh set writes to stderr and can't be redirected directly,
1738 # and sets the high bit in the cache file unless we assign to the vars.
1740 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1742 # `set' does not quote correctly, so add quotes (double-quote substitution
1743 # turns \\\\ into \\, and sed turns \\ into \).
1745 -e "s/'/'\\\\''/g" \
1746 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1749 # `set' quotes correctly as required by POSIX, so do not add quotes.
1750 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1753 if cmp -s $cache_file confcache; then
1756 if test -w $cache_file; then
1757 echo "updating cache $cache_file"
1758 cat confcache > $cache_file
1760 echo "not updating unwritable cache $cache_file"
1765 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1767 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1768 # Let make expand exec_prefix.
1769 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1771 # Any assignment to VPATH causes Sun make to only execute
1772 # the first set of double-colon rules, so remove it if not needed.
1773 # If there is a colon in the path, we need to keep it.
1774 if test "x$srcdir" = x.; then
1775 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1778 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1780 # Transform confdefs.h into DEFS.
1781 # Protect against shell expansion while executing Makefile rules.
1782 # Protect against Makefile macro expansion.
1783 cat > conftest.defs <<\EOF
1784 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1785 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1790 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1794 # Without the "./", some shells look in PATH for config.status.
1795 : ${CONFIG_STATUS=./config.status}
1797 echo creating $CONFIG_STATUS
1798 rm -f $CONFIG_STATUS
1799 cat > $CONFIG_STATUS <<EOF
1801 # Generated automatically by configure.
1802 # Run this file to recreate the current configuration.
1803 # This directory was configured as follows,
1804 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1806 # $0 $ac_configure_args
1808 # Compiler output produced by configure, useful for debugging
1809 # configure, is in ./config.log if it exists.
1811 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1814 case "\$ac_option" in
1815 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1816 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1817 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1818 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1819 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1821 -help | --help | --hel | --he | --h)
1822 echo "\$ac_cs_usage"; exit 0 ;;
1823 *) echo "\$ac_cs_usage"; exit 1 ;;
1827 ac_given_srcdir=$srcdir
1828 ac_given_INSTALL="$INSTALL"
1830 trap 'rm -fr `echo "src/Makefile Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1832 cat >> $CONFIG_STATUS <<EOF
1834 # Protect against being on the right side of a sed subst in config.status.
1835 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1836 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1840 s%@CFLAGS@%$CFLAGS%g
1841 s%@CPPFLAGS@%$CPPFLAGS%g
1842 s%@CXXFLAGS@%$CXXFLAGS%g
1843 s%@FFLAGS@%$FFLAGS%g
1845 s%@LDFLAGS@%$LDFLAGS%g
1847 s%@exec_prefix@%$exec_prefix%g
1848 s%@prefix@%$prefix%g
1849 s%@program_transform_name@%$program_transform_name%g
1850 s%@bindir@%$bindir%g
1851 s%@sbindir@%$sbindir%g
1852 s%@libexecdir@%$libexecdir%g
1853 s%@datadir@%$datadir%g
1854 s%@sysconfdir@%$sysconfdir%g
1855 s%@sharedstatedir@%$sharedstatedir%g
1856 s%@localstatedir@%$localstatedir%g
1857 s%@libdir@%$libdir%g
1858 s%@includedir@%$includedir%g
1859 s%@oldincludedir@%$oldincludedir%g
1860 s%@infodir@%$infodir%g
1861 s%@mandir@%$mandir%g
1862 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1863 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1864 s%@INSTALL_DATA@%$INSTALL_DATA%g
1865 s%@PACKAGE@%$PACKAGE%g
1866 s%@VERSION@%$VERSION%g
1867 s%@ACLOCAL@%$ACLOCAL%g
1868 s%@AUTOCONF@%$AUTOCONF%g
1869 s%@AUTOMAKE@%$AUTOMAKE%g
1870 s%@AUTOHEADER@%$AUTOHEADER%g
1871 s%@MAKEINFO@%$MAKEINFO%g
1872 s%@SET_MAKE@%$SET_MAKE%g
1874 s%@target@%$target%g
1875 s%@target_alias@%$target_alias%g
1876 s%@target_cpu@%$target_cpu%g
1877 s%@target_vendor@%$target_vendor%g
1878 s%@target_os@%$target_os%g
1879 s%@SDL_CONFIG@%$SDL_CONFIG%g
1880 s%@SDL_CFLAGS@%$SDL_CFLAGS%g
1881 s%@SDL_LIBS@%$SDL_LIBS%g
1887 cat >> $CONFIG_STATUS <<\EOF
1889 # Split the substitutions into bite-sized pieces for seds with
1890 # small command number limits, like on Digital OSF/1 and HP-UX.
1891 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1892 ac_file=1 # Number of current file.
1893 ac_beg=1 # First line for current file.
1894 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1897 while $ac_more_lines; do
1898 if test $ac_beg -gt 1; then
1899 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1901 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1903 if test ! -s conftest.s$ac_file; then
1905 rm -f conftest.s$ac_file
1907 if test -z "$ac_sed_cmds"; then
1908 ac_sed_cmds="sed -f conftest.s$ac_file"
1910 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1912 ac_file=`expr $ac_file + 1`
1914 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1917 if test -z "$ac_sed_cmds"; then
1922 cat >> $CONFIG_STATUS <<EOF
1924 CONFIG_FILES=\${CONFIG_FILES-"src/Makefile Makefile"}
1926 cat >> $CONFIG_STATUS <<\EOF
1927 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1928 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1930 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1931 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1932 *) ac_file_in="${ac_file}.in" ;;
1935 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1937 # Remove last slash and all that follows it. Not all systems have dirname.
1938 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1939 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1940 # The file is in a subdirectory.
1941 test ! -d "$ac_dir" && mkdir "$ac_dir"
1942 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1943 # A "../" for each directory in $ac_dir_suffix.
1944 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1946 ac_dir_suffix= ac_dots=
1949 case "$ac_given_srcdir" in
1951 if test -z "$ac_dots"; then top_srcdir=.
1952 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1953 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1955 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1956 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1959 case "$ac_given_INSTALL" in
1960 [/$]*) INSTALL="$ac_given_INSTALL" ;;
1961 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1964 echo creating "$ac_file"
1966 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1968 *Makefile*) ac_comsub="1i\\
1969 # $configure_input" ;;
1973 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1975 s%@configure_input@%$configure_input%g
1976 s%@srcdir@%$srcdir%g
1977 s%@top_srcdir@%$top_srcdir%g
1978 s%@INSTALL@%$INSTALL%g
1979 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1984 cat >> $CONFIG_STATUS <<EOF
1987 cat >> $CONFIG_STATUS <<\EOF
1991 chmod +x $CONFIG_STATUS
1992 rm -fr confdefs* $ac_clean_files
1993 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1