|
|
1.1 root 1: #! /bin/sh
2:
3: # Guess values for system-dependent variables and create Makefiles.
4: # Generated automatically using autoconf version 2.13
5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6: #
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9:
10: # Defaults:
11: ac_help=
12: ac_default_prefix=/usr/local
13: # Any additions from configure.in:
14: ac_help="$ac_help
15: Create svgalib version"
16: ac_help="$ac_help
17: Create allegro version"
18: ac_help="$ac_help
19: Create tcltk version"
20: ac_help="$ac_help
21: --with-warnings Turn on gcc warnings"
22: ac_help="$ac_help
23: --with-gcc[=VER] GCC optimisation setting"
24: ac_help="$ac_help
25: --with-debug Turn debugging options on"
26:
27: # Initialize some variables set by options.
28: # The variables have the same names as the options, with
29: # dashes changed to underlines.
30: build=NONE
31: cache_file=./config.cache
32: exec_prefix=NONE
33: host=NONE
34: no_create=
35: nonopt=NONE
36: no_recursion=
37: prefix=NONE
38: program_prefix=NONE
39: program_suffix=NONE
40: program_transform_name=s,x,x,
41: silent=
42: site=
43: srcdir=
44: target=NONE
45: verbose=
46: x_includes=NONE
47: x_libraries=NONE
48: bindir='${exec_prefix}/bin'
49: sbindir='${exec_prefix}/sbin'
50: libexecdir='${exec_prefix}/libexec'
51: datadir='${prefix}/share'
52: sysconfdir='${prefix}/etc'
53: sharedstatedir='${prefix}/com'
54: localstatedir='${prefix}/var'
55: libdir='${exec_prefix}/lib'
56: includedir='${prefix}/include'
57: oldincludedir='/usr/include'
58: infodir='${prefix}/info'
59: mandir='${prefix}/man'
60:
61: # Initialize some other variables.
62: subdirs=
63: MFLAGS= MAKEFLAGS=
64: SHELL=${CONFIG_SHELL-/bin/sh}
65: # Maximum number of lines to put in a shell here document.
66: ac_max_here_lines=12
67:
68: ac_prev=
69: for ac_option
70: do
71:
72: # If the previous option needs an argument, assign it.
73: if test -n "$ac_prev"; then
74: eval "$ac_prev=\$ac_option"
75: ac_prev=
76: continue
77: fi
78:
79: case "$ac_option" in
80: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
81: *) ac_optarg= ;;
82: esac
83:
84: # Accept the important Cygnus configure options, so we can diagnose typos.
85:
86: case "$ac_option" in
87:
88: -bindir | --bindir | --bindi | --bind | --bin | --bi)
89: ac_prev=bindir ;;
90: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
91: bindir="$ac_optarg" ;;
92:
93: -build | --build | --buil | --bui | --bu)
94: ac_prev=build ;;
95: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
96: build="$ac_optarg" ;;
97:
98: -cache-file | --cache-file | --cache-fil | --cache-fi \
99: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
100: ac_prev=cache_file ;;
101: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
102: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
103: cache_file="$ac_optarg" ;;
104:
105: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
106: ac_prev=datadir ;;
107: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
108: | --da=*)
109: datadir="$ac_optarg" ;;
110:
111: -disable-* | --disable-*)
112: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
113: # Reject names that are not valid shell variable names.
114: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
115: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
116: fi
117: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
118: eval "enable_${ac_feature}=no" ;;
119:
120: -enable-* | --enable-*)
121: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
122: # Reject names that are not valid shell variable names.
123: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
124: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125: fi
126: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127: case "$ac_option" in
128: *=*) ;;
129: *) ac_optarg=yes ;;
130: esac
131: eval "enable_${ac_feature}='$ac_optarg'" ;;
132:
133: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
134: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
135: | --exec | --exe | --ex)
136: ac_prev=exec_prefix ;;
137: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
138: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
139: | --exec=* | --exe=* | --ex=*)
140: exec_prefix="$ac_optarg" ;;
141:
142: -gas | --gas | --ga | --g)
143: # Obsolete; use --with-gas.
144: with_gas=yes ;;
145:
146: -help | --help | --hel | --he)
147: # Omit some internal or obsolete options to make the list less imposing.
148: # This message is too long to be a string in the A/UX 3.1 sh.
149: cat << EOF
150: Usage: configure [options] [host]
151: Options: [defaults in brackets after descriptions]
152: Configuration:
153: --cache-file=FILE cache test results in FILE
154: --help print this message
155: --no-create do not create output files
156: --quiet, --silent do not print \`checking...' messages
157: --version print the version of autoconf that created configure
158: Directory and file names:
159: --prefix=PREFIX install architecture-independent files in PREFIX
160: [$ac_default_prefix]
161: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
162: [same as prefix]
163: --bindir=DIR user executables in DIR [EPREFIX/bin]
164: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
165: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
166: --datadir=DIR read-only architecture-independent data in DIR
167: [PREFIX/share]
168: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
169: --sharedstatedir=DIR modifiable architecture-independent data in DIR
170: [PREFIX/com]
171: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
172: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
173: --includedir=DIR C header files in DIR [PREFIX/include]
174: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
175: --infodir=DIR info documentation in DIR [PREFIX/info]
176: --mandir=DIR man documentation in DIR [PREFIX/man]
177: --srcdir=DIR find the sources in DIR [configure dir or ..]
178: --program-prefix=PREFIX prepend PREFIX to installed program names
179: --program-suffix=SUFFIX append SUFFIX to installed program names
180: --program-transform-name=PROGRAM
181: run sed PROGRAM on installed program names
182: EOF
183: cat << EOF
184: Host type:
185: --build=BUILD configure for building on BUILD [BUILD=HOST]
186: --host=HOST configure for HOST [guessed]
187: --target=TARGET configure for TARGET [TARGET=HOST]
188: Features and packages:
189: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
190: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
191: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
192: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
193: --x-includes=DIR X include files are in DIR
194: --x-libraries=DIR X library files are in DIR
195: EOF
196: if test -n "$ac_help"; then
197: echo "--enable and --with options recognized:$ac_help"
198: fi
199: exit 0 ;;
200:
201: -host | --host | --hos | --ho)
202: ac_prev=host ;;
203: -host=* | --host=* | --hos=* | --ho=*)
204: host="$ac_optarg" ;;
205:
206: -includedir | --includedir | --includedi | --included | --include \
207: | --includ | --inclu | --incl | --inc)
208: ac_prev=includedir ;;
209: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
210: | --includ=* | --inclu=* | --incl=* | --inc=*)
211: includedir="$ac_optarg" ;;
212:
213: -infodir | --infodir | --infodi | --infod | --info | --inf)
214: ac_prev=infodir ;;
215: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
216: infodir="$ac_optarg" ;;
217:
218: -libdir | --libdir | --libdi | --libd)
219: ac_prev=libdir ;;
220: -libdir=* | --libdir=* | --libdi=* | --libd=*)
221: libdir="$ac_optarg" ;;
222:
223: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
224: | --libexe | --libex | --libe)
225: ac_prev=libexecdir ;;
226: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
227: | --libexe=* | --libex=* | --libe=*)
228: libexecdir="$ac_optarg" ;;
229:
230: -localstatedir | --localstatedir | --localstatedi | --localstated \
231: | --localstate | --localstat | --localsta | --localst \
232: | --locals | --local | --loca | --loc | --lo)
233: ac_prev=localstatedir ;;
234: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
235: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
236: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
237: localstatedir="$ac_optarg" ;;
238:
239: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
240: ac_prev=mandir ;;
241: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
242: mandir="$ac_optarg" ;;
243:
244: -nfp | --nfp | --nf)
245: # Obsolete; use --without-fp.
246: with_fp=no ;;
247:
248: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
249: | --no-cr | --no-c)
250: no_create=yes ;;
251:
252: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
253: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
254: no_recursion=yes ;;
255:
256: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
257: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
258: | --oldin | --oldi | --old | --ol | --o)
259: ac_prev=oldincludedir ;;
260: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
261: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
262: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
263: oldincludedir="$ac_optarg" ;;
264:
265: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
266: ac_prev=prefix ;;
267: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
268: prefix="$ac_optarg" ;;
269:
270: -program-prefix | --program-prefix | --program-prefi | --program-pref \
271: | --program-pre | --program-pr | --program-p)
272: ac_prev=program_prefix ;;
273: -program-prefix=* | --program-prefix=* | --program-prefi=* \
274: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
275: program_prefix="$ac_optarg" ;;
276:
277: -program-suffix | --program-suffix | --program-suffi | --program-suff \
278: | --program-suf | --program-su | --program-s)
279: ac_prev=program_suffix ;;
280: -program-suffix=* | --program-suffix=* | --program-suffi=* \
281: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
282: program_suffix="$ac_optarg" ;;
283:
284: -program-transform-name | --program-transform-name \
285: | --program-transform-nam | --program-transform-na \
286: | --program-transform-n | --program-transform- \
287: | --program-transform | --program-transfor \
288: | --program-transfo | --program-transf \
289: | --program-trans | --program-tran \
290: | --progr-tra | --program-tr | --program-t)
291: ac_prev=program_transform_name ;;
292: -program-transform-name=* | --program-transform-name=* \
293: | --program-transform-nam=* | --program-transform-na=* \
294: | --program-transform-n=* | --program-transform-=* \
295: | --program-transform=* | --program-transfor=* \
296: | --program-transfo=* | --program-transf=* \
297: | --program-trans=* | --program-tran=* \
298: | --progr-tra=* | --program-tr=* | --program-t=*)
299: program_transform_name="$ac_optarg" ;;
300:
301: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
302: | -silent | --silent | --silen | --sile | --sil)
303: silent=yes ;;
304:
305: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
306: ac_prev=sbindir ;;
307: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
308: | --sbi=* | --sb=*)
309: sbindir="$ac_optarg" ;;
310:
311: -sharedstatedir | --sharedstatedir | --sharedstatedi \
312: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
313: | --sharedst | --shareds | --shared | --share | --shar \
314: | --sha | --sh)
315: ac_prev=sharedstatedir ;;
316: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
317: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
318: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
319: | --sha=* | --sh=*)
320: sharedstatedir="$ac_optarg" ;;
321:
322: -site | --site | --sit)
323: ac_prev=site ;;
324: -site=* | --site=* | --sit=*)
325: site="$ac_optarg" ;;
326:
327: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
328: ac_prev=srcdir ;;
329: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
330: srcdir="$ac_optarg" ;;
331:
332: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
333: | --syscon | --sysco | --sysc | --sys | --sy)
334: ac_prev=sysconfdir ;;
335: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
336: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
337: sysconfdir="$ac_optarg" ;;
338:
339: -target | --target | --targe | --targ | --tar | --ta | --t)
340: ac_prev=target ;;
341: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
342: target="$ac_optarg" ;;
343:
344: -v | -verbose | --verbose | --verbos | --verbo | --verb)
345: verbose=yes ;;
346:
347: -version | --version | --versio | --versi | --vers)
348: echo "configure generated by autoconf version 2.13"
349: exit 0 ;;
350:
351: -with-* | --with-*)
352: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
353: # Reject names that are not valid shell variable names.
354: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
355: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
356: fi
357: ac_package=`echo $ac_package| sed 's/-/_/g'`
358: case "$ac_option" in
359: *=*) ;;
360: *) ac_optarg=yes ;;
361: esac
362: eval "with_${ac_package}='$ac_optarg'" ;;
363:
364: -without-* | --without-*)
365: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
366: # Reject names that are not valid shell variable names.
367: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
368: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369: fi
370: ac_package=`echo $ac_package| sed 's/-/_/g'`
371: eval "with_${ac_package}=no" ;;
372:
373: --x)
374: # Obsolete; use --with-x.
375: with_x=yes ;;
376:
377: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
378: | --x-incl | --x-inc | --x-in | --x-i)
379: ac_prev=x_includes ;;
380: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
381: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
382: x_includes="$ac_optarg" ;;
383:
384: -x-libraries | --x-libraries | --x-librarie | --x-librari \
385: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
386: ac_prev=x_libraries ;;
387: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
388: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
389: x_libraries="$ac_optarg" ;;
390:
391: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
392: ;;
393:
394: *)
395: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
396: echo "configure: warning: $ac_option: invalid host type" 1>&2
397: fi
398: if test "x$nonopt" != xNONE; then
399: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
400: fi
401: nonopt="$ac_option"
402: ;;
403:
404: esac
405: done
406:
407: if test -n "$ac_prev"; then
408: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409: fi
410:
411: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
412:
413: # File descriptor usage:
414: # 0 standard input
415: # 1 file creation
416: # 2 errors and warnings
417: # 3 some systems may open it to /dev/tty
418: # 4 used on the Kubota Titan
419: # 6 checking for... messages and results
420: # 5 compiler messages saved in config.log
421: if test "$silent" = yes; then
422: exec 6>/dev/null
423: else
424: exec 6>&1
425: fi
426: exec 5>./config.log
427:
428: echo "\
429: This file contains any messages produced by compilers while
430: running configure, to aid debugging if configure makes a mistake.
431: " 1>&5
432:
433: # Strip out --no-create and --no-recursion so they do not pile up.
434: # Also quote any args containing shell metacharacters.
435: ac_configure_args=
436: for ac_arg
437: do
438: case "$ac_arg" in
439: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
440: | --no-cr | --no-c) ;;
441: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
442: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
443: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
444: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
445: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
446: esac
447: done
448:
449: # NLS nuisances.
450: # Only set these to C if already set. These must not be set unconditionally
451: # because not all systems understand e.g. LANG=C (notably SCO).
452: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
453: # Non-C LC_CTYPE values break the ctype check.
454: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
455: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
456: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
457: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
458:
459: # confdefs.h avoids OS command line length limits that DEFS can exceed.
460: rm -rf conftest* confdefs.h
461: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462: echo > confdefs.h
463:
464: # A filename unique to this package, relative to the directory that
465: # configure is in, which we can look for to find out if srcdir is correct.
466: ac_unique_file=cpu68k/def68k.c
467:
468: # Find the source files, if location was not specified.
469: if test -z "$srcdir"; then
470: ac_srcdir_defaulted=yes
471: # Try the directory containing this script, then its parent.
472: ac_prog=$0
473: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
474: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
475: srcdir=$ac_confdir
476: if test ! -r $srcdir/$ac_unique_file; then
477: srcdir=..
478: fi
479: else
480: ac_srcdir_defaulted=no
481: fi
482: if test ! -r $srcdir/$ac_unique_file; then
483: if test "$ac_srcdir_defaulted" = yes; then
484: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
485: else
486: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487: fi
488: fi
489: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
490:
491: # Prefer explicitly selected file to automatically selected ones.
492: if test -z "$CONFIG_SITE"; then
493: if test "x$prefix" != xNONE; then
494: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495: else
496: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497: fi
498: fi
499: for ac_site_file in $CONFIG_SITE; do
500: if test -r "$ac_site_file"; then
501: echo "loading site script $ac_site_file"
502: . "$ac_site_file"
503: fi
504: done
505:
506: if test -r "$cache_file"; then
507: echo "loading cache $cache_file"
508: . $cache_file
509: else
510: echo "creating cache $cache_file"
511: > $cache_file
512: fi
513:
514: ac_ext=c
515: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
516: ac_cpp='$CPP $CPPFLAGS'
517: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
518: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
519: cross_compiling=$ac_cv_prog_cc_cross
520:
521: ac_exeext=
522: ac_objext=o
523: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
524: # Stardent Vistra SVR4 grep lacks -e, says [email protected].
525: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
526: ac_n= ac_c='
527: ' ac_t=' '
528: else
529: ac_n=-n ac_c= ac_t=
530: fi
531: else
532: ac_n= ac_c='\c' ac_t=
533: fi
534:
535:
536: ac_aux_dir=
537: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
538: if test -f $ac_dir/install-sh; then
539: ac_aux_dir=$ac_dir
540: ac_install_sh="$ac_aux_dir/install-sh -c"
541: break
542: elif test -f $ac_dir/install.sh; then
543: ac_aux_dir=$ac_dir
544: ac_install_sh="$ac_aux_dir/install.sh -c"
545: break
546: fi
547: done
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; }
550: fi
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.
554:
555:
556: # Do some error checking and defaulting for the host and target type.
557: # The inputs are:
558: # configure --host=HOST --target=TARGET --build=BUILD NONOPT
559: #
560: # The rules are:
561: # 1. You are not allowed to specify --host, --target, and nonopt at the
562: # same time.
563: # 2. Host defaults to nonopt.
564: # 3. If nonopt is not specified, then host defaults to the current host,
565: # as determined by config.guess.
566: # 4. Target and build default to nonopt.
567: # 5. If nonopt is not specified, then target and build default to host.
568:
569: # The aliases save the names the user supplied, while $host etc.
570: # will get canonicalized.
571: case $host---$target---$nonopt in
572: NONE---*---* | *---NONE---* | *---*---NONE) ;;
573: *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
574: esac
575:
576:
577: # Make sure we can run config.sub.
578: if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
579: else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
580: fi
581:
582: echo $ac_n "checking host system type""... $ac_c" 1>&6
583: echo "configure:584: checking host system type" >&5
584:
585: host_alias=$host
586: case "$host_alias" in
587: NONE)
588: case $nonopt in
589: NONE)
590: if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
591: else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
592: fi ;;
593: *) host_alias=$nonopt ;;
594: esac ;;
595: esac
596:
597: host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
598: host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
599: host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
600: host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
601: echo "$ac_t""$host" 1>&6
602:
603: echo $ac_n "checking target system type""... $ac_c" 1>&6
604: echo "configure:605: checking target system type" >&5
605:
606: target_alias=$target
607: case "$target_alias" in
608: NONE)
609: case $nonopt in
610: NONE) target_alias=$host_alias ;;
611: *) target_alias=$nonopt ;;
612: esac ;;
613: esac
614:
615: target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
616: target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
617: target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
618: target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
619: echo "$ac_t""$target" 1>&6
620:
621: echo $ac_n "checking build system type""... $ac_c" 1>&6
622: echo "configure:623: checking build system type" >&5
623:
624: build_alias=$build
625: case "$build_alias" in
626: NONE)
627: case $nonopt in
628: NONE) build_alias=$host_alias ;;
629: *) build_alias=$nonopt ;;
630: esac ;;
631: esac
632:
633: build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
634: build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635: build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636: build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637: echo "$ac_t""$build" 1>&6
638:
639: test "$host_alias" != "$target_alias" &&
640: test "$program_prefix$program_suffix$program_transform_name" = \
641: NONENONEs,x,x, &&
642: program_prefix=${target_alias}-
643:
644: # Find a good install program. We prefer a C program (faster),
645: # so one script is as good as another. But avoid the broken or
646: # incompatible versions:
647: # SysV /etc/install, /usr/sbin/install
648: # SunOS /usr/etc/install
649: # IRIX /sbin/install
650: # AIX /bin/install
651: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
652: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
653: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
654: # ./install, which can be erroneously created by make from ./install.sh.
655: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
656: echo "configure:657: checking for a BSD compatible install" >&5
657: if test -z "$INSTALL"; then
658: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
659: echo $ac_n "(cached) $ac_c" 1>&6
660: else
661: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
662: for ac_dir in $PATH; do
663: # Account for people who put trailing slashes in PATH elements.
664: case "$ac_dir/" in
665: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
666: *)
667: # OSF1 and SCO ODT 3.0 have their own names for install.
668: # Don't use installbsd from OSF since it installs stuff as root
669: # by default.
670: for ac_prog in ginstall scoinst install; do
671: if test -f $ac_dir/$ac_prog; then
672: if test $ac_prog = install &&
673: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
674: # AIX install. It has an incompatible calling convention.
675: :
676: else
677: ac_cv_path_install="$ac_dir/$ac_prog -c"
678: break 2
679: fi
680: fi
681: done
682: ;;
683: esac
684: done
685: IFS="$ac_save_IFS"
686:
687: fi
688: if test "${ac_cv_path_install+set}" = set; then
689: INSTALL="$ac_cv_path_install"
690: else
691: # As a last resort, use the slow shell script. We don't cache a
692: # path for INSTALL within a source directory, because that will
693: # break other packages using the cache if that directory is
694: # removed, or if the path is relative.
695: INSTALL="$ac_install_sh"
696: fi
697: fi
698: echo "$ac_t""$INSTALL" 1>&6
699:
700: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
701: # It thinks the first close brace ends the variable substitution.
702: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
703:
704: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
705:
706: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
707:
708: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
709: echo "configure:710: checking whether build environment is sane" >&5
710: # Just in case
711: sleep 1
712: echo timestamp > conftestfile
713: # Do `set' in a subshell so we don't clobber the current shell's
714: # arguments. Must try -L first in case configure is actually a
715: # symlink; some systems play weird games with the mod time of symlinks
716: # (eg FreeBSD returns the mod time of the symlink's containing
717: # directory).
718: if (
719: set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
720: if test "$*" = "X"; then
721: # -L didn't work.
722: set X `ls -t $srcdir/configure conftestfile`
723: fi
724: if test "$*" != "X $srcdir/configure conftestfile" \
725: && test "$*" != "X conftestfile $srcdir/configure"; then
726:
727: # If neither matched, then we have a broken ls. This can happen
728: # if, for instance, CONFIG_SHELL is bash and it inherits a
729: # broken ls alias from the environment. This has actually
730: # happened. Such a system could not be considered "sane".
731: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
732: alias in your environment" 1>&2; exit 1; }
733: fi
734:
735: test "$2" = conftestfile
736: )
737: then
738: # Ok.
739: :
740: else
741: { echo "configure: error: newly created file is older than distributed files!
742: Check your system clock" 1>&2; exit 1; }
743: fi
744: rm -f conftest*
745: echo "$ac_t""yes" 1>&6
746: if test "$program_transform_name" = s,x,x,; then
747: program_transform_name=
748: else
749: # Double any \ or $. echo might interpret backslashes.
750: cat <<\EOF_SED > conftestsed
751: s,\\,\\\\,g; s,\$,$$,g
752: EOF_SED
753: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
754: rm -f conftestsed
755: fi
756: test "$program_prefix" != NONE &&
757: program_transform_name="s,^,${program_prefix},; $program_transform_name"
758: # Use a double $ so make ignores it.
759: test "$program_suffix" != NONE &&
760: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
761:
762: # sed with no file args requires a program.
763: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
764:
765: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
766: echo "configure:767: checking whether ${MAKE-make} sets \${MAKE}" >&5
767: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
768: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
769: echo $ac_n "(cached) $ac_c" 1>&6
770: else
771: cat > conftestmake <<\EOF
772: all:
773: @echo 'ac_maketemp="${MAKE}"'
774: EOF
775: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
776: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
777: if test -n "$ac_maketemp"; then
778: eval ac_cv_prog_make_${ac_make}_set=yes
779: else
780: eval ac_cv_prog_make_${ac_make}_set=no
781: fi
782: rm -f conftestmake
783: fi
784: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
785: echo "$ac_t""yes" 1>&6
786: SET_MAKE=
787: else
788: echo "$ac_t""no" 1>&6
789: SET_MAKE="MAKE=${MAKE-make}"
790: fi
791:
792:
793: PACKAGE=generator
794:
795: VERSION=0.32
796:
797: if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
798: { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
799: fi
800: cat >> confdefs.h <<EOF
801: #define PACKAGE "$PACKAGE"
802: EOF
803:
804: cat >> confdefs.h <<EOF
805: #define VERSION "$VERSION"
806: EOF
807:
808:
809:
810: missing_dir=`cd $ac_aux_dir && pwd`
811: echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
812: echo "configure:813: checking for working aclocal" >&5
813: # Run test in a subshell; some versions of sh will print an error if
814: # an executable is not found, even if stderr is redirected.
815: # Redirect stdin to placate older versions of autoconf. Sigh.
816: if (aclocal --version) < /dev/null > /dev/null 2>&1; then
817: ACLOCAL=aclocal
818: echo "$ac_t""found" 1>&6
819: else
820: ACLOCAL="$missing_dir/missing aclocal"
821: echo "$ac_t""missing" 1>&6
822: fi
823:
824: echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
825: echo "configure:826: checking for working autoconf" >&5
826: # Run test in a subshell; some versions of sh will print an error if
827: # an executable is not found, even if stderr is redirected.
828: # Redirect stdin to placate older versions of autoconf. Sigh.
829: if (autoconf --version) < /dev/null > /dev/null 2>&1; then
830: AUTOCONF=autoconf
831: echo "$ac_t""found" 1>&6
832: else
833: AUTOCONF="$missing_dir/missing autoconf"
834: echo "$ac_t""missing" 1>&6
835: fi
836:
837: echo $ac_n "checking for working automake""... $ac_c" 1>&6
838: echo "configure:839: checking for working automake" >&5
839: # Run test in a subshell; some versions of sh will print an error if
840: # an executable is not found, even if stderr is redirected.
841: # Redirect stdin to placate older versions of autoconf. Sigh.
842: if (automake --version) < /dev/null > /dev/null 2>&1; then
843: AUTOMAKE=automake
844: echo "$ac_t""found" 1>&6
845: else
846: AUTOMAKE="$missing_dir/missing automake"
847: echo "$ac_t""missing" 1>&6
848: fi
849:
850: echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
851: echo "configure:852: checking for working autoheader" >&5
852: # Run test in a subshell; some versions of sh will print an error if
853: # an executable is not found, even if stderr is redirected.
854: # Redirect stdin to placate older versions of autoconf. Sigh.
855: if (autoheader --version) < /dev/null > /dev/null 2>&1; then
856: AUTOHEADER=autoheader
857: echo "$ac_t""found" 1>&6
858: else
859: AUTOHEADER="$missing_dir/missing autoheader"
860: echo "$ac_t""missing" 1>&6
861: fi
862:
863: echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
864: echo "configure:865: checking for working makeinfo" >&5
865: # Run test in a subshell; some versions of sh will print an error if
866: # an executable is not found, even if stderr is redirected.
867: # Redirect stdin to placate older versions of autoconf. Sigh.
868: if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
869: MAKEINFO=makeinfo
870: echo "$ac_t""found" 1>&6
871: else
872: MAKEINFO="$missing_dir/missing makeinfo"
873: echo "$ac_t""missing" 1>&6
874: fi
875:
876:
877:
878:
879:
880: optimum=yes
881:
882:
883: # Check whether --enable-svgalib or --disable-svgalib was given.
884: if test "${enable_svgalib+set}" = set; then
885: enableval="$enable_svgalib"
886: PROGRAM="generator-svgalib"
887: fi
888:
889: # Check whether --enable-allegro or --disable-allegro was given.
890: if test "${enable_allegro+set}" = set; then
891: enableval="$enable_allegro"
892: PROGRAM="generator-allegro"
893: fi
894:
895: # Check whether --enable-tcltk or --disable-tcltk was given.
896: if test "${enable_tcltk+set}" = set; then
897: enableval="$enable_tcltk"
898: PROGRAM="generator-tcltk"
899: fi
900:
901: # AC_ARG_ENABLE(gtk, [Create gtk version], PROGRAM="generator-gtk")
902: if [ "x$PROGRAM" = "x" ]; then
903: { echo "configure: error: You must select a user interface type: svgalib allegro tcltk" 1>&2; exit 1; }
904: fi
905:
906: if [ "x$program" = "xgenerator-allegro" ]; then
907: cat >> confdefs.h <<\EOF
908: #define ALLEGRO 1
909: EOF
910:
911: fi
912: cat >> confdefs.h <<\EOF
913: #define RAZE 1
914: EOF
915:
916:
917:
918: case $target_cpu in
919: i?86) echo "$ac_t""Turning on x86 processor optimisations" 1>&6
920: cat >> confdefs.h <<\EOF
921: #define PROCESSOR_INTEL 1
922: EOF
923:
924: ALIGNLONGS=1
925: ;;
926: sparc) echo "$ac_t""Turning on sparc processor optimisations" 1>&6
927: cat >> confdefs.h <<\EOF
928: #define PROCESSOR_SPARC 1
929: EOF
930:
931: ALIGNLONGS=0
932: ;;
933: arm) echo "$ac_t""Turning on arm processor optimisations" 1>&6
934: cat >> confdefs.h <<\EOF
935: #define PROCESSOR_ARM 1
936: EOF
937:
938: ALIGNLONGS=1
939: ;;
940: *) echo "configure: warning: Processor type not known - processor optimisations off!" 1>&2
941: ALIGNLONGS=1
942: optimum=no
943: ;;
944: esac
945:
946: cat >> confdefs.h <<\EOF
947: #define ALIGNLONGS ALIGNLONGS
948: EOF
949:
950:
951:
952: # default to gcc version 2
953: GCCVER=2
954: WARN=no
955: DEBUG=no
956: # Check whether --with-warnings or --without-warnings was given.
957: if test "${with_warnings+set}" = set; then
958: withval="$with_warnings"
959: WARN=$withval
960: else
961: WARN=no
962: fi
963:
964: # Check whether --with-gcc or --without-gcc was given.
965: if test "${with_gcc+set}" = set; then
966: withval="$with_gcc"
967: GCCVER=$withval
968: fi
969:
970: # Check whether --with-debug or --without-debug was given.
971: if test "${with_debug+set}" = set; then
972: withval="$with_debug"
973: DEBUG=$withval
974: else
975: DEBUG=no
976: fi
977:
978: if [ "x$WARN" != "xno" ]; then
979: CFLAGS="$CFLAGS -W -Wall -Wstrict-prototypes -Wno-format -Wno-unused"
980: fi
981: if [ "x$DEBUG" != "xno" ]; then
982: echo "$ac_t""Turning on debug flags" 1>&6
983: CFLAGS="$CFLAGS -g -O"
984: optimum=no
985: else
986: if [ "x$GCCVER" != "xno" ]; then
987: echo "$ac_t""Turning on gcc optimisations" 1>&6
988: CFLAGS="$CFLAGS -O3 -ffast-math -fomit-frame-pointer"
989: if [ "x$GCCVER" = "x3" ]; then
990: echo "$ac_t""Turning on gcc 3 optimisations" 1>&6
991: CFLAGS="$CFLAGS -minline-all-stringops -fno-math-errno"
992: fi
993: case $target_cpu in
994: i?86) echo "$ac_t""Turning on pentium optimisations" 1>&6
995: CFLAGS="$CFLAGS -march=pentium -malign-double -malign-loops=5"
996: CFLAGS="$CFLAGS -malign-jumps=5 -malign-functions=5"
997: ;;
998: esac
999: else
1000: echo "configure: warning: You did not opt for gcc optimisations!" 1>&2
1001: optimum=no
1002: fi
1003: fi
1004:
1005:
1006: # Extract the first word of "gcc", so it can be a program name with args.
1007: set dummy gcc; ac_word=$2
1008: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1009: echo "configure:1010: checking for $ac_word" >&5
1010: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1011: echo $ac_n "(cached) $ac_c" 1>&6
1012: else
1013: if test -n "$CC"; then
1014: ac_cv_prog_CC="$CC" # Let the user override the test.
1015: else
1016: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1017: ac_dummy="$PATH"
1018: for ac_dir in $ac_dummy; do
1019: test -z "$ac_dir" && ac_dir=.
1020: if test -f $ac_dir/$ac_word; then
1021: ac_cv_prog_CC="gcc"
1022: break
1023: fi
1024: done
1025: IFS="$ac_save_ifs"
1026: fi
1027: fi
1028: CC="$ac_cv_prog_CC"
1029: if test -n "$CC"; then
1030: echo "$ac_t""$CC" 1>&6
1031: else
1032: echo "$ac_t""no" 1>&6
1033: fi
1034:
1035: if test -z "$CC"; then
1036: # Extract the first word of "cc", so it can be a program name with args.
1037: set dummy cc; ac_word=$2
1038: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1039: echo "configure:1040: checking for $ac_word" >&5
1040: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1041: echo $ac_n "(cached) $ac_c" 1>&6
1042: else
1043: if test -n "$CC"; then
1044: ac_cv_prog_CC="$CC" # Let the user override the test.
1045: else
1046: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1047: ac_prog_rejected=no
1048: ac_dummy="$PATH"
1049: for ac_dir in $ac_dummy; do
1050: test -z "$ac_dir" && ac_dir=.
1051: if test -f $ac_dir/$ac_word; then
1052: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1053: ac_prog_rejected=yes
1054: continue
1055: fi
1056: ac_cv_prog_CC="cc"
1057: break
1058: fi
1059: done
1060: IFS="$ac_save_ifs"
1061: if test $ac_prog_rejected = yes; then
1062: # We found a bogon in the path, so make sure we never use it.
1063: set dummy $ac_cv_prog_CC
1064: shift
1065: if test $# -gt 0; then
1066: # We chose a different compiler from the bogus one.
1067: # However, it has the same basename, so the bogon will be chosen
1068: # first if we set CC to just the basename; use the full file name.
1069: shift
1070: set dummy "$ac_dir/$ac_word" "$@"
1071: shift
1072: ac_cv_prog_CC="$@"
1073: fi
1074: fi
1075: fi
1076: fi
1077: CC="$ac_cv_prog_CC"
1078: if test -n "$CC"; then
1079: echo "$ac_t""$CC" 1>&6
1080: else
1081: echo "$ac_t""no" 1>&6
1082: fi
1083:
1084: if test -z "$CC"; then
1085: case "`uname -s`" in
1086: *win32* | *WIN32*)
1087: # Extract the first word of "cl", so it can be a program name with args.
1088: set dummy cl; ac_word=$2
1089: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1090: echo "configure:1091: checking for $ac_word" >&5
1091: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1092: echo $ac_n "(cached) $ac_c" 1>&6
1093: else
1094: if test -n "$CC"; then
1095: ac_cv_prog_CC="$CC" # Let the user override the test.
1096: else
1097: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1098: ac_dummy="$PATH"
1099: for ac_dir in $ac_dummy; do
1100: test -z "$ac_dir" && ac_dir=.
1101: if test -f $ac_dir/$ac_word; then
1102: ac_cv_prog_CC="cl"
1103: break
1104: fi
1105: done
1106: IFS="$ac_save_ifs"
1107: fi
1108: fi
1109: CC="$ac_cv_prog_CC"
1110: if test -n "$CC"; then
1111: echo "$ac_t""$CC" 1>&6
1112: else
1113: echo "$ac_t""no" 1>&6
1114: fi
1115: ;;
1116: esac
1117: fi
1118: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1119: fi
1120:
1121: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1122: echo "configure:1123: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1123:
1124: ac_ext=c
1125: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1126: ac_cpp='$CPP $CPPFLAGS'
1127: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1128: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1129: cross_compiling=$ac_cv_prog_cc_cross
1130:
1131: cat > conftest.$ac_ext << EOF
1132:
1133: #line 1134 "configure"
1134: #include "confdefs.h"
1135:
1136: main(){return(0);}
1137: EOF
1138: if { (eval echo configure:1139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1139: ac_cv_prog_cc_works=yes
1140: # If we can't run a trivial program, we are probably using a cross compiler.
1141: if (./conftest; exit) 2>/dev/null; then
1142: ac_cv_prog_cc_cross=no
1143: else
1144: ac_cv_prog_cc_cross=yes
1145: fi
1146: else
1147: echo "configure: failed program was:" >&5
1148: cat conftest.$ac_ext >&5
1149: ac_cv_prog_cc_works=no
1150: fi
1151: rm -fr conftest*
1152: ac_ext=c
1153: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1154: ac_cpp='$CPP $CPPFLAGS'
1155: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1156: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1157: cross_compiling=$ac_cv_prog_cc_cross
1158:
1159: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1160: if test $ac_cv_prog_cc_works = no; then
1161: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1162: fi
1163: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1164: echo "configure:1165: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1165: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1166: cross_compiling=$ac_cv_prog_cc_cross
1167:
1168: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1169: echo "configure:1170: checking whether we are using GNU C" >&5
1170: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1171: echo $ac_n "(cached) $ac_c" 1>&6
1172: else
1173: cat > conftest.c <<EOF
1174: #ifdef __GNUC__
1175: yes;
1176: #endif
1177: EOF
1178: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1179: ac_cv_prog_gcc=yes
1180: else
1181: ac_cv_prog_gcc=no
1182: fi
1183: fi
1184:
1185: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1186:
1187: if test $ac_cv_prog_gcc = yes; then
1188: GCC=yes
1189: else
1190: GCC=
1191: fi
1192:
1193: ac_test_CFLAGS="${CFLAGS+set}"
1194: ac_save_CFLAGS="$CFLAGS"
1195: CFLAGS=
1196: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1197: echo "configure:1198: checking whether ${CC-cc} accepts -g" >&5
1198: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1199: echo $ac_n "(cached) $ac_c" 1>&6
1200: else
1201: echo 'void f(){}' > conftest.c
1202: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1203: ac_cv_prog_cc_g=yes
1204: else
1205: ac_cv_prog_cc_g=no
1206: fi
1207: rm -f conftest*
1208:
1209: fi
1210:
1211: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1212: if test "$ac_test_CFLAGS" = set; then
1213: CFLAGS="$ac_save_CFLAGS"
1214: elif test $ac_cv_prog_cc_g = yes; then
1215: if test "$GCC" = yes; then
1216: CFLAGS="-g -O2"
1217: else
1218: CFLAGS="-g"
1219: fi
1220: else
1221: if test "$GCC" = yes; then
1222: CFLAGS="-O2"
1223: else
1224: CFLAGS=
1225: fi
1226: fi
1227:
1228: # Extract the first word of "ranlib", so it can be a program name with args.
1229: set dummy ranlib; ac_word=$2
1230: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1231: echo "configure:1232: checking for $ac_word" >&5
1232: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1233: echo $ac_n "(cached) $ac_c" 1>&6
1234: else
1235: if test -n "$RANLIB"; then
1236: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1237: else
1238: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1239: ac_dummy="$PATH"
1240: for ac_dir in $ac_dummy; do
1241: test -z "$ac_dir" && ac_dir=.
1242: if test -f $ac_dir/$ac_word; then
1243: ac_cv_prog_RANLIB="ranlib"
1244: break
1245: fi
1246: done
1247: IFS="$ac_save_ifs"
1248: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1249: fi
1250: fi
1251: RANLIB="$ac_cv_prog_RANLIB"
1252: if test -n "$RANLIB"; then
1253: echo "$ac_t""$RANLIB" 1>&6
1254: else
1255: echo "$ac_t""no" 1>&6
1256: fi
1257:
1258: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1259: echo "configure:1260: checking for POSIXized ISC" >&5
1260: if test -d /etc/conf/kconfig.d &&
1261: grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1262: then
1263: echo "$ac_t""yes" 1>&6
1264: ISC=yes # If later tests want to check for ISC.
1265: cat >> confdefs.h <<\EOF
1266: #define _POSIX_SOURCE 1
1267: EOF
1268:
1269: if test "$GCC" = yes; then
1270: CC="$CC -posix"
1271: else
1272: CC="$CC -Xp"
1273: fi
1274: else
1275: echo "$ac_t""no" 1>&6
1276: ISC=
1277: fi
1278:
1279: # Find a good install program. We prefer a C program (faster),
1280: # so one script is as good as another. But avoid the broken or
1281: # incompatible versions:
1282: # SysV /etc/install, /usr/sbin/install
1283: # SunOS /usr/etc/install
1284: # IRIX /sbin/install
1285: # AIX /bin/install
1286: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1287: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1288: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1289: # ./install, which can be erroneously created by make from ./install.sh.
1290: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1291: echo "configure:1292: checking for a BSD compatible install" >&5
1292: if test -z "$INSTALL"; then
1293: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1294: echo $ac_n "(cached) $ac_c" 1>&6
1295: else
1296: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1297: for ac_dir in $PATH; do
1298: # Account for people who put trailing slashes in PATH elements.
1299: case "$ac_dir/" in
1300: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1301: *)
1302: # OSF1 and SCO ODT 3.0 have their own names for install.
1303: # Don't use installbsd from OSF since it installs stuff as root
1304: # by default.
1305: for ac_prog in ginstall scoinst install; do
1306: if test -f $ac_dir/$ac_prog; then
1307: if test $ac_prog = install &&
1308: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1309: # AIX install. It has an incompatible calling convention.
1310: :
1311: else
1312: ac_cv_path_install="$ac_dir/$ac_prog -c"
1313: break 2
1314: fi
1315: fi
1316: done
1317: ;;
1318: esac
1319: done
1320: IFS="$ac_save_IFS"
1321:
1322: fi
1323: if test "${ac_cv_path_install+set}" = set; then
1324: INSTALL="$ac_cv_path_install"
1325: else
1326: # As a last resort, use the slow shell script. We don't cache a
1327: # path for INSTALL within a source directory, because that will
1328: # break other packages using the cache if that directory is
1329: # removed, or if the path is relative.
1330: INSTALL="$ac_install_sh"
1331: fi
1332: fi
1333: echo "$ac_t""$INSTALL" 1>&6
1334:
1335: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1336: # It thinks the first close brace ends the variable substitution.
1337: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1338:
1339: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1340:
1341: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1342:
1343: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1344: echo "configure:1345: checking return type of signal handlers" >&5
1345: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1346: echo $ac_n "(cached) $ac_c" 1>&6
1347: else
1348: cat > conftest.$ac_ext <<EOF
1349: #line 1350 "configure"
1350: #include "confdefs.h"
1351: #include <sys/types.h>
1352: #include <signal.h>
1353: #ifdef signal
1354: #undef signal
1355: #endif
1356: #ifdef __cplusplus
1357: extern "C" void (*signal (int, void (*)(int)))(int);
1358: #else
1359: void (*signal ()) ();
1360: #endif
1361:
1362: int main() {
1363: int i;
1364: ; return 0; }
1365: EOF
1366: if { (eval echo configure:1367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1367: rm -rf conftest*
1368: ac_cv_type_signal=void
1369: else
1370: echo "configure: failed program was:" >&5
1371: cat conftest.$ac_ext >&5
1372: rm -rf conftest*
1373: ac_cv_type_signal=int
1374: fi
1375: rm -f conftest*
1376: fi
1377:
1378: echo "$ac_t""$ac_cv_type_signal" 1>&6
1379: cat >> confdefs.h <<EOF
1380: #define RETSIGTYPE $ac_cv_type_signal
1381: EOF
1382:
1383:
1384:
1385:
1386:
1387: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1388: echo "configure:1389: checking how to run the C preprocessor" >&5
1389: # On Suns, sometimes $CPP names a directory.
1390: if test -n "$CPP" && test -d "$CPP"; then
1391: CPP=
1392: fi
1393: if test -z "$CPP"; then
1394: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1395: echo $ac_n "(cached) $ac_c" 1>&6
1396: else
1397: # This must be in double quotes, not single quotes, because CPP may get
1398: # substituted into the Makefile and "${CC-cc}" will confuse make.
1399: CPP="${CC-cc} -E"
1400: # On the NeXT, cc -E runs the code through the compiler's parser,
1401: # not just through cpp.
1402: cat > conftest.$ac_ext <<EOF
1403: #line 1404 "configure"
1404: #include "confdefs.h"
1405: #include <assert.h>
1406: Syntax Error
1407: EOF
1408: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1409: { (eval echo configure:1410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1410: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1411: if test -z "$ac_err"; then
1412: :
1413: else
1414: echo "$ac_err" >&5
1415: echo "configure: failed program was:" >&5
1416: cat conftest.$ac_ext >&5
1417: rm -rf conftest*
1418: CPP="${CC-cc} -E -traditional-cpp"
1419: cat > conftest.$ac_ext <<EOF
1420: #line 1421 "configure"
1421: #include "confdefs.h"
1422: #include <assert.h>
1423: Syntax Error
1424: EOF
1425: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1426: { (eval echo configure:1427: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1427: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1428: if test -z "$ac_err"; then
1429: :
1430: else
1431: echo "$ac_err" >&5
1432: echo "configure: failed program was:" >&5
1433: cat conftest.$ac_ext >&5
1434: rm -rf conftest*
1435: CPP="${CC-cc} -nologo -E"
1436: cat > conftest.$ac_ext <<EOF
1437: #line 1438 "configure"
1438: #include "confdefs.h"
1439: #include <assert.h>
1440: Syntax Error
1441: EOF
1442: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1443: { (eval echo configure:1444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1444: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1445: if test -z "$ac_err"; then
1446: :
1447: else
1448: echo "$ac_err" >&5
1449: echo "configure: failed program was:" >&5
1450: cat conftest.$ac_ext >&5
1451: rm -rf conftest*
1452: CPP=/lib/cpp
1453: fi
1454: rm -f conftest*
1455: fi
1456: rm -f conftest*
1457: fi
1458: rm -f conftest*
1459: ac_cv_prog_CPP="$CPP"
1460: fi
1461: CPP="$ac_cv_prog_CPP"
1462: else
1463: ac_cv_prog_CPP="$CPP"
1464: fi
1465: echo "$ac_t""$CPP" 1>&6
1466:
1467: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1468: echo "configure:1469: checking for ANSI C header files" >&5
1469: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1470: echo $ac_n "(cached) $ac_c" 1>&6
1471: else
1472: cat > conftest.$ac_ext <<EOF
1473: #line 1474 "configure"
1474: #include "confdefs.h"
1475: #include <stdlib.h>
1476: #include <stdarg.h>
1477: #include <string.h>
1478: #include <float.h>
1479: EOF
1480: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1481: { (eval echo configure:1482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1482: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1483: if test -z "$ac_err"; then
1484: rm -rf conftest*
1485: ac_cv_header_stdc=yes
1486: else
1487: echo "$ac_err" >&5
1488: echo "configure: failed program was:" >&5
1489: cat conftest.$ac_ext >&5
1490: rm -rf conftest*
1491: ac_cv_header_stdc=no
1492: fi
1493: rm -f conftest*
1494:
1495: if test $ac_cv_header_stdc = yes; then
1496: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1497: cat > conftest.$ac_ext <<EOF
1498: #line 1499 "configure"
1499: #include "confdefs.h"
1500: #include <string.h>
1501: EOF
1502: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1503: egrep "memchr" >/dev/null 2>&1; then
1504: :
1505: else
1506: rm -rf conftest*
1507: ac_cv_header_stdc=no
1508: fi
1509: rm -f conftest*
1510:
1511: fi
1512:
1513: if test $ac_cv_header_stdc = yes; then
1514: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1515: cat > conftest.$ac_ext <<EOF
1516: #line 1517 "configure"
1517: #include "confdefs.h"
1518: #include <stdlib.h>
1519: EOF
1520: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1521: egrep "free" >/dev/null 2>&1; then
1522: :
1523: else
1524: rm -rf conftest*
1525: ac_cv_header_stdc=no
1526: fi
1527: rm -f conftest*
1528:
1529: fi
1530:
1531: if test $ac_cv_header_stdc = yes; then
1532: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1533: if test "$cross_compiling" = yes; then
1534: :
1535: else
1536: cat > conftest.$ac_ext <<EOF
1537: #line 1538 "configure"
1538: #include "confdefs.h"
1539: #include <ctype.h>
1540: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1541: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1542: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1543: int main () { int i; for (i = 0; i < 256; i++)
1544: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1545: exit (0); }
1546:
1547: EOF
1548: if { (eval echo configure:1549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1549: then
1550: :
1551: else
1552: echo "configure: failed program was:" >&5
1553: cat conftest.$ac_ext >&5
1554: rm -fr conftest*
1555: ac_cv_header_stdc=no
1556: fi
1557: rm -fr conftest*
1558: fi
1559:
1560: fi
1561: fi
1562:
1563: echo "$ac_t""$ac_cv_header_stdc" 1>&6
1564: if test $ac_cv_header_stdc = yes; then
1565: cat >> confdefs.h <<\EOF
1566: #define STDC_HEADERS 1
1567: EOF
1568:
1569: fi
1570:
1571:
1572:
1573: if [ $cross_compiling = no ]; then
1574: echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
1575: echo "configure:1576: checking whether byte ordering is bigendian" >&5
1576: if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
1577: echo $ac_n "(cached) $ac_c" 1>&6
1578: else
1579: ac_cv_c_bigendian=unknown
1580: # See if sys/param.h defines the BYTE_ORDER macro.
1581: cat > conftest.$ac_ext <<EOF
1582: #line 1583 "configure"
1583: #include "confdefs.h"
1584: #include <sys/types.h>
1585: #include <sys/param.h>
1586: int main() {
1587:
1588: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
1589: bogus endian macros
1590: #endif
1591: ; return 0; }
1592: EOF
1593: if { (eval echo configure:1594: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1594: rm -rf conftest*
1595: # It does; now see whether it defined to BIG_ENDIAN or not.
1596: cat > conftest.$ac_ext <<EOF
1597: #line 1598 "configure"
1598: #include "confdefs.h"
1599: #include <sys/types.h>
1600: #include <sys/param.h>
1601: int main() {
1602:
1603: #if BYTE_ORDER != BIG_ENDIAN
1604: not big endian
1605: #endif
1606: ; return 0; }
1607: EOF
1608: if { (eval echo configure:1609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1609: rm -rf conftest*
1610: ac_cv_c_bigendian=yes
1611: else
1612: echo "configure: failed program was:" >&5
1613: cat conftest.$ac_ext >&5
1614: rm -rf conftest*
1615: ac_cv_c_bigendian=no
1616: fi
1617: rm -f conftest*
1618: else
1619: echo "configure: failed program was:" >&5
1620: cat conftest.$ac_ext >&5
1621: fi
1622: rm -f conftest*
1623: if test $ac_cv_c_bigendian = unknown; then
1624: if test "$cross_compiling" = yes; then
1625: { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1626: else
1627: cat > conftest.$ac_ext <<EOF
1628: #line 1629 "configure"
1629: #include "confdefs.h"
1630: main () {
1631: /* Are we little or big endian? From Harbison&Steele. */
1632: union
1633: {
1634: long l;
1635: char c[sizeof (long)];
1636: } u;
1637: u.l = 1;
1638: exit (u.c[sizeof (long) - 1] == 1);
1639: }
1640: EOF
1641: if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1642: then
1643: ac_cv_c_bigendian=no
1644: else
1645: echo "configure: failed program was:" >&5
1646: cat conftest.$ac_ext >&5
1647: rm -fr conftest*
1648: ac_cv_c_bigendian=yes
1649: fi
1650: rm -fr conftest*
1651: fi
1652:
1653: fi
1654: fi
1655:
1656: echo "$ac_t""$ac_cv_c_bigendian" 1>&6
1657: if test $ac_cv_c_bigendian = yes; then
1658: cat >> confdefs.h <<\EOF
1659: #define WORDS_BIGENDIAN 1
1660: EOF
1661:
1662: fi
1663:
1664: else
1665: echo "configure: warning: Assuming little endian for cross compilation" 1>&2
1666: # AC_DEFINE(WORDS_BIGENDIAN, 1)
1667: fi
1668: echo $ac_n "checking for working const""... $ac_c" 1>&6
1669: echo "configure:1670: checking for working const" >&5
1670: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1671: echo $ac_n "(cached) $ac_c" 1>&6
1672: else
1673: cat > conftest.$ac_ext <<EOF
1674: #line 1675 "configure"
1675: #include "confdefs.h"
1676:
1677: int main() {
1678:
1679: /* Ultrix mips cc rejects this. */
1680: typedef int charset[2]; const charset x;
1681: /* SunOS 4.1.1 cc rejects this. */
1682: char const *const *ccp;
1683: char **p;
1684: /* NEC SVR4.0.2 mips cc rejects this. */
1685: struct point {int x, y;};
1686: static struct point const zero = {0,0};
1687: /* AIX XL C 1.02.0.0 rejects this.
1688: It does not let you subtract one const X* pointer from another in an arm
1689: of an if-expression whose if-part is not a constant expression */
1690: const char *g = "string";
1691: ccp = &g + (g ? g-g : 0);
1692: /* HPUX 7.0 cc rejects these. */
1693: ++ccp;
1694: p = (char**) ccp;
1695: ccp = (char const *const *) p;
1696: { /* SCO 3.2v4 cc rejects this. */
1697: char *t;
1698: char const *s = 0 ? (char *) 0 : (char const *) 0;
1699:
1700: *t++ = 0;
1701: }
1702: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1703: int x[] = {25, 17};
1704: const int *foo = &x[0];
1705: ++foo;
1706: }
1707: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1708: typedef const int *iptr;
1709: iptr p = 0;
1710: ++p;
1711: }
1712: { /* AIX XL C 1.02.0.0 rejects this saying
1713: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1714: struct s { int j; const int *ap[3]; };
1715: struct s *b; b->j = 5;
1716: }
1717: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1718: const int foo = 10;
1719: }
1720:
1721: ; return 0; }
1722: EOF
1723: if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1724: rm -rf conftest*
1725: ac_cv_c_const=yes
1726: else
1727: echo "configure: failed program was:" >&5
1728: cat conftest.$ac_ext >&5
1729: rm -rf conftest*
1730: ac_cv_c_const=no
1731: fi
1732: rm -f conftest*
1733: fi
1734:
1735: echo "$ac_t""$ac_cv_c_const" 1>&6
1736: if test $ac_cv_c_const = no; then
1737: cat >> confdefs.h <<\EOF
1738: #define const
1739: EOF
1740:
1741: fi
1742:
1743: echo $ac_n "checking for inline""... $ac_c" 1>&6
1744: echo "configure:1745: checking for inline" >&5
1745: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1746: echo $ac_n "(cached) $ac_c" 1>&6
1747: else
1748: ac_cv_c_inline=no
1749: for ac_kw in inline __inline__ __inline; do
1750: cat > conftest.$ac_ext <<EOF
1751: #line 1752 "configure"
1752: #include "confdefs.h"
1753:
1754: int main() {
1755: } $ac_kw foo() {
1756: ; return 0; }
1757: EOF
1758: if { (eval echo configure:1759: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1759: rm -rf conftest*
1760: ac_cv_c_inline=$ac_kw; break
1761: else
1762: echo "configure: failed program was:" >&5
1763: cat conftest.$ac_ext >&5
1764: fi
1765: rm -f conftest*
1766: done
1767:
1768: fi
1769:
1770: echo "$ac_t""$ac_cv_c_inline" 1>&6
1771: case "$ac_cv_c_inline" in
1772: inline | yes) ;;
1773: no) cat >> confdefs.h <<\EOF
1774: #define inline
1775: EOF
1776: ;;
1777: *) cat >> confdefs.h <<EOF
1778: #define inline $ac_cv_c_inline
1779: EOF
1780: ;;
1781: esac
1782:
1783: echo $ac_n "checking size of unsigned char""... $ac_c" 1>&6
1784: echo "configure:1785: checking size of unsigned char" >&5
1785: if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_char'+set}'`\" = set"; then
1786: echo $ac_n "(cached) $ac_c" 1>&6
1787: else
1788: if test "$cross_compiling" = yes; then
1789: ac_cv_sizeof_unsigned_char=1
1790: else
1791: cat > conftest.$ac_ext <<EOF
1792: #line 1793 "configure"
1793: #include "confdefs.h"
1794: #include <stdio.h>
1795: main()
1796: {
1797: FILE *f=fopen("conftestval", "w");
1798: if (!f) exit(1);
1799: fprintf(f, "%d\n", sizeof(unsigned char));
1800: exit(0);
1801: }
1802: EOF
1803: if { (eval echo configure:1804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1804: then
1805: ac_cv_sizeof_unsigned_char=`cat conftestval`
1806: else
1807: echo "configure: failed program was:" >&5
1808: cat conftest.$ac_ext >&5
1809: rm -fr conftest*
1810: ac_cv_sizeof_unsigned_char=0
1811: fi
1812: rm -fr conftest*
1813: fi
1814:
1815: fi
1816: echo "$ac_t""$ac_cv_sizeof_unsigned_char" 1>&6
1817: cat >> confdefs.h <<EOF
1818: #define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
1819: EOF
1820:
1821:
1822: echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
1823: echo "configure:1824: checking size of unsigned short" >&5
1824: if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
1825: echo $ac_n "(cached) $ac_c" 1>&6
1826: else
1827: if test "$cross_compiling" = yes; then
1828: ac_cv_sizeof_unsigned_short=2
1829: else
1830: cat > conftest.$ac_ext <<EOF
1831: #line 1832 "configure"
1832: #include "confdefs.h"
1833: #include <stdio.h>
1834: main()
1835: {
1836: FILE *f=fopen("conftestval", "w");
1837: if (!f) exit(1);
1838: fprintf(f, "%d\n", sizeof(unsigned short));
1839: exit(0);
1840: }
1841: EOF
1842: if { (eval echo configure:1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1843: then
1844: ac_cv_sizeof_unsigned_short=`cat conftestval`
1845: else
1846: echo "configure: failed program was:" >&5
1847: cat conftest.$ac_ext >&5
1848: rm -fr conftest*
1849: ac_cv_sizeof_unsigned_short=0
1850: fi
1851: rm -fr conftest*
1852: fi
1853:
1854: fi
1855: echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
1856: cat >> confdefs.h <<EOF
1857: #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
1858: EOF
1859:
1860:
1861: echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
1862: echo "configure:1863: checking size of unsigned int" >&5
1863: if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
1864: echo $ac_n "(cached) $ac_c" 1>&6
1865: else
1866: if test "$cross_compiling" = yes; then
1867: ac_cv_sizeof_unsigned_int=4
1868: else
1869: cat > conftest.$ac_ext <<EOF
1870: #line 1871 "configure"
1871: #include "confdefs.h"
1872: #include <stdio.h>
1873: main()
1874: {
1875: FILE *f=fopen("conftestval", "w");
1876: if (!f) exit(1);
1877: fprintf(f, "%d\n", sizeof(unsigned int));
1878: exit(0);
1879: }
1880: EOF
1881: if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1882: then
1883: ac_cv_sizeof_unsigned_int=`cat conftestval`
1884: else
1885: echo "configure: failed program was:" >&5
1886: cat conftest.$ac_ext >&5
1887: rm -fr conftest*
1888: ac_cv_sizeof_unsigned_int=0
1889: fi
1890: rm -fr conftest*
1891: fi
1892:
1893: fi
1894: echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
1895: cat >> confdefs.h <<EOF
1896: #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
1897: EOF
1898:
1899:
1900: echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
1901: echo "configure:1902: checking size of unsigned long" >&5
1902: if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
1903: echo $ac_n "(cached) $ac_c" 1>&6
1904: else
1905: if test "$cross_compiling" = yes; then
1906: ac_cv_sizeof_unsigned_long=4
1907: else
1908: cat > conftest.$ac_ext <<EOF
1909: #line 1910 "configure"
1910: #include "confdefs.h"
1911: #include <stdio.h>
1912: main()
1913: {
1914: FILE *f=fopen("conftestval", "w");
1915: if (!f) exit(1);
1916: fprintf(f, "%d\n", sizeof(unsigned long));
1917: exit(0);
1918: }
1919: EOF
1920: if { (eval echo configure:1921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1921: then
1922: ac_cv_sizeof_unsigned_long=`cat conftestval`
1923: else
1924: echo "configure: failed program was:" >&5
1925: cat conftest.$ac_ext >&5
1926: rm -fr conftest*
1927: ac_cv_sizeof_unsigned_long=0
1928: fi
1929: rm -fr conftest*
1930: fi
1931:
1932: fi
1933: echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
1934: cat >> confdefs.h <<EOF
1935: #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
1936: EOF
1937:
1938:
1939: echo $ac_n "checking size of unsigned long long""... $ac_c" 1>&6
1940: echo "configure:1941: checking size of unsigned long long" >&5
1941: if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long_long'+set}'`\" = set"; then
1942: echo $ac_n "(cached) $ac_c" 1>&6
1943: else
1944: if test "$cross_compiling" = yes; then
1945: ac_cv_sizeof_unsigned_long_long=8
1946: else
1947: cat > conftest.$ac_ext <<EOF
1948: #line 1949 "configure"
1949: #include "confdefs.h"
1950: #include <stdio.h>
1951: main()
1952: {
1953: FILE *f=fopen("conftestval", "w");
1954: if (!f) exit(1);
1955: fprintf(f, "%d\n", sizeof(unsigned long long));
1956: exit(0);
1957: }
1958: EOF
1959: if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1960: then
1961: ac_cv_sizeof_unsigned_long_long=`cat conftestval`
1962: else
1963: echo "configure: failed program was:" >&5
1964: cat conftest.$ac_ext >&5
1965: rm -fr conftest*
1966: ac_cv_sizeof_unsigned_long_long=0
1967: fi
1968: rm -fr conftest*
1969: fi
1970:
1971: fi
1972: echo "$ac_t""$ac_cv_sizeof_unsigned_long_long" 1>&6
1973: cat >> confdefs.h <<EOF
1974: #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
1975: EOF
1976:
1977:
1978: for ac_func in snprintf
1979: do
1980: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1981: echo "configure:1982: checking for $ac_func" >&5
1982: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1983: echo $ac_n "(cached) $ac_c" 1>&6
1984: else
1985: cat > conftest.$ac_ext <<EOF
1986: #line 1987 "configure"
1987: #include "confdefs.h"
1988: /* System header to define __stub macros and hopefully few prototypes,
1989: which can conflict with char $ac_func(); below. */
1990: #include <assert.h>
1991: /* Override any gcc2 internal prototype to avoid an error. */
1992: /* We use char because int might match the return type of a gcc2
1993: builtin and then its argument prototype would still apply. */
1994: char $ac_func();
1995:
1996: int main() {
1997:
1998: /* The GNU C library defines this for functions which it implements
1999: to always fail with ENOSYS. Some functions are actually named
2000: something starting with __ and the normal name is an alias. */
2001: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2002: choke me
2003: #else
2004: $ac_func();
2005: #endif
2006:
2007: ; return 0; }
2008: EOF
2009: if { (eval echo configure:2010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2010: rm -rf conftest*
2011: eval "ac_cv_func_$ac_func=yes"
2012: else
2013: echo "configure: failed program was:" >&5
2014: cat conftest.$ac_ext >&5
2015: rm -rf conftest*
2016: eval "ac_cv_func_$ac_func=no"
2017: fi
2018: rm -f conftest*
2019: fi
2020:
2021: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2022: echo "$ac_t""yes" 1>&6
2023: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2024: cat >> confdefs.h <<EOF
2025: #define $ac_tr_func 1
2026: EOF
2027:
2028: else
2029: echo "$ac_t""no" 1>&6
2030: fi
2031: done
2032:
2033: for ac_hdr in tcl8.0.h
2034: do
2035: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2036: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2037: echo "configure:2038: checking for $ac_hdr" >&5
2038: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2039: echo $ac_n "(cached) $ac_c" 1>&6
2040: else
2041: cat > conftest.$ac_ext <<EOF
2042: #line 2043 "configure"
2043: #include "confdefs.h"
2044: #include <$ac_hdr>
2045: EOF
2046: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2047: { (eval echo configure:2048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2048: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2049: if test -z "$ac_err"; then
2050: rm -rf conftest*
2051: eval "ac_cv_header_$ac_safe=yes"
2052: else
2053: echo "$ac_err" >&5
2054: echo "configure: failed program was:" >&5
2055: cat conftest.$ac_ext >&5
2056: rm -rf conftest*
2057: eval "ac_cv_header_$ac_safe=no"
2058: fi
2059: rm -f conftest*
2060: fi
2061: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2062: echo "$ac_t""yes" 1>&6
2063: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2064: cat >> confdefs.h <<EOF
2065: #define $ac_tr_hdr 1
2066: EOF
2067:
2068: else
2069: echo "$ac_t""no" 1>&6
2070: fi
2071: done
2072:
2073: for ac_hdr in tk8.0.h
2074: do
2075: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2076: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2077: echo "configure:2078: checking for $ac_hdr" >&5
2078: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2079: echo $ac_n "(cached) $ac_c" 1>&6
2080: else
2081: cat > conftest.$ac_ext <<EOF
2082: #line 2083 "configure"
2083: #include "confdefs.h"
2084: #include <$ac_hdr>
2085: EOF
2086: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2087: { (eval echo configure:2088: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2088: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2089: if test -z "$ac_err"; then
2090: rm -rf conftest*
2091: eval "ac_cv_header_$ac_safe=yes"
2092: else
2093: echo "$ac_err" >&5
2094: echo "configure: failed program was:" >&5
2095: cat conftest.$ac_ext >&5
2096: rm -rf conftest*
2097: eval "ac_cv_header_$ac_safe=no"
2098: fi
2099: rm -f conftest*
2100: fi
2101: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2102: echo "$ac_t""yes" 1>&6
2103: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2104: cat >> confdefs.h <<EOF
2105: #define $ac_tr_hdr 1
2106: EOF
2107:
2108: else
2109: echo "$ac_t""no" 1>&6
2110: fi
2111: done
2112:
2113:
2114:
2115:
2116: trap '' 1 2 15
2117: cat > confcache <<\EOF
2118: # This file is a shell script that caches the results of configure
2119: # tests run on this system so they can be shared between configure
2120: # scripts and configure runs. It is not useful on other systems.
2121: # If it contains results you don't want to keep, you may remove or edit it.
2122: #
2123: # By default, configure uses ./config.cache as the cache file,
2124: # creating it if it does not exist already. You can give configure
2125: # the --cache-file=FILE option to use a different cache file; that is
2126: # what configure does when it calls configure scripts in
2127: # subdirectories, so they share the cache.
2128: # Giving --cache-file=/dev/null disables caching, for debugging configure.
2129: # config.status only pays attention to the cache file if you give it the
2130: # --recheck option to rerun configure.
2131: #
2132: EOF
2133: # The following way of writing the cache mishandles newlines in values,
2134: # but we know of no workaround that is simple, portable, and efficient.
2135: # So, don't put newlines in cache variables' values.
2136: # Ultrix sh set writes to stderr and can't be redirected directly,
2137: # and sets the high bit in the cache file unless we assign to the vars.
2138: (set) 2>&1 |
2139: case `(ac_space=' '; set | grep ac_space) 2>&1` in
2140: *ac_space=\ *)
2141: # `set' does not quote correctly, so add quotes (double-quote substitution
2142: # turns \\\\ into \\, and sed turns \\ into \).
2143: sed -n \
2144: -e "s/'/'\\\\''/g" \
2145: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2146: ;;
2147: *)
2148: # `set' quotes correctly as required by POSIX, so do not add quotes.
2149: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2150: ;;
2151: esac >> confcache
2152: if cmp -s $cache_file confcache; then
2153: :
2154: else
2155: if test -w $cache_file; then
2156: echo "updating cache $cache_file"
2157: cat confcache > $cache_file
2158: else
2159: echo "not updating unwritable cache $cache_file"
2160: fi
2161: fi
2162: rm -f confcache
2163:
2164: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2165:
2166: test "x$prefix" = xNONE && prefix=$ac_default_prefix
2167: # Let make expand exec_prefix.
2168: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2169:
2170: # Any assignment to VPATH causes Sun make to only execute
2171: # the first set of double-colon rules, so remove it if not needed.
2172: # If there is a colon in the path, we need to keep it.
2173: if test "x$srcdir" = x.; then
2174: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2175: fi
2176:
2177: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2178:
2179: DEFS=-DHAVE_CONFIG_H
2180:
2181: # Without the "./", some shells look in PATH for config.status.
2182: : ${CONFIG_STATUS=./config.status}
2183:
2184: echo creating $CONFIG_STATUS
2185: rm -f $CONFIG_STATUS
2186: cat > $CONFIG_STATUS <<EOF
2187: #! /bin/sh
2188: # Generated automatically by configure.
2189: # Run this file to recreate the current configuration.
2190: # This directory was configured as follows,
2191: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2192: #
2193: # $0 $ac_configure_args
2194: #
2195: # Compiler output produced by configure, useful for debugging
2196: # configure, is in ./config.log if it exists.
2197:
2198: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2199: for ac_option
2200: do
2201: case "\$ac_option" in
2202: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2203: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2204: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2205: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2206: echo "$CONFIG_STATUS generated by autoconf version 2.13"
2207: exit 0 ;;
2208: -help | --help | --hel | --he | --h)
2209: echo "\$ac_cs_usage"; exit 0 ;;
2210: *) echo "\$ac_cs_usage"; exit 1 ;;
2211: esac
2212: done
2213:
2214: ac_given_srcdir=$srcdir
2215: ac_given_INSTALL="$INSTALL"
2216:
2217: trap 'rm -fr `echo "Makefile cpu68k/Makefile raze/Makefile ym2612/Makefile
2218: main/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2219: EOF
2220: cat >> $CONFIG_STATUS <<EOF
2221:
2222: # Protect against being on the right side of a sed subst in config.status.
2223: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2224: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2225: $ac_vpsub
2226: $extrasub
2227: s%@SHELL@%$SHELL%g
2228: s%@CFLAGS@%$CFLAGS%g
2229: s%@CPPFLAGS@%$CPPFLAGS%g
2230: s%@CXXFLAGS@%$CXXFLAGS%g
2231: s%@FFLAGS@%$FFLAGS%g
2232: s%@DEFS@%$DEFS%g
2233: s%@LDFLAGS@%$LDFLAGS%g
2234: s%@LIBS@%$LIBS%g
2235: s%@exec_prefix@%$exec_prefix%g
2236: s%@prefix@%$prefix%g
2237: s%@program_transform_name@%$program_transform_name%g
2238: s%@bindir@%$bindir%g
2239: s%@sbindir@%$sbindir%g
2240: s%@libexecdir@%$libexecdir%g
2241: s%@datadir@%$datadir%g
2242: s%@sysconfdir@%$sysconfdir%g
2243: s%@sharedstatedir@%$sharedstatedir%g
2244: s%@localstatedir@%$localstatedir%g
2245: s%@libdir@%$libdir%g
2246: s%@includedir@%$includedir%g
2247: s%@oldincludedir@%$oldincludedir%g
2248: s%@infodir@%$infodir%g
2249: s%@mandir@%$mandir%g
2250: s%@host@%$host%g
2251: s%@host_alias@%$host_alias%g
2252: s%@host_cpu@%$host_cpu%g
2253: s%@host_vendor@%$host_vendor%g
2254: s%@host_os@%$host_os%g
2255: s%@target@%$target%g
2256: s%@target_alias@%$target_alias%g
2257: s%@target_cpu@%$target_cpu%g
2258: s%@target_vendor@%$target_vendor%g
2259: s%@target_os@%$target_os%g
2260: s%@build@%$build%g
2261: s%@build_alias@%$build_alias%g
2262: s%@build_cpu@%$build_cpu%g
2263: s%@build_vendor@%$build_vendor%g
2264: s%@build_os@%$build_os%g
2265: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2266: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2267: s%@INSTALL_DATA@%$INSTALL_DATA%g
2268: s%@PACKAGE@%$PACKAGE%g
2269: s%@VERSION@%$VERSION%g
2270: s%@ACLOCAL@%$ACLOCAL%g
2271: s%@AUTOCONF@%$AUTOCONF%g
2272: s%@AUTOMAKE@%$AUTOMAKE%g
2273: s%@AUTOHEADER@%$AUTOHEADER%g
2274: s%@MAKEINFO@%$MAKEINFO%g
2275: s%@SET_MAKE@%$SET_MAKE%g
2276: s%@PROGRAM@%$PROGRAM%g
2277: s%@CC@%$CC%g
2278: s%@RANLIB@%$RANLIB%g
2279: s%@CPP@%$CPP%g
2280:
2281: CEOF
2282: EOF
2283:
2284: cat >> $CONFIG_STATUS <<\EOF
2285:
2286: # Split the substitutions into bite-sized pieces for seds with
2287: # small command number limits, like on Digital OSF/1 and HP-UX.
2288: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2289: ac_file=1 # Number of current file.
2290: ac_beg=1 # First line for current file.
2291: ac_end=$ac_max_sed_cmds # Line after last line for current file.
2292: ac_more_lines=:
2293: ac_sed_cmds=""
2294: while $ac_more_lines; do
2295: if test $ac_beg -gt 1; then
2296: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2297: else
2298: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2299: fi
2300: if test ! -s conftest.s$ac_file; then
2301: ac_more_lines=false
2302: rm -f conftest.s$ac_file
2303: else
2304: if test -z "$ac_sed_cmds"; then
2305: ac_sed_cmds="sed -f conftest.s$ac_file"
2306: else
2307: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2308: fi
2309: ac_file=`expr $ac_file + 1`
2310: ac_beg=$ac_end
2311: ac_end=`expr $ac_end + $ac_max_sed_cmds`
2312: fi
2313: done
2314: if test -z "$ac_sed_cmds"; then
2315: ac_sed_cmds=cat
2316: fi
2317: EOF
2318:
2319: cat >> $CONFIG_STATUS <<EOF
2320:
2321: CONFIG_FILES=\${CONFIG_FILES-"Makefile cpu68k/Makefile raze/Makefile ym2612/Makefile
2322: main/Makefile"}
2323: EOF
2324: cat >> $CONFIG_STATUS <<\EOF
2325: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2326: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2327: case "$ac_file" in
2328: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2329: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2330: *) ac_file_in="${ac_file}.in" ;;
2331: esac
2332:
2333: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2334:
2335: # Remove last slash and all that follows it. Not all systems have dirname.
2336: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2337: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2338: # The file is in a subdirectory.
2339: test ! -d "$ac_dir" && mkdir "$ac_dir"
2340: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2341: # A "../" for each directory in $ac_dir_suffix.
2342: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2343: else
2344: ac_dir_suffix= ac_dots=
2345: fi
2346:
2347: case "$ac_given_srcdir" in
2348: .) srcdir=.
2349: if test -z "$ac_dots"; then top_srcdir=.
2350: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2351: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2352: *) # Relative path.
2353: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2354: top_srcdir="$ac_dots$ac_given_srcdir" ;;
2355: esac
2356:
2357: case "$ac_given_INSTALL" in
2358: [/$]*) INSTALL="$ac_given_INSTALL" ;;
2359: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2360: esac
2361:
2362: echo creating "$ac_file"
2363: rm -f "$ac_file"
2364: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2365: case "$ac_file" in
2366: *Makefile*) ac_comsub="1i\\
2367: # $configure_input" ;;
2368: *) ac_comsub= ;;
2369: esac
2370:
2371: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2372: sed -e "$ac_comsub
2373: s%@configure_input@%$configure_input%g
2374: s%@srcdir@%$srcdir%g
2375: s%@top_srcdir@%$top_srcdir%g
2376: s%@INSTALL@%$INSTALL%g
2377: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2378: fi; done
2379: rm -f conftest.s*
2380:
2381: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2382: # NAME is the cpp macro being defined and VALUE is the value it is being given.
2383: #
2384: # ac_d sets the value in "#define NAME VALUE" lines.
2385: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2386: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2387: ac_dC='\3'
2388: ac_dD='%g'
2389: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2390: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2391: ac_uB='\([ ]\)%\1#\2define\3'
2392: ac_uC=' '
2393: ac_uD='\4%g'
2394: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2395: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2396: ac_eB='$%\1#\2define\3'
2397: ac_eC=' '
2398: ac_eD='%g'
2399:
2400: if test "${CONFIG_HEADERS+set}" != set; then
2401: EOF
2402: cat >> $CONFIG_STATUS <<EOF
2403: CONFIG_HEADERS="config.h"
2404: EOF
2405: cat >> $CONFIG_STATUS <<\EOF
2406: fi
2407: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2408: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2409: case "$ac_file" in
2410: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2411: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2412: *) ac_file_in="${ac_file}.in" ;;
2413: esac
2414:
2415: echo creating $ac_file
2416:
2417: rm -f conftest.frag conftest.in conftest.out
2418: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2419: cat $ac_file_inputs > conftest.in
2420:
2421: EOF
2422:
2423: # Transform confdefs.h into a sed script conftest.vals that substitutes
2424: # the proper values into config.h.in to produce config.h. And first:
2425: # Protect against being on the right side of a sed subst in config.status.
2426: # Protect against being in an unquoted here document in config.status.
2427: rm -f conftest.vals
2428: cat > conftest.hdr <<\EOF
2429: s/[\\&%]/\\&/g
2430: s%[\\$`]%\\&%g
2431: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2432: s%ac_d%ac_u%gp
2433: s%ac_u%ac_e%gp
2434: EOF
2435: sed -n -f conftest.hdr confdefs.h > conftest.vals
2436: rm -f conftest.hdr
2437:
2438: # This sed command replaces #undef with comments. This is necessary, for
2439: # example, in the case of _POSIX_SOURCE, which is predefined and required
2440: # on some systems where configure will not decide to define it.
2441: cat >> conftest.vals <<\EOF
2442: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2443: EOF
2444:
2445: # Break up conftest.vals because some shells have a limit on
2446: # the size of here documents, and old seds have small limits too.
2447:
2448: rm -f conftest.tail
2449: while :
2450: do
2451: ac_lines=`grep -c . conftest.vals`
2452: # grep -c gives empty output for an empty file on some AIX systems.
2453: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2454: # Write a limited-size here document to conftest.frag.
2455: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2456: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2457: echo 'CEOF
2458: sed -f conftest.frag conftest.in > conftest.out
2459: rm -f conftest.in
2460: mv conftest.out conftest.in
2461: ' >> $CONFIG_STATUS
2462: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2463: rm -f conftest.vals
2464: mv conftest.tail conftest.vals
2465: done
2466: rm -f conftest.vals
2467:
2468: cat >> $CONFIG_STATUS <<\EOF
2469: rm -f conftest.frag conftest.h
2470: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2471: cat conftest.in >> conftest.h
2472: rm -f conftest.in
2473: if cmp -s $ac_file conftest.h 2>/dev/null; then
2474: echo "$ac_file is unchanged"
2475: rm -f conftest.h
2476: else
2477: # Remove last slash and all that follows it. Not all systems have dirname.
2478: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2479: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2480: # The file is in a subdirectory.
2481: test ! -d "$ac_dir" && mkdir "$ac_dir"
2482: fi
2483: rm -f $ac_file
2484: mv conftest.h $ac_file
2485: fi
2486: fi; done
2487:
2488: EOF
2489: cat >> $CONFIG_STATUS <<EOF
2490:
2491:
2492: EOF
2493: cat >> $CONFIG_STATUS <<\EOF
2494: test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2495:
2496: exit 0
2497: EOF
2498: chmod +x $CONFIG_STATUS
2499: rm -fr confdefs* $ac_clean_files
2500: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2501:
2502:
2503: if [ $optimum = no ]; then
2504: echo '!!! Generator was compiled non-optimally, see warnings above !!!' 1>&2
2505: fi
2506:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.