|
|
1.1 root 1: #! /bin/sh
2:
3: # Guess values for system-dependent variables and create Makefiles.
4: # Generated automatically using autoconf version 2.10
5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6: #
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9:
10: # Defaults:
11: ac_help=
12: ac_default_prefix=/usr/local
13: # Any additions from configure.in:
14: ac_help="$ac_help
15: --with-x use the X Window System"
1.1.1.2 ! root 16: ac_help="$ac_help
! 17: --disable-gui Don't use the Tcl/Tk GUI"
! 18: ac_help="$ac_help
! 19: --disable-DGA Don't use the DGA extension"
1.1 root 20:
21: # Initialize some variables set by options.
22: # The variables have the same names as the options, with
23: # dashes changed to underlines.
24: build=NONE
25: cache_file=./config.cache
26: exec_prefix=NONE
27: host=NONE
28: no_create=
29: nonopt=NONE
30: no_recursion=
31: prefix=NONE
32: program_prefix=NONE
33: program_suffix=NONE
34: program_transform_name=s,x,x,
35: silent=
36: site=
37: srcdir=
38: target=NONE
39: verbose=
40: x_includes=NONE
41: x_libraries=NONE
42: bindir='${exec_prefix}/bin'
43: sbindir='${exec_prefix}/sbin'
44: libexecdir='${exec_prefix}/libexec'
45: datadir='${prefix}/share'
46: sysconfdir='${prefix}/etc'
47: sharedstatedir='${prefix}/com'
48: localstatedir='${prefix}/var'
49: libdir='${exec_prefix}/lib'
50: includedir='${prefix}/include'
51: oldincludedir='/usr/include'
52: infodir='${prefix}/info'
53: mandir='${prefix}/man'
54:
55: # Initialize some other variables.
56: subdirs=
57: MFLAGS= MAKEFLAGS=
58:
59: ac_prev=
60: for ac_option
61: do
62:
63: # If the previous option needs an argument, assign it.
64: if test -n "$ac_prev"; then
65: eval "$ac_prev=\$ac_option"
66: ac_prev=
67: continue
68: fi
69:
70: case "$ac_option" in
71: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
72: *) ac_optarg= ;;
73: esac
74:
75: # Accept the important Cygnus configure options, so we can diagnose typos.
76:
77: case "$ac_option" in
78:
79: -bindir | --bindir | --bindi | --bind | --bin | --bi)
80: ac_prev=bindir ;;
81: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
82: bindir="$ac_optarg" ;;
83:
84: -build | --build | --buil | --bui | --bu)
85: ac_prev=build ;;
86: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
87: build="$ac_optarg" ;;
88:
89: -cache-file | --cache-file | --cache-fil | --cache-fi \
90: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
91: ac_prev=cache_file ;;
92: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
93: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
94: cache_file="$ac_optarg" ;;
95:
96: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
97: ac_prev=datadir ;;
98: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
99: | --da=*)
100: datadir="$ac_optarg" ;;
101:
102: -disable-* | --disable-*)
103: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
104: # Reject names that are not valid shell variable names.
105: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
106: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
107: fi
108: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
109: eval "enable_${ac_feature}=no" ;;
110:
111: -enable-* | --enable-*)
112: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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: case "$ac_option" in
119: *=*) ;;
120: *) ac_optarg=yes ;;
121: esac
122: eval "enable_${ac_feature}='$ac_optarg'" ;;
123:
124: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
125: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
126: | --exec | --exe | --ex)
127: ac_prev=exec_prefix ;;
128: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
129: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
130: | --exec=* | --exe=* | --ex=*)
131: exec_prefix="$ac_optarg" ;;
132:
133: -gas | --gas | --ga | --g)
134: # Obsolete; use --with-gas.
135: with_gas=yes ;;
136:
137: -help | --help | --hel | --he)
138: # Omit some internal or obsolete options to make the list less imposing.
139: # This message is too long to be a string in the A/UX 3.1 sh.
140: cat << EOF
141: Usage: configure [options] [host]
142: Options: [defaults in brackets after descriptions]
143: Configuration:
144: --cache-file=FILE cache test results in FILE
145: --help print this message
146: --no-create do not create output files
147: --quiet, --silent do not print \`checking...' messages
148: --version print the version of autoconf that created configure
149: Directory and file names:
150: --prefix=PREFIX install architecture-independent files in PREFIX
151: [$ac_default_prefix]
152: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
153: [same as prefix]
154: --bindir=DIR user executables in DIR [EPREFIX/bin]
155: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
156: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
157: --datadir=DIR read-only architecture-independent data in DIR
158: [PREFIX/share]
159: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
160: --sharedstatedir=DIR modifiable architecture-independent data in DIR
161: [PREFIX/com]
162: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
163: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
164: --includedir=DIR C header files in DIR [PREFIX/include]
165: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
166: --infodir=DIR info documentation in DIR [PREFIX/info]
167: --mandir=DIR man documentation in DIR [PREFIX/man]
168: --srcdir=DIR find the sources in DIR [configure dir or ..]
169: --program-prefix=PREFIX prepend PREFIX to installed program names
170: --program-suffix=SUFFIX append SUFFIX to installed program names
171: --program-transform-name=PROGRAM
172: run sed PROGRAM on installed program names
173: EOF
174: cat << EOF
175: Host type:
176: --build=BUILD configure for building on BUILD [BUILD=HOST]
177: --host=HOST configure for HOST [guessed]
178: --target=TARGET configure for TARGET [TARGET=HOST]
179: Features and packages:
180: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
181: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
182: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
183: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
184: --x-includes=DIR X include files are in DIR
185: --x-libraries=DIR X library files are in DIR
186: EOF
187: if test -n "$ac_help"; then
188: echo "--enable and --with options recognized:$ac_help"
189: fi
190: exit 0 ;;
191:
192: -host | --host | --hos | --ho)
193: ac_prev=host ;;
194: -host=* | --host=* | --hos=* | --ho=*)
195: host="$ac_optarg" ;;
196:
197: -includedir | --includedir | --includedi | --included | --include \
198: | --includ | --inclu | --incl | --inc)
199: ac_prev=includedir ;;
200: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
201: | --includ=* | --inclu=* | --incl=* | --inc=*)
202: includedir="$ac_optarg" ;;
203:
204: -infodir | --infodir | --infodi | --infod | --info | --inf)
205: ac_prev=infodir ;;
206: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
207: infodir="$ac_optarg" ;;
208:
209: -libdir | --libdir | --libdi | --libd)
210: ac_prev=libdir ;;
211: -libdir=* | --libdir=* | --libdi=* | --libd=*)
212: libdir="$ac_optarg" ;;
213:
214: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
215: | --libexe | --libex | --libe)
216: ac_prev=libexecdir ;;
217: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
218: | --libexe=* | --libex=* | --libe=*)
219: libexecdir="$ac_optarg" ;;
220:
221: -localstatedir | --localstatedir | --localstatedi | --localstated \
222: | --localstate | --localstat | --localsta | --localst \
223: | --locals | --local | --loca | --loc | --lo)
224: ac_prev=localstatedir ;;
225: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
226: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
227: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
228: localstatedir="$ac_optarg" ;;
229:
230: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
231: ac_prev=mandir ;;
232: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
233: mandir="$ac_optarg" ;;
234:
235: -nfp | --nfp | --nf)
236: # Obsolete; use --without-fp.
237: with_fp=no ;;
238:
239: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
240: | --no-cr | --no-c)
241: no_create=yes ;;
242:
243: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
244: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
245: no_recursion=yes ;;
246:
247: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
248: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
249: | --oldin | --oldi | --old | --ol | --o)
250: ac_prev=oldincludedir ;;
251: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
252: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
253: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
254: oldincludedir="$ac_optarg" ;;
255:
256: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
257: ac_prev=prefix ;;
258: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
259: prefix="$ac_optarg" ;;
260:
261: -program-prefix | --program-prefix | --program-prefi | --program-pref \
262: | --program-pre | --program-pr | --program-p)
263: ac_prev=program_prefix ;;
264: -program-prefix=* | --program-prefix=* | --program-prefi=* \
265: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
266: program_prefix="$ac_optarg" ;;
267:
268: -program-suffix | --program-suffix | --program-suffi | --program-suff \
269: | --program-suf | --program-su | --program-s)
270: ac_prev=program_suffix ;;
271: -program-suffix=* | --program-suffix=* | --program-suffi=* \
272: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
273: program_suffix="$ac_optarg" ;;
274:
275: -program-transform-name | --program-transform-name \
276: | --program-transform-nam | --program-transform-na \
277: | --program-transform-n | --program-transform- \
278: | --program-transform | --program-transfor \
279: | --program-transfo | --program-transf \
280: | --program-trans | --program-tran \
281: | --progr-tra | --program-tr | --program-t)
282: ac_prev=program_transform_name ;;
283: -program-transform-name=* | --program-transform-name=* \
284: | --program-transform-nam=* | --program-transform-na=* \
285: | --program-transform-n=* | --program-transform-=* \
286: | --program-transform=* | --program-transfor=* \
287: | --program-transfo=* | --program-transf=* \
288: | --program-trans=* | --program-tran=* \
289: | --progr-tra=* | --program-tr=* | --program-t=*)
290: program_transform_name="$ac_optarg" ;;
291:
292: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
293: | -silent | --silent | --silen | --sile | --sil)
294: silent=yes ;;
295:
296: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
297: ac_prev=sbindir ;;
298: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
299: | --sbi=* | --sb=*)
300: sbindir="$ac_optarg" ;;
301:
302: -sharedstatedir | --sharedstatedir | --sharedstatedi \
303: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
304: | --sharedst | --shareds | --shared | --share | --shar \
305: | --sha | --sh)
306: ac_prev=sharedstatedir ;;
307: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
308: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
309: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
310: | --sha=* | --sh=*)
311: sharedstatedir="$ac_optarg" ;;
312:
313: -site | --site | --sit)
314: ac_prev=site ;;
315: -site=* | --site=* | --sit=*)
316: site="$ac_optarg" ;;
317:
318: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
319: ac_prev=srcdir ;;
320: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
321: srcdir="$ac_optarg" ;;
322:
323: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
324: | --syscon | --sysco | --sysc | --sys | --sy)
325: ac_prev=sysconfdir ;;
326: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
327: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
328: sysconfdir="$ac_optarg" ;;
329:
330: -target | --target | --targe | --targ | --tar | --ta | --t)
331: ac_prev=target ;;
332: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
333: target="$ac_optarg" ;;
334:
335: -v | -verbose | --verbose | --verbos | --verbo | --verb)
336: verbose=yes ;;
337:
338: -version | --version | --versio | --versi | --vers)
339: echo "configure generated by autoconf version 2.10"
340: exit 0 ;;
341:
342: -with-* | --with-*)
343: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
344: # Reject names that are not valid shell variable names.
345: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
346: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
347: fi
348: ac_package=`echo $ac_package| sed 's/-/_/g'`
349: case "$ac_option" in
350: *=*) ;;
351: *) ac_optarg=yes ;;
352: esac
353: eval "with_${ac_package}='$ac_optarg'" ;;
354:
355: -without-* | --without-*)
356: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
357: # Reject names that are not valid shell variable names.
358: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
359: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
360: fi
361: ac_package=`echo $ac_package| sed 's/-/_/g'`
362: eval "with_${ac_package}=no" ;;
363:
364: --x)
365: # Obsolete; use --with-x.
366: with_x=yes ;;
367:
368: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
369: | --x-incl | --x-inc | --x-in | --x-i)
370: ac_prev=x_includes ;;
371: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
372: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
373: x_includes="$ac_optarg" ;;
374:
375: -x-libraries | --x-libraries | --x-librarie | --x-librari \
376: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
377: ac_prev=x_libraries ;;
378: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
379: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
380: x_libraries="$ac_optarg" ;;
381:
382: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
383: ;;
384:
385: *)
386: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
387: echo "configure: warning: $ac_option: invalid host type" 1>&2
388: fi
389: if test "x$nonopt" != xNONE; then
390: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
391: fi
392: nonopt="$ac_option"
393: ;;
394:
395: esac
396: done
397:
398: if test -n "$ac_prev"; then
399: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
400: fi
401:
402: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
403:
404: # File descriptor usage:
405: # 0 standard input
406: # 1 file creation
407: # 2 errors and warnings
408: # 3 some systems may open it to /dev/tty
409: # 4 used on the Kubota Titan
410: # 6 checking for... messages and results
411: # 5 compiler messages saved in config.log
412: if test "$silent" = yes; then
413: exec 6>/dev/null
414: else
415: exec 6>&1
416: fi
417: exec 5>./config.log
418:
419: echo "\
420: This file contains any messages produced by compilers while
421: running configure, to aid debugging if configure makes a mistake.
422: " 1>&5
423:
424: # Strip out --no-create and --no-recursion so they do not pile up.
425: # Also quote any args containing shell metacharacters.
426: ac_configure_args=
427: for ac_arg
428: do
429: case "$ac_arg" in
430: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
431: | --no-cr | --no-c) ;;
432: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
433: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
434: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
435: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
436: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
437: esac
438: done
439:
440: # NLS nuisances.
441: # Only set LANG and LC_ALL to C if already set.
442: # These must not be set unconditionally because not all systems understand
443: # e.g. LANG=C (notably SCO).
444: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
445: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
446:
447: # confdefs.h avoids OS command line length limits that DEFS can exceed.
448: rm -rf conftest* confdefs.h
449: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
450: echo > confdefs.h
451:
452: # A filename unique to this package, relative to the directory that
453: # configure is in, which we can look for to find out if srcdir is correct.
1.1.1.2 ! root 454: ac_unique_file=amiga/source/transdisk.c
1.1 root 455:
456: # Find the source files, if location was not specified.
457: if test -z "$srcdir"; then
458: ac_srcdir_defaulted=yes
459: # Try the directory containing this script, then its parent.
460: ac_prog=$0
461: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463: srcdir=$ac_confdir
464: if test ! -r $srcdir/$ac_unique_file; then
465: srcdir=..
466: fi
467: else
468: ac_srcdir_defaulted=no
469: fi
470: if test ! -r $srcdir/$ac_unique_file; then
471: if test "$ac_srcdir_defaulted" = yes; then
472: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473: else
474: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475: fi
476: fi
477: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478:
479: # Prefer explicitly selected file to automatically selected ones.
480: if test -z "$CONFIG_SITE"; then
481: if test "x$prefix" != xNONE; then
482: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483: else
484: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485: fi
486: fi
487: for ac_site_file in $CONFIG_SITE; do
488: if test -r "$ac_site_file"; then
489: echo "loading site script $ac_site_file"
490: . "$ac_site_file"
491: fi
492: done
493:
494: if test -r "$cache_file"; then
495: echo "loading cache $cache_file"
496: . $cache_file
497: else
498: echo "creating cache $cache_file"
499: > $cache_file
500: fi
501:
502: ac_ext=c
503: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504: ac_cpp='$CPP $CPPFLAGS'
505: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507:
508: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
509: # Stardent Vistra SVR4 grep lacks -e, says [email protected].
510: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
511: ac_n= ac_c='
512: ' ac_t=' '
513: else
514: ac_n=-n ac_c= ac_t=
515: fi
516: else
517: ac_n= ac_c='\c' ac_t=
518: fi
519:
520:
521:
522: # Extract the first word of "gcc", so it can be a program name with args.
523: set dummy gcc; ac_word=$2
524: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
525: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
526: echo $ac_n "(cached) $ac_c" 1>&6
527: else
528: if test -n "$CC"; then
529: ac_cv_prog_CC="$CC" # Let the user override the test.
530: else
531: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
532: for ac_dir in $PATH; do
533: test -z "$ac_dir" && ac_dir=.
534: if test -f $ac_dir/$ac_word; then
535: ac_cv_prog_CC="gcc"
536: break
537: fi
538: done
539: IFS="$ac_save_ifs"
540: fi
541: fi
542: CC="$ac_cv_prog_CC"
543: if test -n "$CC"; then
544: echo "$ac_t""$CC" 1>&6
545: else
546: echo "$ac_t""no" 1>&6
547: fi
548:
549: if test -z "$CC"; then
550: # Extract the first word of "cc", so it can be a program name with args.
551: set dummy cc; ac_word=$2
552: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
553: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
554: echo $ac_n "(cached) $ac_c" 1>&6
555: else
556: if test -n "$CC"; then
557: ac_cv_prog_CC="$CC" # Let the user override the test.
558: else
559: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
560: ac_prog_rejected=no
561: for ac_dir in $PATH; do
562: test -z "$ac_dir" && ac_dir=.
563: if test -f $ac_dir/$ac_word; then
564: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
565: ac_prog_rejected=yes
566: continue
567: fi
568: ac_cv_prog_CC="cc"
569: break
570: fi
571: done
572: IFS="$ac_save_ifs"
573: if test $ac_prog_rejected = yes; then
574: # We found a bogon in the path, so make sure we never use it.
575: set dummy $ac_cv_prog_CC
576: shift
577: if test $# -gt 0; then
578: # We chose a different compiler from the bogus one.
579: # However, it has the same basename, so the bogon will be chosen
580: # first if we set CC to just the basename; use the full file name.
581: shift
582: set dummy "$ac_dir/$ac_word" "$@"
583: shift
584: ac_cv_prog_CC="$@"
585: fi
586: fi
587: fi
588: fi
589: CC="$ac_cv_prog_CC"
590: if test -n "$CC"; then
591: echo "$ac_t""$CC" 1>&6
592: else
593: echo "$ac_t""no" 1>&6
594: fi
595:
596: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
597: fi
598:
599: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
600: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
601: echo $ac_n "(cached) $ac_c" 1>&6
602: else
603: cat > conftest.c <<EOF
604: #ifdef __GNUC__
605: yes;
606: #endif
607: EOF
1.1.1.2 ! root 608: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 root 609: ac_cv_prog_gcc=yes
610: else
611: ac_cv_prog_gcc=no
612: fi
613: fi
614:
615: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
616: if test $ac_cv_prog_gcc = yes; then
617: GCC=yes
618: if test "${CFLAGS+set}" != set; then
619: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
620: if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
621: echo $ac_n "(cached) $ac_c" 1>&6
622: else
623: echo 'void f(){}' > conftest.c
624: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
625: ac_cv_prog_gcc_g=yes
626: else
627: ac_cv_prog_gcc_g=no
628: fi
629: rm -f conftest*
630:
631: fi
632:
633: echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
634: if test $ac_cv_prog_gcc_g = yes; then
635: CFLAGS="-g -O"
636: else
637: CFLAGS="-O"
638: fi
639: fi
640: else
641: GCC=
642: test "${CFLAGS+set}" = set || CFLAGS="-g"
643: fi
644:
645:
646: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
647: # On Suns, sometimes $CPP names a directory.
648: if test -n "$CPP" && test -d "$CPP"; then
649: CPP=
650: fi
651: if test -z "$CPP"; then
652: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
653: echo $ac_n "(cached) $ac_c" 1>&6
654: else
655: # This must be in double quotes, not single quotes, because CPP may get
656: # substituted into the Makefile and "${CC-cc}" will confuse make.
657: CPP="${CC-cc} -E"
658: # On the NeXT, cc -E runs the code through the compiler's parser,
659: # not just through cpp.
660: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 661: #line 662 "configure"
1.1 root 662: #include "confdefs.h"
663: #include <assert.h>
664: Syntax Error
665: EOF
666: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.2 ! root 667: { (eval echo configure:668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 668: ac_err=`grep -v '^ *+' conftest.out`
669: if test -z "$ac_err"; then
670: :
671: else
672: echo "$ac_err" >&5
673: rm -rf conftest*
674: CPP="${CC-cc} -E -traditional-cpp"
675: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 676: #line 677 "configure"
1.1 root 677: #include "confdefs.h"
678: #include <assert.h>
679: Syntax Error
680: EOF
681: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.2 ! root 682: { (eval echo configure:683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 683: ac_err=`grep -v '^ *+' conftest.out`
684: if test -z "$ac_err"; then
685: :
686: else
687: echo "$ac_err" >&5
688: rm -rf conftest*
689: CPP=/lib/cpp
690: fi
691: rm -f conftest*
692: fi
693: rm -f conftest*
694: ac_cv_prog_CPP="$CPP"
695: fi
696: CPP="$ac_cv_prog_CPP"
697: else
698: ac_cv_prog_CPP="$CPP"
699: fi
700: echo "$ac_t""$CPP" 1>&6
701:
702: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
703: set dummy ${MAKE-make}; ac_make=$2
704: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
705: echo $ac_n "(cached) $ac_c" 1>&6
706: else
707: cat > conftestmake <<\EOF
708: all:
709: @echo 'ac_maketemp="${MAKE}"'
710: EOF
711: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
712: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
713: if test -n "$ac_maketemp"; then
714: eval ac_cv_prog_make_${ac_make}_set=yes
715: else
716: eval ac_cv_prog_make_${ac_make}_set=no
717: fi
718: rm -f conftestmake
719: fi
720: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
721: echo "$ac_t""yes" 1>&6
722: SET_MAKE=
723: else
724: echo "$ac_t""no" 1>&6
725: SET_MAKE="MAKE=${MAKE-make}"
726: fi
727:
728:
729: echo $ac_n "checking for AIX""... $ac_c" 1>&6
730: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 731: #line 732 "configure"
1.1 root 732: #include "confdefs.h"
733: #ifdef _AIX
734: yes
735: #endif
736:
737: EOF
738: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
739: egrep "yes" >/dev/null 2>&1; then
740: rm -rf conftest*
741: echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
742: #define _ALL_SOURCE 1
743: EOF
744:
745: else
746: rm -rf conftest*
747: echo "$ac_t""no" 1>&6
748: fi
749: rm -f conftest*
750:
751:
752: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
753: if test -d /etc/conf/kconfig.d &&
754: grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
755: then
756: echo "$ac_t""yes" 1>&6
757: ISC=yes # If later tests want to check for ISC.
758: cat >> confdefs.h <<\EOF
759: #define _POSIX_SOURCE 1
760: EOF
761:
762: if test "$GCC" = yes; then
763: CC="$CC -posix"
764: else
765: CC="$CC -Xp"
766: fi
767: else
768: echo "$ac_t""no" 1>&6
769: ISC=
770: fi
771:
772:
773: HAVE_BEBOX=n
774: echo $ac_n "checking for -lMedia_s""... $ac_c" 1>&6
775: ac_lib_var=`echo Media_s'_'main | tr './+\055' '__p_'`
776: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
777: echo $ac_n "(cached) $ac_c" 1>&6
778: else
779: ac_save_LIBS="$LIBS"
780: LIBS="-lMedia_s $LIBS"
781: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 782: #line 783 "configure"
1.1 root 783: #include "confdefs.h"
784:
785: int main() { return 0; }
786: int t() {
787: main()
788: ; return 0; }
789: EOF
1.1.1.2 ! root 790: if { (eval echo configure:791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 791: rm -rf conftest*
792: eval "ac_cv_lib_$ac_lib_var=yes"
793: else
794: rm -rf conftest*
795: eval "ac_cv_lib_$ac_lib_var=no"
796: fi
797: rm -f conftest*
798: LIBS="$ac_save_LIBS"
799:
800: fi
801: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
802: echo "$ac_t""yes" 1>&6
803: HAVE_MEDIA_LIB=y
804: else
805: echo "$ac_t""no" 1>&6
806: HAVE_MEDIA_LIB=n
807: fi
808:
809: echo $ac_n "checking for -lNeXT_s""... $ac_c" 1>&6
810: ac_lib_var=`echo NeXT_s'_'main | tr './+\055' '__p_'`
811: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
812: echo $ac_n "(cached) $ac_c" 1>&6
813: else
814: ac_save_LIBS="$LIBS"
815: LIBS="-lNeXT_s $LIBS"
816: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 817: #line 818 "configure"
1.1 root 818: #include "confdefs.h"
819:
820: int main() { return 0; }
821: int t() {
822: main()
823: ; return 0; }
824: EOF
1.1.1.2 ! root 825: if { (eval echo configure:826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 826: rm -rf conftest*
827: eval "ac_cv_lib_$ac_lib_var=yes"
828: else
829: rm -rf conftest*
830: eval "ac_cv_lib_$ac_lib_var=no"
831: fi
832: rm -f conftest*
833: LIBS="$ac_save_LIBS"
834:
835: fi
836: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
837: echo "$ac_t""yes" 1>&6
838: HAVE_NEXT_LIB=y
839: else
840: echo "$ac_t""no" 1>&6
841: HAVE_NEXT_LIB=n
842: fi
843:
844: echo $ac_n "checking for -lvga""... $ac_c" 1>&6
845: ac_lib_var=`echo vga'_'vga_setmode | tr './+\055' '__p_'`
846: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
847: echo $ac_n "(cached) $ac_c" 1>&6
848: else
849: ac_save_LIBS="$LIBS"
850: LIBS="-lvga $LIBS"
851: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 852: #line 853 "configure"
1.1 root 853: #include "confdefs.h"
854: /* Override any gcc2 internal prototype to avoid an error. */
855: /* We use char because int might match the return type of a gcc2
856: builtin and then its argument prototype would still apply. */
857: char vga_setmode();
858:
859: int main() { return 0; }
860: int t() {
861: vga_setmode()
862: ; return 0; }
863: EOF
1.1.1.2 ! root 864: if { (eval echo configure:865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 865: rm -rf conftest*
866: eval "ac_cv_lib_$ac_lib_var=yes"
867: else
868: rm -rf conftest*
869: eval "ac_cv_lib_$ac_lib_var=no"
870: fi
871: rm -f conftest*
872: LIBS="$ac_save_LIBS"
873:
874: fi
875: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
876: echo "$ac_t""yes" 1>&6
877: HAVE_SVGA_LIB=y
878: else
879: echo "$ac_t""no" 1>&6
880: HAVE_SVGA_LIB=n
881: fi
882:
883: echo $ac_n "checking for -lAF""... $ac_c" 1>&6
884: ac_lib_var=`echo AF'_'AFOpenAudioConn | tr './+\055' '__p_'`
885: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
886: echo $ac_n "(cached) $ac_c" 1>&6
887: else
888: ac_save_LIBS="$LIBS"
889: LIBS="-lAF $LIBS"
890: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 891: #line 892 "configure"
1.1 root 892: #include "confdefs.h"
893: /* Override any gcc2 internal prototype to avoid an error. */
894: /* We use char because int might match the return type of a gcc2
895: builtin and then its argument prototype would still apply. */
896: char AFOpenAudioConn();
897:
898: int main() { return 0; }
899: int t() {
900: AFOpenAudioConn()
901: ; return 0; }
902: EOF
1.1.1.2 ! root 903: if { (eval echo configure:904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 904: rm -rf conftest*
905: eval "ac_cv_lib_$ac_lib_var=yes"
906: else
907: rm -rf conftest*
908: eval "ac_cv_lib_$ac_lib_var=no"
909: fi
910: rm -f conftest*
911: LIBS="$ac_save_LIBS"
912:
913: fi
914: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
915: echo "$ac_t""yes" 1>&6
916: HAVE_AF_LIB=y
917: else
918: echo "$ac_t""no" 1>&6
919: HAVE_AF_LIB=n
920: fi
921:
922:
923: # If we find X, set shell vars x_includes and x_libraries to the
924: # paths, otherwise set no_x=yes.
925: # Uses ac_ vars as temps to allow command line to override cache and checks.
926: # --without-x overrides everything else, but does not touch the cache.
927: echo $ac_n "checking for X""... $ac_c" 1>&6
928:
929: # Check whether --with-x or --without-x was given.
930: if test "${with_x+set}" = set; then
931: withval="$with_x"
932: :
933: fi
934:
935: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
936: if test "x$with_x" = xno; then
937: # The user explicitly disabled X.
938: have_x=disabled
939: else
940: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
941: # Both variables are already set.
942: have_x=yes
943: else
944: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
945: echo $ac_n "(cached) $ac_c" 1>&6
946: else
947: # One or both of the vars are not set, and there is no cached value.
948: ac_x_includes=NO ac_x_libraries=NO
949: rm -fr conftestdir
950: if mkdir conftestdir; then
951: cd conftestdir
952: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
953: cat > Imakefile <<'EOF'
954: acfindx:
955: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
956: EOF
957: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
958: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
959: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
960: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
961: for ac_extension in a so sl; do
962: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
963: test -f $ac_im_libdir/libX11.$ac_extension; then
964: ac_im_usrlibdir=$ac_im_libdir; break
965: fi
966: done
967: # Screen out bogus values from the imake configuration.
968: case "$ac_im_incroot" in
969: /usr/include) ;;
970: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
971: esac
972: case "$ac_im_usrlibdir" in
973: /usr/lib | /lib) ;;
974: *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
975: esac
976: fi
977: cd ..
978: rm -fr conftestdir
979: fi
980:
981: if test "$ac_x_includes" = NO; then
982: # Guess where to find include files, by looking for this one X11 .h file.
983: test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
984:
985: # First, try using that file with no special directory specified.
986: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 987: #line 988 "configure"
1.1 root 988: #include "confdefs.h"
989: #include <$x_direct_test_include>
990: EOF
991: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.2 ! root 992: { (eval echo configure:993: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 993: ac_err=`grep -v '^ *+' conftest.out`
994: if test -z "$ac_err"; then
995: rm -rf conftest*
996: # We can compile using X headers with no special include directory.
997: ac_x_includes=
998: else
999: echo "$ac_err" >&5
1000: rm -rf conftest*
1001: # Look for the header file in a standard set of common directories.
1002: for ac_dir in \
1003: /usr/X11R6/include \
1004: /usr/X11R5/include \
1005: /usr/X11R4/include \
1006: \
1007: /usr/include/X11R6 \
1008: /usr/include/X11R5 \
1009: /usr/include/X11R4 \
1010: \
1011: /usr/local/X11R6/include \
1012: /usr/local/X11R5/include \
1013: /usr/local/X11R4/include \
1014: \
1015: /usr/local/include/X11R6 \
1016: /usr/local/include/X11R5 \
1017: /usr/local/include/X11R4 \
1018: \
1019: /usr/X11/include \
1020: /usr/include/X11 \
1021: /usr/local/X11/include \
1022: /usr/local/include/X11 \
1023: \
1024: /usr/X386/include \
1025: /usr/x386/include \
1026: /usr/XFree86/include/X11 \
1027: \
1028: /usr/include \
1029: /usr/local/include \
1030: /usr/unsupported/include \
1031: /usr/athena/include \
1032: /usr/local/x11r5/include \
1033: /usr/lpp/Xamples/include \
1034: \
1035: /usr/openwin/include \
1036: /usr/openwin/share/include \
1037: ; \
1038: do
1039: if test -r "$ac_dir/$x_direct_test_include"; then
1040: ac_x_includes=$ac_dir
1041: break
1042: fi
1043: done
1044: fi
1045: rm -f conftest*
1046: fi # $ac_x_includes = NO
1047:
1048: if test "$ac_x_libraries" = NO; then
1049: # Check for the libraries.
1050:
1051: test -z "$x_direct_test_library" && x_direct_test_library=Xt
1052: test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1053:
1054: # See if we find them without any special options.
1055: # Don't add to $LIBS permanently.
1056: ac_save_LIBS="$LIBS"
1057: LIBS="-l$x_direct_test_library $LIBS"
1058: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1059: #line 1060 "configure"
1.1 root 1060: #include "confdefs.h"
1061:
1062: int main() { return 0; }
1063: int t() {
1064: ${x_direct_test_function}()
1065: ; return 0; }
1066: EOF
1.1.1.2 ! root 1067: if { (eval echo configure:1068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 1068: rm -rf conftest*
1069: LIBS="$ac_save_LIBS"
1070: # We can link X programs with no special library path.
1071: ac_x_libraries=
1072: else
1073: rm -rf conftest*
1074: LIBS="$ac_save_LIBS"
1075: # First see if replacing the include by lib works.
1076: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1077: /usr/X11R6/lib \
1078: /usr/X11R5/lib \
1079: /usr/X11R4/lib \
1080: \
1081: /usr/lib/X11R6 \
1082: /usr/lib/X11R5 \
1083: /usr/lib/X11R4 \
1084: \
1085: /usr/local/X11R6/lib \
1086: /usr/local/X11R5/lib \
1087: /usr/local/X11R4/lib \
1088: \
1089: /usr/local/lib/X11R6 \
1090: /usr/local/lib/X11R5 \
1091: /usr/local/lib/X11R4 \
1092: \
1093: /usr/X11/lib \
1094: /usr/lib/X11 \
1095: /usr/local/X11/lib \
1096: /usr/local/lib/X11 \
1097: \
1098: /usr/X386/lib \
1099: /usr/x386/lib \
1100: /usr/XFree86/lib/X11 \
1101: \
1102: /usr/lib \
1103: /usr/local/lib \
1104: /usr/unsupported/lib \
1105: /usr/athena/lib \
1106: /usr/local/x11r5/lib \
1107: /usr/lpp/Xamples/lib \
1108: \
1109: /usr/openwin/lib \
1110: /usr/openwin/share/lib \
1111: ; \
1112: do
1113: for ac_extension in a so sl; do
1114: if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1115: ac_x_libraries=$ac_dir
1116: break 2
1117: fi
1118: done
1119: done
1120: fi
1121: rm -f conftest*
1122:
1123: fi # $ac_x_libraries = NO
1124:
1125: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1126: # Didn't find X anywhere. Cache the known absence of X.
1127: ac_cv_have_x="have_x=no"
1128: else
1129: # Record where we found X for the cache.
1130: ac_cv_have_x="have_x=yes \
1131: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1132: fi
1133: fi
1134: fi
1135: eval "$ac_cv_have_x"
1136: fi # $with_x != no
1137:
1138: if test "$have_x" != yes; then
1139: echo "$ac_t""$have_x" 1>&6
1140: no_x=yes
1141: else
1142: # If each of the values was on the command line, it overrides each guess.
1143: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1144: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1145: # Update the cache value to reflect the command line values.
1146: ac_cv_have_x="have_x=yes \
1147: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1148: echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1149: fi
1150:
1151: if test "$no_x" = yes; then
1152: # Not all programs may use this symbol, but it does not hurt to define it.
1153: X_CFLAGS="$X_CFLAGS -DX_DISPLAY_MISSING"
1154: else
1155: if test -n "$x_includes"; then
1156: X_CFLAGS="$X_CFLAGS -I$x_includes"
1157: fi
1158:
1159: # It would be nice to have a more robust check for the -R ld option than
1160: # just checking for Solaris.
1161: # It would also be nice to do this for all -L options, not just this one.
1162: if test -n "$x_libraries"; then
1163: X_LIBS="$X_LIBS -L$x_libraries"
1164: if test "`(uname) 2>/dev/null`" = SunOS &&
1165: uname -r | grep '^5' >/dev/null; then
1166: X_LIBS="$X_LIBS -R $x_libraries"
1167: fi
1168: fi
1169:
1170: # Check for libraries that X11R6 Xt/Xaw programs need.
1171:
1172: ac_save_LDFLAGS="$LDFLAGS"
1173: LDFLAGS="$LDFLAGS -L$x_libraries"
1174: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1175: # check for ICE first), but we must link in the order -lSM -lICE or
1176: # we get undefined symbols. So assume we have SM if we have ICE.
1177: # These have to be linked with before -lX11, unlike the other
1178: # libraries we check for below, so use a different variable.
1179: # [email protected], [email protected].
1180: echo $ac_n "checking for -lICE""... $ac_c" 1>&6
1181: ac_lib_var=`echo ICE'_'IceConnectionNumber | tr './+\055' '__p_'`
1182: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1183: echo $ac_n "(cached) $ac_c" 1>&6
1184: else
1185: ac_save_LIBS="$LIBS"
1186: LIBS="-lICE $LIBS"
1187: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1188: #line 1189 "configure"
1.1 root 1189: #include "confdefs.h"
1190: /* Override any gcc2 internal prototype to avoid an error. */
1191: /* We use char because int might match the return type of a gcc2
1192: builtin and then its argument prototype would still apply. */
1193: char IceConnectionNumber();
1194:
1195: int main() { return 0; }
1196: int t() {
1197: IceConnectionNumber()
1198: ; return 0; }
1199: EOF
1.1.1.2 ! root 1200: if { (eval echo configure:1201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 1201: rm -rf conftest*
1202: eval "ac_cv_lib_$ac_lib_var=yes"
1203: else
1204: rm -rf conftest*
1205: eval "ac_cv_lib_$ac_lib_var=no"
1206: fi
1207: rm -f conftest*
1208: LIBS="$ac_save_LIBS"
1209:
1210: fi
1211: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1212: echo "$ac_t""yes" 1>&6
1213: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1214: else
1215: echo "$ac_t""no" 1>&6
1216: fi
1217:
1218: LDFLAGS="$ac_save_LDFLAGS"
1219:
1220: # Check for system-dependent libraries X programs must link with.
1221:
1222: if test "$ISC" = yes; then
1223: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1224: else
1225: # [email protected] says this is needed for Ultrix, if the X
1226: # libraries were built with DECnet support. And [email protected] says
1227: # the Alpha needs dnet_stub (dnet does not exist).
1228: echo $ac_n "checking for -ldnet""... $ac_c" 1>&6
1229: ac_lib_var=`echo dnet'_'dnet_ntoa | tr './+\055' '__p_'`
1230: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1231: echo $ac_n "(cached) $ac_c" 1>&6
1232: else
1233: ac_save_LIBS="$LIBS"
1234: LIBS="-ldnet $LIBS"
1235: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1236: #line 1237 "configure"
1.1 root 1237: #include "confdefs.h"
1238: /* Override any gcc2 internal prototype to avoid an error. */
1239: /* We use char because int might match the return type of a gcc2
1240: builtin and then its argument prototype would still apply. */
1241: char dnet_ntoa();
1242:
1243: int main() { return 0; }
1244: int t() {
1245: dnet_ntoa()
1246: ; return 0; }
1247: EOF
1.1.1.2 ! root 1248: if { (eval echo configure:1249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 1249: rm -rf conftest*
1250: eval "ac_cv_lib_$ac_lib_var=yes"
1251: else
1252: rm -rf conftest*
1253: eval "ac_cv_lib_$ac_lib_var=no"
1254: fi
1255: rm -f conftest*
1256: LIBS="$ac_save_LIBS"
1257:
1258: fi
1259: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1260: echo "$ac_t""yes" 1>&6
1261: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1262: else
1263: echo "$ac_t""no" 1>&6
1264: fi
1265:
1266: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1267: echo $ac_n "checking for -ldnet_stub""... $ac_c" 1>&6
1268: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | tr './+\055' '__p_'`
1269: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1270: echo $ac_n "(cached) $ac_c" 1>&6
1271: else
1272: ac_save_LIBS="$LIBS"
1273: LIBS="-ldnet_stub $LIBS"
1274: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1275: #line 1276 "configure"
1.1 root 1276: #include "confdefs.h"
1277: /* Override any gcc2 internal prototype to avoid an error. */
1278: /* We use char because int might match the return type of a gcc2
1279: builtin and then its argument prototype would still apply. */
1280: char dnet_ntoa();
1281:
1282: int main() { return 0; }
1283: int t() {
1284: dnet_ntoa()
1285: ; return 0; }
1286: EOF
1.1.1.2 ! root 1287: if { (eval echo configure:1288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 1288: rm -rf conftest*
1289: eval "ac_cv_lib_$ac_lib_var=yes"
1290: else
1291: rm -rf conftest*
1292: eval "ac_cv_lib_$ac_lib_var=no"
1293: fi
1294: rm -f conftest*
1295: LIBS="$ac_save_LIBS"
1296:
1297: fi
1298: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1299: echo "$ac_t""yes" 1>&6
1300: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1301: else
1302: echo "$ac_t""no" 1>&6
1303: fi
1304:
1305: fi
1306:
1307: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
1308: # to get the SysV transport functions.
1309: # Not sure which flavor of 386 UNIX this is, but it seems harmless to
1310: # check for it.
1311: echo $ac_n "checking for -lnsl""... $ac_c" 1>&6
1312: ac_lib_var=`echo nsl'_'t_accept | tr './+\055' '__p_'`
1313: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1314: echo $ac_n "(cached) $ac_c" 1>&6
1315: else
1316: ac_save_LIBS="$LIBS"
1317: LIBS="-lnsl $LIBS"
1318: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1319: #line 1320 "configure"
1.1 root 1320: #include "confdefs.h"
1321: /* Override any gcc2 internal prototype to avoid an error. */
1322: /* We use char because int might match the return type of a gcc2
1323: builtin and then its argument prototype would still apply. */
1324: char t_accept();
1325:
1326: int main() { return 0; }
1327: int t() {
1328: t_accept()
1329: ; return 0; }
1330: EOF
1.1.1.2 ! root 1331: if { (eval echo configure:1332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 1332: rm -rf conftest*
1333: eval "ac_cv_lib_$ac_lib_var=yes"
1334: else
1335: rm -rf conftest*
1336: eval "ac_cv_lib_$ac_lib_var=no"
1337: fi
1338: rm -f conftest*
1339: LIBS="$ac_save_LIBS"
1340:
1341: fi
1342: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1343: echo "$ac_t""yes" 1>&6
1344: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1345: else
1346: echo "$ac_t""no" 1>&6
1347: fi
1348:
1349:
1350: # [email protected] says without -lsocket,
1351: # socket/setsockopt and other routines are undefined under SCO ODT 2.0.
1352: # But -lsocket is broken on IRIX, according to [email protected].
1353: if test "`(uname) 2>/dev/null`" != IRIX; then
1354: echo $ac_n "checking for -lsocket""... $ac_c" 1>&6
1355: ac_lib_var=`echo socket'_'socket | tr './+\055' '__p_'`
1356: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1357: echo $ac_n "(cached) $ac_c" 1>&6
1358: else
1359: ac_save_LIBS="$LIBS"
1360: LIBS="-lsocket $LIBS"
1361: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1362: #line 1363 "configure"
1.1 root 1363: #include "confdefs.h"
1364: /* Override any gcc2 internal prototype to avoid an error. */
1365: /* We use char because int might match the return type of a gcc2
1366: builtin and then its argument prototype would still apply. */
1367: char socket();
1368:
1369: int main() { return 0; }
1370: int t() {
1371: socket()
1372: ; return 0; }
1373: EOF
1.1.1.2 ! root 1374: if { (eval echo configure:1375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 1375: rm -rf conftest*
1376: eval "ac_cv_lib_$ac_lib_var=yes"
1377: else
1378: rm -rf conftest*
1379: eval "ac_cv_lib_$ac_lib_var=no"
1380: fi
1381: rm -f conftest*
1382: LIBS="$ac_save_LIBS"
1383:
1384: fi
1385: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1386: echo "$ac_t""yes" 1>&6
1387: X_EXTRA_LIBS="$X_EXTRA_LIBS -lsocket"
1388: else
1389: echo "$ac_t""no" 1>&6
1390: fi
1391:
1392: fi
1393: fi
1394: fi
1395:
1396:
1397:
1398: ac_header_dirent=no
1399: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1400: do
1401: ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1402: echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1403: if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1404: echo $ac_n "(cached) $ac_c" 1>&6
1405: else
1406: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1407: #line 1408 "configure"
1.1 root 1408: #include "confdefs.h"
1409: #include <sys/types.h>
1410: #include <$ac_hdr>
1411: int main() { return 0; }
1412: int t() {
1413: DIR *dirp = 0;
1414: ; return 0; }
1415: EOF
1.1.1.2 ! root 1416: if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 1417: rm -rf conftest*
1418: eval "ac_cv_header_dirent_$ac_safe=yes"
1419: else
1420: rm -rf conftest*
1421: eval "ac_cv_header_dirent_$ac_safe=no"
1422: fi
1423: rm -f conftest*
1424:
1425: fi
1426: if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1427: echo "$ac_t""yes" 1>&6
1428: ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdedfghijklmnopqrstuvwxyz./\055' 'ABCDEDFGHIJKLMNOPQRSTUVWXYZ___'`
1429: cat >> confdefs.h <<EOF
1430: #define $ac_tr_hdr 1
1431: EOF
1432: ac_header_dirent=$ac_hdr; break
1433: else
1434: echo "$ac_t""no" 1>&6
1435: fi
1436: done
1437: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1438: if test $ac_header_dirent = dirent.h; then
1439: echo $ac_n "checking for -ldir""... $ac_c" 1>&6
1440: ac_lib_var=`echo dir'_'opendir | tr './+\055' '__p_'`
1441: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1442: echo $ac_n "(cached) $ac_c" 1>&6
1443: else
1444: ac_save_LIBS="$LIBS"
1445: LIBS="-ldir $LIBS"
1446: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1447: #line 1448 "configure"
1.1 root 1448: #include "confdefs.h"
1449: /* Override any gcc2 internal prototype to avoid an error. */
1450: /* We use char because int might match the return type of a gcc2
1451: builtin and then its argument prototype would still apply. */
1452: char opendir();
1453:
1454: int main() { return 0; }
1455: int t() {
1456: opendir()
1457: ; return 0; }
1458: EOF
1.1.1.2 ! root 1459: if { (eval echo configure:1460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 1460: rm -rf conftest*
1461: eval "ac_cv_lib_$ac_lib_var=yes"
1462: else
1463: rm -rf conftest*
1464: eval "ac_cv_lib_$ac_lib_var=no"
1465: fi
1466: rm -f conftest*
1467: LIBS="$ac_save_LIBS"
1468:
1469: fi
1470: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1471: echo "$ac_t""yes" 1>&6
1472: LIBS="$LIBS -ldir"
1473: else
1474: echo "$ac_t""no" 1>&6
1475: fi
1476:
1477: else
1478: echo $ac_n "checking for -lx""... $ac_c" 1>&6
1479: ac_lib_var=`echo x'_'opendir | tr './+\055' '__p_'`
1480: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1481: echo $ac_n "(cached) $ac_c" 1>&6
1482: else
1483: ac_save_LIBS="$LIBS"
1484: LIBS="-lx $LIBS"
1485: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1486: #line 1487 "configure"
1.1 root 1487: #include "confdefs.h"
1488: /* Override any gcc2 internal prototype to avoid an error. */
1489: /* We use char because int might match the return type of a gcc2
1490: builtin and then its argument prototype would still apply. */
1491: char opendir();
1492:
1493: int main() { return 0; }
1494: int t() {
1495: opendir()
1496: ; return 0; }
1497: EOF
1.1.1.2 ! root 1498: if { (eval echo configure:1499: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 1499: rm -rf conftest*
1500: eval "ac_cv_lib_$ac_lib_var=yes"
1501: else
1502: rm -rf conftest*
1503: eval "ac_cv_lib_$ac_lib_var=no"
1504: fi
1505: rm -f conftest*
1506: LIBS="$ac_save_LIBS"
1507:
1508: fi
1509: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1510: echo "$ac_t""yes" 1>&6
1511: LIBS="$LIBS -lx"
1512: else
1513: echo "$ac_t""no" 1>&6
1514: fi
1515:
1516: fi
1517:
1518: # If we cannot run a trivial program, we must be cross compiling.
1519: echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1520: if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1521: echo $ac_n "(cached) $ac_c" 1>&6
1522: else
1523: if test "$cross_compiling" = yes; then
1524: ac_cv_c_cross=yes
1525: else
1526: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1527: #line 1528 "configure"
1.1 root 1528: #include "confdefs.h"
1529: main(){return(0);}
1530: EOF
1.1.1.2 ! root 1531: { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1 root 1532: if test -s conftest && (./conftest; exit) 2>/dev/null; then
1533: ac_cv_c_cross=no
1534: else
1535: ac_cv_c_cross=yes
1536: fi
1537: fi
1538: rm -fr conftest*
1539: fi
1540:
1541: echo "$ac_t""$ac_cv_c_cross" 1>&6
1542: cross_compiling=$ac_cv_c_cross
1543:
1544: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1545: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1546: echo $ac_n "(cached) $ac_c" 1>&6
1547: else
1548: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1549: #line 1550 "configure"
1.1 root 1550: #include "confdefs.h"
1551: #include <stdlib.h>
1552: #include <stdarg.h>
1553: #include <string.h>
1554: #include <float.h>
1555: EOF
1556: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.2 ! root 1557: { (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 1558: ac_err=`grep -v '^ *+' conftest.out`
1559: if test -z "$ac_err"; then
1560: rm -rf conftest*
1561: ac_cv_header_stdc=yes
1562: else
1563: echo "$ac_err" >&5
1564: rm -rf conftest*
1565: ac_cv_header_stdc=no
1566: fi
1567: rm -f conftest*
1568:
1569: if test $ac_cv_header_stdc = yes; then
1570: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1571: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1572: #line 1573 "configure"
1.1 root 1573: #include "confdefs.h"
1574: #include <string.h>
1575: EOF
1576: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1577: egrep "memchr" >/dev/null 2>&1; then
1578: :
1579: else
1580: rm -rf conftest*
1581: ac_cv_header_stdc=no
1582: fi
1583: rm -f conftest*
1584:
1585: fi
1586:
1587: if test $ac_cv_header_stdc = yes; then
1588: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1589: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1590: #line 1591 "configure"
1.1 root 1591: #include "confdefs.h"
1592: #include <stdlib.h>
1593: EOF
1594: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1595: egrep "free" >/dev/null 2>&1; then
1596: :
1597: else
1598: rm -rf conftest*
1599: ac_cv_header_stdc=no
1600: fi
1601: rm -f conftest*
1602:
1603: fi
1604:
1605: if test $ac_cv_header_stdc = yes; then
1606: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1607: if test "$cross_compiling" = yes; then
1608: :
1609: else
1610: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1611: #line 1612 "configure"
1.1 root 1612: #include "confdefs.h"
1613: #include <ctype.h>
1614: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1615: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1616: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1617: int main () { int i; for (i = 0; i < 256; i++)
1618: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1619: exit (0); }
1620:
1621: EOF
1.1.1.2 ! root 1622: { (eval echo configure:1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1 root 1623: if test -s conftest && (./conftest; exit) 2>/dev/null; then
1624: :
1625: else
1626: ac_cv_header_stdc=no
1627: fi
1628: fi
1629: rm -fr conftest*
1630: fi
1631: fi
1632:
1633: echo "$ac_t""$ac_cv_header_stdc" 1>&6
1634: if test $ac_cv_header_stdc = yes; then
1635: cat >> confdefs.h <<\EOF
1636: #define STDC_HEADERS 1
1637: EOF
1638:
1639: fi
1640:
1641: for ac_hdr in unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h
1642: do
1643: ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1644: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1645: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1646: echo $ac_n "(cached) $ac_c" 1>&6
1647: else
1648: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1649: #line 1650 "configure"
1.1 root 1650: #include "confdefs.h"
1651: #include <$ac_hdr>
1652: EOF
1653: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.2 ! root 1654: { (eval echo configure:1655: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 1655: ac_err=`grep -v '^ *+' conftest.out`
1656: if test -z "$ac_err"; then
1657: rm -rf conftest*
1658: eval "ac_cv_header_$ac_safe=yes"
1659: else
1660: echo "$ac_err" >&5
1661: rm -rf conftest*
1662: eval "ac_cv_header_$ac_safe=no"
1663: fi
1664: rm -f conftest*
1665: fi
1666: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1667: echo "$ac_t""yes" 1>&6
1668: ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1669: cat >> confdefs.h <<EOF
1670: #define $ac_tr_hdr 1
1671: EOF
1672:
1673: else
1674: echo "$ac_t""no" 1>&6
1675: fi
1676: done
1677:
1.1.1.2 ! root 1678: for ac_hdr in sys/vfs.h sys/mount.h sys/select.h sys/param.h sys/statfs.h sys/statvfs.h sys/stat.h linux/joystick.h
1.1 root 1679: do
1680: ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1681: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1682: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1683: echo $ac_n "(cached) $ac_c" 1>&6
1684: else
1685: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1686: #line 1687 "configure"
1.1 root 1687: #include "confdefs.h"
1688: #include <$ac_hdr>
1689: EOF
1690: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.2 ! root 1691: { (eval echo configure:1692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 1692: ac_err=`grep -v '^ *+' conftest.out`
1693: if test -z "$ac_err"; then
1694: rm -rf conftest*
1695: eval "ac_cv_header_$ac_safe=yes"
1696: else
1697: echo "$ac_err" >&5
1698: rm -rf conftest*
1699: eval "ac_cv_header_$ac_safe=no"
1700: fi
1701: rm -f conftest*
1702: fi
1703: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1704: echo "$ac_t""yes" 1>&6
1705: ac_tr_hdr=HAVE_`echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___'`
1706: cat >> confdefs.h <<EOF
1707: #define $ac_tr_hdr 1
1708: EOF
1709:
1710: else
1711: echo "$ac_t""no" 1>&6
1712: fi
1713: done
1714:
1715:
1716: if [ $ac_cv_header_linux_joystick_h = "yes" ]; then
1717: echo $ac_n "checking whether linux/joystick.h is broken""... $ac_c" 1>&6
1718: if grep "#include" /usr/include/linux/joystick.h >/dev/null; then
1719: echo "$ac_t""yes" 1>&6
1720: BROKEN_JOYSTICK_H=1
1721: grep -v "#include" /usr/include/linux/joystick.h >include/joystick.h
1722: else
1723: echo "$ac_t""no" 1>&6
1724: BROKEN_JOYSTICK_H=0
1725: fi
1726: fi
1727:
1728: echo $ac_n "checking size of char""... $ac_c" 1>&6
1729: if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
1730: echo $ac_n "(cached) $ac_c" 1>&6
1731: else
1732: if test "$cross_compiling" = yes; then
1733: { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1734: else
1735: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1736: #line 1737 "configure"
1.1 root 1737: #include "confdefs.h"
1738: #include <stdio.h>
1739: main()
1740: {
1741: FILE *f=fopen("conftestval", "w");
1742: if (!f) exit(1);
1743: fprintf(f, "%d\n", sizeof(char));
1744: exit(0);
1745: }
1746: EOF
1.1.1.2 ! root 1747: { (eval echo configure:1748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1 root 1748: if test -s conftest && (./conftest; exit) 2>/dev/null; then
1749: ac_cv_sizeof_char=`cat conftestval`
1750: else
1751: ac_cv_sizeof_char=0
1752: fi
1753: fi
1754: rm -fr conftest*
1755: fi
1756: echo "$ac_t""$ac_cv_sizeof_char" 1>&6
1757: cat >> confdefs.h <<EOF
1758: #define SIZEOF_CHAR $ac_cv_sizeof_char
1759: EOF
1760:
1761:
1762: echo $ac_n "checking size of short""... $ac_c" 1>&6
1763: if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
1764: echo $ac_n "(cached) $ac_c" 1>&6
1765: else
1766: if test "$cross_compiling" = yes; then
1767: { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1768: else
1769: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1770: #line 1771 "configure"
1.1 root 1771: #include "confdefs.h"
1772: #include <stdio.h>
1773: main()
1774: {
1775: FILE *f=fopen("conftestval", "w");
1776: if (!f) exit(1);
1777: fprintf(f, "%d\n", sizeof(short));
1778: exit(0);
1779: }
1780: EOF
1.1.1.2 ! root 1781: { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1 root 1782: if test -s conftest && (./conftest; exit) 2>/dev/null; then
1783: ac_cv_sizeof_short=`cat conftestval`
1784: else
1785: ac_cv_sizeof_short=0
1786: fi
1787: fi
1788: rm -fr conftest*
1789: fi
1790: echo "$ac_t""$ac_cv_sizeof_short" 1>&6
1791: cat >> confdefs.h <<EOF
1792: #define SIZEOF_SHORT $ac_cv_sizeof_short
1793: EOF
1794:
1795:
1796: echo $ac_n "checking size of int""... $ac_c" 1>&6
1797: if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
1798: echo $ac_n "(cached) $ac_c" 1>&6
1799: else
1800: if test "$cross_compiling" = yes; then
1801: { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1802: else
1803: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1804: #line 1805 "configure"
1.1 root 1805: #include "confdefs.h"
1806: #include <stdio.h>
1807: main()
1808: {
1809: FILE *f=fopen("conftestval", "w");
1810: if (!f) exit(1);
1811: fprintf(f, "%d\n", sizeof(int));
1812: exit(0);
1813: }
1814: EOF
1.1.1.2 ! root 1815: { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1 root 1816: if test -s conftest && (./conftest; exit) 2>/dev/null; then
1817: ac_cv_sizeof_int=`cat conftestval`
1818: else
1819: ac_cv_sizeof_int=0
1820: fi
1821: fi
1822: rm -fr conftest*
1823: fi
1824: echo "$ac_t""$ac_cv_sizeof_int" 1>&6
1825: cat >> confdefs.h <<EOF
1826: #define SIZEOF_INT $ac_cv_sizeof_int
1827: EOF
1828:
1829:
1830: echo $ac_n "checking size of long""... $ac_c" 1>&6
1831: if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
1832: echo $ac_n "(cached) $ac_c" 1>&6
1833: else
1834: if test "$cross_compiling" = yes; then
1835: { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1836: else
1837: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1838: #line 1839 "configure"
1.1 root 1839: #include "confdefs.h"
1840: #include <stdio.h>
1841: main()
1842: {
1843: FILE *f=fopen("conftestval", "w");
1844: if (!f) exit(1);
1845: fprintf(f, "%d\n", sizeof(long));
1846: exit(0);
1847: }
1848: EOF
1.1.1.2 ! root 1849: { (eval echo configure:1850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1 root 1850: if test -s conftest && (./conftest; exit) 2>/dev/null; then
1851: ac_cv_sizeof_long=`cat conftestval`
1852: else
1853: ac_cv_sizeof_long=0
1854: fi
1855: fi
1856: rm -fr conftest*
1857: fi
1858: echo "$ac_t""$ac_cv_sizeof_long" 1>&6
1859: cat >> confdefs.h <<EOF
1860: #define SIZEOF_LONG $ac_cv_sizeof_long
1861: EOF
1862:
1863:
1864: echo $ac_n "checking size of long long""... $ac_c" 1>&6
1865: if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
1866: echo $ac_n "(cached) $ac_c" 1>&6
1867: else
1868: if test "$cross_compiling" = yes; then
1869: { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1870: else
1871: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1872: #line 1873 "configure"
1.1 root 1873: #include "confdefs.h"
1874: #include <stdio.h>
1875: main()
1876: {
1877: FILE *f=fopen("conftestval", "w");
1878: if (!f) exit(1);
1879: fprintf(f, "%d\n", sizeof(long long));
1880: exit(0);
1881: }
1882: EOF
1.1.1.2 ! root 1883: { (eval echo configure:1884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1 root 1884: if test -s conftest && (./conftest; exit) 2>/dev/null; then
1885: ac_cv_sizeof_long_long=`cat conftestval`
1886: else
1887: ac_cv_sizeof_long_long=0
1888: fi
1889: fi
1890: rm -fr conftest*
1891: fi
1892: echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
1893: cat >> confdefs.h <<EOF
1894: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
1895: EOF
1896:
1897:
1898:
1899: echo $ac_n "checking for working const""... $ac_c" 1>&6
1900: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1901: echo $ac_n "(cached) $ac_c" 1>&6
1902: else
1903: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1904: #line 1905 "configure"
1.1 root 1905: #include "confdefs.h"
1906:
1907: int main() { return 0; }
1908: int t() {
1909:
1910: /* Ultrix mips cc rejects this. */
1911: typedef int charset[2]; const charset x;
1912: /* SunOS 4.1.1 cc rejects this. */
1913: char const *const *ccp;
1914: char **p;
1915: /* NEC SVR4.0.2 mips cc rejects this. */
1916: struct point {int x, y;};
1917: static struct point const zero = {0,0};
1918: /* AIX XL C 1.02.0.0 rejects this.
1919: It does not let you subtract one const X* pointer from another in an arm
1920: of an if-expression whose if-part is not a constant expression */
1921: const char *g = "string";
1922: ccp = &g + (g ? g-g : 0);
1923: /* HPUX 7.0 cc rejects these. */
1924: ++ccp;
1925: p = (char**) ccp;
1926: ccp = (char const *const *) p;
1927: { /* SCO 3.2v4 cc rejects this. */
1928: char *t;
1929: char const *s = 0 ? (char *) 0 : (char const *) 0;
1930:
1931: *t++ = 0;
1932: }
1933: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1934: int x[] = {25, 17};
1935: const int *foo = &x[0];
1936: ++foo;
1937: }
1938: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1939: typedef const int *iptr;
1940: iptr p = 0;
1941: ++p;
1942: }
1943: { /* AIX XL C 1.02.0.0 rejects this saying
1944: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1945: struct s { int j; const int *ap[3]; };
1946: struct s *b; b->j = 5;
1947: }
1948: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1949: const int foo = 10;
1950: }
1951:
1952: ; return 0; }
1953: EOF
1.1.1.2 ! root 1954: if { (eval echo configure:1955: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 1955: rm -rf conftest*
1956: ac_cv_c_const=yes
1957: else
1958: rm -rf conftest*
1959: ac_cv_c_const=no
1960: fi
1961: rm -f conftest*
1962:
1963: fi
1964:
1965: echo "$ac_t""$ac_cv_c_const" 1>&6
1966: if test $ac_cv_c_const = no; then
1967: cat >> confdefs.h <<\EOF
1968: #define const
1969: EOF
1970:
1971: fi
1972:
1973: echo $ac_n "checking for inline""... $ac_c" 1>&6
1974: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1975: echo $ac_n "(cached) $ac_c" 1>&6
1976: else
1977: ac_cv_c_inline=no
1978: for ac_kw in inline __inline__ __inline; do
1979: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 1980: #line 1981 "configure"
1.1 root 1981: #include "confdefs.h"
1982:
1983: int main() { return 0; }
1984: int t() {
1985: } $ac_kw foo() {
1986: ; return 0; }
1987: EOF
1.1.1.2 ! root 1988: if { (eval echo configure:1989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 1989: rm -rf conftest*
1990: ac_cv_c_inline=$ac_kw; break
1991: fi
1992: rm -f conftest*
1993:
1994: done
1995:
1996: fi
1997:
1998: echo "$ac_t""$ac_cv_c_inline" 1>&6
1999: case "$ac_cv_c_inline" in
2000: inline | yes) ;;
2001: no) cat >> confdefs.h <<\EOF
2002: #define inline
2003: EOF
2004: ;;
2005: *) cat >> confdefs.h <<EOF
2006: #define inline $ac_cv_c_inline
2007: EOF
2008: ;;
2009: esac
2010:
2011: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2012: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2013: echo $ac_n "(cached) $ac_c" 1>&6
2014: else
2015: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2016: #line 2017 "configure"
1.1 root 2017: #include "confdefs.h"
2018: #include <sys/types.h>
2019: #if STDC_HEADERS
2020: #include <stdlib.h>
2021: #endif
2022: EOF
2023: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2024: egrep "mode_t" >/dev/null 2>&1; then
2025: rm -rf conftest*
2026: ac_cv_type_mode_t=yes
2027: else
2028: rm -rf conftest*
2029: ac_cv_type_mode_t=no
2030: fi
2031: rm -f conftest*
2032:
2033: fi
2034: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2035: if test $ac_cv_type_mode_t = no; then
2036: cat >> confdefs.h <<\EOF
2037: #define mode_t int
2038: EOF
2039:
2040: fi
2041:
2042: echo $ac_n "checking for off_t""... $ac_c" 1>&6
2043: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2044: echo $ac_n "(cached) $ac_c" 1>&6
2045: else
2046: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2047: #line 2048 "configure"
1.1 root 2048: #include "confdefs.h"
2049: #include <sys/types.h>
2050: #if STDC_HEADERS
2051: #include <stdlib.h>
2052: #endif
2053: EOF
2054: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2055: egrep "off_t" >/dev/null 2>&1; then
2056: rm -rf conftest*
2057: ac_cv_type_off_t=yes
2058: else
2059: rm -rf conftest*
2060: ac_cv_type_off_t=no
2061: fi
2062: rm -f conftest*
2063:
2064: fi
2065: echo "$ac_t""$ac_cv_type_off_t" 1>&6
2066: if test $ac_cv_type_off_t = no; then
2067: cat >> confdefs.h <<\EOF
2068: #define off_t long
2069: EOF
2070:
2071: fi
2072:
2073: echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2074: if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2075: echo $ac_n "(cached) $ac_c" 1>&6
2076: else
2077: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2078: #line 2079 "configure"
1.1 root 2079: #include "confdefs.h"
2080: #include <sys/types.h>
2081: #if STDC_HEADERS
2082: #include <stdlib.h>
2083: #endif
2084: EOF
2085: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2086: egrep "pid_t" >/dev/null 2>&1; then
2087: rm -rf conftest*
2088: ac_cv_type_pid_t=yes
2089: else
2090: rm -rf conftest*
2091: ac_cv_type_pid_t=no
2092: fi
2093: rm -f conftest*
2094:
2095: fi
2096: echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2097: if test $ac_cv_type_pid_t = no; then
2098: cat >> confdefs.h <<\EOF
2099: #define pid_t int
2100: EOF
2101:
2102: fi
2103:
2104: echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
2105: if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
2106: echo $ac_n "(cached) $ac_c" 1>&6
2107: else
2108: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2109: #line 2110 "configure"
1.1 root 2110: #include "confdefs.h"
2111: #include <sys/types.h>
2112: #include <sys/stat.h>
2113: int main() { return 0; }
2114: int t() {
2115: struct stat s; s.st_blocks;
2116: ; return 0; }
2117: EOF
1.1.1.2 ! root 2118: if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 2119: rm -rf conftest*
2120: ac_cv_struct_st_blocks=yes
2121: else
2122: rm -rf conftest*
2123: ac_cv_struct_st_blocks=no
2124: fi
2125: rm -f conftest*
2126:
2127: fi
2128:
2129: echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
2130: if test $ac_cv_struct_st_blocks = yes; then
2131: cat >> confdefs.h <<\EOF
2132: #define HAVE_ST_BLOCKS 1
2133: EOF
2134:
2135: else
2136: LIBOBJS="$LIBOBJS fileblocks.o"
2137: fi
2138:
2139: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2140: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2141: echo $ac_n "(cached) $ac_c" 1>&6
2142: else
2143: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2144: #line 2145 "configure"
1.1 root 2145: #include "confdefs.h"
2146: #include <sys/types.h>
2147: #include <sys/time.h>
2148: #include <time.h>
2149: int main() { return 0; }
2150: int t() {
2151: struct tm *tp;
2152: ; return 0; }
2153: EOF
1.1.1.2 ! root 2154: if { (eval echo configure:2155: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 2155: rm -rf conftest*
2156: ac_cv_header_time=yes
2157: else
2158: rm -rf conftest*
2159: ac_cv_header_time=no
2160: fi
2161: rm -f conftest*
2162:
2163: fi
2164:
2165: echo "$ac_t""$ac_cv_header_time" 1>&6
2166: if test $ac_cv_header_time = yes; then
2167: cat >> confdefs.h <<\EOF
2168: #define TIME_WITH_SYS_TIME 1
2169: EOF
2170:
2171: fi
2172:
2173: echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2174: if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2175: echo $ac_n "(cached) $ac_c" 1>&6
2176: else
2177: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2178: #line 2179 "configure"
1.1 root 2179: #include "confdefs.h"
2180: #include <sys/types.h>
2181: #include <time.h>
2182: int main() { return 0; }
2183: int t() {
2184: struct tm *tp; tp->tm_sec;
2185: ; return 0; }
2186: EOF
1.1.1.2 ! root 2187: if { (eval echo configure:2188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 2188: rm -rf conftest*
2189: ac_cv_struct_tm=time.h
2190: else
2191: rm -rf conftest*
2192: ac_cv_struct_tm=sys/time.h
2193: fi
2194: rm -f conftest*
2195:
2196: fi
2197:
2198: echo "$ac_t""$ac_cv_struct_tm" 1>&6
2199: if test $ac_cv_struct_tm = sys/time.h; then
2200: cat >> confdefs.h <<\EOF
2201: #define TM_IN_SYS_TIME 1
2202: EOF
2203:
2204: fi
2205:
2206:
2207: if test $ac_cv_prog_gcc = yes; then
2208: echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2209: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2210: echo $ac_n "(cached) $ac_c" 1>&6
2211: else
2212: ac_pattern="Autoconf.*'x'"
2213: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2214: #line 2215 "configure"
1.1 root 2215: #include "confdefs.h"
2216: #include <sgtty.h>
2217: Autoconf TIOCGETP
2218: EOF
2219: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2220: egrep "$ac_pattern" >/dev/null 2>&1; then
2221: rm -rf conftest*
2222: ac_cv_prog_gcc_traditional=yes
2223: else
2224: rm -rf conftest*
2225: ac_cv_prog_gcc_traditional=no
2226: fi
2227: rm -f conftest*
2228:
2229:
2230: if test $ac_cv_prog_gcc_traditional = no; then
2231: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2232: #line 2233 "configure"
1.1 root 2233: #include "confdefs.h"
2234: #include <termio.h>
2235: Autoconf TCGETA
2236: EOF
2237: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2238: egrep "$ac_pattern" >/dev/null 2>&1; then
2239: rm -rf conftest*
2240: ac_cv_prog_gcc_traditional=yes
2241: fi
2242: rm -f conftest*
2243:
2244: fi
2245: fi
2246:
2247: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2248: if test $ac_cv_prog_gcc_traditional = yes; then
2249: CC="$CC -traditional"
2250: fi
2251: fi
2252:
2253: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2254: if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
2255: echo $ac_n "(cached) $ac_c" 1>&6
2256: else
2257: if test "$cross_compiling" = yes; then
2258: ac_cv_func_memcmp=no
2259: else
2260: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2261: #line 2262 "configure"
1.1 root 2262: #include "confdefs.h"
2263:
2264: main()
2265: {
2266: char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2267: exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2268: }
2269:
2270: EOF
1.1.1.2 ! root 2271: { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1 root 2272: if test -s conftest && (./conftest; exit) 2>/dev/null; then
2273: ac_cv_func_memcmp=yes
2274: else
2275: ac_cv_func_memcmp=no
2276: fi
2277: fi
2278: rm -fr conftest*
2279: fi
2280:
2281: echo "$ac_t""$ac_cv_func_memcmp" 1>&6
2282: test $ac_cv_func_memcmp = no && LIBOBJS="$LIBOBJS memcmp.o"
2283:
2284: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2285: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2286: echo $ac_n "(cached) $ac_c" 1>&6
2287: else
2288: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2289: #line 2290 "configure"
1.1 root 2290: #include "confdefs.h"
2291: #include <sys/types.h>
2292: #include <signal.h>
2293: #ifdef signal
2294: #undef signal
2295: #endif
2296: #ifdef __cplusplus
2297: extern "C" void (*signal (int, void (*)(int)))(int);
2298: #else
2299: void (*signal ()) ();
2300: #endif
2301:
2302: int main() { return 0; }
2303: int t() {
2304: int i;
2305: ; return 0; }
2306: EOF
1.1.1.2 ! root 2307: if { (eval echo configure:2308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 2308: rm -rf conftest*
2309: ac_cv_type_signal=void
2310: else
2311: rm -rf conftest*
2312: ac_cv_type_signal=int
2313: fi
2314: rm -f conftest*
2315:
2316: fi
2317:
2318: echo "$ac_t""$ac_cv_type_signal" 1>&6
2319: cat >> confdefs.h <<EOF
2320: #define RETSIGTYPE $ac_cv_type_signal
2321: EOF
2322:
2323:
2324: echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
2325: if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
2326: echo $ac_n "(cached) $ac_c" 1>&6
2327: else
2328: rm -f conftestdata; > conftestdata
2329: # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
2330: if test "$cross_compiling" = yes; then
2331: ac_cv_func_utime_null=no
2332: else
2333: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2334: #line 2335 "configure"
1.1 root 2335: #include "confdefs.h"
2336: #include <sys/types.h>
2337: #include <sys/stat.h>
2338: main() {
2339: struct stat s, t;
2340: exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
2341: && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
2342: && t.st_mtime - s.st_mtime < 120));
2343: }
2344: EOF
1.1.1.2 ! root 2345: { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }
1.1 root 2346: if test -s conftest && (./conftest; exit) 2>/dev/null; then
2347: ac_cv_func_utime_null=yes
2348: else
2349: ac_cv_func_utime_null=no
2350: fi
2351: fi
2352: rm -fr conftest*
2353: rm -f core core.* *.core
2354: fi
2355:
2356: echo "$ac_t""$ac_cv_func_utime_null" 1>&6
2357: if test $ac_cv_func_utime_null = yes; then
2358: cat >> confdefs.h <<\EOF
2359: #define HAVE_UTIME_NULL 1
2360: EOF
2361:
2362: fi
2363:
2364: for ac_func in gettimeofday mkdir rmdir select strerror strstr statfs
2365: do
2366: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2367: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2368: echo $ac_n "(cached) $ac_c" 1>&6
2369: else
2370: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2371: #line 2372 "configure"
1.1 root 2372: #include "confdefs.h"
2373: /* System header to define __stub macros and hopefully few prototypes,
2374: which can conflict with char $ac_func(); below. */
2375: #include <assert.h>
2376: /* Override any gcc2 internal prototype to avoid an error. */
2377: /* We use char because int might match the return type of a gcc2
2378: builtin and then its argument prototype would still apply. */
2379: char $ac_func();
2380:
2381: int main() { return 0; }
2382: int t() {
2383:
2384: /* The GNU C library defines this for functions which it implements
2385: to always fail with ENOSYS. Some functions are actually named
2386: something starting with __ and the normal name is an alias. */
2387: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2388: choke me
2389: #else
2390: $ac_func();
2391: #endif
2392:
2393: ; return 0; }
2394: EOF
1.1.1.2 ! root 2395: if { (eval echo configure:2396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1.1 root 2396: rm -rf conftest*
2397: eval "ac_cv_func_$ac_func=yes"
2398: else
2399: rm -rf conftest*
2400: eval "ac_cv_func_$ac_func=no"
2401: fi
2402: rm -f conftest*
2403:
2404: fi
2405: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2406: echo "$ac_t""yes" 1>&6
2407: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2408: cat >> confdefs.h <<EOF
2409: #define $ac_tr_func 1
2410: EOF
2411:
2412: else
2413: echo "$ac_t""no" 1>&6
2414: fi
2415: done
2416:
2417:
2418: echo $ac_n "checking how many args statfs takes""... $ac_c" 1>&6
2419: if [ $ac_cv_func_statfs = "yes" ]; then
2420: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2421: #line 2422 "configure"
1.1 root 2422: #include "confdefs.h"
2423:
2424: #include "confdefs.h"
1.1.1.2 ! root 2425: #ifdef HAVE_SYS_TYPES_H
! 2426: #include <sys/types.h>
! 2427: #endif
! 2428: #ifdef HAVE_SYS_PARAM_H
! 2429: #include <sys/param.h>
! 2430: #endif
1.1 root 2431: #ifdef HAVE_SYS_MOUNT_H
2432: #include <sys/mount.h>
2433: #endif
1.1.1.2 ! root 2434: #ifdef HAVE_SYS_SELECT_H
! 2435: #include <sys/select.h>
! 2436: #endif
1.1 root 2437: #ifdef HAVE_SYS_VFS_H
2438: #include <sys/vfs.h>
2439: #endif
2440: #ifdef HAVE_SYS_STATFS_H
2441: #include <sys/statfs.h>
2442: #endif
2443: #ifdef HAVE_SYS_STATVFS_H
2444: #include <sys/statvfs.h>
2445: #endif
2446: int main() { return 0; }
2447: int t() {
2448: struct statfs statbuf;statfs("/",&statbuf);
2449: ; return 0; }
2450: EOF
1.1.1.2 ! root 2451: if { (eval echo configure:2452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 2452: rm -rf conftest*
2453: echo "$ac_t""2" 1>&6
2454: STATFS_NO_ARGS=2
2455: else
2456: rm -rf conftest*
2457: echo "$ac_t""4" 1>&6
2458: STATFS_NO_ARGS=4
2459: fi
2460: rm -f conftest*
2461:
2462: fi
2463:
2464: echo $ac_n "checking whether to use f_bavail or f_bfree""... $ac_c" 1>&6
2465: if [ $ac_cv_func_statfs = "yes" ]; then
2466: cat > conftest.$ac_ext <<EOF
1.1.1.2 ! root 2467: #line 2468 "configure"
1.1 root 2468: #include "confdefs.h"
2469:
2470: #include "confdefs.h"
1.1.1.2 ! root 2471: #ifdef HAVE_SYS_TYPES_H
! 2472: #include <sys/types.h>
! 2473: #endif
! 2474: #ifdef HAVE_SYS_PARAM_H
! 2475: #include <sys/param.h>
! 2476: #endif
1.1 root 2477: #ifdef HAVE_SYS_MOUNT_H
2478: #include <sys/mount.h>
2479: #endif
1.1.1.2 ! root 2480: #ifdef HAVE_SYS_SELECT_H
! 2481: #include <sys/select.h>
! 2482: #endif
1.1 root 2483: #ifdef HAVE_SYS_VFS_H
2484: #include <sys/vfs.h>
2485: #endif
2486: #ifdef HAVE_SYS_STATFS_H
2487: #include <sys/statfs.h>
2488: #endif
2489: #ifdef HAVE_SYS_STATVFS_H
2490: #include <sys/statvfs.h>
2491: #endif
2492: int main() { return 0; }
2493: int t() {
2494: struct statfs statbuf;statbuf.f_bavail;
2495: ; return 0; }
2496: EOF
1.1.1.2 ! root 2497: if { (eval echo configure:2498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 2498: rm -rf conftest*
2499: echo "$ac_t""f_bavail" 1>&6
2500: STATBUF_BAVAIL=f_bavail
2501: else
2502: rm -rf conftest*
2503: echo "$ac_t""f_bfree" 1>&6
2504: STATBUF_BAVAIL=f_bfree
2505: fi
2506: rm -f conftest*
2507:
2508: fi
2509:
1.1.1.2 ! root 2510: USE_GUI=yes
! 2511: # Check whether --enable-gui or --disable-gui was given.
! 2512: if test "${enable_gui+set}" = set; then
! 2513: enableval="$enable_gui"
! 2514: USE_GUI=$enableval
! 2515: fi
! 2516:
! 2517: if [ $USE_GUI = "yes" ]; then
! 2518: # Extract the first word of "wish4.0", so it can be a program name with args.
! 2519: set dummy wish4.0; ac_word=$2
! 2520: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 2521: if eval "test \"`echo '$''{'ac_cv_prog_USE_GUI'+set}'`\" = set"; then
! 2522: echo $ac_n "(cached) $ac_c" 1>&6
! 2523: else
! 2524: if test -n "$USE_GUI"; then
! 2525: ac_cv_prog_USE_GUI="$USE_GUI" # Let the user override the test.
! 2526: else
! 2527: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 2528: for ac_dir in $PATH; do
! 2529: test -z "$ac_dir" && ac_dir=.
! 2530: if test -f $ac_dir/$ac_word; then
! 2531: ac_cv_prog_USE_GUI="yes"
! 2532: break
! 2533: fi
! 2534: done
! 2535: IFS="$ac_save_ifs"
! 2536: test -z "$ac_cv_prog_USE_GUI" && ac_cv_prog_USE_GUI="no"
! 2537: fi
! 2538: fi
! 2539: USE_GUI="$ac_cv_prog_USE_GUI"
! 2540: if test -n "$USE_GUI"; then
! 2541: echo "$ac_t""$USE_GUI" 1>&6
! 2542: else
! 2543: echo "$ac_t""no" 1>&6
! 2544: fi
! 2545:
! 2546: else
! 2547: echo "Disabling the GUI."
! 2548: fi
! 2549:
1.1 root 2550: echo $ac_n "checking which target to use""... $ac_c" 1>&6
2551: if [ $HAVE_BEBOX = "y" ]; then
2552: echo "$ac_t""BeBox" 1>&6
2553: TARGET=be
2554: GFXOBJS="bebox.o nogui.o"
2555: ac_cv_c_inline=
2556: else
2557: if [ $HAVE_NEXT_LIB = "y" ]; then
2558: echo "$ac_t""NeXTStep" 1>&6
2559: TARGET=next
2560: GFXOBJS="NeXTwin.o"
2561: LIBRARIES="-sectcreate __ICON __header Uae.app/Uae.iconheader -segprot __ICON r r -sectcreate __ICON app Uae.app/Uae.tiff -lMedia_s -lNeXT_s"
2562: else
2563: if [ x$no_x = "xyes" ]; then
2564: if [ $HAVE_SVGA_LIB = "n" ]; then
2565: echo "$ac_t""Ummm...." 1>&6
2566: echo "Neither X nor SVGAlib found, don't know what target to use."
2567: exit 1
2568: else
2569: echo "$ac_t""SVGAlib" 1>&6
2570: TARGET=svgalib
1.1.1.2 ! root 2571: echo $ac_n "checking for -lncurses""... $ac_c" 1>&6
! 2572: ac_lib_var=`echo ncurses'_'waddch | tr './+\055' '__p_'`
! 2573: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 2574: echo $ac_n "(cached) $ac_c" 1>&6
! 2575: else
! 2576: ac_save_LIBS="$LIBS"
! 2577: LIBS="-lncurses $LIBS"
! 2578: cat > conftest.$ac_ext <<EOF
! 2579: #line 2580 "configure"
! 2580: #include "confdefs.h"
! 2581: /* Override any gcc2 internal prototype to avoid an error. */
! 2582: /* We use char because int might match the return type of a gcc2
! 2583: builtin and then its argument prototype would still apply. */
! 2584: char waddch();
! 2585:
! 2586: int main() { return 0; }
! 2587: int t() {
! 2588: waddch()
! 2589: ; return 0; }
! 2590: EOF
! 2591: if { (eval echo configure:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
! 2592: rm -rf conftest*
! 2593: eval "ac_cv_lib_$ac_lib_var=yes"
! 2594: else
! 2595: rm -rf conftest*
! 2596: eval "ac_cv_lib_$ac_lib_var=no"
! 2597: fi
! 2598: rm -f conftest*
! 2599: LIBS="$ac_save_LIBS"
! 2600:
! 2601: fi
! 2602: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 2603: echo "$ac_t""yes" 1>&6
! 2604: ac_tr_lib=HAVE_LIB`echo ncurses | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 2605: cat >> confdefs.h <<EOF
! 2606: #define $ac_tr_lib 1
! 2607: EOF
! 2608:
! 2609: LIBS="-lncurses $LIBS"
! 2610:
! 2611: else
! 2612: echo "$ac_t""no" 1>&6
! 2613: HAVE_GUI=no
! 2614: fi
! 2615:
! 2616: if [ $USE_GUI = "yes" ]; then
! 2617: GFXOBJS="svga.o tui.o svgancui.o"
! 2618: LIBRARIES="-lvga -lncurses"
! 2619: else
! 2620: GFXOBJS="svga.o nogui.o"
! 2621: LIBRARIES="-lvga"
! 2622: fi
1.1 root 2623: fi
2624: else
2625: echo "$ac_t""X Window System" 1>&6
2626: TARGET=x11
1.1.1.2 ! root 2627: USEDGA=no
! 2628: # Check whether --enable-DGA or --disable-DGA was given.
! 2629: if test "${enable_DGA+set}" = set; then
! 2630: enableval="$enable_DGA"
! 2631: USEDGA=$enableval
! 2632: fi
! 2633:
! 2634: if [ $USEDGA = "yes" ]; then
! 2635: TMP_SAVE_LIBS=$LIBS
! 2636: LIBS=$X_LIBS $LIBS
! 2637: echo $ac_n "checking for -lXxf86dga""... $ac_c" 1>&6
! 2638: ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | tr './+\055' '__p_'`
! 2639: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1.1 root 2640: echo $ac_n "(cached) $ac_c" 1>&6
2641: else
1.1.1.2 ! root 2642: ac_save_LIBS="$LIBS"
! 2643: LIBS="-lXxf86dga -lXext -lX11 $LIBS"
! 2644: cat > conftest.$ac_ext <<EOF
! 2645: #line 2646 "configure"
! 2646: #include "confdefs.h"
! 2647: /* Override any gcc2 internal prototype to avoid an error. */
! 2648: /* We use char because int might match the return type of a gcc2
! 2649: builtin and then its argument prototype would still apply. */
! 2650: char XF86DGAQueryExtension();
! 2651:
! 2652: int main() { return 0; }
! 2653: int t() {
! 2654: XF86DGAQueryExtension()
! 2655: ; return 0; }
! 2656: EOF
! 2657: if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
! 2658: rm -rf conftest*
! 2659: eval "ac_cv_lib_$ac_lib_var=yes"
1.1 root 2660: else
1.1.1.2 ! root 2661: rm -rf conftest*
! 2662: eval "ac_cv_lib_$ac_lib_var=no"
1.1 root 2663: fi
1.1.1.2 ! root 2664: rm -f conftest*
! 2665: LIBS="$ac_save_LIBS"
! 2666:
1.1 root 2667: fi
1.1.1.2 ! root 2668: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 2669: echo "$ac_t""yes" 1>&6
! 2670: USEDGA=yes
1.1 root 2671: else
2672: echo "$ac_t""no" 1>&6
1.1.1.2 ! root 2673: USEDGA=no
1.1 root 2674: fi
2675:
1.1.1.2 ! root 2676: LIBS=$TMP_SAVE_LIBS
! 2677: fi
! 2678: if [ $USEDGA = "yes" ]; then
! 2679: LIBRARIES="$X_LIBS $X_PRE_LIBS -lXxf86dga -lXext -lX11 $X_EXTRA_LIBS"
! 2680: X_CFLAGS="$X_CFLAGS -DUSE_DGA_EXTENSION"
! 2681: USE_GUI=no
! 2682: else
! 2683: LIBRARIES="$X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"
! 2684: USE_GUI=yes
! 2685: fi
! 2686: if [ $USE_GUI = "yes" ]; then
1.1 root 2687: GFXOBJS="xwin.o xui.o"
2688: else
1.1.1.2 ! root 2689: if [ $USEDGA = "yes" ]; then
! 2690: GFXOBJS="xdga.o nogui.o"
! 2691: else
! 2692: GFXOBJS="xwin.o nogui.o"
! 2693: fi
1.1 root 2694: fi
2695: fi
2696: fi
2697: fi
2698:
2699: ASMOBJS=
1.1.1.2 ! root 2700: CPUOBJS="cpu0.o cpu1.o cpu2.o cpu3.o cpu4.o cpu5.o cpu6.o cpu7.o cpu8.o cpu9.o cpuA.o cpuB.o cpuC.o cpuD.o cpuE.o cpuF.o"
! 2701:
1.1 root 2702:
2703: if [ "$CC" = "gcc" ]; then
1.1.1.2 ! root 2704: CFLAGS="-O3 -fomit-frame-pointer -Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes -fno-strength-reduce"
1.1 root 2705: echo $ac_n "checking whether we are on a Linux/i386 ELF system""... $ac_c" 1>&6
2706: LINUXELF=n
2707: if MACHINE=`uname -a 2>/dev/null`; then
2708: cat >conftest.c << EOF
2709: int main() { return 0; }
2710: EOF
2711: case $MACHINE in
2712: Linux*i*86)
2713: gcc conftest.c -o conftest
2714: file conftest >conftest.file
2715: if grep ELF conftest.file >/dev/null; then
2716: LINUXELF=y
2717: fi
2718: ;;
2719: esac
2720: rm -f conftest*
2721: fi
2722: if [ $LINUXELF = "n" ]; then
2723: echo "$ac_t""no" 1>&6
2724: else
2725: echo "$ac_t""yes" 1>&6
2726: ASMOBJS=X86.o
1.1.1.2 ! root 2727: CPUOBJS="cpu_fast0.o cpu_fast1.o cpu_fast2.o cpu_fast3.o cpu_fast4.o cpu_fast5.o cpu_fast6.o cpu_fast7.o cpu_fast8.o cpu_fast9.o cpu_fastA.o cpu_fastB.o cpu_fastC.o cpu_fastD.o cpu_fastE.o cpu_fastF.o"
1.1 root 2728: CFLAGS="$CFLAGS -DX86_ASSEMBLY"
2729: fi
2730: else
1.1.1.2 ! root 2731: echo "Couldn't find GCC. UAE may or may not compile and run correctly."
1.1 root 2732: fi
2733:
1.1.1.2 ! root 2734: if [ $TARGET = "x11" -o $TARGET = "svgalib" ]; then
! 2735: CFLAGS="$CFLAGS -DUSE_ZFILE"
! 2736: fi
! 2737:
! 2738:
! 2739:
1.1 root 2740:
2741:
2742:
2743:
2744:
2745:
2746:
2747:
2748:
2749: trap '' 1 2 15
2750: cat > confcache <<\EOF
2751: # This file is a shell script that caches the results of configure
2752: # tests run on this system so they can be shared between configure
2753: # scripts and configure runs. It is not useful on other systems.
2754: # If it contains results you don't want to keep, you may remove or edit it.
2755: #
2756: # By default, configure uses ./config.cache as the cache file,
2757: # creating it if it does not exist already. You can give configure
2758: # the --cache-file=FILE option to use a different cache file; that is
2759: # what configure does when it calls configure scripts in
2760: # subdirectories, so they share the cache.
2761: # Giving --cache-file=/dev/null disables caching, for debugging configure.
2762: # config.status only pays attention to the cache file if you give it the
2763: # --recheck option to rerun configure.
2764: #
2765: EOF
2766: # Ultrix sh set writes to stderr and can't be redirected directly,
2767: # and sets the high bit in the cache file unless we assign to the vars.
2768: (set) 2>&1 |
2769: sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2770: >> confcache
2771: if cmp -s $cache_file confcache; then
2772: :
2773: else
2774: if test -w $cache_file; then
2775: echo "updating cache $cache_file"
2776: cat confcache > $cache_file
2777: else
2778: echo "not updating unwritable cache $cache_file"
2779: fi
2780: fi
2781: rm -f confcache
2782:
2783: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2784:
2785: test "x$prefix" = xNONE && prefix=$ac_default_prefix
2786: # Let make expand exec_prefix.
2787: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2788:
2789: # Any assignment to VPATH causes Sun make to only execute
2790: # the first set of double-colon rules, so remove it if not needed.
2791: # If there is a colon in the path, we need to keep it.
2792: if test "x$srcdir" = x.; then
2793: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2794: fi
2795:
2796: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2797:
2798: DEFS=-DHAVE_CONFIG_H
2799:
2800: # Without the "./", some shells look in PATH for config.status.
2801: : ${CONFIG_STATUS=./config.status}
2802:
2803: echo creating $CONFIG_STATUS
2804: rm -f $CONFIG_STATUS
2805: cat > $CONFIG_STATUS <<EOF
2806: #! /bin/sh
2807: # Generated automatically by configure.
2808: # Run this file to recreate the current configuration.
2809: # This directory was configured as follows,
2810: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2811: #
2812: # $0 $ac_configure_args
2813: #
2814: # Compiler output produced by configure, useful for debugging
2815: # configure, is in ./config.log if it exists.
2816:
2817: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2818: for ac_option
2819: do
2820: case "\$ac_option" in
2821: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2822: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2823: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2824: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2825: echo "$CONFIG_STATUS generated by autoconf version 2.10"
2826: exit 0 ;;
2827: -help | --help | --hel | --he | --h)
2828: echo "\$ac_cs_usage"; exit 0 ;;
2829: *) echo "\$ac_cs_usage"; exit 1 ;;
2830: esac
2831: done
2832:
2833: ac_given_srcdir=$srcdir
2834:
1.1.1.2 ! root 2835: trap 'rm -fr `echo "src/Makefile Makefile src/include/sysconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1 root 2836: EOF
2837: cat >> $CONFIG_STATUS <<EOF
2838:
2839: # Protect against being on the right side of a sed subst in config.status.
2840: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2841: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2842: $ac_vpsub
2843: $extrasub
2844: s%@CFLAGS@%$CFLAGS%g
2845: s%@CPPFLAGS@%$CPPFLAGS%g
2846: s%@CXXFLAGS@%$CXXFLAGS%g
2847: s%@DEFS@%$DEFS%g
2848: s%@LDFLAGS@%$LDFLAGS%g
2849: s%@LIBS@%$LIBS%g
2850: s%@exec_prefix@%$exec_prefix%g
2851: s%@prefix@%$prefix%g
2852: s%@program_transform_name@%$program_transform_name%g
2853: s%@bindir@%$bindir%g
2854: s%@sbindir@%$sbindir%g
2855: s%@libexecdir@%$libexecdir%g
2856: s%@datadir@%$datadir%g
2857: s%@sysconfdir@%$sysconfdir%g
2858: s%@sharedstatedir@%$sharedstatedir%g
2859: s%@localstatedir@%$localstatedir%g
2860: s%@libdir@%$libdir%g
2861: s%@includedir@%$includedir%g
2862: s%@oldincludedir@%$oldincludedir%g
2863: s%@infodir@%$infodir%g
2864: s%@mandir@%$mandir%g
2865: s%@CC@%$CC%g
2866: s%@CPP@%$CPP%g
2867: s%@SET_MAKE@%$SET_MAKE%g
2868: s%@X_CFLAGS@%$X_CFLAGS%g
2869: s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2870: s%@X_LIBS@%$X_LIBS%g
2871: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2872: s%@LIBOBJS@%$LIBOBJS%g
1.1.1.2 ! root 2873: s%@USE_GUI@%$USE_GUI%g
1.1 root 2874: s%@ac_cv_c_inline@%$ac_cv_c_inline%g
2875: s%@STATFS_NO_ARGS@%$STATFS_NO_ARGS%g
2876: s%@BROKEN_JOYSTICK_H@%$BROKEN_JOYSTICK_H%g
2877: s%@STATBUF_BAVAIL@%$STATBUF_BAVAIL%g
2878: s%@LIBRARIES@%$LIBRARIES%g
2879: s%@TARGET@%$TARGET%g
2880: s%@GFXOBJS@%$GFXOBJS%g
2881: s%@ASMOBJS@%$ASMOBJS%g
1.1.1.2 ! root 2882: s%@CPUOBJS@%$CPUOBJS%g
1.1 root 2883:
2884: CEOF
2885: EOF
2886: cat >> $CONFIG_STATUS <<EOF
2887:
1.1.1.2 ! root 2888: CONFIG_FILES=\${CONFIG_FILES-"src/Makefile Makefile"}
1.1 root 2889: EOF
2890: cat >> $CONFIG_STATUS <<\EOF
2891: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2892: # Support "outfile[:infile]", defaulting infile="outfile.in".
2893: case "$ac_file" in
2894: *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2895: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2896: *) ac_file_in="${ac_file}.in" ;;
2897: esac
2898:
2899: # Adjust relative srcdir, etc. for subdirectories.
2900:
2901: # Remove last slash and all that follows it. Not all systems have dirname.
2902: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2903: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2904: # The file is in a subdirectory.
2905: test ! -d "$ac_dir" && mkdir "$ac_dir"
2906: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2907: # A "../" for each directory in $ac_dir_suffix.
2908: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2909: else
2910: ac_dir_suffix= ac_dots=
2911: fi
2912:
2913: case "$ac_given_srcdir" in
2914: .) srcdir=.
2915: if test -z "$ac_dots"; then top_srcdir=.
2916: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2917: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2918: *) # Relative path.
2919: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2920: top_srcdir="$ac_dots$ac_given_srcdir" ;;
2921: esac
2922:
2923: echo creating "$ac_file"
2924: rm -f "$ac_file"
2925: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2926: case "$ac_file" in
2927: *Makefile*) ac_comsub="1i\\
2928: # $configure_input" ;;
2929: *) ac_comsub= ;;
2930: esac
2931: sed -e "$ac_comsub
2932: s%@configure_input@%$configure_input%g
2933: s%@srcdir@%$srcdir%g
2934: s%@top_srcdir@%$top_srcdir%g
2935: " -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2936: fi; done
2937: rm -f conftest.subs
2938:
2939: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2940: # NAME is the cpp macro being defined and VALUE is the value it is being given.
2941: #
2942: # ac_d sets the value in "#define NAME VALUE" lines.
2943: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2944: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2945: ac_dC='\3'
2946: ac_dD='%g'
2947: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2948: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2949: ac_uB='\([ ]\)%\1#\2define\3'
2950: ac_uC=' '
2951: ac_uD='\4%g'
2952: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2953: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2954: ac_eB='$%\1#\2define\3'
2955: ac_eC=' '
2956: ac_eD='%g'
2957:
1.1.1.2 ! root 2958: CONFIG_HEADERS=${CONFIG_HEADERS-"src/include/sysconfig.h"}
1.1 root 2959: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2960: # Support "outfile[:infile]", defaulting infile="outfile.in".
2961: case "$ac_file" in
2962: *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2963: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2964: *) ac_file_in="${ac_file}.in" ;;
2965: esac
2966:
2967: echo creating $ac_file
2968:
2969: rm -f conftest.frag conftest.in conftest.out
2970: cp $ac_given_srcdir/$ac_file_in conftest.in
2971:
2972: EOF
2973:
2974: # Transform confdefs.h into a sed script conftest.vals that substitutes
2975: # the proper values into config.h.in to produce config.h. And first:
2976: # Protect against being on the right side of a sed subst in config.status.
2977: # Protect against being in an unquoted here document in config.status.
2978: rm -f conftest.vals
2979: cat > conftest.hdr <<\EOF
2980: s/[\\&%]/\\&/g
2981: s%[\\$`]%\\&%g
2982: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2983: s%ac_d%ac_u%gp
2984: s%ac_u%ac_e%gp
2985: EOF
2986: sed -n -f conftest.hdr confdefs.h > conftest.vals
2987: rm -f conftest.hdr
2988:
2989: # This sed command replaces #undef with comments. This is necessary, for
2990: # example, in the case of _POSIX_SOURCE, which is predefined and required
2991: # on some systems where configure will not decide to define it.
2992: cat >> conftest.vals <<\EOF
2993: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2994: EOF
2995:
2996: # Break up conftest.vals because some shells have a limit on
2997: # the size of here documents, and old seds have small limits too.
2998: # Maximum number of lines to put in a single here document.
2999: ac_max_here_lines=12
3000:
3001: rm -f conftest.tail
3002: while :
3003: do
3004: ac_lines=`grep -c . conftest.vals`
3005: # grep -c gives empty output for an empty file on some AIX systems.
3006: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3007: # Write a limited-size here document to conftest.frag.
3008: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3009: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3010: echo 'CEOF
3011: sed -f conftest.frag conftest.in > conftest.out
3012: rm -f conftest.in
3013: mv conftest.out conftest.in
3014: ' >> $CONFIG_STATUS
3015: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3016: rm -f conftest.vals
3017: mv conftest.tail conftest.vals
3018: done
3019: rm -f conftest.vals
3020:
3021: cat >> $CONFIG_STATUS <<\EOF
3022: rm -f conftest.frag conftest.h
3023: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3024: cat conftest.in >> conftest.h
3025: rm -f conftest.in
3026: if cmp -s $ac_file conftest.h 2>/dev/null; then
3027: echo "$ac_file is unchanged"
3028: rm -f conftest.h
3029: else
3030: # Remove last slash and all that follows it. Not all systems have dirname.
3031: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3032: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3033: # The file is in a subdirectory.
3034: test ! -d "$ac_dir" && mkdir "$ac_dir"
3035: fi
3036: rm -f $ac_file
3037: mv conftest.h $ac_file
3038: fi
3039: fi; done
3040:
3041:
3042:
3043: exit 0
3044: EOF
3045: chmod +x $CONFIG_STATUS
3046: rm -fr confdefs* $ac_clean_files
3047: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3048:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.