|
|
1.1 root 1: #! /bin/sh
2:
3: # Guess values for system-dependent variables and create Makefiles.
1.1.1.4 root 4: # Generated automatically using autoconf version 2.12
1.1 root 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
1.1.1.4 root 17: --enable-profiling Build a profiling (SLOW!) version"
1.1.1.2 root 18: ac_help="$ac_help
1.1.1.4 root 19: --with-svgalib Use SVGAlib for graphics output"
1.1.1.3 root 20: ac_help="$ac_help
1.1.1.4 root 21: --with-ggi Use GGI for graphics output"
1.1.1.3 root 22: ac_help="$ac_help
1.1.1.4 root 23: --with-asciiart Use ncurses ascii art for graphics output"
24: ac_help="$ac_help
25: --enable-dga X11 version: Use the DGA extension"
26: ac_help="$ac_help
27: --enable-vidmode X11 version: Use the XF86VidMode extension"
28: ac_help="$ac_help
29: --enable-ui Use a user interface if possible (default on)"
30: ac_help="$ac_help
31: --with-elf Explicitly state that this system is ELF"
32: ac_help="$ac_help
33: --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
34: ac_help="$ac_help
35: --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
36: ac_help="$ac_help
37: --disable-gtktest Do not try to compile and run a test GTK program"
38: ac_help="$ac_help
39: --enable-threads Enable filesystem thread support"
40: ac_help="$ac_help
41: --enable-penguins Enable threads that only make sense on SMP machines"
42: ac_help="$ac_help
43: --enable-sound Enable sound support"
44: ac_help="$ac_help
45: --enable-file-sound Enable sound output to file"
1.1 root 46:
47: # Initialize some variables set by options.
48: # The variables have the same names as the options, with
49: # dashes changed to underlines.
50: build=NONE
51: cache_file=./config.cache
52: exec_prefix=NONE
53: host=NONE
54: no_create=
55: nonopt=NONE
56: no_recursion=
57: prefix=NONE
58: program_prefix=NONE
59: program_suffix=NONE
60: program_transform_name=s,x,x,
61: silent=
62: site=
63: srcdir=
64: target=NONE
65: verbose=
66: x_includes=NONE
67: x_libraries=NONE
68: bindir='${exec_prefix}/bin'
69: sbindir='${exec_prefix}/sbin'
70: libexecdir='${exec_prefix}/libexec'
71: datadir='${prefix}/share'
72: sysconfdir='${prefix}/etc'
73: sharedstatedir='${prefix}/com'
74: localstatedir='${prefix}/var'
75: libdir='${exec_prefix}/lib'
76: includedir='${prefix}/include'
77: oldincludedir='/usr/include'
78: infodir='${prefix}/info'
79: mandir='${prefix}/man'
80:
81: # Initialize some other variables.
82: subdirs=
83: MFLAGS= MAKEFLAGS=
1.1.1.4 root 84: # Maximum number of lines to put in a shell here document.
85: ac_max_here_lines=12
1.1 root 86:
87: ac_prev=
88: for ac_option
89: do
90:
91: # If the previous option needs an argument, assign it.
92: if test -n "$ac_prev"; then
93: eval "$ac_prev=\$ac_option"
94: ac_prev=
95: continue
96: fi
97:
98: case "$ac_option" in
99: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
100: *) ac_optarg= ;;
101: esac
102:
103: # Accept the important Cygnus configure options, so we can diagnose typos.
104:
105: case "$ac_option" in
106:
107: -bindir | --bindir | --bindi | --bind | --bin | --bi)
108: ac_prev=bindir ;;
109: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
110: bindir="$ac_optarg" ;;
111:
112: -build | --build | --buil | --bui | --bu)
113: ac_prev=build ;;
114: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
115: build="$ac_optarg" ;;
116:
117: -cache-file | --cache-file | --cache-fil | --cache-fi \
118: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
119: ac_prev=cache_file ;;
120: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
121: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
122: cache_file="$ac_optarg" ;;
123:
124: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
125: ac_prev=datadir ;;
126: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
127: | --da=*)
128: datadir="$ac_optarg" ;;
129:
130: -disable-* | --disable-*)
131: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
132: # Reject names that are not valid shell variable names.
133: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
134: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135: fi
136: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137: eval "enable_${ac_feature}=no" ;;
138:
139: -enable-* | --enable-*)
140: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
141: # Reject names that are not valid shell variable names.
142: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
143: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144: fi
145: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146: case "$ac_option" in
147: *=*) ;;
148: *) ac_optarg=yes ;;
149: esac
150: eval "enable_${ac_feature}='$ac_optarg'" ;;
151:
152: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
153: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
154: | --exec | --exe | --ex)
155: ac_prev=exec_prefix ;;
156: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
157: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
158: | --exec=* | --exe=* | --ex=*)
159: exec_prefix="$ac_optarg" ;;
160:
161: -gas | --gas | --ga | --g)
162: # Obsolete; use --with-gas.
163: with_gas=yes ;;
164:
165: -help | --help | --hel | --he)
166: # Omit some internal or obsolete options to make the list less imposing.
167: # This message is too long to be a string in the A/UX 3.1 sh.
168: cat << EOF
169: Usage: configure [options] [host]
170: Options: [defaults in brackets after descriptions]
171: Configuration:
172: --cache-file=FILE cache test results in FILE
173: --help print this message
174: --no-create do not create output files
175: --quiet, --silent do not print \`checking...' messages
176: --version print the version of autoconf that created configure
177: Directory and file names:
178: --prefix=PREFIX install architecture-independent files in PREFIX
179: [$ac_default_prefix]
180: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
181: [same as prefix]
182: --bindir=DIR user executables in DIR [EPREFIX/bin]
183: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
184: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
185: --datadir=DIR read-only architecture-independent data in DIR
186: [PREFIX/share]
187: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
188: --sharedstatedir=DIR modifiable architecture-independent data in DIR
189: [PREFIX/com]
190: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
191: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
192: --includedir=DIR C header files in DIR [PREFIX/include]
193: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
194: --infodir=DIR info documentation in DIR [PREFIX/info]
195: --mandir=DIR man documentation in DIR [PREFIX/man]
196: --srcdir=DIR find the sources in DIR [configure dir or ..]
197: --program-prefix=PREFIX prepend PREFIX to installed program names
198: --program-suffix=SUFFIX append SUFFIX to installed program names
199: --program-transform-name=PROGRAM
200: run sed PROGRAM on installed program names
201: EOF
202: cat << EOF
203: Host type:
204: --build=BUILD configure for building on BUILD [BUILD=HOST]
205: --host=HOST configure for HOST [guessed]
206: --target=TARGET configure for TARGET [TARGET=HOST]
207: Features and packages:
208: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
209: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
210: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
211: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
212: --x-includes=DIR X include files are in DIR
213: --x-libraries=DIR X library files are in DIR
214: EOF
215: if test -n "$ac_help"; then
216: echo "--enable and --with options recognized:$ac_help"
217: fi
218: exit 0 ;;
219:
220: -host | --host | --hos | --ho)
221: ac_prev=host ;;
222: -host=* | --host=* | --hos=* | --ho=*)
223: host="$ac_optarg" ;;
224:
225: -includedir | --includedir | --includedi | --included | --include \
226: | --includ | --inclu | --incl | --inc)
227: ac_prev=includedir ;;
228: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
229: | --includ=* | --inclu=* | --incl=* | --inc=*)
230: includedir="$ac_optarg" ;;
231:
232: -infodir | --infodir | --infodi | --infod | --info | --inf)
233: ac_prev=infodir ;;
234: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
235: infodir="$ac_optarg" ;;
236:
237: -libdir | --libdir | --libdi | --libd)
238: ac_prev=libdir ;;
239: -libdir=* | --libdir=* | --libdi=* | --libd=*)
240: libdir="$ac_optarg" ;;
241:
242: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
243: | --libexe | --libex | --libe)
244: ac_prev=libexecdir ;;
245: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
246: | --libexe=* | --libex=* | --libe=*)
247: libexecdir="$ac_optarg" ;;
248:
249: -localstatedir | --localstatedir | --localstatedi | --localstated \
250: | --localstate | --localstat | --localsta | --localst \
251: | --locals | --local | --loca | --loc | --lo)
252: ac_prev=localstatedir ;;
253: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
254: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
255: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
256: localstatedir="$ac_optarg" ;;
257:
258: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
259: ac_prev=mandir ;;
260: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
261: mandir="$ac_optarg" ;;
262:
263: -nfp | --nfp | --nf)
264: # Obsolete; use --without-fp.
265: with_fp=no ;;
266:
267: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
268: | --no-cr | --no-c)
269: no_create=yes ;;
270:
271: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
272: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
273: no_recursion=yes ;;
274:
275: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
276: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
277: | --oldin | --oldi | --old | --ol | --o)
278: ac_prev=oldincludedir ;;
279: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
280: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
281: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
282: oldincludedir="$ac_optarg" ;;
283:
284: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
285: ac_prev=prefix ;;
286: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
287: prefix="$ac_optarg" ;;
288:
289: -program-prefix | --program-prefix | --program-prefi | --program-pref \
290: | --program-pre | --program-pr | --program-p)
291: ac_prev=program_prefix ;;
292: -program-prefix=* | --program-prefix=* | --program-prefi=* \
293: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
294: program_prefix="$ac_optarg" ;;
295:
296: -program-suffix | --program-suffix | --program-suffi | --program-suff \
297: | --program-suf | --program-su | --program-s)
298: ac_prev=program_suffix ;;
299: -program-suffix=* | --program-suffix=* | --program-suffi=* \
300: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
301: program_suffix="$ac_optarg" ;;
302:
303: -program-transform-name | --program-transform-name \
304: | --program-transform-nam | --program-transform-na \
305: | --program-transform-n | --program-transform- \
306: | --program-transform | --program-transfor \
307: | --program-transfo | --program-transf \
308: | --program-trans | --program-tran \
309: | --progr-tra | --program-tr | --program-t)
310: ac_prev=program_transform_name ;;
311: -program-transform-name=* | --program-transform-name=* \
312: | --program-transform-nam=* | --program-transform-na=* \
313: | --program-transform-n=* | --program-transform-=* \
314: | --program-transform=* | --program-transfor=* \
315: | --program-transfo=* | --program-transf=* \
316: | --program-trans=* | --program-tran=* \
317: | --progr-tra=* | --program-tr=* | --program-t=*)
318: program_transform_name="$ac_optarg" ;;
319:
320: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
321: | -silent | --silent | --silen | --sile | --sil)
322: silent=yes ;;
323:
324: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
325: ac_prev=sbindir ;;
326: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
327: | --sbi=* | --sb=*)
328: sbindir="$ac_optarg" ;;
329:
330: -sharedstatedir | --sharedstatedir | --sharedstatedi \
331: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
332: | --sharedst | --shareds | --shared | --share | --shar \
333: | --sha | --sh)
334: ac_prev=sharedstatedir ;;
335: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
336: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
337: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
338: | --sha=* | --sh=*)
339: sharedstatedir="$ac_optarg" ;;
340:
341: -site | --site | --sit)
342: ac_prev=site ;;
343: -site=* | --site=* | --sit=*)
344: site="$ac_optarg" ;;
345:
346: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347: ac_prev=srcdir ;;
348: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349: srcdir="$ac_optarg" ;;
350:
351: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352: | --syscon | --sysco | --sysc | --sys | --sy)
353: ac_prev=sysconfdir ;;
354: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356: sysconfdir="$ac_optarg" ;;
357:
358: -target | --target | --targe | --targ | --tar | --ta | --t)
359: ac_prev=target ;;
360: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361: target="$ac_optarg" ;;
362:
363: -v | -verbose | --verbose | --verbos | --verbo | --verb)
364: verbose=yes ;;
365:
366: -version | --version | --versio | --versi | --vers)
1.1.1.4 root 367: echo "configure generated by autoconf version 2.12"
1.1 root 368: exit 0 ;;
369:
370: -with-* | --with-*)
371: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372: # Reject names that are not valid shell variable names.
373: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375: fi
376: ac_package=`echo $ac_package| sed 's/-/_/g'`
377: case "$ac_option" in
378: *=*) ;;
379: *) ac_optarg=yes ;;
380: esac
381: eval "with_${ac_package}='$ac_optarg'" ;;
382:
383: -without-* | --without-*)
384: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385: # Reject names that are not valid shell variable names.
386: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388: fi
389: ac_package=`echo $ac_package| sed 's/-/_/g'`
390: eval "with_${ac_package}=no" ;;
391:
392: --x)
393: # Obsolete; use --with-x.
394: with_x=yes ;;
395:
396: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397: | --x-incl | --x-inc | --x-in | --x-i)
398: ac_prev=x_includes ;;
399: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401: x_includes="$ac_optarg" ;;
402:
403: -x-libraries | --x-libraries | --x-librarie | --x-librari \
404: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405: ac_prev=x_libraries ;;
406: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408: x_libraries="$ac_optarg" ;;
409:
410: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411: ;;
412:
413: *)
414: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415: echo "configure: warning: $ac_option: invalid host type" 1>&2
416: fi
417: if test "x$nonopt" != xNONE; then
418: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419: fi
420: nonopt="$ac_option"
421: ;;
422:
423: esac
424: done
425:
426: if test -n "$ac_prev"; then
427: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428: fi
429:
430: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431:
432: # File descriptor usage:
433: # 0 standard input
434: # 1 file creation
435: # 2 errors and warnings
436: # 3 some systems may open it to /dev/tty
437: # 4 used on the Kubota Titan
438: # 6 checking for... messages and results
439: # 5 compiler messages saved in config.log
440: if test "$silent" = yes; then
441: exec 6>/dev/null
442: else
443: exec 6>&1
444: fi
445: exec 5>./config.log
446:
447: echo "\
448: This file contains any messages produced by compilers while
449: running configure, to aid debugging if configure makes a mistake.
450: " 1>&5
451:
452: # Strip out --no-create and --no-recursion so they do not pile up.
453: # Also quote any args containing shell metacharacters.
454: ac_configure_args=
455: for ac_arg
456: do
457: case "$ac_arg" in
458: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459: | --no-cr | --no-c) ;;
460: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465: esac
466: done
467:
468: # NLS nuisances.
1.1.1.4 root 469: # Only set these to C if already set. These must not be set unconditionally
470: # because not all systems understand e.g. LANG=C (notably SCO).
471: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472: # Non-C LC_CTYPE values break the ctype check.
1.1 root 473: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
1.1.1.4 root 474: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
1.1 root 477:
478: # confdefs.h avoids OS command line length limits that DEFS can exceed.
479: rm -rf conftest* confdefs.h
480: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
481: echo > confdefs.h
482:
483: # A filename unique to this package, relative to the directory that
484: # configure is in, which we can look for to find out if srcdir is correct.
1.1.1.2 root 485: ac_unique_file=amiga/source/transdisk.c
1.1 root 486:
487: # Find the source files, if location was not specified.
488: if test -z "$srcdir"; then
489: ac_srcdir_defaulted=yes
490: # Try the directory containing this script, then its parent.
491: ac_prog=$0
492: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494: srcdir=$ac_confdir
495: if test ! -r $srcdir/$ac_unique_file; then
496: srcdir=..
497: fi
498: else
499: ac_srcdir_defaulted=no
500: fi
501: if test ! -r $srcdir/$ac_unique_file; then
502: if test "$ac_srcdir_defaulted" = yes; then
503: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504: else
505: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506: fi
507: fi
508: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509:
510: # Prefer explicitly selected file to automatically selected ones.
511: if test -z "$CONFIG_SITE"; then
512: if test "x$prefix" != xNONE; then
513: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514: else
515: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
516: fi
517: fi
518: for ac_site_file in $CONFIG_SITE; do
519: if test -r "$ac_site_file"; then
520: echo "loading site script $ac_site_file"
521: . "$ac_site_file"
522: fi
523: done
524:
525: if test -r "$cache_file"; then
526: echo "loading cache $cache_file"
527: . $cache_file
528: else
529: echo "creating cache $cache_file"
530: > $cache_file
531: fi
532:
533: ac_ext=c
534: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
535: ac_cpp='$CPP $CPPFLAGS'
536: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
537: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1.1.1.4 root 538: cross_compiling=$ac_cv_prog_cc_cross
1.1 root 539:
540: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
541: # Stardent Vistra SVR4 grep lacks -e, says [email protected].
542: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
543: ac_n= ac_c='
544: ' ac_t=' '
545: else
546: ac_n=-n ac_c= ac_t=
547: fi
548: else
549: ac_n= ac_c='\c' ac_t=
550: fi
551:
552:
553:
1.1.1.4 root 554:
1.1 root 555: # Extract the first word of "gcc", so it can be a program name with args.
556: set dummy gcc; ac_word=$2
557: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.4 root 558: echo "configure:559: checking for $ac_word" >&5
1.1 root 559: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
560: echo $ac_n "(cached) $ac_c" 1>&6
561: else
562: if test -n "$CC"; then
563: ac_cv_prog_CC="$CC" # Let the user override the test.
564: else
565: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
566: for ac_dir in $PATH; do
567: test -z "$ac_dir" && ac_dir=.
568: if test -f $ac_dir/$ac_word; then
569: ac_cv_prog_CC="gcc"
570: break
571: fi
572: done
573: IFS="$ac_save_ifs"
574: fi
575: fi
576: CC="$ac_cv_prog_CC"
577: if test -n "$CC"; then
578: echo "$ac_t""$CC" 1>&6
579: else
580: echo "$ac_t""no" 1>&6
581: fi
582:
583: if test -z "$CC"; then
584: # Extract the first word of "cc", so it can be a program name with args.
585: set dummy cc; ac_word=$2
586: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.4 root 587: echo "configure:588: checking for $ac_word" >&5
1.1 root 588: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
589: echo $ac_n "(cached) $ac_c" 1>&6
590: else
591: if test -n "$CC"; then
592: ac_cv_prog_CC="$CC" # Let the user override the test.
593: else
594: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
595: ac_prog_rejected=no
596: for ac_dir in $PATH; do
597: test -z "$ac_dir" && ac_dir=.
598: if test -f $ac_dir/$ac_word; then
599: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
600: ac_prog_rejected=yes
601: continue
602: fi
603: ac_cv_prog_CC="cc"
604: break
605: fi
606: done
607: IFS="$ac_save_ifs"
608: if test $ac_prog_rejected = yes; then
609: # We found a bogon in the path, so make sure we never use it.
610: set dummy $ac_cv_prog_CC
611: shift
612: if test $# -gt 0; then
613: # We chose a different compiler from the bogus one.
614: # However, it has the same basename, so the bogon will be chosen
615: # first if we set CC to just the basename; use the full file name.
616: shift
617: set dummy "$ac_dir/$ac_word" "$@"
618: shift
619: ac_cv_prog_CC="$@"
620: fi
621: fi
622: fi
623: fi
624: CC="$ac_cv_prog_CC"
625: if test -n "$CC"; then
626: echo "$ac_t""$CC" 1>&6
627: else
628: echo "$ac_t""no" 1>&6
629: fi
630:
631: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
632: fi
633:
1.1.1.4 root 634: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
635: echo "configure:636: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
636:
637: ac_ext=c
638: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
639: ac_cpp='$CPP $CPPFLAGS'
640: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
641: ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
642: cross_compiling=$ac_cv_prog_cc_cross
643:
644: cat > conftest.$ac_ext <<EOF
645: #line 646 "configure"
646: #include "confdefs.h"
647: main(){return(0);}
648: EOF
649: if { (eval echo configure:650: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
650: ac_cv_prog_cc_works=yes
651: # If we can't run a trivial program, we are probably using a cross compiler.
652: if (./conftest; exit) 2>/dev/null; then
653: ac_cv_prog_cc_cross=no
654: else
655: ac_cv_prog_cc_cross=yes
656: fi
657: else
658: echo "configure: failed program was:" >&5
659: cat conftest.$ac_ext >&5
660: ac_cv_prog_cc_works=no
661: fi
662: rm -fr conftest*
663:
664: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
665: if test $ac_cv_prog_cc_works = no; then
666: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
667: fi
668: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
669: echo "configure:670: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
670: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
671: cross_compiling=$ac_cv_prog_cc_cross
672:
1.1 root 673: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.1.1.4 root 674: echo "configure:675: checking whether we are using GNU C" >&5
1.1 root 675: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
676: echo $ac_n "(cached) $ac_c" 1>&6
677: else
678: cat > conftest.c <<EOF
679: #ifdef __GNUC__
680: yes;
681: #endif
682: EOF
1.1.1.4 root 683: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 root 684: ac_cv_prog_gcc=yes
685: else
686: ac_cv_prog_gcc=no
687: fi
688: fi
689:
690: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1.1.1.4 root 691:
1.1 root 692: if test $ac_cv_prog_gcc = yes; then
693: GCC=yes
1.1.1.4 root 694: ac_test_CFLAGS="${CFLAGS+set}"
695: ac_save_CFLAGS="$CFLAGS"
696: CFLAGS=
697: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
698: echo "configure:699: checking whether ${CC-cc} accepts -g" >&5
699: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1.1 root 700: echo $ac_n "(cached) $ac_c" 1>&6
701: else
702: echo 'void f(){}' > conftest.c
703: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1.1.1.4 root 704: ac_cv_prog_cc_g=yes
1.1 root 705: else
1.1.1.4 root 706: ac_cv_prog_cc_g=no
1.1 root 707: fi
708: rm -f conftest*
709:
710: fi
711:
1.1.1.4 root 712: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
713: if test "$ac_test_CFLAGS" = set; then
714: CFLAGS="$ac_save_CFLAGS"
715: elif test $ac_cv_prog_cc_g = yes; then
716: CFLAGS="-g -O2"
717: else
718: CFLAGS="-O2"
1.1 root 719: fi
720: else
721: GCC=
722: test "${CFLAGS+set}" = set || CFLAGS="-g"
723: fi
724:
725:
726: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.1.1.4 root 727: echo "configure:728: checking how to run the C preprocessor" >&5
1.1 root 728: # On Suns, sometimes $CPP names a directory.
729: if test -n "$CPP" && test -d "$CPP"; then
730: CPP=
731: fi
732: if test -z "$CPP"; then
733: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
734: echo $ac_n "(cached) $ac_c" 1>&6
735: else
736: # This must be in double quotes, not single quotes, because CPP may get
737: # substituted into the Makefile and "${CC-cc}" will confuse make.
738: CPP="${CC-cc} -E"
739: # On the NeXT, cc -E runs the code through the compiler's parser,
740: # not just through cpp.
741: cat > conftest.$ac_ext <<EOF
1.1.1.4 root 742: #line 743 "configure"
1.1 root 743: #include "confdefs.h"
744: #include <assert.h>
745: Syntax Error
746: EOF
747: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.4 root 748: { (eval echo configure:749: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 749: ac_err=`grep -v '^ *+' conftest.out`
750: if test -z "$ac_err"; then
751: :
752: else
753: echo "$ac_err" >&5
1.1.1.4 root 754: echo "configure: failed program was:" >&5
755: cat conftest.$ac_ext >&5
1.1 root 756: rm -rf conftest*
757: CPP="${CC-cc} -E -traditional-cpp"
758: cat > conftest.$ac_ext <<EOF
1.1.1.4 root 759: #line 760 "configure"
1.1 root 760: #include "confdefs.h"
761: #include <assert.h>
762: Syntax Error
763: EOF
764: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.4 root 765: { (eval echo configure:766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 766: ac_err=`grep -v '^ *+' conftest.out`
767: if test -z "$ac_err"; then
768: :
769: else
770: echo "$ac_err" >&5
1.1.1.4 root 771: echo "configure: failed program was:" >&5
772: cat conftest.$ac_ext >&5
1.1 root 773: rm -rf conftest*
774: CPP=/lib/cpp
775: fi
776: rm -f conftest*
777: fi
778: rm -f conftest*
779: ac_cv_prog_CPP="$CPP"
780: fi
781: CPP="$ac_cv_prog_CPP"
782: else
783: ac_cv_prog_CPP="$CPP"
784: fi
785: echo "$ac_t""$CPP" 1>&6
786:
787: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.1.1.4 root 788: echo "configure:789: checking whether ${MAKE-make} sets \${MAKE}" >&5
789: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1.1 root 790: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
791: echo $ac_n "(cached) $ac_c" 1>&6
792: else
793: cat > conftestmake <<\EOF
794: all:
795: @echo 'ac_maketemp="${MAKE}"'
796: EOF
797: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
798: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
799: if test -n "$ac_maketemp"; then
800: eval ac_cv_prog_make_${ac_make}_set=yes
801: else
802: eval ac_cv_prog_make_${ac_make}_set=no
803: fi
804: rm -f conftestmake
805: fi
806: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
807: echo "$ac_t""yes" 1>&6
808: SET_MAKE=
809: else
810: echo "$ac_t""no" 1>&6
811: SET_MAKE="MAKE=${MAKE-make}"
812: fi
813:
1.1.1.4 root 814: # Extract the first word of "file", so it can be a program name with args.
815: set dummy file; ac_word=$2
816: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
817: echo "configure:818: checking for $ac_word" >&5
818: if eval "test \"`echo '$''{'ac_cv_path_FILEPRG'+set}'`\" = set"; then
819: echo $ac_n "(cached) $ac_c" 1>&6
820: else
821: case "$FILEPRG" in
822: /*)
823: ac_cv_path_FILEPRG="$FILEPRG" # Let the user override the test with a path.
824: ;;
825: *)
826: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
827: for ac_dir in $PATH; do
828: test -z "$ac_dir" && ac_dir=.
829: if test -f $ac_dir/$ac_word; then
830: ac_cv_path_FILEPRG="$ac_dir/$ac_word"
831: break
832: fi
833: done
834: IFS="$ac_save_ifs"
835: test -z "$ac_cv_path_FILEPRG" && ac_cv_path_FILEPRG="not-found"
836: ;;
837: esac
838: fi
839: FILEPRG="$ac_cv_path_FILEPRG"
840: if test -n "$FILEPRG"; then
841: echo "$ac_t""$FILEPRG" 1>&6
842: else
843: echo "$ac_t""no" 1>&6
844: fi
845:
1.1.1.6 ! root 846: # Extract the first word of "wrc", so it can be a program name with args.
! 847: set dummy wrc; ac_word=$2
! 848: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 849: echo "configure:850: checking for $ac_word" >&5
! 850: if eval "test \"`echo '$''{'ac_cv_path_WRCPRG'+set}'`\" = set"; then
! 851: echo $ac_n "(cached) $ac_c" 1>&6
! 852: else
! 853: case "$WRCPRG" in
! 854: /*)
! 855: ac_cv_path_WRCPRG="$WRCPRG" # Let the user override the test with a path.
! 856: ;;
! 857: *)
! 858: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 859: for ac_dir in $PATH; do
! 860: test -z "$ac_dir" && ac_dir=.
! 861: if test -f $ac_dir/$ac_word; then
! 862: ac_cv_path_WRCPRG="$ac_dir/$ac_word"
! 863: break
! 864: fi
! 865: done
! 866: IFS="$ac_save_ifs"
! 867: test -z "$ac_cv_path_WRCPRG" && ac_cv_path_WRCPRG="not-found"
! 868: ;;
! 869: esac
! 870: fi
! 871: WRCPRG="$ac_cv_path_WRCPRG"
! 872: if test -n "$WRCPRG"; then
! 873: echo "$ac_t""$WRCPRG" 1>&6
! 874: else
! 875: echo "$ac_t""no" 1>&6
! 876: fi
! 877:
! 878: # Extract the first word of "rcl", so it can be a program name with args.
! 879: set dummy rcl; ac_word=$2
! 880: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 881: echo "configure:882: checking for $ac_word" >&5
! 882: if eval "test \"`echo '$''{'ac_cv_path_RCLPRG'+set}'`\" = set"; then
! 883: echo $ac_n "(cached) $ac_c" 1>&6
! 884: else
! 885: case "$RCLPRG" in
! 886: /*)
! 887: ac_cv_path_RCLPRG="$RCLPRG" # Let the user override the test with a path.
! 888: ;;
! 889: *)
! 890: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
! 891: for ac_dir in $PATH; do
! 892: test -z "$ac_dir" && ac_dir=.
! 893: if test -f $ac_dir/$ac_word; then
! 894: ac_cv_path_RCLPRG="$ac_dir/$ac_word"
! 895: break
! 896: fi
! 897: done
! 898: IFS="$ac_save_ifs"
! 899: test -z "$ac_cv_path_RCLPRG" && ac_cv_path_RCLPRG="not-found"
! 900: ;;
! 901: esac
! 902: fi
! 903: RCLPRG="$ac_cv_path_RCLPRG"
! 904: if test -n "$RCLPRG"; then
! 905: echo "$ac_t""$RCLPRG" 1>&6
! 906: else
! 907: echo "$ac_t""no" 1>&6
! 908: fi
! 909:
1.1 root 910:
911: echo $ac_n "checking for AIX""... $ac_c" 1>&6
1.1.1.6 ! root 912: echo "configure:913: checking for AIX" >&5
1.1 root 913: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 914: #line 915 "configure"
1.1 root 915: #include "confdefs.h"
916: #ifdef _AIX
917: yes
918: #endif
919:
920: EOF
921: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
922: egrep "yes" >/dev/null 2>&1; then
923: rm -rf conftest*
924: echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
925: #define _ALL_SOURCE 1
926: EOF
927:
928: else
929: rm -rf conftest*
930: echo "$ac_t""no" 1>&6
931: fi
932: rm -f conftest*
933:
934:
935: echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1.1.1.6 ! root 936: echo "configure:937: checking for POSIXized ISC" >&5
1.1 root 937: if test -d /etc/conf/kconfig.d &&
938: grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
939: then
940: echo "$ac_t""yes" 1>&6
941: ISC=yes # If later tests want to check for ISC.
942: cat >> confdefs.h <<\EOF
943: #define _POSIX_SOURCE 1
944: EOF
945:
946: if test "$GCC" = yes; then
947: CC="$CC -posix"
948: else
949: CC="$CC -Xp"
950: fi
951: else
952: echo "$ac_t""no" 1>&6
953: ISC=
954: fi
955:
956:
1.1.1.6 ! root 957: echo $ac_n "checking for Watcom C""... $ac_c" 1>&6
! 958: echo "configure:959: checking for Watcom C" >&5
! 959: cat > conftest.$ac_ext <<EOF
! 960: #line 961 "configure"
! 961: #include "confdefs.h"
! 962: #ifdef __WATCOMC__
! 963: yes
! 964: #endif
! 965:
! 966: EOF
! 967: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 968: egrep "yes" >/dev/null 2>&1; then
! 969: rm -rf conftest*
! 970: uae_cv_prog_cc_watcom=yes
! 971: else
! 972: rm -rf conftest*
! 973: uae_cv_prog_cc_watcom=no
! 974: fi
! 975: rm -f conftest*
! 976:
! 977: echo "$ac_t""$uae_cv_prog_cc_watcom" 1>&6
! 978:
! 979: echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
! 980: echo "configure:981: checking for Cygwin32 environment" >&5
! 981: if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
! 982: echo $ac_n "(cached) $ac_c" 1>&6
! 983: else
! 984: cat > conftest.$ac_ext <<EOF
! 985: #line 986 "configure"
! 986: #include "confdefs.h"
! 987:
! 988: int main() {
! 989: return __CYGWIN32__;
! 990: ; return 0; }
! 991: EOF
! 992: if { (eval echo configure:993: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 993: rm -rf conftest*
! 994: am_cv_cygwin32=yes
! 995: else
! 996: echo "configure: failed program was:" >&5
! 997: cat conftest.$ac_ext >&5
! 998: rm -rf conftest*
! 999: am_cv_cygwin32=no
! 1000: fi
! 1001: rm -f conftest*
! 1002: rm -f conftest*
! 1003: fi
! 1004:
! 1005: echo "$ac_t""$am_cv_cygwin32" 1>&6
! 1006: CYGWIN32=
! 1007: test "$am_cv_cygwin32" = yes && CYGWIN32=yes
! 1008: echo $ac_n "checking for Mingw32 environment""... $ac_c" 1>&6
! 1009: echo "configure:1010: checking for Mingw32 environment" >&5
! 1010: if eval "test \"`echo '$''{'am_cv_mingw32'+set}'`\" = set"; then
! 1011: echo $ac_n "(cached) $ac_c" 1>&6
! 1012: else
! 1013: cat > conftest.$ac_ext <<EOF
! 1014: #line 1015 "configure"
! 1015: #include "confdefs.h"
! 1016:
! 1017: int main() {
! 1018: return __MINGW32__;
! 1019: ; return 0; }
! 1020: EOF
! 1021: if { (eval echo configure:1022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 1022: rm -rf conftest*
! 1023: am_cv_mingw32=yes
! 1024: else
! 1025: echo "configure: failed program was:" >&5
! 1026: cat conftest.$ac_ext >&5
! 1027: rm -rf conftest*
! 1028: am_cv_mingw32=no
! 1029: fi
! 1030: rm -f conftest*
! 1031: rm -f conftest*
! 1032: fi
! 1033:
! 1034: echo "$ac_t""$am_cv_mingw32" 1>&6
! 1035: MINGW32=
! 1036: test "$am_cv_mingw32" = yes && MINGW32=yes
! 1037:
! 1038:
! 1039: echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
! 1040: echo "configure:1041: checking for executable suffix" >&5
! 1041: if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
! 1042: echo $ac_n "(cached) $ac_c" 1>&6
! 1043: else
! 1044: if test "$CYGWIN32" = yes || test "$MINGW32" = yes; then
! 1045: am_cv_exeext=.exe
! 1046: else
! 1047: cat > am_c_test.c << 'EOF'
! 1048: int main() {
! 1049: /* Nothing needed here */
! 1050: }
! 1051: EOF
! 1052: ${CC-cc} -o am_c_test $CFLAGS $CPPFLAGS $LDFLAGS am_c_test.c $LIBS 1>&5
! 1053: am_cv_exeext=`echo am_c_test.* | grep -v am_c_test.c | sed -e s/am_c_test//`
! 1054: rm -f am_c_test*
! 1055: fi
! 1056:
! 1057: test x"${am_cv_exeext}" = x && am_cv_exeext=no
! 1058: fi
! 1059: EXEEXT=""
! 1060: test x"${am_cv_exeext}" != xno && EXEEXT=${am_cv_exeext}
! 1061: echo "$ac_t""${am_cv_exeext}" 1>&6
! 1062:
! 1063:
1.1.1.4 root 1064: NR_WARNINGS=0
1065: NR_ERRORS=0
1066:
1.1.1.6 ! root 1067: tmp_save_dir=`pwd`
! 1068: cd $srcdir
! 1069: abssrcdir=`pwd`
! 1070: cd $tmp_save_dir
! 1071:
1.1.1.4 root 1072: NEED_THREAD_SUPPORT=no
1073:
1074: ADDITIONAL_CFLAGS=
1075: OPTIMIZE_CFLAGS=
1076: WARNING_CFLAGS=
1077: DEBUG_CFLAGS=
1078: NO_SCHED_CFLAGS=
1079:
1080: HAVE_BEOS=no
1081: HAVE_POS=no
1082: echo $ac_n "checking for main in -lMedia_s""... $ac_c" 1>&6
1.1.1.6 ! root 1083: echo "configure:1084: checking for main in -lMedia_s" >&5
1.1.1.4 root 1084: ac_lib_var=`echo Media_s'_'main | sed 'y%./+-%__p_%'`
1.1 root 1085: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1086: echo $ac_n "(cached) $ac_c" 1>&6
1087: else
1088: ac_save_LIBS="$LIBS"
1089: LIBS="-lMedia_s $LIBS"
1090: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1091: #line 1092 "configure"
1.1 root 1092: #include "confdefs.h"
1093:
1.1.1.4 root 1094: int main() {
1.1 root 1095: main()
1096: ; return 0; }
1097: EOF
1.1.1.6 ! root 1098: if { (eval echo configure:1099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1099: rm -rf conftest*
1100: eval "ac_cv_lib_$ac_lib_var=yes"
1101: else
1.1.1.4 root 1102: echo "configure: failed program was:" >&5
1103: cat conftest.$ac_ext >&5
1.1 root 1104: rm -rf conftest*
1105: eval "ac_cv_lib_$ac_lib_var=no"
1106: fi
1107: rm -f conftest*
1108: LIBS="$ac_save_LIBS"
1109:
1110: fi
1111: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1112: echo "$ac_t""yes" 1>&6
1.1.1.4 root 1113: HAVE_MEDIA_LIB=yes
1.1 root 1114: else
1115: echo "$ac_t""no" 1>&6
1.1.1.4 root 1116: HAVE_MEDIA_LIB=no
1.1 root 1117: fi
1118:
1.1.1.4 root 1119: echo $ac_n "checking for main in -lNeXT_s""... $ac_c" 1>&6
1.1.1.6 ! root 1120: echo "configure:1121: checking for main in -lNeXT_s" >&5
1.1.1.4 root 1121: ac_lib_var=`echo NeXT_s'_'main | sed 'y%./+-%__p_%'`
1.1 root 1122: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1123: echo $ac_n "(cached) $ac_c" 1>&6
1124: else
1125: ac_save_LIBS="$LIBS"
1126: LIBS="-lNeXT_s $LIBS"
1127: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1128: #line 1129 "configure"
1.1 root 1129: #include "confdefs.h"
1130:
1.1.1.4 root 1131: int main() {
1.1 root 1132: main()
1133: ; return 0; }
1134: EOF
1.1.1.6 ! root 1135: if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1136: rm -rf conftest*
1137: eval "ac_cv_lib_$ac_lib_var=yes"
1138: else
1.1.1.4 root 1139: echo "configure: failed program was:" >&5
1140: cat conftest.$ac_ext >&5
1.1 root 1141: rm -rf conftest*
1142: eval "ac_cv_lib_$ac_lib_var=no"
1143: fi
1144: rm -f conftest*
1145: LIBS="$ac_save_LIBS"
1146:
1147: fi
1148: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1149: echo "$ac_t""yes" 1>&6
1.1.1.4 root 1150: HAVE_NEXT_LIB=yes
1.1 root 1151: else
1152: echo "$ac_t""no" 1>&6
1.1.1.4 root 1153: HAVE_NEXT_LIB=no
1.1 root 1154: fi
1155:
1.1.1.4 root 1156: echo $ac_n "checking for OpenLibrary in -lamiga""... $ac_c" 1>&6
1.1.1.6 ! root 1157: echo "configure:1158: checking for OpenLibrary in -lamiga" >&5
1.1.1.4 root 1158: ac_lib_var=`echo amiga'_'OpenLibrary | sed 'y%./+-%__p_%'`
1.1.1.3 root 1159: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1160: echo $ac_n "(cached) $ac_c" 1>&6
1161: else
1162: ac_save_LIBS="$LIBS"
1163: LIBS="-lamiga $LIBS"
1164: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1165: #line 1166 "configure"
1.1.1.3 root 1166: #include "confdefs.h"
1167: /* Override any gcc2 internal prototype to avoid an error. */
1168: /* We use char because int might match the return type of a gcc2
1169: builtin and then its argument prototype would still apply. */
1170: char OpenLibrary();
1171:
1.1.1.4 root 1172: int main() {
1.1.1.3 root 1173: OpenLibrary()
1174: ; return 0; }
1175: EOF
1.1.1.6 ! root 1176: if { (eval echo configure:1177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.3 root 1177: rm -rf conftest*
1178: eval "ac_cv_lib_$ac_lib_var=yes"
1179: else
1.1.1.4 root 1180: echo "configure: failed program was:" >&5
1181: cat conftest.$ac_ext >&5
1.1.1.3 root 1182: rm -rf conftest*
1183: eval "ac_cv_lib_$ac_lib_var=no"
1184: fi
1185: rm -f conftest*
1186: LIBS="$ac_save_LIBS"
1187:
1188: fi
1189: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1190: echo "$ac_t""yes" 1>&6
1.1.1.4 root 1191: HAVE_AMIGA_LIB=yes
1.1.1.3 root 1192: else
1193: echo "$ac_t""no" 1>&6
1194: HAVE_AMIGA_LIB=n
1195: fi
1196:
1.1.1.4 root 1197: echo $ac_n "checking for vga_setmode in -lvga""... $ac_c" 1>&6
1.1.1.6 ! root 1198: echo "configure:1199: checking for vga_setmode in -lvga" >&5
1.1.1.4 root 1199: ac_lib_var=`echo vga'_'vga_setmode | sed 'y%./+-%__p_%'`
1.1 root 1200: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1201: echo $ac_n "(cached) $ac_c" 1>&6
1202: else
1203: ac_save_LIBS="$LIBS"
1204: LIBS="-lvga $LIBS"
1205: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1206: #line 1207 "configure"
1.1 root 1207: #include "confdefs.h"
1208: /* Override any gcc2 internal prototype to avoid an error. */
1209: /* We use char because int might match the return type of a gcc2
1210: builtin and then its argument prototype would still apply. */
1211: char vga_setmode();
1212:
1.1.1.4 root 1213: int main() {
1.1 root 1214: vga_setmode()
1215: ; return 0; }
1216: EOF
1.1.1.6 ! root 1217: if { (eval echo configure:1218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1218: rm -rf conftest*
1219: eval "ac_cv_lib_$ac_lib_var=yes"
1220: else
1.1.1.4 root 1221: echo "configure: failed program was:" >&5
1222: cat conftest.$ac_ext >&5
1.1 root 1223: rm -rf conftest*
1224: eval "ac_cv_lib_$ac_lib_var=no"
1225: fi
1226: rm -f conftest*
1227: LIBS="$ac_save_LIBS"
1228:
1229: fi
1230: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1231: echo "$ac_t""yes" 1>&6
1.1.1.4 root 1232: HAVE_SVGA_LIB=yes
1.1 root 1233: else
1234: echo "$ac_t""no" 1>&6
1.1.1.4 root 1235: HAVE_SVGA_LIB=no
1.1 root 1236: fi
1237:
1.1.1.4 root 1238: echo $ac_n "checking for AFOpenAudioConn in -lAF""... $ac_c" 1>&6
1.1.1.6 ! root 1239: echo "configure:1240: checking for AFOpenAudioConn in -lAF" >&5
1.1.1.4 root 1240: ac_lib_var=`echo AF'_'AFOpenAudioConn | sed 'y%./+-%__p_%'`
1.1 root 1241: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1242: echo $ac_n "(cached) $ac_c" 1>&6
1243: else
1244: ac_save_LIBS="$LIBS"
1245: LIBS="-lAF $LIBS"
1246: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1247: #line 1248 "configure"
1.1 root 1248: #include "confdefs.h"
1249: /* Override any gcc2 internal prototype to avoid an error. */
1250: /* We use char because int might match the return type of a gcc2
1251: builtin and then its argument prototype would still apply. */
1252: char AFOpenAudioConn();
1253:
1.1.1.4 root 1254: int main() {
1.1 root 1255: AFOpenAudioConn()
1256: ; return 0; }
1257: EOF
1.1.1.6 ! root 1258: if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1259: rm -rf conftest*
1260: eval "ac_cv_lib_$ac_lib_var=yes"
1261: else
1262: echo "configure: failed program was:" >&5
1263: cat conftest.$ac_ext >&5
1264: rm -rf conftest*
1265: eval "ac_cv_lib_$ac_lib_var=no"
1266: fi
1267: rm -f conftest*
1268: LIBS="$ac_save_LIBS"
1269:
1270: fi
1271: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1272: echo "$ac_t""yes" 1>&6
1273: HAVE_AF_LIB=yes
1274: else
1275: echo "$ac_t""no" 1>&6
1276: HAVE_AF_LIB=no
1277: fi
1278:
1.1.1.6 ! root 1279: echo $ac_n "checking for waveOutGetNumDevs in -lmme""... $ac_c" 1>&6
! 1280: echo "configure:1281: checking for waveOutGetNumDevs in -lmme" >&5
! 1281: ac_lib_var=`echo mme'_'waveOutGetNumDevs | sed 'y%./+-%__p_%'`
! 1282: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 1283: echo $ac_n "(cached) $ac_c" 1>&6
! 1284: else
! 1285: ac_save_LIBS="$LIBS"
! 1286: LIBS="-lmme $LIBS"
! 1287: cat > conftest.$ac_ext <<EOF
! 1288: #line 1289 "configure"
! 1289: #include "confdefs.h"
! 1290: /* Override any gcc2 internal prototype to avoid an error. */
! 1291: /* We use char because int might match the return type of a gcc2
! 1292: builtin and then its argument prototype would still apply. */
! 1293: char waveOutGetNumDevs();
! 1294:
! 1295: int main() {
! 1296: waveOutGetNumDevs()
! 1297: ; return 0; }
! 1298: EOF
! 1299: if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 1300: rm -rf conftest*
! 1301: eval "ac_cv_lib_$ac_lib_var=yes"
! 1302: else
! 1303: echo "configure: failed program was:" >&5
! 1304: cat conftest.$ac_ext >&5
! 1305: rm -rf conftest*
! 1306: eval "ac_cv_lib_$ac_lib_var=no"
! 1307: fi
! 1308: rm -f conftest*
! 1309: LIBS="$ac_save_LIBS"
! 1310:
! 1311: fi
! 1312: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 1313: echo "$ac_t""yes" 1>&6
! 1314: HAVE_MME_LIB=yes
! 1315: else
! 1316: echo "$ac_t""no" 1>&6
! 1317: HAVE_MME_LIB=no
! 1318: fi
! 1319:
1.1.1.4 root 1320: echo $ac_n "checking for waddch in -lncurses""... $ac_c" 1>&6
1.1.1.6 ! root 1321: echo "configure:1322: checking for waddch in -lncurses" >&5
1.1.1.4 root 1322: ac_lib_var=`echo ncurses'_'waddch | sed 'y%./+-%__p_%'`
1323: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1324: echo $ac_n "(cached) $ac_c" 1>&6
1325: else
1326: ac_save_LIBS="$LIBS"
1327: LIBS="-lncurses $LIBS"
1328: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1329: #line 1330 "configure"
1.1.1.4 root 1330: #include "confdefs.h"
1331: /* Override any gcc2 internal prototype to avoid an error. */
1332: /* We use char because int might match the return type of a gcc2
1333: builtin and then its argument prototype would still apply. */
1334: char waddch();
1335:
1336: int main() {
1337: waddch()
1338: ; return 0; }
1339: EOF
1.1.1.6 ! root 1340: if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1341: rm -rf conftest*
1342: eval "ac_cv_lib_$ac_lib_var=yes"
1343: else
1344: echo "configure: failed program was:" >&5
1345: cat conftest.$ac_ext >&5
1346: rm -rf conftest*
1347: eval "ac_cv_lib_$ac_lib_var=no"
1348: fi
1349: rm -f conftest*
1350: LIBS="$ac_save_LIBS"
1351:
1352: fi
1353: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1354: echo "$ac_t""yes" 1>&6
1355: HAVE_NCURSES_LIB=yes
1356: else
1357: echo "$ac_t""no" 1>&6
1358: HAVE_NCURSES_LIB=no
1359: fi
1360:
1.1.1.6 ! root 1361: echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
! 1362: echo "configure:1363: checking for sem_init in -lposix4" >&5
! 1363: ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
1.1.1.4 root 1364: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1365: echo $ac_n "(cached) $ac_c" 1>&6
1366: else
1367: ac_save_LIBS="$LIBS"
1.1.1.6 ! root 1368: LIBS="-lposix4 $LIBS"
1.1.1.4 root 1369: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1370: #line 1371 "configure"
1.1.1.4 root 1371: #include "confdefs.h"
1372: /* Override any gcc2 internal prototype to avoid an error. */
1373: /* We use char because int might match the return type of a gcc2
1374: builtin and then its argument prototype would still apply. */
1.1.1.6 ! root 1375: char sem_init();
1.1.1.4 root 1376:
1377: int main() {
1.1.1.6 ! root 1378: sem_init()
1.1.1.4 root 1379: ; return 0; }
1380: EOF
1.1.1.6 ! root 1381: if { (eval echo configure:1382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1382: rm -rf conftest*
1383: eval "ac_cv_lib_$ac_lib_var=yes"
1384: else
1385: echo "configure: failed program was:" >&5
1386: cat conftest.$ac_ext >&5
1387: rm -rf conftest*
1388: eval "ac_cv_lib_$ac_lib_var=no"
1389: fi
1390: rm -f conftest*
1391: LIBS="$ac_save_LIBS"
1392:
1393: fi
1394: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1395: echo "$ac_t""yes" 1>&6
1.1.1.6 ! root 1396: HAVE_POSIX4_LIB=yes
1.1.1.4 root 1397: else
1398: echo "$ac_t""no" 1>&6
1.1.1.6 ! root 1399: HAVE_POSIX4_LIB=no
1.1.1.4 root 1400: fi
1401:
1.1.1.6 ! root 1402: echo $ac_n "checking for sem_init in -lrt""... $ac_c" 1>&6
! 1403: echo "configure:1404: checking for sem_init in -lrt" >&5
! 1404: ac_lib_var=`echo rt'_'sem_init | sed 'y%./+-%__p_%'`
1.1.1.4 root 1405: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1406: echo $ac_n "(cached) $ac_c" 1>&6
1407: else
1408: ac_save_LIBS="$LIBS"
1.1.1.6 ! root 1409: LIBS="-lrt $LIBS"
1.1.1.4 root 1410: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1411: #line 1412 "configure"
1.1.1.4 root 1412: #include "confdefs.h"
1413: /* Override any gcc2 internal prototype to avoid an error. */
1414: /* We use char because int might match the return type of a gcc2
1415: builtin and then its argument prototype would still apply. */
1416: char sem_init();
1417:
1418: int main() {
1419: sem_init()
1420: ; return 0; }
1421: EOF
1.1.1.6 ! root 1422: if { (eval echo configure:1423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1423: rm -rf conftest*
1424: eval "ac_cv_lib_$ac_lib_var=yes"
1425: else
1426: echo "configure: failed program was:" >&5
1427: cat conftest.$ac_ext >&5
1428: rm -rf conftest*
1429: eval "ac_cv_lib_$ac_lib_var=no"
1430: fi
1431: rm -f conftest*
1432: LIBS="$ac_save_LIBS"
1433:
1434: fi
1435: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1436: echo "$ac_t""yes" 1>&6
1.1.1.6 ! root 1437: HAVE_RT_LIB=yes
1.1.1.4 root 1438: else
1439: echo "$ac_t""no" 1>&6
1.1.1.6 ! root 1440: HAVE_RT_LIB=no
1.1.1.4 root 1441: fi
1442:
1443: echo $ac_n "checking for ggiInit in -lggi""... $ac_c" 1>&6
1.1.1.6 ! root 1444: echo "configure:1445: checking for ggiInit in -lggi" >&5
1.1.1.4 root 1445: ac_lib_var=`echo ggi'_'ggiInit | sed 'y%./+-%__p_%'`
1446: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1447: echo $ac_n "(cached) $ac_c" 1>&6
1448: else
1449: ac_save_LIBS="$LIBS"
1450: LIBS="-lggi $LIBS"
1451: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1452: #line 1453 "configure"
1.1.1.4 root 1453: #include "confdefs.h"
1454: /* Override any gcc2 internal prototype to avoid an error. */
1455: /* We use char because int might match the return type of a gcc2
1456: builtin and then its argument prototype would still apply. */
1457: char ggiInit();
1458:
1459: int main() {
1460: ggiInit()
1461: ; return 0; }
1462: EOF
1.1.1.6 ! root 1463: if { (eval echo configure:1464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1464: rm -rf conftest*
1465: eval "ac_cv_lib_$ac_lib_var=yes"
1466: else
1.1.1.4 root 1467: echo "configure: failed program was:" >&5
1468: cat conftest.$ac_ext >&5
1.1 root 1469: rm -rf conftest*
1470: eval "ac_cv_lib_$ac_lib_var=no"
1471: fi
1472: rm -f conftest*
1473: LIBS="$ac_save_LIBS"
1474:
1475: fi
1476: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1477: echo "$ac_t""yes" 1>&6
1.1.1.4 root 1478: HAVE_GGI_LIB=yes
1.1 root 1479: else
1480: echo "$ac_t""no" 1>&6
1.1.1.4 root 1481: HAVE_GGI_LIB=no
1.1 root 1482: fi
1483:
1484:
1485: # If we find X, set shell vars x_includes and x_libraries to the
1486: # paths, otherwise set no_x=yes.
1487: # Uses ac_ vars as temps to allow command line to override cache and checks.
1488: # --without-x overrides everything else, but does not touch the cache.
1489: echo $ac_n "checking for X""... $ac_c" 1>&6
1.1.1.6 ! root 1490: echo "configure:1491: checking for X" >&5
1.1 root 1491:
1492: # Check whether --with-x or --without-x was given.
1493: if test "${with_x+set}" = set; then
1494: withval="$with_x"
1495: :
1496: fi
1497:
1498: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1499: if test "x$with_x" = xno; then
1500: # The user explicitly disabled X.
1501: have_x=disabled
1502: else
1503: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1504: # Both variables are already set.
1505: have_x=yes
1506: else
1507: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1508: echo $ac_n "(cached) $ac_c" 1>&6
1509: else
1510: # One or both of the vars are not set, and there is no cached value.
1511: ac_x_includes=NO ac_x_libraries=NO
1512: rm -fr conftestdir
1513: if mkdir conftestdir; then
1514: cd conftestdir
1515: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1516: cat > Imakefile <<'EOF'
1517: acfindx:
1518: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1519: EOF
1520: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1521: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1522: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1523: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1524: for ac_extension in a so sl; do
1525: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1526: test -f $ac_im_libdir/libX11.$ac_extension; then
1527: ac_im_usrlibdir=$ac_im_libdir; break
1528: fi
1529: done
1.1.1.4 root 1530: # Screen out bogus values from the imake configuration. They are
1531: # bogus both because they are the default anyway, and because
1532: # using them would break gcc on systems where it needs fixed includes.
1.1 root 1533: case "$ac_im_incroot" in
1534: /usr/include) ;;
1535: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1536: esac
1537: case "$ac_im_usrlibdir" in
1538: /usr/lib | /lib) ;;
1539: *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1540: esac
1541: fi
1542: cd ..
1543: rm -fr conftestdir
1544: fi
1545:
1546: if test "$ac_x_includes" = NO; then
1547: # Guess where to find include files, by looking for this one X11 .h file.
1548: test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1549:
1550: # First, try using that file with no special directory specified.
1551: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1552: #line 1553 "configure"
1.1 root 1553: #include "confdefs.h"
1554: #include <$x_direct_test_include>
1555: EOF
1556: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.6 ! 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: # We can compile using X headers with no special include directory.
1562: ac_x_includes=
1563: else
1564: echo "$ac_err" >&5
1.1.1.4 root 1565: echo "configure: failed program was:" >&5
1566: cat conftest.$ac_ext >&5
1.1 root 1567: rm -rf conftest*
1568: # Look for the header file in a standard set of common directories.
1.1.1.4 root 1569: # Check X11 before X11Rn because it is often a symlink to the current release.
1.1 root 1570: for ac_dir in \
1.1.1.4 root 1571: /usr/X11/include \
1.1 root 1572: /usr/X11R6/include \
1573: /usr/X11R5/include \
1574: /usr/X11R4/include \
1575: \
1.1.1.4 root 1576: /usr/include/X11 \
1.1 root 1577: /usr/include/X11R6 \
1578: /usr/include/X11R5 \
1579: /usr/include/X11R4 \
1580: \
1.1.1.4 root 1581: /usr/local/X11/include \
1.1 root 1582: /usr/local/X11R6/include \
1583: /usr/local/X11R5/include \
1584: /usr/local/X11R4/include \
1585: \
1.1.1.4 root 1586: /usr/local/include/X11 \
1.1 root 1587: /usr/local/include/X11R6 \
1588: /usr/local/include/X11R5 \
1589: /usr/local/include/X11R4 \
1590: \
1591: /usr/X386/include \
1592: /usr/x386/include \
1593: /usr/XFree86/include/X11 \
1594: \
1595: /usr/include \
1596: /usr/local/include \
1597: /usr/unsupported/include \
1598: /usr/athena/include \
1599: /usr/local/x11r5/include \
1600: /usr/lpp/Xamples/include \
1601: \
1602: /usr/openwin/include \
1603: /usr/openwin/share/include \
1604: ; \
1605: do
1606: if test -r "$ac_dir/$x_direct_test_include"; then
1607: ac_x_includes=$ac_dir
1608: break
1609: fi
1610: done
1611: fi
1612: rm -f conftest*
1613: fi # $ac_x_includes = NO
1614:
1615: if test "$ac_x_libraries" = NO; then
1616: # Check for the libraries.
1617:
1618: test -z "$x_direct_test_library" && x_direct_test_library=Xt
1619: test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1620:
1621: # See if we find them without any special options.
1622: # Don't add to $LIBS permanently.
1623: ac_save_LIBS="$LIBS"
1624: LIBS="-l$x_direct_test_library $LIBS"
1625: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1626: #line 1627 "configure"
1.1 root 1627: #include "confdefs.h"
1628:
1.1.1.4 root 1629: int main() {
1.1 root 1630: ${x_direct_test_function}()
1631: ; return 0; }
1632: EOF
1.1.1.6 ! root 1633: if { (eval echo configure:1634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1634: rm -rf conftest*
1635: LIBS="$ac_save_LIBS"
1636: # We can link X programs with no special library path.
1637: ac_x_libraries=
1638: else
1.1.1.4 root 1639: echo "configure: failed program was:" >&5
1640: cat conftest.$ac_ext >&5
1.1 root 1641: rm -rf conftest*
1642: LIBS="$ac_save_LIBS"
1643: # First see if replacing the include by lib works.
1.1.1.4 root 1644: # Check X11 before X11Rn because it is often a symlink to the current release.
1.1 root 1645: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1.1.1.4 root 1646: /usr/X11/lib \
1.1 root 1647: /usr/X11R6/lib \
1648: /usr/X11R5/lib \
1649: /usr/X11R4/lib \
1650: \
1.1.1.4 root 1651: /usr/lib/X11 \
1.1 root 1652: /usr/lib/X11R6 \
1653: /usr/lib/X11R5 \
1654: /usr/lib/X11R4 \
1655: \
1.1.1.4 root 1656: /usr/local/X11/lib \
1.1 root 1657: /usr/local/X11R6/lib \
1658: /usr/local/X11R5/lib \
1659: /usr/local/X11R4/lib \
1660: \
1.1.1.4 root 1661: /usr/local/lib/X11 \
1.1 root 1662: /usr/local/lib/X11R6 \
1663: /usr/local/lib/X11R5 \
1664: /usr/local/lib/X11R4 \
1665: \
1666: /usr/X386/lib \
1667: /usr/x386/lib \
1668: /usr/XFree86/lib/X11 \
1669: \
1670: /usr/lib \
1671: /usr/local/lib \
1672: /usr/unsupported/lib \
1673: /usr/athena/lib \
1674: /usr/local/x11r5/lib \
1675: /usr/lpp/Xamples/lib \
1.1.1.4 root 1676: /lib/usr/lib/X11 \
1.1 root 1677: \
1678: /usr/openwin/lib \
1679: /usr/openwin/share/lib \
1680: ; \
1681: do
1682: for ac_extension in a so sl; do
1683: if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1684: ac_x_libraries=$ac_dir
1685: break 2
1686: fi
1687: done
1688: done
1689: fi
1690: rm -f conftest*
1691: fi # $ac_x_libraries = NO
1692:
1693: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1694: # Didn't find X anywhere. Cache the known absence of X.
1695: ac_cv_have_x="have_x=no"
1696: else
1697: # Record where we found X for the cache.
1698: ac_cv_have_x="have_x=yes \
1699: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1700: fi
1701: fi
1702: fi
1703: eval "$ac_cv_have_x"
1704: fi # $with_x != no
1705:
1706: if test "$have_x" != yes; then
1707: echo "$ac_t""$have_x" 1>&6
1708: no_x=yes
1709: else
1710: # If each of the values was on the command line, it overrides each guess.
1711: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1712: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1713: # Update the cache value to reflect the command line values.
1714: ac_cv_have_x="have_x=yes \
1715: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1716: echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1717: fi
1718:
1719: if test "$no_x" = yes; then
1720: # Not all programs may use this symbol, but it does not hurt to define it.
1.1.1.4 root 1721: cat >> confdefs.h <<\EOF
1722: #define X_DISPLAY_MISSING 1
1723: EOF
1724:
1725: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1 root 1726: else
1727: if test -n "$x_includes"; then
1728: X_CFLAGS="$X_CFLAGS -I$x_includes"
1729: fi
1730:
1731: # It would also be nice to do this for all -L options, not just this one.
1732: if test -n "$x_libraries"; then
1733: X_LIBS="$X_LIBS -L$x_libraries"
1.1.1.4 root 1734: # For Solaris; some versions of Sun CC require a space after -R and
1735: # others require no space. Words are not sufficient . . . .
1736: case "`(uname -sr) 2>/dev/null`" in
1737: "SunOS 5"*)
1738: echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1.1.1.6 ! root 1739: echo "configure:1740: checking whether -R must be followed by a space" >&5
1.1.1.4 root 1740: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1741: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1742: #line 1743 "configure"
1.1.1.4 root 1743: #include "confdefs.h"
1.1 root 1744:
1.1.1.4 root 1745: int main() {
1.1 root 1746:
1.1.1.4 root 1747: ; return 0; }
1748: EOF
1.1.1.6 ! root 1749: if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1750: rm -rf conftest*
1751: ac_R_nospace=yes
1.1 root 1752: else
1.1.1.4 root 1753: echo "configure: failed program was:" >&5
1754: cat conftest.$ac_ext >&5
1755: rm -rf conftest*
1756: ac_R_nospace=no
1757: fi
1758: rm -f conftest*
1759: if test $ac_R_nospace = yes; then
1760: echo "$ac_t""no" 1>&6
1761: X_LIBS="$X_LIBS -R$x_libraries"
1762: else
1763: LIBS="$ac_xsave_LIBS -R $x_libraries"
1764: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1765: #line 1766 "configure"
1.1 root 1766: #include "confdefs.h"
1767:
1.1.1.4 root 1768: int main() {
1769:
1.1 root 1770: ; return 0; }
1771: EOF
1.1.1.6 ! root 1772: if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1773: rm -rf conftest*
1.1.1.4 root 1774: ac_R_space=yes
1.1 root 1775: else
1.1.1.4 root 1776: echo "configure: failed program was:" >&5
1777: cat conftest.$ac_ext >&5
1.1 root 1778: rm -rf conftest*
1.1.1.4 root 1779: ac_R_space=no
1.1 root 1780: fi
1781: rm -f conftest*
1.1.1.4 root 1782: if test $ac_R_space = yes; then
1783: echo "$ac_t""yes" 1>&6
1784: X_LIBS="$X_LIBS -R $x_libraries"
1785: else
1786: echo "$ac_t""neither works" 1>&6
1787: fi
1788: fi
1789: LIBS="$ac_xsave_LIBS"
1790: esac
1791: fi
1.1 root 1792:
1793: # Check for system-dependent libraries X programs must link with.
1.1.1.4 root 1794: # Do this before checking for the system-independent R6 libraries
1795: # (-lICE), since we may need -lsocket or whatever for X linking.
1.1 root 1796:
1797: if test "$ISC" = yes; then
1798: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1799: else
1800: # [email protected] says this is needed for Ultrix, if the X
1801: # libraries were built with DECnet support. And [email protected] says
1802: # the Alpha needs dnet_stub (dnet does not exist).
1.1.1.4 root 1803: echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1.1.1.6 ! root 1804: echo "configure:1805: checking for dnet_ntoa in -ldnet" >&5
1.1.1.4 root 1805: ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1.1 root 1806: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1807: echo $ac_n "(cached) $ac_c" 1>&6
1808: else
1809: ac_save_LIBS="$LIBS"
1810: LIBS="-ldnet $LIBS"
1811: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1812: #line 1813 "configure"
1.1 root 1813: #include "confdefs.h"
1814: /* Override any gcc2 internal prototype to avoid an error. */
1815: /* We use char because int might match the return type of a gcc2
1816: builtin and then its argument prototype would still apply. */
1817: char dnet_ntoa();
1818:
1.1.1.4 root 1819: int main() {
1.1 root 1820: dnet_ntoa()
1821: ; return 0; }
1822: EOF
1.1.1.6 ! root 1823: if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1824: rm -rf conftest*
1825: eval "ac_cv_lib_$ac_lib_var=yes"
1826: else
1.1.1.4 root 1827: echo "configure: failed program was:" >&5
1828: cat conftest.$ac_ext >&5
1.1 root 1829: rm -rf conftest*
1830: eval "ac_cv_lib_$ac_lib_var=no"
1831: fi
1832: rm -f conftest*
1833: LIBS="$ac_save_LIBS"
1834:
1835: fi
1836: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1837: echo "$ac_t""yes" 1>&6
1838: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1839: else
1840: echo "$ac_t""no" 1>&6
1841: fi
1842:
1843: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1.1.1.4 root 1844: echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1.1.1.6 ! root 1845: echo "configure:1846: checking for dnet_ntoa in -ldnet_stub" >&5
1.1.1.4 root 1846: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1.1 root 1847: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1848: echo $ac_n "(cached) $ac_c" 1>&6
1849: else
1850: ac_save_LIBS="$LIBS"
1851: LIBS="-ldnet_stub $LIBS"
1852: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1853: #line 1854 "configure"
1.1 root 1854: #include "confdefs.h"
1855: /* Override any gcc2 internal prototype to avoid an error. */
1856: /* We use char because int might match the return type of a gcc2
1857: builtin and then its argument prototype would still apply. */
1858: char dnet_ntoa();
1859:
1.1.1.4 root 1860: int main() {
1.1 root 1861: dnet_ntoa()
1862: ; return 0; }
1863: EOF
1.1.1.6 ! root 1864: if { (eval echo configure:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1865: rm -rf conftest*
1866: eval "ac_cv_lib_$ac_lib_var=yes"
1867: else
1.1.1.4 root 1868: echo "configure: failed program was:" >&5
1869: cat conftest.$ac_ext >&5
1.1 root 1870: rm -rf conftest*
1871: eval "ac_cv_lib_$ac_lib_var=no"
1872: fi
1873: rm -f conftest*
1874: LIBS="$ac_save_LIBS"
1875:
1876: fi
1877: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1878: echo "$ac_t""yes" 1>&6
1879: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1880: else
1881: echo "$ac_t""no" 1>&6
1882: fi
1883:
1884: fi
1885:
1886: # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
1887: # to get the SysV transport functions.
1.1.1.4 root 1888: # [email protected] says the Pyramis MIS-ES running DC/OSx (SVR4)
1889: # needs -lnsl.
1890: # The nsl library prevents programs from opening the X display
1891: # on Irix 5.2, according to [email protected].
1892: echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1.1.1.6 ! root 1893: echo "configure:1894: checking for gethostbyname" >&5
1.1.1.4 root 1894: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1895: echo $ac_n "(cached) $ac_c" 1>&6
1896: else
1897: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1898: #line 1899 "configure"
1.1.1.4 root 1899: #include "confdefs.h"
1900: /* System header to define __stub macros and hopefully few prototypes,
1901: which can conflict with char gethostbyname(); below. */
1902: #include <assert.h>
1903: /* Override any gcc2 internal prototype to avoid an error. */
1904: /* We use char because int might match the return type of a gcc2
1905: builtin and then its argument prototype would still apply. */
1906: char gethostbyname();
1907:
1908: int main() {
1909:
1910: /* The GNU C library defines this for functions which it implements
1911: to always fail with ENOSYS. Some functions are actually named
1912: something starting with __ and the normal name is an alias. */
1913: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1914: choke me
1915: #else
1916: gethostbyname();
1917: #endif
1918:
1919: ; return 0; }
1920: EOF
1.1.1.6 ! root 1921: if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 1922: rm -rf conftest*
1923: eval "ac_cv_func_gethostbyname=yes"
1924: else
1925: echo "configure: failed program was:" >&5
1926: cat conftest.$ac_ext >&5
1927: rm -rf conftest*
1928: eval "ac_cv_func_gethostbyname=no"
1929: fi
1930: rm -f conftest*
1931: fi
1932:
1933: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1934: echo "$ac_t""yes" 1>&6
1935: :
1936: else
1937: echo "$ac_t""no" 1>&6
1938: fi
1939:
1940: if test $ac_cv_func_gethostbyname = no; then
1941: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.1.1.6 ! root 1942: echo "configure:1943: checking for gethostbyname in -lnsl" >&5
1.1.1.4 root 1943: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1.1 root 1944: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1945: echo $ac_n "(cached) $ac_c" 1>&6
1946: else
1947: ac_save_LIBS="$LIBS"
1948: LIBS="-lnsl $LIBS"
1949: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1950: #line 1951 "configure"
1.1 root 1951: #include "confdefs.h"
1952: /* Override any gcc2 internal prototype to avoid an error. */
1953: /* We use char because int might match the return type of a gcc2
1954: builtin and then its argument prototype would still apply. */
1.1.1.4 root 1955: char gethostbyname();
1.1 root 1956:
1.1.1.4 root 1957: int main() {
1958: gethostbyname()
1.1 root 1959: ; return 0; }
1960: EOF
1.1.1.6 ! root 1961: if { (eval echo configure:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 1962: rm -rf conftest*
1963: eval "ac_cv_lib_$ac_lib_var=yes"
1964: else
1.1.1.4 root 1965: echo "configure: failed program was:" >&5
1966: cat conftest.$ac_ext >&5
1.1 root 1967: rm -rf conftest*
1968: eval "ac_cv_lib_$ac_lib_var=no"
1969: fi
1970: rm -f conftest*
1971: LIBS="$ac_save_LIBS"
1972:
1973: fi
1974: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1975: echo "$ac_t""yes" 1>&6
1976: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1977: else
1978: echo "$ac_t""no" 1>&6
1979: fi
1980:
1.1.1.4 root 1981: fi
1.1 root 1982:
1983: # [email protected] says without -lsocket,
1.1.1.4 root 1984: # socket/setsockopt and other routines are undefined under SCO ODT
1985: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1986: # on later versions), says [email protected]: it contains
1987: # gethostby* variants that don't use the nameserver (or something).
1988: # -lsocket must be given before -lnsl if both are needed.
1989: # We assume that if connect needs -lnsl, so does gethostbyname.
1990: echo $ac_n "checking for connect""... $ac_c" 1>&6
1.1.1.6 ! root 1991: echo "configure:1992: checking for connect" >&5
1.1.1.4 root 1992: if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1993: echo $ac_n "(cached) $ac_c" 1>&6
1994: else
1995: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 1996: #line 1997 "configure"
1.1.1.4 root 1997: #include "confdefs.h"
1998: /* System header to define __stub macros and hopefully few prototypes,
1999: which can conflict with char connect(); below. */
2000: #include <assert.h>
2001: /* Override any gcc2 internal prototype to avoid an error. */
2002: /* We use char because int might match the return type of a gcc2
2003: builtin and then its argument prototype would still apply. */
2004: char connect();
2005:
2006: int main() {
2007:
2008: /* The GNU C library defines this for functions which it implements
2009: to always fail with ENOSYS. Some functions are actually named
2010: something starting with __ and the normal name is an alias. */
2011: #if defined (__stub_connect) || defined (__stub___connect)
2012: choke me
2013: #else
2014: connect();
2015: #endif
2016:
2017: ; return 0; }
2018: EOF
1.1.1.6 ! root 2019: if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2020: rm -rf conftest*
2021: eval "ac_cv_func_connect=yes"
2022: else
2023: echo "configure: failed program was:" >&5
2024: cat conftest.$ac_ext >&5
2025: rm -rf conftest*
2026: eval "ac_cv_func_connect=no"
2027: fi
2028: rm -f conftest*
2029: fi
2030:
2031: if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2032: echo "$ac_t""yes" 1>&6
2033: :
2034: else
2035: echo "$ac_t""no" 1>&6
2036: fi
2037:
2038: if test $ac_cv_func_connect = no; then
2039: echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1.1.1.6 ! root 2040: echo "configure:2041: checking for connect in -lsocket" >&5
1.1.1.4 root 2041: ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1.1 root 2042: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2043: echo $ac_n "(cached) $ac_c" 1>&6
2044: else
2045: ac_save_LIBS="$LIBS"
1.1.1.4 root 2046: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1.1 root 2047: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2048: #line 2049 "configure"
1.1 root 2049: #include "confdefs.h"
2050: /* Override any gcc2 internal prototype to avoid an error. */
2051: /* We use char because int might match the return type of a gcc2
2052: builtin and then its argument prototype would still apply. */
1.1.1.4 root 2053: char connect();
1.1 root 2054:
1.1.1.4 root 2055: int main() {
2056: connect()
1.1 root 2057: ; return 0; }
2058: EOF
1.1.1.6 ! root 2059: if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 2060: rm -rf conftest*
2061: eval "ac_cv_lib_$ac_lib_var=yes"
2062: else
1.1.1.4 root 2063: echo "configure: failed program was:" >&5
2064: cat conftest.$ac_ext >&5
1.1 root 2065: rm -rf conftest*
2066: eval "ac_cv_lib_$ac_lib_var=no"
2067: fi
2068: rm -f conftest*
2069: LIBS="$ac_save_LIBS"
2070:
2071: fi
2072: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2073: echo "$ac_t""yes" 1>&6
1.1.1.4 root 2074: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2075: else
2076: echo "$ac_t""no" 1>&6
2077: fi
2078:
2079: fi
2080:
2081: # [email protected] says -lposix is necessary on A/UX.
2082: echo $ac_n "checking for remove""... $ac_c" 1>&6
1.1.1.6 ! root 2083: echo "configure:2084: checking for remove" >&5
1.1.1.4 root 2084: if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2085: echo $ac_n "(cached) $ac_c" 1>&6
2086: else
2087: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2088: #line 2089 "configure"
1.1.1.4 root 2089: #include "confdefs.h"
2090: /* System header to define __stub macros and hopefully few prototypes,
2091: which can conflict with char remove(); below. */
2092: #include <assert.h>
2093: /* Override any gcc2 internal prototype to avoid an error. */
2094: /* We use char because int might match the return type of a gcc2
2095: builtin and then its argument prototype would still apply. */
2096: char remove();
2097:
2098: int main() {
2099:
2100: /* The GNU C library defines this for functions which it implements
2101: to always fail with ENOSYS. Some functions are actually named
2102: something starting with __ and the normal name is an alias. */
2103: #if defined (__stub_remove) || defined (__stub___remove)
2104: choke me
2105: #else
2106: remove();
2107: #endif
2108:
2109: ; return 0; }
2110: EOF
1.1.1.6 ! root 2111: if { (eval echo configure:2112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2112: rm -rf conftest*
2113: eval "ac_cv_func_remove=yes"
2114: else
2115: echo "configure: failed program was:" >&5
2116: cat conftest.$ac_ext >&5
2117: rm -rf conftest*
2118: eval "ac_cv_func_remove=no"
2119: fi
2120: rm -f conftest*
2121: fi
2122:
2123: if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2124: echo "$ac_t""yes" 1>&6
2125: :
2126: else
2127: echo "$ac_t""no" 1>&6
2128: fi
2129:
2130: if test $ac_cv_func_remove = no; then
2131: echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1.1.1.6 ! root 2132: echo "configure:2133: checking for remove in -lposix" >&5
1.1.1.4 root 2133: ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2134: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2135: echo $ac_n "(cached) $ac_c" 1>&6
2136: else
2137: ac_save_LIBS="$LIBS"
2138: LIBS="-lposix $LIBS"
2139: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2140: #line 2141 "configure"
1.1.1.4 root 2141: #include "confdefs.h"
2142: /* Override any gcc2 internal prototype to avoid an error. */
2143: /* We use char because int might match the return type of a gcc2
2144: builtin and then its argument prototype would still apply. */
2145: char remove();
2146:
2147: int main() {
2148: remove()
2149: ; return 0; }
2150: EOF
1.1.1.6 ! root 2151: if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2152: rm -rf conftest*
2153: eval "ac_cv_lib_$ac_lib_var=yes"
2154: else
2155: echo "configure: failed program was:" >&5
2156: cat conftest.$ac_ext >&5
2157: rm -rf conftest*
2158: eval "ac_cv_lib_$ac_lib_var=no"
2159: fi
2160: rm -f conftest*
2161: LIBS="$ac_save_LIBS"
2162:
2163: fi
2164: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2165: echo "$ac_t""yes" 1>&6
2166: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2167: else
2168: echo "$ac_t""no" 1>&6
2169: fi
2170:
2171: fi
2172:
2173: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2174: echo $ac_n "checking for shmat""... $ac_c" 1>&6
1.1.1.6 ! root 2175: echo "configure:2176: checking for shmat" >&5
1.1.1.4 root 2176: if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2177: echo $ac_n "(cached) $ac_c" 1>&6
2178: else
2179: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2180: #line 2181 "configure"
1.1.1.4 root 2181: #include "confdefs.h"
2182: /* System header to define __stub macros and hopefully few prototypes,
2183: which can conflict with char shmat(); below. */
2184: #include <assert.h>
2185: /* Override any gcc2 internal prototype to avoid an error. */
2186: /* We use char because int might match the return type of a gcc2
2187: builtin and then its argument prototype would still apply. */
2188: char shmat();
2189:
2190: int main() {
2191:
2192: /* The GNU C library defines this for functions which it implements
2193: to always fail with ENOSYS. Some functions are actually named
2194: something starting with __ and the normal name is an alias. */
2195: #if defined (__stub_shmat) || defined (__stub___shmat)
2196: choke me
2197: #else
2198: shmat();
2199: #endif
2200:
2201: ; return 0; }
2202: EOF
1.1.1.6 ! root 2203: if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2204: rm -rf conftest*
2205: eval "ac_cv_func_shmat=yes"
2206: else
2207: echo "configure: failed program was:" >&5
2208: cat conftest.$ac_ext >&5
2209: rm -rf conftest*
2210: eval "ac_cv_func_shmat=no"
2211: fi
2212: rm -f conftest*
2213: fi
2214:
2215: if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2216: echo "$ac_t""yes" 1>&6
2217: :
2218: else
2219: echo "$ac_t""no" 1>&6
2220: fi
2221:
2222: if test $ac_cv_func_shmat = no; then
2223: echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1.1.1.6 ! root 2224: echo "configure:2225: checking for shmat in -lipc" >&5
1.1.1.4 root 2225: ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2226: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2227: echo $ac_n "(cached) $ac_c" 1>&6
2228: else
2229: ac_save_LIBS="$LIBS"
2230: LIBS="-lipc $LIBS"
2231: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2232: #line 2233 "configure"
1.1.1.4 root 2233: #include "confdefs.h"
2234: /* Override any gcc2 internal prototype to avoid an error. */
2235: /* We use char because int might match the return type of a gcc2
2236: builtin and then its argument prototype would still apply. */
2237: char shmat();
2238:
2239: int main() {
2240: shmat()
2241: ; return 0; }
2242: EOF
1.1.1.6 ! root 2243: if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2244: rm -rf conftest*
2245: eval "ac_cv_lib_$ac_lib_var=yes"
2246: else
2247: echo "configure: failed program was:" >&5
2248: cat conftest.$ac_ext >&5
2249: rm -rf conftest*
2250: eval "ac_cv_lib_$ac_lib_var=no"
2251: fi
2252: rm -f conftest*
2253: LIBS="$ac_save_LIBS"
2254:
2255: fi
2256: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2257: echo "$ac_t""yes" 1>&6
2258: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1.1 root 2259: else
2260: echo "$ac_t""no" 1>&6
2261: fi
2262:
2263: fi
2264: fi
1.1.1.4 root 2265:
2266: # Check for libraries that X11R6 Xt/Xaw programs need.
2267: ac_save_LDFLAGS="$LDFLAGS"
2268: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2269: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2270: # check for ICE first), but we must link in the order -lSM -lICE or
2271: # we get undefined symbols. So assume we have SM if we have ICE.
2272: # These have to be linked with before -lX11, unlike the other
2273: # libraries we check for below, so use a different variable.
2274: # [email protected], [email protected].
2275: echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1.1.1.6 ! root 2276: echo "configure:2277: checking for IceConnectionNumber in -lICE" >&5
1.1.1.4 root 2277: ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2278: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2279: echo $ac_n "(cached) $ac_c" 1>&6
2280: else
2281: ac_save_LIBS="$LIBS"
2282: LIBS="-lICE $LIBS"
2283: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2284: #line 2285 "configure"
1.1.1.4 root 2285: #include "confdefs.h"
2286: /* Override any gcc2 internal prototype to avoid an error. */
2287: /* We use char because int might match the return type of a gcc2
2288: builtin and then its argument prototype would still apply. */
2289: char IceConnectionNumber();
2290:
2291: int main() {
2292: IceConnectionNumber()
2293: ; return 0; }
2294: EOF
1.1.1.6 ! root 2295: if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 2296: rm -rf conftest*
2297: eval "ac_cv_lib_$ac_lib_var=yes"
2298: else
2299: echo "configure: failed program was:" >&5
2300: cat conftest.$ac_ext >&5
2301: rm -rf conftest*
2302: eval "ac_cv_lib_$ac_lib_var=no"
1.1 root 2303: fi
1.1.1.4 root 2304: rm -f conftest*
2305: LIBS="$ac_save_LIBS"
1.1 root 2306:
1.1.1.4 root 2307: fi
2308: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2309: echo "$ac_t""yes" 1>&6
2310: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2311: else
2312: echo "$ac_t""no" 1>&6
2313: fi
1.1 root 2314:
1.1.1.4 root 2315: LDFLAGS="$ac_save_LDFLAGS"
1.1 root 2316:
1.1.1.3 root 2317: fi
2318:
2319:
1.1.1.4 root 2320:
1.1 root 2321: ac_header_dirent=no
2322: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2323: do
1.1.1.4 root 2324: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1 root 2325: echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1.1.1.6 ! root 2326: echo "configure:2327: checking for $ac_hdr that defines DIR" >&5
1.1 root 2327: if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2328: echo $ac_n "(cached) $ac_c" 1>&6
2329: else
2330: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2331: #line 2332 "configure"
1.1 root 2332: #include "confdefs.h"
2333: #include <sys/types.h>
2334: #include <$ac_hdr>
1.1.1.4 root 2335: int main() {
1.1 root 2336: DIR *dirp = 0;
2337: ; return 0; }
2338: EOF
1.1.1.6 ! root 2339: if { (eval echo configure:2340: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 2340: rm -rf conftest*
2341: eval "ac_cv_header_dirent_$ac_safe=yes"
2342: else
1.1.1.4 root 2343: echo "configure: failed program was:" >&5
2344: cat conftest.$ac_ext >&5
1.1 root 2345: rm -rf conftest*
2346: eval "ac_cv_header_dirent_$ac_safe=no"
2347: fi
2348: rm -f conftest*
2349: fi
2350: if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2351: echo "$ac_t""yes" 1>&6
1.1.1.4 root 2352: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1 root 2353: cat >> confdefs.h <<EOF
2354: #define $ac_tr_hdr 1
2355: EOF
2356: ac_header_dirent=$ac_hdr; break
2357: else
2358: echo "$ac_t""no" 1>&6
2359: fi
2360: done
2361: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2362: if test $ac_header_dirent = dirent.h; then
1.1.1.4 root 2363: echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1.1.1.6 ! root 2364: echo "configure:2365: checking for opendir in -ldir" >&5
1.1.1.4 root 2365: ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1.1 root 2366: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2367: echo $ac_n "(cached) $ac_c" 1>&6
2368: else
2369: ac_save_LIBS="$LIBS"
2370: LIBS="-ldir $LIBS"
2371: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2372: #line 2373 "configure"
1.1 root 2373: #include "confdefs.h"
2374: /* Override any gcc2 internal prototype to avoid an error. */
2375: /* We use char because int might match the return type of a gcc2
2376: builtin and then its argument prototype would still apply. */
2377: char opendir();
2378:
1.1.1.4 root 2379: int main() {
1.1 root 2380: opendir()
2381: ; return 0; }
2382: EOF
1.1.1.6 ! root 2383: if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 2384: rm -rf conftest*
2385: eval "ac_cv_lib_$ac_lib_var=yes"
2386: else
1.1.1.4 root 2387: echo "configure: failed program was:" >&5
2388: cat conftest.$ac_ext >&5
1.1 root 2389: rm -rf conftest*
2390: eval "ac_cv_lib_$ac_lib_var=no"
2391: fi
2392: rm -f conftest*
2393: LIBS="$ac_save_LIBS"
2394:
2395: fi
2396: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2397: echo "$ac_t""yes" 1>&6
2398: LIBS="$LIBS -ldir"
2399: else
2400: echo "$ac_t""no" 1>&6
2401: fi
2402:
2403: else
1.1.1.4 root 2404: echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1.1.1.6 ! root 2405: echo "configure:2406: checking for opendir in -lx" >&5
1.1.1.4 root 2406: ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1.1 root 2407: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2408: echo $ac_n "(cached) $ac_c" 1>&6
2409: else
2410: ac_save_LIBS="$LIBS"
2411: LIBS="-lx $LIBS"
2412: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2413: #line 2414 "configure"
1.1 root 2414: #include "confdefs.h"
2415: /* Override any gcc2 internal prototype to avoid an error. */
2416: /* We use char because int might match the return type of a gcc2
2417: builtin and then its argument prototype would still apply. */
2418: char opendir();
2419:
1.1.1.4 root 2420: int main() {
1.1 root 2421: opendir()
2422: ; return 0; }
2423: EOF
1.1.1.6 ! root 2424: if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 2425: rm -rf conftest*
2426: eval "ac_cv_lib_$ac_lib_var=yes"
2427: else
1.1.1.4 root 2428: echo "configure: failed program was:" >&5
2429: cat conftest.$ac_ext >&5
1.1 root 2430: rm -rf conftest*
2431: eval "ac_cv_lib_$ac_lib_var=no"
2432: fi
2433: rm -f conftest*
2434: LIBS="$ac_save_LIBS"
2435:
2436: fi
2437: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2438: echo "$ac_t""yes" 1>&6
2439: LIBS="$LIBS -lx"
2440: else
2441: echo "$ac_t""no" 1>&6
2442: fi
2443:
2444: fi
2445:
2446: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.1.1.6 ! root 2447: echo "configure:2448: checking for ANSI C header files" >&5
1.1 root 2448: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2449: echo $ac_n "(cached) $ac_c" 1>&6
2450: else
2451: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2452: #line 2453 "configure"
1.1 root 2453: #include "confdefs.h"
2454: #include <stdlib.h>
2455: #include <stdarg.h>
2456: #include <string.h>
2457: #include <float.h>
2458: EOF
2459: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.6 ! root 2460: { (eval echo configure:2461: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 2461: ac_err=`grep -v '^ *+' conftest.out`
2462: if test -z "$ac_err"; then
2463: rm -rf conftest*
2464: ac_cv_header_stdc=yes
2465: else
2466: echo "$ac_err" >&5
1.1.1.4 root 2467: echo "configure: failed program was:" >&5
2468: cat conftest.$ac_ext >&5
1.1 root 2469: rm -rf conftest*
2470: ac_cv_header_stdc=no
2471: fi
2472: rm -f conftest*
2473:
2474: if test $ac_cv_header_stdc = yes; then
2475: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2476: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2477: #line 2478 "configure"
1.1 root 2478: #include "confdefs.h"
2479: #include <string.h>
2480: EOF
2481: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2482: egrep "memchr" >/dev/null 2>&1; then
2483: :
2484: else
2485: rm -rf conftest*
2486: ac_cv_header_stdc=no
2487: fi
2488: rm -f conftest*
2489:
2490: fi
2491:
2492: if test $ac_cv_header_stdc = yes; then
2493: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2494: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2495: #line 2496 "configure"
1.1 root 2496: #include "confdefs.h"
2497: #include <stdlib.h>
2498: EOF
2499: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2500: egrep "free" >/dev/null 2>&1; then
2501: :
2502: else
2503: rm -rf conftest*
2504: ac_cv_header_stdc=no
2505: fi
2506: rm -f conftest*
2507:
2508: fi
2509:
2510: if test $ac_cv_header_stdc = yes; then
2511: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2512: if test "$cross_compiling" = yes; then
2513: :
2514: else
1.1.1.4 root 2515: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2516: #line 2517 "configure"
1.1 root 2517: #include "confdefs.h"
2518: #include <ctype.h>
2519: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2520: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2521: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2522: int main () { int i; for (i = 0; i < 256; i++)
2523: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2524: exit (0); }
2525:
2526: EOF
1.1.1.6 ! root 2527: if { (eval echo configure:2528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 2528: then
1.1 root 2529: :
2530: else
1.1.1.4 root 2531: echo "configure: failed program was:" >&5
2532: cat conftest.$ac_ext >&5
2533: rm -fr conftest*
1.1 root 2534: ac_cv_header_stdc=no
2535: fi
2536: rm -fr conftest*
2537: fi
1.1.1.4 root 2538:
2539: fi
1.1 root 2540: fi
2541:
2542: echo "$ac_t""$ac_cv_header_stdc" 1>&6
2543: if test $ac_cv_header_stdc = yes; then
2544: cat >> confdefs.h <<\EOF
2545: #define STDC_HEADERS 1
2546: EOF
2547:
2548: fi
2549:
1.1.1.4 root 2550:
2551: for ac_hdr in unistd.h fcntl.h sys/time.h sys/types.h utime.h string.h strings.h values.h ncurses.h curses.h
2552: do
2553: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2554: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.6 ! root 2555: echo "configure:2556: checking for $ac_hdr" >&5
1.1.1.4 root 2556: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2557: echo $ac_n "(cached) $ac_c" 1>&6
2558: else
2559: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2560: #line 2561 "configure"
1.1.1.4 root 2561: #include "confdefs.h"
2562: #include <$ac_hdr>
2563: EOF
2564: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.6 ! root 2565: { (eval echo configure:2566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.4 root 2566: ac_err=`grep -v '^ *+' conftest.out`
2567: if test -z "$ac_err"; then
2568: rm -rf conftest*
2569: eval "ac_cv_header_$ac_safe=yes"
2570: else
2571: echo "$ac_err" >&5
2572: echo "configure: failed program was:" >&5
2573: cat conftest.$ac_ext >&5
2574: rm -rf conftest*
2575: eval "ac_cv_header_$ac_safe=no"
2576: fi
2577: rm -f conftest*
2578: fi
2579: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2580: echo "$ac_t""yes" 1>&6
2581: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2582: cat >> confdefs.h <<EOF
2583: #define $ac_tr_hdr 1
2584: EOF
2585:
2586: else
2587: echo "$ac_t""no" 1>&6
2588: fi
2589: done
2590:
1.1.1.6 ! root 2591: for ac_hdr in sys/soundcard.h machine/soundcard.h sun/audioio.h sys/audioio.h getopt.h features.h sys/termios.h
1.1 root 2592: do
1.1.1.4 root 2593: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1 root 2594: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.6 ! root 2595: echo "configure:2596: checking for $ac_hdr" >&5
1.1 root 2596: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2597: echo $ac_n "(cached) $ac_c" 1>&6
2598: else
2599: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2600: #line 2601 "configure"
1.1 root 2601: #include "confdefs.h"
2602: #include <$ac_hdr>
2603: EOF
2604: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.6 ! root 2605: { (eval echo configure:2606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 2606: ac_err=`grep -v '^ *+' conftest.out`
2607: if test -z "$ac_err"; then
2608: rm -rf conftest*
2609: eval "ac_cv_header_$ac_safe=yes"
2610: else
2611: echo "$ac_err" >&5
1.1.1.4 root 2612: echo "configure: failed program was:" >&5
2613: cat conftest.$ac_ext >&5
1.1 root 2614: rm -rf conftest*
2615: eval "ac_cv_header_$ac_safe=no"
2616: fi
2617: rm -f conftest*
2618: fi
2619: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2620: echo "$ac_t""yes" 1>&6
1.1.1.4 root 2621: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1 root 2622: cat >> confdefs.h <<EOF
2623: #define $ac_tr_hdr 1
2624: EOF
2625:
2626: else
2627: echo "$ac_t""no" 1>&6
2628: fi
2629: done
2630:
1.1.1.6 ! root 2631: for ac_hdr in posix_opt.h sys/ioctl.h sys/ipc.h sys/shm.h sys/stat.h sys/utime.h
1.1 root 2632: do
1.1.1.4 root 2633: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1 root 2634: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.6 ! root 2635: echo "configure:2636: checking for $ac_hdr" >&5
1.1 root 2636: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2637: echo $ac_n "(cached) $ac_c" 1>&6
2638: else
2639: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2640: #line 2641 "configure"
1.1.1.3 root 2641: #include "confdefs.h"
2642: #include <$ac_hdr>
2643: EOF
2644: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.6 ! root 2645: { (eval echo configure:2646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.3 root 2646: ac_err=`grep -v '^ *+' conftest.out`
2647: if test -z "$ac_err"; then
2648: rm -rf conftest*
2649: eval "ac_cv_header_$ac_safe=yes"
2650: else
2651: echo "$ac_err" >&5
1.1.1.4 root 2652: echo "configure: failed program was:" >&5
2653: cat conftest.$ac_ext >&5
1.1.1.3 root 2654: rm -rf conftest*
2655: eval "ac_cv_header_$ac_safe=no"
2656: fi
2657: rm -f conftest*
2658: fi
2659: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2660: echo "$ac_t""yes" 1>&6
1.1.1.4 root 2661: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1.1.3 root 2662: cat >> confdefs.h <<EOF
2663: #define $ac_tr_hdr 1
2664: EOF
2665:
2666: else
2667: echo "$ac_t""no" 1>&6
2668: fi
2669: done
2670:
1.1.1.6 ! root 2671: for ac_hdr in ggi/libggi.h
1.1.1.3 root 2672: do
1.1.1.4 root 2673: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1.1.1.3 root 2674: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.6 ! root 2675: echo "configure:2676: checking for $ac_hdr" >&5
1.1.1.3 root 2676: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2677: echo $ac_n "(cached) $ac_c" 1>&6
2678: else
2679: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2680: #line 2681 "configure"
1.1 root 2681: #include "confdefs.h"
2682: #include <$ac_hdr>
2683: EOF
2684: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.6 ! root 2685: { (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 root 2686: ac_err=`grep -v '^ *+' conftest.out`
2687: if test -z "$ac_err"; then
2688: rm -rf conftest*
2689: eval "ac_cv_header_$ac_safe=yes"
2690: else
2691: echo "$ac_err" >&5
1.1.1.4 root 2692: echo "configure: failed program was:" >&5
2693: cat conftest.$ac_ext >&5
1.1 root 2694: rm -rf conftest*
2695: eval "ac_cv_header_$ac_safe=no"
2696: fi
2697: rm -f conftest*
2698: fi
2699: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2700: echo "$ac_t""yes" 1>&6
1.1.1.4 root 2701: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1 root 2702: cat >> confdefs.h <<EOF
2703: #define $ac_tr_hdr 1
2704: EOF
2705:
2706: else
2707: echo "$ac_t""no" 1>&6
2708: fi
2709: done
2710:
1.1.1.6 ! root 2711: for ac_hdr in windows.h ddraw.h
1.1.1.4 root 2712: do
2713: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2714: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.6 ! root 2715: echo "configure:2716: checking for $ac_hdr" >&5
1.1.1.4 root 2716: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2717: echo $ac_n "(cached) $ac_c" 1>&6
2718: else
2719: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2720: #line 2721 "configure"
1.1.1.4 root 2721: #include "confdefs.h"
2722: #include <$ac_hdr>
2723: EOF
2724: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.6 ! root 2725: { (eval echo configure:2726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.4 root 2726: ac_err=`grep -v '^ *+' conftest.out`
2727: if test -z "$ac_err"; then
2728: rm -rf conftest*
2729: eval "ac_cv_header_$ac_safe=yes"
2730: else
2731: echo "$ac_err" >&5
2732: echo "configure: failed program was:" >&5
2733: cat conftest.$ac_ext >&5
2734: rm -rf conftest*
2735: eval "ac_cv_header_$ac_safe=no"
2736: fi
2737: rm -f conftest*
2738: fi
2739: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2740: echo "$ac_t""yes" 1>&6
2741: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2742: cat >> confdefs.h <<EOF
2743: #define $ac_tr_hdr 1
2744: EOF
2745:
2746: else
2747: echo "$ac_t""no" 1>&6
2748: fi
2749: done
1.1 root 2750:
1.1.1.4 root 2751: ac_safe=`echo "be_math.h" | sed 'y%./+-%__p_%'`
2752: echo $ac_n "checking for be_math.h""... $ac_c" 1>&6
1.1.1.6 ! root 2753: echo "configure:2754: checking for be_math.h" >&5
1.1.1.4 root 2754: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2755: echo $ac_n "(cached) $ac_c" 1>&6
2756: else
2757: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2758: #line 2759 "configure"
1.1.1.4 root 2759: #include "confdefs.h"
2760: #include <be_math.h>
2761: EOF
2762: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.6 ! root 2763: { (eval echo configure:2764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.4 root 2764: ac_err=`grep -v '^ *+' conftest.out`
2765: if test -z "$ac_err"; then
2766: rm -rf conftest*
2767: eval "ac_cv_header_$ac_safe=yes"
2768: else
2769: echo "$ac_err" >&5
2770: echo "configure: failed program was:" >&5
2771: cat conftest.$ac_ext >&5
2772: rm -rf conftest*
2773: eval "ac_cv_header_$ac_safe=no"
2774: fi
2775: rm -f conftest*
2776: fi
2777: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2778: echo "$ac_t""yes" 1>&6
2779: HAVE_BEOS=yes
2780: else
2781: echo "$ac_t""no" 1>&6
2782: HAVE_BEOS=no
1.1 root 2783: fi
2784:
1.1.1.6 ! root 2785: for ac_hdr in machine/joystick.h
! 2786: do
! 2787: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 2788: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 2789: echo "configure:2790: checking for $ac_hdr" >&5
! 2790: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1.1 root 2791: echo $ac_n "(cached) $ac_c" 1>&6
2792: else
1.1.1.4 root 2793: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2794: #line 2795 "configure"
1.1 root 2795: #include "confdefs.h"
1.1.1.6 ! root 2796: #include <$ac_hdr>
1.1 root 2797: EOF
1.1.1.6 ! root 2798: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 2799: { (eval echo configure:2800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 2800: ac_err=`grep -v '^ *+' conftest.out`
! 2801: if test -z "$ac_err"; then
! 2802: rm -rf conftest*
! 2803: eval "ac_cv_header_$ac_safe=yes"
1.1 root 2804: else
1.1.1.6 ! root 2805: echo "$ac_err" >&5
1.1.1.4 root 2806: echo "configure: failed program was:" >&5
2807: cat conftest.$ac_ext >&5
1.1.1.6 ! root 2808: rm -rf conftest*
! 2809: eval "ac_cv_header_$ac_safe=no"
1.1 root 2810: fi
1.1.1.6 ! root 2811: rm -f conftest*
1.1.1.4 root 2812: fi
1.1.1.6 ! root 2813: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 2814: echo "$ac_t""yes" 1>&6
! 2815: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 2816: cat >> confdefs.h <<EOF
! 2817: #define $ac_tr_hdr 1
1.1 root 2818: EOF
1.1.1.6 ! root 2819:
! 2820: else
! 2821: echo "$ac_t""no" 1>&6
! 2822: fi
! 2823: done
1.1 root 2824:
1.1.1.6 ! root 2825: for ac_hdr in devices/ahi.h
! 2826: do
! 2827: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 2828: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 2829: echo "configure:2830: checking for $ac_hdr" >&5
! 2830: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1.1 root 2831: echo $ac_n "(cached) $ac_c" 1>&6
2832: else
1.1.1.4 root 2833: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2834: #line 2835 "configure"
1.1 root 2835: #include "confdefs.h"
1.1.1.6 ! root 2836: #include <$ac_hdr>
1.1 root 2837: EOF
1.1.1.6 ! root 2838: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 2839: { (eval echo configure:2840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 2840: ac_err=`grep -v '^ *+' conftest.out`
! 2841: if test -z "$ac_err"; then
! 2842: rm -rf conftest*
! 2843: eval "ac_cv_header_$ac_safe=yes"
1.1 root 2844: else
1.1.1.6 ! root 2845: echo "$ac_err" >&5
1.1.1.4 root 2846: echo "configure: failed program was:" >&5
2847: cat conftest.$ac_ext >&5
1.1.1.6 ! root 2848: rm -rf conftest*
! 2849: eval "ac_cv_header_$ac_safe=no"
! 2850: fi
! 2851: rm -f conftest*
! 2852: fi
! 2853: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 2854: echo "$ac_t""yes" 1>&6
! 2855: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 2856: cat >> confdefs.h <<EOF
! 2857: #define $ac_tr_hdr 1
! 2858: EOF
! 2859:
! 2860: else
! 2861: echo "$ac_t""no" 1>&6
! 2862: fi
! 2863: done
! 2864:
! 2865: for ac_hdr in libraries/cybergraphics.h cybergraphx/cybergraphics.h
! 2866: do
! 2867: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 2868: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 2869: echo "configure:2870: checking for $ac_hdr" >&5
! 2870: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 2871: echo $ac_n "(cached) $ac_c" 1>&6
! 2872: else
! 2873: cat > conftest.$ac_ext <<EOF
! 2874: #line 2875 "configure"
! 2875: #include "confdefs.h"
! 2876: #include <$ac_hdr>
! 2877: EOF
! 2878: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 2879: { (eval echo configure:2880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 2880: ac_err=`grep -v '^ *+' conftest.out`
! 2881: if test -z "$ac_err"; then
! 2882: rm -rf conftest*
! 2883: eval "ac_cv_header_$ac_safe=yes"
! 2884: else
! 2885: echo "$ac_err" >&5
! 2886: echo "configure: failed program was:" >&5
! 2887: cat conftest.$ac_ext >&5
! 2888: rm -rf conftest*
! 2889: eval "ac_cv_header_$ac_safe=no"
! 2890: fi
! 2891: rm -f conftest*
! 2892: fi
! 2893: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 2894: echo "$ac_t""yes" 1>&6
! 2895: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 2896: cat >> confdefs.h <<EOF
! 2897: #define $ac_tr_hdr 1
! 2898: EOF
! 2899:
! 2900: else
! 2901: echo "$ac_t""no" 1>&6
! 2902: fi
! 2903: done
! 2904:
! 2905:
! 2906: echo $ac_n "checking size of char""... $ac_c" 1>&6
! 2907: echo "configure:2908: checking size of char" >&5
! 2908: if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
! 2909: echo $ac_n "(cached) $ac_c" 1>&6
! 2910: else
! 2911: if test "$cross_compiling" = yes; then
! 2912: ac_cv_sizeof_char=1
! 2913: else
! 2914: cat > conftest.$ac_ext <<EOF
! 2915: #line 2916 "configure"
! 2916: #include "confdefs.h"
! 2917: #include <stdio.h>
! 2918: main()
! 2919: {
! 2920: FILE *f=fopen("conftestval", "w");
! 2921: if (!f) exit(1);
! 2922: fprintf(f, "%d\n", sizeof(char));
! 2923: exit(0);
! 2924: }
! 2925: EOF
! 2926: if { (eval echo configure:2927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 2927: then
! 2928: ac_cv_sizeof_char=`cat conftestval`
! 2929: else
! 2930: echo "configure: failed program was:" >&5
! 2931: cat conftest.$ac_ext >&5
! 2932: rm -fr conftest*
! 2933: ac_cv_sizeof_char=0
! 2934: fi
! 2935: rm -fr conftest*
! 2936: fi
! 2937:
! 2938: fi
! 2939: echo "$ac_t""$ac_cv_sizeof_char" 1>&6
! 2940: cat >> confdefs.h <<EOF
! 2941: #define SIZEOF_CHAR $ac_cv_sizeof_char
! 2942: EOF
! 2943:
! 2944:
! 2945: echo $ac_n "checking size of short""... $ac_c" 1>&6
! 2946: echo "configure:2947: checking size of short" >&5
! 2947: if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
! 2948: echo $ac_n "(cached) $ac_c" 1>&6
! 2949: else
! 2950: if test "$cross_compiling" = yes; then
! 2951: ac_cv_sizeof_short=2
! 2952: else
! 2953: cat > conftest.$ac_ext <<EOF
! 2954: #line 2955 "configure"
! 2955: #include "confdefs.h"
! 2956: #include <stdio.h>
! 2957: main()
! 2958: {
! 2959: FILE *f=fopen("conftestval", "w");
! 2960: if (!f) exit(1);
! 2961: fprintf(f, "%d\n", sizeof(short));
! 2962: exit(0);
! 2963: }
! 2964: EOF
! 2965: if { (eval echo configure:2966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 2966: then
! 2967: ac_cv_sizeof_short=`cat conftestval`
! 2968: else
! 2969: echo "configure: failed program was:" >&5
! 2970: cat conftest.$ac_ext >&5
! 2971: rm -fr conftest*
! 2972: ac_cv_sizeof_short=0
1.1 root 2973: fi
2974: rm -fr conftest*
2975: fi
1.1.1.4 root 2976:
2977: fi
1.1 root 2978: echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2979: cat >> confdefs.h <<EOF
2980: #define SIZEOF_SHORT $ac_cv_sizeof_short
2981: EOF
2982:
2983:
2984: echo $ac_n "checking size of int""... $ac_c" 1>&6
1.1.1.6 ! root 2985: echo "configure:2986: checking size of int" >&5
1.1 root 2986: if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2987: echo $ac_n "(cached) $ac_c" 1>&6
2988: else
2989: if test "$cross_compiling" = yes; then
1.1.1.4 root 2990: ac_cv_sizeof_int=4
1.1 root 2991: else
1.1.1.4 root 2992: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 2993: #line 2994 "configure"
1.1 root 2994: #include "confdefs.h"
2995: #include <stdio.h>
2996: main()
2997: {
2998: FILE *f=fopen("conftestval", "w");
2999: if (!f) exit(1);
3000: fprintf(f, "%d\n", sizeof(int));
3001: exit(0);
3002: }
3003: EOF
1.1.1.6 ! root 3004: if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 3005: then
1.1 root 3006: ac_cv_sizeof_int=`cat conftestval`
3007: else
1.1.1.4 root 3008: echo "configure: failed program was:" >&5
3009: cat conftest.$ac_ext >&5
3010: rm -fr conftest*
1.1 root 3011: ac_cv_sizeof_int=0
3012: fi
3013: rm -fr conftest*
3014: fi
1.1.1.4 root 3015:
3016: fi
1.1 root 3017: echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3018: cat >> confdefs.h <<EOF
3019: #define SIZEOF_INT $ac_cv_sizeof_int
3020: EOF
3021:
3022:
3023: echo $ac_n "checking size of long""... $ac_c" 1>&6
1.1.1.6 ! root 3024: echo "configure:3025: checking size of long" >&5
1.1 root 3025: if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3026: echo $ac_n "(cached) $ac_c" 1>&6
3027: else
3028: if test "$cross_compiling" = yes; then
1.1.1.4 root 3029: ac_cv_sizeof_long=4
1.1 root 3030: else
1.1.1.4 root 3031: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3032: #line 3033 "configure"
1.1 root 3033: #include "confdefs.h"
3034: #include <stdio.h>
3035: main()
3036: {
3037: FILE *f=fopen("conftestval", "w");
3038: if (!f) exit(1);
3039: fprintf(f, "%d\n", sizeof(long));
3040: exit(0);
3041: }
3042: EOF
1.1.1.6 ! root 3043: if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 3044: then
1.1 root 3045: ac_cv_sizeof_long=`cat conftestval`
3046: else
1.1.1.4 root 3047: echo "configure: failed program was:" >&5
3048: cat conftest.$ac_ext >&5
3049: rm -fr conftest*
1.1 root 3050: ac_cv_sizeof_long=0
3051: fi
3052: rm -fr conftest*
3053: fi
1.1.1.4 root 3054:
3055: fi
1.1 root 3056: echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3057: cat >> confdefs.h <<EOF
3058: #define SIZEOF_LONG $ac_cv_sizeof_long
3059: EOF
3060:
3061:
3062: echo $ac_n "checking size of long long""... $ac_c" 1>&6
1.1.1.6 ! root 3063: echo "configure:3064: checking size of long long" >&5
1.1 root 3064: if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3065: echo $ac_n "(cached) $ac_c" 1>&6
3066: else
3067: if test "$cross_compiling" = yes; then
1.1.1.4 root 3068: ac_cv_sizeof_long_long=8
1.1 root 3069: else
1.1.1.4 root 3070: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3071: #line 3072 "configure"
1.1 root 3072: #include "confdefs.h"
3073: #include <stdio.h>
3074: main()
3075: {
3076: FILE *f=fopen("conftestval", "w");
3077: if (!f) exit(1);
3078: fprintf(f, "%d\n", sizeof(long long));
3079: exit(0);
3080: }
3081: EOF
1.1.1.6 ! root 3082: if { (eval echo configure:3083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 3083: then
1.1 root 3084: ac_cv_sizeof_long_long=`cat conftestval`
3085: else
1.1.1.4 root 3086: echo "configure: failed program was:" >&5
3087: cat conftest.$ac_ext >&5
3088: rm -fr conftest*
1.1 root 3089: ac_cv_sizeof_long_long=0
3090: fi
3091: rm -fr conftest*
3092: fi
1.1.1.4 root 3093:
3094: fi
1.1 root 3095: echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3096: cat >> confdefs.h <<EOF
3097: #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3098: EOF
3099:
3100:
1.1.1.6 ! root 3101: echo $ac_n "checking size of __int64""... $ac_c" 1>&6
! 3102: echo "configure:3103: checking size of __int64" >&5
! 3103: if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then
! 3104: echo $ac_n "(cached) $ac_c" 1>&6
! 3105: else
! 3106: if test "$cross_compiling" = yes; then
! 3107: ac_cv_sizeof___int64=8
! 3108: else
! 3109: cat > conftest.$ac_ext <<EOF
! 3110: #line 3111 "configure"
! 3111: #include "confdefs.h"
! 3112: #include <stdio.h>
! 3113: main()
! 3114: {
! 3115: FILE *f=fopen("conftestval", "w");
! 3116: if (!f) exit(1);
! 3117: fprintf(f, "%d\n", sizeof(__int64));
! 3118: exit(0);
! 3119: }
! 3120: EOF
! 3121: if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 3122: then
! 3123: ac_cv_sizeof___int64=`cat conftestval`
! 3124: else
! 3125: echo "configure: failed program was:" >&5
! 3126: cat conftest.$ac_ext >&5
! 3127: rm -fr conftest*
! 3128: ac_cv_sizeof___int64=0
! 3129: fi
! 3130: rm -fr conftest*
! 3131: fi
! 3132:
! 3133: fi
! 3134: echo "$ac_t""$ac_cv_sizeof___int64" 1>&6
! 3135: cat >> confdefs.h <<EOF
! 3136: #define SIZEOF___INT64 $ac_cv_sizeof___int64
! 3137: EOF
! 3138:
! 3139:
1.1 root 3140:
3141: echo $ac_n "checking for working const""... $ac_c" 1>&6
1.1.1.6 ! root 3142: echo "configure:3143: checking for working const" >&5
1.1 root 3143: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3144: echo $ac_n "(cached) $ac_c" 1>&6
3145: else
3146: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3147: #line 3148 "configure"
1.1 root 3148: #include "confdefs.h"
3149:
1.1.1.4 root 3150: int main() {
1.1 root 3151:
3152: /* Ultrix mips cc rejects this. */
3153: typedef int charset[2]; const charset x;
3154: /* SunOS 4.1.1 cc rejects this. */
3155: char const *const *ccp;
3156: char **p;
3157: /* NEC SVR4.0.2 mips cc rejects this. */
3158: struct point {int x, y;};
3159: static struct point const zero = {0,0};
3160: /* AIX XL C 1.02.0.0 rejects this.
3161: It does not let you subtract one const X* pointer from another in an arm
3162: of an if-expression whose if-part is not a constant expression */
3163: const char *g = "string";
3164: ccp = &g + (g ? g-g : 0);
3165: /* HPUX 7.0 cc rejects these. */
3166: ++ccp;
3167: p = (char**) ccp;
3168: ccp = (char const *const *) p;
3169: { /* SCO 3.2v4 cc rejects this. */
3170: char *t;
3171: char const *s = 0 ? (char *) 0 : (char const *) 0;
3172:
3173: *t++ = 0;
3174: }
3175: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3176: int x[] = {25, 17};
3177: const int *foo = &x[0];
3178: ++foo;
3179: }
3180: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3181: typedef const int *iptr;
3182: iptr p = 0;
3183: ++p;
3184: }
3185: { /* AIX XL C 1.02.0.0 rejects this saying
3186: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3187: struct s { int j; const int *ap[3]; };
3188: struct s *b; b->j = 5;
3189: }
3190: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3191: const int foo = 10;
3192: }
3193:
3194: ; return 0; }
3195: EOF
1.1.1.6 ! root 3196: if { (eval echo configure:3197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3197: rm -rf conftest*
3198: ac_cv_c_const=yes
3199: else
1.1.1.4 root 3200: echo "configure: failed program was:" >&5
3201: cat conftest.$ac_ext >&5
1.1 root 3202: rm -rf conftest*
3203: ac_cv_c_const=no
3204: fi
3205: rm -f conftest*
3206: fi
3207:
3208: echo "$ac_t""$ac_cv_c_const" 1>&6
3209: if test $ac_cv_c_const = no; then
3210: cat >> confdefs.h <<\EOF
3211: #define const
3212: EOF
3213:
3214: fi
3215:
3216: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.1.1.6 ! root 3217: echo "configure:3218: checking for inline" >&5
1.1 root 3218: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3219: echo $ac_n "(cached) $ac_c" 1>&6
3220: else
3221: ac_cv_c_inline=no
3222: for ac_kw in inline __inline__ __inline; do
3223: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3224: #line 3225 "configure"
1.1 root 3225: #include "confdefs.h"
3226:
1.1.1.4 root 3227: int main() {
1.1 root 3228: } $ac_kw foo() {
3229: ; return 0; }
3230: EOF
1.1.1.6 ! root 3231: if { (eval echo configure:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3232: rm -rf conftest*
3233: ac_cv_c_inline=$ac_kw; break
1.1.1.4 root 3234: else
3235: echo "configure: failed program was:" >&5
3236: cat conftest.$ac_ext >&5
1.1 root 3237: fi
3238: rm -f conftest*
3239: done
3240:
3241: fi
3242:
3243: echo "$ac_t""$ac_cv_c_inline" 1>&6
3244: case "$ac_cv_c_inline" in
3245: inline | yes) ;;
3246: no) cat >> confdefs.h <<\EOF
3247: #define inline
3248: EOF
3249: ;;
3250: *) cat >> confdefs.h <<EOF
3251: #define inline $ac_cv_c_inline
3252: EOF
3253: ;;
3254: esac
3255:
1.1.1.4 root 3256: if [ "x$ac_cv_c_inline" = "xno" ]; then
3257: ac_cv_c_inline=
3258: fi
1.1 root 3259: echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1.1.1.6 ! root 3260: echo "configure:3261: checking for mode_t" >&5
1.1 root 3261: if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3262: echo $ac_n "(cached) $ac_c" 1>&6
3263: else
3264: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3265: #line 3266 "configure"
1.1 root 3266: #include "confdefs.h"
3267: #include <sys/types.h>
3268: #if STDC_HEADERS
3269: #include <stdlib.h>
1.1.1.4 root 3270: #include <stddef.h>
1.1 root 3271: #endif
3272: EOF
3273: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.4 root 3274: egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1 root 3275: rm -rf conftest*
3276: ac_cv_type_mode_t=yes
3277: else
3278: rm -rf conftest*
3279: ac_cv_type_mode_t=no
3280: fi
3281: rm -f conftest*
3282:
3283: fi
3284: echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3285: if test $ac_cv_type_mode_t = no; then
3286: cat >> confdefs.h <<\EOF
3287: #define mode_t int
3288: EOF
3289:
3290: fi
3291:
3292: echo $ac_n "checking for off_t""... $ac_c" 1>&6
1.1.1.6 ! root 3293: echo "configure:3294: checking for off_t" >&5
1.1 root 3294: if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3295: echo $ac_n "(cached) $ac_c" 1>&6
3296: else
3297: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3298: #line 3299 "configure"
1.1 root 3299: #include "confdefs.h"
3300: #include <sys/types.h>
3301: #if STDC_HEADERS
3302: #include <stdlib.h>
1.1.1.4 root 3303: #include <stddef.h>
1.1 root 3304: #endif
3305: EOF
3306: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.4 root 3307: egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1 root 3308: rm -rf conftest*
3309: ac_cv_type_off_t=yes
3310: else
3311: rm -rf conftest*
3312: ac_cv_type_off_t=no
3313: fi
3314: rm -f conftest*
3315:
3316: fi
3317: echo "$ac_t""$ac_cv_type_off_t" 1>&6
3318: if test $ac_cv_type_off_t = no; then
3319: cat >> confdefs.h <<\EOF
3320: #define off_t long
3321: EOF
3322:
3323: fi
3324:
3325: echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1.1.1.6 ! root 3326: echo "configure:3327: checking for pid_t" >&5
1.1 root 3327: if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3328: echo $ac_n "(cached) $ac_c" 1>&6
3329: else
3330: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3331: #line 3332 "configure"
1.1 root 3332: #include "confdefs.h"
3333: #include <sys/types.h>
3334: #if STDC_HEADERS
3335: #include <stdlib.h>
1.1.1.4 root 3336: #include <stddef.h>
1.1 root 3337: #endif
3338: EOF
3339: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.1.1.4 root 3340: egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1.1 root 3341: rm -rf conftest*
3342: ac_cv_type_pid_t=yes
3343: else
3344: rm -rf conftest*
3345: ac_cv_type_pid_t=no
3346: fi
3347: rm -f conftest*
3348:
3349: fi
3350: echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3351: if test $ac_cv_type_pid_t = no; then
3352: cat >> confdefs.h <<\EOF
3353: #define pid_t int
3354: EOF
3355:
3356: fi
3357:
3358: echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
1.1.1.6 ! root 3359: echo "configure:3360: checking for st_blocks in struct stat" >&5
1.1 root 3360: if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3361: echo $ac_n "(cached) $ac_c" 1>&6
3362: else
3363: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3364: #line 3365 "configure"
1.1 root 3365: #include "confdefs.h"
3366: #include <sys/types.h>
3367: #include <sys/stat.h>
1.1.1.4 root 3368: int main() {
1.1 root 3369: struct stat s; s.st_blocks;
3370: ; return 0; }
3371: EOF
1.1.1.6 ! root 3372: if { (eval echo configure:3373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3373: rm -rf conftest*
3374: ac_cv_struct_st_blocks=yes
3375: else
1.1.1.4 root 3376: echo "configure: failed program was:" >&5
3377: cat conftest.$ac_ext >&5
1.1 root 3378: rm -rf conftest*
3379: ac_cv_struct_st_blocks=no
3380: fi
3381: rm -f conftest*
3382: fi
3383:
3384: echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3385: if test $ac_cv_struct_st_blocks = yes; then
3386: cat >> confdefs.h <<\EOF
3387: #define HAVE_ST_BLOCKS 1
3388: EOF
3389:
3390: else
3391: LIBOBJS="$LIBOBJS fileblocks.o"
3392: fi
3393:
3394: echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1.1.1.6 ! root 3395: echo "configure:3396: checking whether time.h and sys/time.h may both be included" >&5
1.1 root 3396: if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3397: echo $ac_n "(cached) $ac_c" 1>&6
3398: else
3399: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3400: #line 3401 "configure"
1.1 root 3401: #include "confdefs.h"
3402: #include <sys/types.h>
3403: #include <sys/time.h>
3404: #include <time.h>
1.1.1.4 root 3405: int main() {
1.1 root 3406: struct tm *tp;
3407: ; return 0; }
3408: EOF
1.1.1.6 ! root 3409: if { (eval echo configure:3410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3410: rm -rf conftest*
3411: ac_cv_header_time=yes
3412: else
1.1.1.4 root 3413: echo "configure: failed program was:" >&5
3414: cat conftest.$ac_ext >&5
1.1 root 3415: rm -rf conftest*
3416: ac_cv_header_time=no
3417: fi
3418: rm -f conftest*
3419: fi
3420:
3421: echo "$ac_t""$ac_cv_header_time" 1>&6
3422: if test $ac_cv_header_time = yes; then
3423: cat >> confdefs.h <<\EOF
3424: #define TIME_WITH_SYS_TIME 1
3425: EOF
3426:
3427: fi
3428:
3429: echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1.1.1.6 ! root 3430: echo "configure:3431: checking whether struct tm is in sys/time.h or time.h" >&5
1.1 root 3431: if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3432: echo $ac_n "(cached) $ac_c" 1>&6
3433: else
3434: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3435: #line 3436 "configure"
1.1 root 3436: #include "confdefs.h"
3437: #include <sys/types.h>
3438: #include <time.h>
1.1.1.4 root 3439: int main() {
1.1 root 3440: struct tm *tp; tp->tm_sec;
3441: ; return 0; }
3442: EOF
1.1.1.6 ! root 3443: if { (eval echo configure:3444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3444: rm -rf conftest*
3445: ac_cv_struct_tm=time.h
3446: else
1.1.1.4 root 3447: echo "configure: failed program was:" >&5
3448: cat conftest.$ac_ext >&5
1.1 root 3449: rm -rf conftest*
3450: ac_cv_struct_tm=sys/time.h
3451: fi
3452: rm -f conftest*
3453: fi
3454:
3455: echo "$ac_t""$ac_cv_struct_tm" 1>&6
3456: if test $ac_cv_struct_tm = sys/time.h; then
3457: cat >> confdefs.h <<\EOF
3458: #define TM_IN_SYS_TIME 1
3459: EOF
3460:
3461: fi
3462:
3463:
3464: if test $ac_cv_prog_gcc = yes; then
3465: echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1.1.1.6 ! root 3466: echo "configure:3467: checking whether ${CC-cc} needs -traditional" >&5
1.1 root 3467: if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3468: echo $ac_n "(cached) $ac_c" 1>&6
3469: else
3470: ac_pattern="Autoconf.*'x'"
3471: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3472: #line 3473 "configure"
1.1 root 3473: #include "confdefs.h"
3474: #include <sgtty.h>
3475: Autoconf TIOCGETP
3476: EOF
3477: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3478: egrep "$ac_pattern" >/dev/null 2>&1; then
3479: rm -rf conftest*
3480: ac_cv_prog_gcc_traditional=yes
3481: else
3482: rm -rf conftest*
3483: ac_cv_prog_gcc_traditional=no
3484: fi
3485: rm -f conftest*
3486:
3487:
3488: if test $ac_cv_prog_gcc_traditional = no; then
3489: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3490: #line 3491 "configure"
1.1 root 3491: #include "confdefs.h"
3492: #include <termio.h>
3493: Autoconf TCGETA
3494: EOF
3495: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3496: egrep "$ac_pattern" >/dev/null 2>&1; then
3497: rm -rf conftest*
3498: ac_cv_prog_gcc_traditional=yes
3499: fi
3500: rm -f conftest*
3501:
3502: fi
3503: fi
3504:
3505: echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
3506: if test $ac_cv_prog_gcc_traditional = yes; then
3507: CC="$CC -traditional"
3508: fi
3509: fi
3510:
3511: echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1.1.1.6 ! root 3512: echo "configure:3513: checking for 8-bit clean memcmp" >&5
1.1.1.4 root 3513: if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1.1 root 3514: echo $ac_n "(cached) $ac_c" 1>&6
3515: else
3516: if test "$cross_compiling" = yes; then
1.1.1.4 root 3517: ac_cv_func_memcmp_clean=no
1.1 root 3518: else
1.1.1.4 root 3519: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3520: #line 3521 "configure"
1.1 root 3521: #include "confdefs.h"
3522:
3523: main()
3524: {
3525: char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3526: exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3527: }
3528:
3529: EOF
1.1.1.6 ! root 3530: if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 3531: then
3532: ac_cv_func_memcmp_clean=yes
1.1 root 3533: else
1.1.1.4 root 3534: echo "configure: failed program was:" >&5
3535: cat conftest.$ac_ext >&5
3536: rm -fr conftest*
3537: ac_cv_func_memcmp_clean=no
1.1 root 3538: fi
3539: rm -fr conftest*
3540: fi
3541:
1.1.1.4 root 3542: fi
3543:
3544: echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3545: test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
1.1 root 3546:
3547: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1.1.1.6 ! root 3548: echo "configure:3549: checking return type of signal handlers" >&5
1.1 root 3549: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3550: echo $ac_n "(cached) $ac_c" 1>&6
3551: else
3552: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3553: #line 3554 "configure"
1.1 root 3554: #include "confdefs.h"
3555: #include <sys/types.h>
3556: #include <signal.h>
3557: #ifdef signal
3558: #undef signal
3559: #endif
3560: #ifdef __cplusplus
3561: extern "C" void (*signal (int, void (*)(int)))(int);
3562: #else
3563: void (*signal ()) ();
3564: #endif
3565:
1.1.1.4 root 3566: int main() {
1.1 root 3567: int i;
3568: ; return 0; }
3569: EOF
1.1.1.6 ! root 3570: if { (eval echo configure:3571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 3571: rm -rf conftest*
3572: ac_cv_type_signal=void
3573: else
1.1.1.4 root 3574: echo "configure: failed program was:" >&5
3575: cat conftest.$ac_ext >&5
1.1 root 3576: rm -rf conftest*
3577: ac_cv_type_signal=int
3578: fi
3579: rm -f conftest*
3580: fi
3581:
3582: echo "$ac_t""$ac_cv_type_signal" 1>&6
3583: cat >> confdefs.h <<EOF
3584: #define RETSIGTYPE $ac_cv_type_signal
3585: EOF
3586:
3587:
3588: echo $ac_n "checking whether utime accepts a null argument""... $ac_c" 1>&6
1.1.1.6 ! root 3589: echo "configure:3590: checking whether utime accepts a null argument" >&5
1.1 root 3590: if eval "test \"`echo '$''{'ac_cv_func_utime_null'+set}'`\" = set"; then
3591: echo $ac_n "(cached) $ac_c" 1>&6
3592: else
3593: rm -f conftestdata; > conftestdata
3594: # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
3595: if test "$cross_compiling" = yes; then
3596: ac_cv_func_utime_null=no
3597: else
1.1.1.4 root 3598: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3599: #line 3600 "configure"
1.1 root 3600: #include "confdefs.h"
3601: #include <sys/types.h>
3602: #include <sys/stat.h>
3603: main() {
3604: struct stat s, t;
3605: exit(!(stat ("conftestdata", &s) == 0 && utime("conftestdata", (long *)0) == 0
3606: && stat("conftestdata", &t) == 0 && t.st_mtime >= s.st_mtime
3607: && t.st_mtime - s.st_mtime < 120));
3608: }
3609: EOF
1.1.1.6 ! root 3610: if { (eval echo configure:3611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 3611: then
1.1 root 3612: ac_cv_func_utime_null=yes
3613: else
1.1.1.4 root 3614: echo "configure: failed program was:" >&5
3615: cat conftest.$ac_ext >&5
3616: rm -fr conftest*
1.1 root 3617: ac_cv_func_utime_null=no
3618: fi
3619: rm -fr conftest*
1.1.1.4 root 3620: fi
3621:
1.1 root 3622: rm -f core core.* *.core
3623: fi
3624:
3625: echo "$ac_t""$ac_cv_func_utime_null" 1>&6
3626: if test $ac_cv_func_utime_null = yes; then
3627: cat >> confdefs.h <<\EOF
3628: #define HAVE_UTIME_NULL 1
3629: EOF
3630:
3631: fi
3632:
1.1.1.6 ! root 3633: for ac_func in getcwd getopt strdup gettimeofday sigaction mkdir rmdir select strerror strstr
! 3634: do
! 3635: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 3636: echo "configure:3637: checking for $ac_func" >&5
! 3637: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 3638: echo $ac_n "(cached) $ac_c" 1>&6
! 3639: else
! 3640: cat > conftest.$ac_ext <<EOF
! 3641: #line 3642 "configure"
! 3642: #include "confdefs.h"
! 3643: /* System header to define __stub macros and hopefully few prototypes,
! 3644: which can conflict with char $ac_func(); below. */
! 3645: #include <assert.h>
! 3646: /* Override any gcc2 internal prototype to avoid an error. */
! 3647: /* We use char because int might match the return type of a gcc2
! 3648: builtin and then its argument prototype would still apply. */
! 3649: char $ac_func();
! 3650:
! 3651: int main() {
! 3652:
! 3653: /* The GNU C library defines this for functions which it implements
! 3654: to always fail with ENOSYS. Some functions are actually named
! 3655: something starting with __ and the normal name is an alias. */
! 3656: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 3657: choke me
! 3658: #else
! 3659: $ac_func();
! 3660: #endif
! 3661:
! 3662: ; return 0; }
! 3663: EOF
! 3664: if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3665: rm -rf conftest*
! 3666: eval "ac_cv_func_$ac_func=yes"
! 3667: else
! 3668: echo "configure: failed program was:" >&5
! 3669: cat conftest.$ac_ext >&5
! 3670: rm -rf conftest*
! 3671: eval "ac_cv_func_$ac_func=no"
! 3672: fi
! 3673: rm -f conftest*
! 3674: fi
! 3675:
! 3676: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 3677: echo "$ac_t""yes" 1>&6
! 3678: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 3679: cat >> confdefs.h <<EOF
! 3680: #define $ac_tr_func 1
! 3681: EOF
! 3682:
! 3683: else
! 3684: echo "$ac_t""no" 1>&6
! 3685: fi
! 3686: done
! 3687:
! 3688: for ac_func in tcgetattr cfmakeraw readdir_r vprintf vsprintf vfprintf
1.1 root 3689: do
3690: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.6 ! root 3691: echo "configure:3692: checking for $ac_func" >&5
1.1 root 3692: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3693: echo $ac_n "(cached) $ac_c" 1>&6
3694: else
3695: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 3696: #line 3697 "configure"
1.1 root 3697: #include "confdefs.h"
3698: /* System header to define __stub macros and hopefully few prototypes,
3699: which can conflict with char $ac_func(); below. */
3700: #include <assert.h>
3701: /* Override any gcc2 internal prototype to avoid an error. */
3702: /* We use char because int might match the return type of a gcc2
3703: builtin and then its argument prototype would still apply. */
3704: char $ac_func();
3705:
1.1.1.4 root 3706: int main() {
1.1 root 3707:
3708: /* The GNU C library defines this for functions which it implements
3709: to always fail with ENOSYS. Some functions are actually named
3710: something starting with __ and the normal name is an alias. */
3711: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3712: choke me
3713: #else
3714: $ac_func();
3715: #endif
3716:
3717: ; return 0; }
3718: EOF
1.1.1.6 ! root 3719: if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 3720: rm -rf conftest*
3721: eval "ac_cv_func_$ac_func=yes"
3722: else
1.1.1.4 root 3723: echo "configure: failed program was:" >&5
3724: cat conftest.$ac_ext >&5
1.1 root 3725: rm -rf conftest*
3726: eval "ac_cv_func_$ac_func=no"
3727: fi
3728: rm -f conftest*
1.1.1.4 root 3729: fi
3730:
3731: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3732: echo "$ac_t""yes" 1>&6
3733: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3734: cat >> confdefs.h <<EOF
3735: #define $ac_tr_func 1
3736: EOF
3737:
3738: else
3739: echo "$ac_t""no" 1>&6
3740: fi
1.1.1.6 ! root 3741: done
! 3742:
! 3743:
! 3744: DO_FILEUTILS_CHECK=yes
! 3745: if test $uae_cv_prog_cc_watcom = yes -o $am_cv_mingw32 = yes; then
! 3746: DO_FILEUTILS_CHECK=no
! 3747: fi
! 3748: if test $DO_FILEUTILS_CHECK = yes; then
! 3749:
! 3750: for ac_hdr in fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
! 3751: mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
! 3752: sys/filsys.h sys/fs_types.h sys/fs/s5param.h
! 3753: do
! 3754: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 3755: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 3756: echo "configure:3757: checking for $ac_hdr" >&5
! 3757: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 3758: echo $ac_n "(cached) $ac_c" 1>&6
! 3759: else
! 3760: cat > conftest.$ac_ext <<EOF
! 3761: #line 3762 "configure"
! 3762: #include "confdefs.h"
! 3763: #include <$ac_hdr>
! 3764: EOF
! 3765: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 3766: { (eval echo configure:3767: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 3767: ac_err=`grep -v '^ *+' conftest.out`
! 3768: if test -z "$ac_err"; then
! 3769: rm -rf conftest*
! 3770: eval "ac_cv_header_$ac_safe=yes"
! 3771: else
! 3772: echo "$ac_err" >&5
! 3773: echo "configure: failed program was:" >&5
! 3774: cat conftest.$ac_ext >&5
! 3775: rm -rf conftest*
! 3776: eval "ac_cv_header_$ac_safe=no"
! 3777: fi
! 3778: rm -f conftest*
! 3779: fi
! 3780: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 3781: echo "$ac_t""yes" 1>&6
! 3782: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 3783: cat >> confdefs.h <<EOF
! 3784: #define $ac_tr_hdr 1
! 3785: EOF
! 3786:
! 3787: else
! 3788: echo "$ac_t""no" 1>&6
! 3789: fi
! 3790: done
! 3791:
! 3792:
! 3793: for ac_func in bcopy endgrent endpwent fchdir ftime ftruncate \
! 3794: getcwd getmntinfo gettimeofday isascii lchown \
! 3795: listmntent memcpy mkfifo strchr strerror strrchr
! 3796: do
! 3797: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
! 3798: echo "configure:3799: checking for $ac_func" >&5
! 3799: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
! 3800: echo $ac_n "(cached) $ac_c" 1>&6
! 3801: else
! 3802: cat > conftest.$ac_ext <<EOF
! 3803: #line 3804 "configure"
! 3804: #include "confdefs.h"
! 3805: /* System header to define __stub macros and hopefully few prototypes,
! 3806: which can conflict with char $ac_func(); below. */
! 3807: #include <assert.h>
! 3808: /* Override any gcc2 internal prototype to avoid an error. */
! 3809: /* We use char because int might match the return type of a gcc2
! 3810: builtin and then its argument prototype would still apply. */
! 3811: char $ac_func();
! 3812:
! 3813: int main() {
! 3814:
! 3815: /* The GNU C library defines this for functions which it implements
! 3816: to always fail with ENOSYS. Some functions are actually named
! 3817: something starting with __ and the normal name is an alias. */
! 3818: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
! 3819: choke me
! 3820: #else
! 3821: $ac_func();
! 3822: #endif
! 3823:
! 3824: ; return 0; }
! 3825: EOF
! 3826: if { (eval echo configure:3827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3827: rm -rf conftest*
! 3828: eval "ac_cv_func_$ac_func=yes"
! 3829: else
! 3830: echo "configure: failed program was:" >&5
! 3831: cat conftest.$ac_ext >&5
! 3832: rm -rf conftest*
! 3833: eval "ac_cv_func_$ac_func=no"
! 3834: fi
! 3835: rm -f conftest*
! 3836: fi
! 3837:
! 3838: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
! 3839: echo "$ac_t""yes" 1>&6
! 3840: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
! 3841: cat >> confdefs.h <<EOF
! 3842: #define $ac_tr_func 1
! 3843: EOF
! 3844:
! 3845: else
! 3846: echo "$ac_t""no" 1>&6
! 3847: fi
! 3848: done
! 3849:
! 3850:
! 3851: # Determine how to get the list of mounted filesystems.
! 3852: list_mounted_fs=
! 3853:
! 3854: # If the getmntent function is available but not in the standard library,
! 3855: # make sure LIBS contains -lsun (on Irix4) or -lseq (on PTX).
! 3856: # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
! 3857: echo $ac_n "checking for getmntent in -lsun""... $ac_c" 1>&6
! 3858: echo "configure:3859: checking for getmntent in -lsun" >&5
! 3859: ac_lib_var=`echo sun'_'getmntent | sed 'y%./+-%__p_%'`
! 3860: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 3861: echo $ac_n "(cached) $ac_c" 1>&6
! 3862: else
! 3863: ac_save_LIBS="$LIBS"
! 3864: LIBS="-lsun $LIBS"
! 3865: cat > conftest.$ac_ext <<EOF
! 3866: #line 3867 "configure"
! 3867: #include "confdefs.h"
! 3868: /* Override any gcc2 internal prototype to avoid an error. */
! 3869: /* We use char because int might match the return type of a gcc2
! 3870: builtin and then its argument prototype would still apply. */
! 3871: char getmntent();
! 3872:
! 3873: int main() {
! 3874: getmntent()
! 3875: ; return 0; }
! 3876: EOF
! 3877: if { (eval echo configure:3878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3878: rm -rf conftest*
! 3879: eval "ac_cv_lib_$ac_lib_var=yes"
! 3880: else
! 3881: echo "configure: failed program was:" >&5
! 3882: cat conftest.$ac_ext >&5
! 3883: rm -rf conftest*
! 3884: eval "ac_cv_lib_$ac_lib_var=no"
! 3885: fi
! 3886: rm -f conftest*
! 3887: LIBS="$ac_save_LIBS"
! 3888:
! 3889: fi
! 3890: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 3891: echo "$ac_t""yes" 1>&6
! 3892: LIBS="-lsun $LIBS"
! 3893: else
! 3894: echo "$ac_t""no" 1>&6
! 3895: echo $ac_n "checking for getmntent in -lseq""... $ac_c" 1>&6
! 3896: echo "configure:3897: checking for getmntent in -lseq" >&5
! 3897: ac_lib_var=`echo seq'_'getmntent | sed 'y%./+-%__p_%'`
! 3898: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 3899: echo $ac_n "(cached) $ac_c" 1>&6
! 3900: else
! 3901: ac_save_LIBS="$LIBS"
! 3902: LIBS="-lseq $LIBS"
! 3903: cat > conftest.$ac_ext <<EOF
! 3904: #line 3905 "configure"
! 3905: #include "confdefs.h"
! 3906: /* Override any gcc2 internal prototype to avoid an error. */
! 3907: /* We use char because int might match the return type of a gcc2
! 3908: builtin and then its argument prototype would still apply. */
! 3909: char getmntent();
! 3910:
! 3911: int main() {
! 3912: getmntent()
! 3913: ; return 0; }
! 3914: EOF
! 3915: if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3916: rm -rf conftest*
! 3917: eval "ac_cv_lib_$ac_lib_var=yes"
! 3918: else
! 3919: echo "configure: failed program was:" >&5
! 3920: cat conftest.$ac_ext >&5
! 3921: rm -rf conftest*
! 3922: eval "ac_cv_lib_$ac_lib_var=no"
! 3923: fi
! 3924: rm -f conftest*
! 3925: LIBS="$ac_save_LIBS"
! 3926:
! 3927: fi
! 3928: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 3929: echo "$ac_t""yes" 1>&6
! 3930: LIBS="-lseq $LIBS"
! 3931: else
! 3932: echo "$ac_t""no" 1>&6
! 3933: echo $ac_n "checking for getmntent in -lgen""... $ac_c" 1>&6
! 3934: echo "configure:3935: checking for getmntent in -lgen" >&5
! 3935: ac_lib_var=`echo gen'_'getmntent | sed 'y%./+-%__p_%'`
! 3936: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 3937: echo $ac_n "(cached) $ac_c" 1>&6
! 3938: else
! 3939: ac_save_LIBS="$LIBS"
! 3940: LIBS="-lgen $LIBS"
! 3941: cat > conftest.$ac_ext <<EOF
! 3942: #line 3943 "configure"
! 3943: #include "confdefs.h"
! 3944: /* Override any gcc2 internal prototype to avoid an error. */
! 3945: /* We use char because int might match the return type of a gcc2
! 3946: builtin and then its argument prototype would still apply. */
! 3947: char getmntent();
! 3948:
! 3949: int main() {
! 3950: getmntent()
! 3951: ; return 0; }
! 3952: EOF
! 3953: if { (eval echo configure:3954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 3954: rm -rf conftest*
! 3955: eval "ac_cv_lib_$ac_lib_var=yes"
! 3956: else
! 3957: echo "configure: failed program was:" >&5
! 3958: cat conftest.$ac_ext >&5
! 3959: rm -rf conftest*
! 3960: eval "ac_cv_lib_$ac_lib_var=no"
! 3961: fi
! 3962: rm -f conftest*
! 3963: LIBS="$ac_save_LIBS"
! 3964:
! 3965: fi
! 3966: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 3967: echo "$ac_t""yes" 1>&6
! 3968: LIBS="-lgen $LIBS"
! 3969: else
! 3970: echo "$ac_t""no" 1>&6
! 3971: fi
! 3972:
! 3973: fi
! 3974:
! 3975: fi
! 3976:
! 3977: echo $ac_n "checking for getmntent""... $ac_c" 1>&6
! 3978: echo "configure:3979: checking for getmntent" >&5
! 3979: if eval "test \"`echo '$''{'ac_cv_func_getmntent'+set}'`\" = set"; then
! 3980: echo $ac_n "(cached) $ac_c" 1>&6
! 3981: else
! 3982: cat > conftest.$ac_ext <<EOF
! 3983: #line 3984 "configure"
! 3984: #include "confdefs.h"
! 3985: /* System header to define __stub macros and hopefully few prototypes,
! 3986: which can conflict with char getmntent(); below. */
! 3987: #include <assert.h>
! 3988: /* Override any gcc2 internal prototype to avoid an error. */
! 3989: /* We use char because int might match the return type of a gcc2
! 3990: builtin and then its argument prototype would still apply. */
! 3991: char getmntent();
! 3992:
! 3993: int main() {
! 3994:
! 3995: /* The GNU C library defines this for functions which it implements
! 3996: to always fail with ENOSYS. Some functions are actually named
! 3997: something starting with __ and the normal name is an alias. */
! 3998: #if defined (__stub_getmntent) || defined (__stub___getmntent)
! 3999: choke me
! 4000: #else
! 4001: getmntent();
! 4002: #endif
! 4003:
! 4004: ; return 0; }
! 4005: EOF
! 4006: if { (eval echo configure:4007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 4007: rm -rf conftest*
! 4008: eval "ac_cv_func_getmntent=yes"
! 4009: else
! 4010: echo "configure: failed program was:" >&5
! 4011: cat conftest.$ac_ext >&5
! 4012: rm -rf conftest*
! 4013: eval "ac_cv_func_getmntent=no"
! 4014: fi
! 4015: rm -f conftest*
! 4016: fi
! 4017:
! 4018: if eval "test \"`echo '$ac_cv_func_'getmntent`\" = yes"; then
! 4019: echo "$ac_t""yes" 1>&6
! 4020: cat >> confdefs.h <<\EOF
! 4021: #define HAVE_GETMNTENT 1
! 4022: EOF
! 4023:
! 4024: else
! 4025: echo "$ac_t""no" 1>&6
! 4026: fi
! 4027:
! 4028:
! 4029: # This test must precede the ones for getmntent because Unicos-9 is
! 4030: # reported to have the getmntent function, but its support is incompatible
! 4031: # with other getmntent implementations.
! 4032:
! 4033: # NOTE: Normally, I wouldn't use a check for system type as I've done for
! 4034: # `CRAY' below since that goes against the whole autoconf philosophy. But
! 4035: # I think there is too great a chance that some non-Cray system has a
! 4036: # function named listmntent to risk the false positive.
! 4037:
! 4038: if test -z "$list_mounted_fs"; then
! 4039: # Cray UNICOS 9
! 4040: echo $ac_n "checking for listmntent of Cray/Unicos-9""... $ac_c" 1>&6
! 4041: echo "configure:4042: checking for listmntent of Cray/Unicos-9" >&5
! 4042: if eval "test \"`echo '$''{'fu_cv_sys_mounted_cray_listmntent'+set}'`\" = set"; then
! 4043: echo $ac_n "(cached) $ac_c" 1>&6
! 4044: else
! 4045: fu_cv_sys_mounted_cray_listmntent=no
! 4046: cat > conftest.$ac_ext <<EOF
! 4047: #line 4048 "configure"
! 4048: #include "confdefs.h"
! 4049: #ifdef _CRAY
! 4050: yes
! 4051: #endif
! 4052:
! 4053: EOF
! 4054: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4055: egrep "yes" >/dev/null 2>&1; then
! 4056: rm -rf conftest*
! 4057: test $ac_cv_func_listmntent = yes \
! 4058: && fu_cv_sys_mounted_cray_listmntent=yes
! 4059:
! 4060: fi
! 4061: rm -f conftest*
! 4062:
! 4063:
! 4064:
! 4065: fi
! 4066:
! 4067: echo "$ac_t""$fu_cv_sys_mounted_cray_listmntent" 1>&6
! 4068: if test $fu_cv_sys_mounted_cray_listmntent = yes; then
! 4069: list_mounted_fs=found
! 4070: cat >> confdefs.h <<\EOF
! 4071: #define MOUNTED_LISTMNTENT 1
! 4072: EOF
! 4073:
! 4074: fi
! 4075: fi
! 4076:
! 4077: if test $ac_cv_func_getmntent = yes; then
! 4078:
! 4079: # This system has the getmntent function.
! 4080: # Determine whether it's the one-argument variant or the two-argument one.
! 4081:
! 4082: if test -z "$list_mounted_fs"; then
! 4083: # 4.3BSD, SunOS, HP-UX, Dynix, Irix
! 4084: echo $ac_n "checking for one-argument getmntent function""... $ac_c" 1>&6
! 4085: echo "configure:4086: checking for one-argument getmntent function" >&5
! 4086: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent1'+set}'`\" = set"; then
! 4087: echo $ac_n "(cached) $ac_c" 1>&6
! 4088: else
! 4089: test $ac_cv_header_mntent_h = yes \
! 4090: && fu_cv_sys_mounted_getmntent1=yes \
! 4091: || fu_cv_sys_mounted_getmntent1=no
! 4092: fi
! 4093:
! 4094: echo "$ac_t""$fu_cv_sys_mounted_getmntent1" 1>&6
! 4095: if test $fu_cv_sys_mounted_getmntent1 = yes; then
! 4096: list_mounted_fs=found
! 4097: cat >> confdefs.h <<\EOF
! 4098: #define MOUNTED_GETMNTENT1 1
! 4099: EOF
! 4100:
! 4101: fi
! 4102: fi
! 4103:
! 4104: if test -z "$list_mounted_fs"; then
! 4105: # SVR4
! 4106: echo $ac_n "checking for two-argument getmntent function""... $ac_c" 1>&6
! 4107: echo "configure:4108: checking for two-argument getmntent function" >&5
! 4108: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntent2'+set}'`\" = set"; then
! 4109: echo $ac_n "(cached) $ac_c" 1>&6
! 4110: else
! 4111: cat > conftest.$ac_ext <<EOF
! 4112: #line 4113 "configure"
! 4113: #include "confdefs.h"
! 4114: #include <sys/mnttab.h>
! 4115: EOF
! 4116: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4117: egrep "getmntent" >/dev/null 2>&1; then
! 4118: rm -rf conftest*
! 4119: fu_cv_sys_mounted_getmntent2=yes
! 4120: else
! 4121: rm -rf conftest*
! 4122: fu_cv_sys_mounted_getmntent2=no
! 4123: fi
! 4124: rm -f conftest*
! 4125:
! 4126: fi
! 4127:
! 4128: echo "$ac_t""$fu_cv_sys_mounted_getmntent2" 1>&6
! 4129: if test $fu_cv_sys_mounted_getmntent2 = yes; then
! 4130: list_mounted_fs=found
! 4131: cat >> confdefs.h <<\EOF
! 4132: #define MOUNTED_GETMNTENT2 1
! 4133: EOF
! 4134:
! 4135: fi
! 4136: fi
! 4137:
! 4138: if test -z "$list_mounted_fs"; then
! 4139: { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
! 4140: fi
! 4141:
! 4142: fi
! 4143:
! 4144: if test -z "$list_mounted_fs"; then
! 4145: # DEC Alpha running OSF/1.
! 4146: echo $ac_n "checking for getfsstat function""... $ac_c" 1>&6
! 4147: echo "configure:4148: checking for getfsstat function" >&5
! 4148: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getsstat'+set}'`\" = set"; then
! 4149: echo $ac_n "(cached) $ac_c" 1>&6
! 4150: else
! 4151: cat > conftest.$ac_ext <<EOF
! 4152: #line 4153 "configure"
! 4153: #include "confdefs.h"
! 4154:
! 4155: #include <sys/types.h>
! 4156: #include <sys/mount.h>
! 4157: #include <sys/fs_types.h>
! 4158: int main() {
! 4159: struct statfs *stats;
! 4160: int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT);
! 4161: ; return 0; }
! 4162: EOF
! 4163: if { (eval echo configure:4164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 4164: rm -rf conftest*
! 4165: fu_cv_sys_mounted_getsstat=yes
! 4166: else
! 4167: echo "configure: failed program was:" >&5
! 4168: cat conftest.$ac_ext >&5
! 4169: rm -rf conftest*
! 4170: fu_cv_sys_mounted_getsstat=no
! 4171: fi
! 4172: rm -f conftest*
! 4173: fi
! 4174:
! 4175: echo "$ac_t""$fu_cv_sys_mounted_getsstat" 1>&6
! 4176: if test $fu_cv_sys_mounted_getsstat = yes; then
! 4177: list_mounted_fs=found
! 4178: cat >> confdefs.h <<\EOF
! 4179: #define MOUNTED_GETFSSTAT 1
! 4180: EOF
! 4181:
! 4182: fi
! 4183: fi
! 4184:
! 4185: if test -z "$list_mounted_fs"; then
! 4186: # AIX.
! 4187: echo $ac_n "checking for mntctl function and struct vmount""... $ac_c" 1>&6
! 4188: echo "configure:4189: checking for mntctl function and struct vmount" >&5
! 4189: if eval "test \"`echo '$''{'fu_cv_sys_mounted_vmount'+set}'`\" = set"; then
! 4190: echo $ac_n "(cached) $ac_c" 1>&6
! 4191: else
! 4192: cat > conftest.$ac_ext <<EOF
! 4193: #line 4194 "configure"
! 4194: #include "confdefs.h"
! 4195: #include <fshelp.h>
! 4196: EOF
! 4197: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 4198: { (eval echo configure:4199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 4199: ac_err=`grep -v '^ *+' conftest.out`
! 4200: if test -z "$ac_err"; then
! 4201: rm -rf conftest*
! 4202: fu_cv_sys_mounted_vmount=yes
! 4203: else
! 4204: echo "$ac_err" >&5
! 4205: echo "configure: failed program was:" >&5
! 4206: cat conftest.$ac_ext >&5
! 4207: rm -rf conftest*
! 4208: fu_cv_sys_mounted_vmount=no
! 4209: fi
! 4210: rm -f conftest*
! 4211: fi
! 4212:
! 4213: echo "$ac_t""$fu_cv_sys_mounted_vmount" 1>&6
! 4214: if test $fu_cv_sys_mounted_vmount = yes; then
! 4215: list_mounted_fs=found
! 4216: cat >> confdefs.h <<\EOF
! 4217: #define MOUNTED_VMOUNT 1
! 4218: EOF
! 4219:
! 4220: fi
! 4221: fi
! 4222:
! 4223: if test -z "$list_mounted_fs"; then
! 4224: # SVR3
! 4225: echo $ac_n "checking for FIXME existence of three headers""... $ac_c" 1>&6
! 4226: echo "configure:4227: checking for FIXME existence of three headers" >&5
! 4227: if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread_fstyp'+set}'`\" = set"; then
! 4228: echo $ac_n "(cached) $ac_c" 1>&6
! 4229: else
! 4230: cat > conftest.$ac_ext <<EOF
! 4231: #line 4232 "configure"
! 4232: #include "confdefs.h"
! 4233:
! 4234: #include <sys/statfs.h>
! 4235: #include <sys/fstyp.h>
! 4236: #include <mnttab.h>
! 4237: EOF
! 4238: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 4239: { (eval echo configure:4240: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 4240: ac_err=`grep -v '^ *+' conftest.out`
! 4241: if test -z "$ac_err"; then
! 4242: rm -rf conftest*
! 4243: fu_cv_sys_mounted_fread_fstyp=yes
! 4244: else
! 4245: echo "$ac_err" >&5
! 4246: echo "configure: failed program was:" >&5
! 4247: cat conftest.$ac_ext >&5
! 4248: rm -rf conftest*
! 4249: fu_cv_sys_mounted_fread_fstyp=no
! 4250: fi
! 4251: rm -f conftest*
! 4252: fi
! 4253:
! 4254: echo "$ac_t""$fu_cv_sys_mounted_fread_fstyp" 1>&6
! 4255: if test $fu_cv_sys_mounted_fread_fstyp = yes; then
! 4256: list_mounted_fs=found
! 4257: cat >> confdefs.h <<\EOF
! 4258: #define MOUNTED_FREAD_FSTYP 1
! 4259: EOF
! 4260:
! 4261: fi
! 4262: fi
! 4263:
! 4264: if test -z "$list_mounted_fs"; then
! 4265: # 4.4BSD and DEC OSF/1.
! 4266: echo $ac_n "checking for getmntinfo function""... $ac_c" 1>&6
! 4267: echo "configure:4268: checking for getmntinfo function" >&5
! 4268: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmntinfo'+set}'`\" = set"; then
! 4269: echo $ac_n "(cached) $ac_c" 1>&6
! 4270: else
! 4271:
! 4272: ok=
! 4273: if test $ac_cv_func_getmntinfo = yes; then
! 4274: cat > conftest.$ac_ext <<EOF
! 4275: #line 4276 "configure"
! 4276: #include "confdefs.h"
! 4277: #include <sys/mount.h>
! 4278: EOF
! 4279: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4280: egrep "f_type;" >/dev/null 2>&1; then
! 4281: rm -rf conftest*
! 4282: ok=yes
! 4283: fi
! 4284: rm -f conftest*
! 4285:
! 4286: fi
! 4287: test -n "$ok" \
! 4288: && fu_cv_sys_mounted_getmntinfo=yes \
! 4289: || fu_cv_sys_mounted_getmntinfo=no
! 4290:
! 4291: fi
! 4292:
! 4293: echo "$ac_t""$fu_cv_sys_mounted_getmntinfo" 1>&6
! 4294: if test $fu_cv_sys_mounted_getmntinfo = yes; then
! 4295: list_mounted_fs=found
! 4296: cat >> confdefs.h <<\EOF
! 4297: #define MOUNTED_GETMNTINFO 1
! 4298: EOF
! 4299:
! 4300: fi
! 4301: fi
! 4302:
! 4303: # FIXME: add a test for netbsd-1.1 here
! 4304:
! 4305: if test -z "$list_mounted_fs"; then
! 4306: # Ultrix
! 4307: echo $ac_n "checking for getmnt function""... $ac_c" 1>&6
! 4308: echo "configure:4309: checking for getmnt function" >&5
! 4309: if eval "test \"`echo '$''{'fu_cv_sys_mounted_getmnt'+set}'`\" = set"; then
! 4310: echo $ac_n "(cached) $ac_c" 1>&6
! 4311: else
! 4312: cat > conftest.$ac_ext <<EOF
! 4313: #line 4314 "configure"
! 4314: #include "confdefs.h"
! 4315:
! 4316: #include <sys/fs_types.h>
! 4317: #include <sys/mount.h>
! 4318: EOF
! 4319: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 4320: { (eval echo configure:4321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 4321: ac_err=`grep -v '^ *+' conftest.out`
! 4322: if test -z "$ac_err"; then
! 4323: rm -rf conftest*
! 4324: fu_cv_sys_mounted_getmnt=yes
! 4325: else
! 4326: echo "$ac_err" >&5
! 4327: echo "configure: failed program was:" >&5
! 4328: cat conftest.$ac_ext >&5
! 4329: rm -rf conftest*
! 4330: fu_cv_sys_mounted_getmnt=no
! 4331: fi
! 4332: rm -f conftest*
! 4333: fi
! 4334:
! 4335: echo "$ac_t""$fu_cv_sys_mounted_getmnt" 1>&6
! 4336: if test $fu_cv_sys_mounted_getmnt = yes; then
! 4337: list_mounted_fs=found
! 4338: cat >> confdefs.h <<\EOF
! 4339: #define MOUNTED_GETMNT 1
! 4340: EOF
! 4341:
! 4342: fi
! 4343: fi
! 4344:
! 4345: if test -z "$list_mounted_fs"; then
! 4346: # SVR2
! 4347: echo $ac_n "checking whether it is possible to resort to fread on /etc/mnttab""... $ac_c" 1>&6
! 4348: echo "configure:4349: checking whether it is possible to resort to fread on /etc/mnttab" >&5
! 4349: if eval "test \"`echo '$''{'fu_cv_sys_mounted_fread'+set}'`\" = set"; then
! 4350: echo $ac_n "(cached) $ac_c" 1>&6
! 4351: else
! 4352: cat > conftest.$ac_ext <<EOF
! 4353: #line 4354 "configure"
! 4354: #include "confdefs.h"
! 4355: #include <mnttab.h>
! 4356: EOF
! 4357: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 4358: { (eval echo configure:4359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 4359: ac_err=`grep -v '^ *+' conftest.out`
! 4360: if test -z "$ac_err"; then
! 4361: rm -rf conftest*
! 4362: fu_cv_sys_mounted_fread=yes
! 4363: else
! 4364: echo "$ac_err" >&5
! 4365: echo "configure: failed program was:" >&5
! 4366: cat conftest.$ac_ext >&5
! 4367: rm -rf conftest*
! 4368: fu_cv_sys_mounted_fread=no
! 4369: fi
! 4370: rm -f conftest*
! 4371: fi
! 4372:
! 4373: echo "$ac_t""$fu_cv_sys_mounted_fread" 1>&6
! 4374: if test $fu_cv_sys_mounted_fread = yes; then
! 4375: list_mounted_fs=found
! 4376: cat >> confdefs.h <<\EOF
! 4377: #define MOUNTED_FREAD 1
! 4378: EOF
! 4379:
! 4380: fi
! 4381: fi
! 4382:
! 4383: if test -z "$list_mounted_fs"; then
! 4384: { echo "configure: error: could not determine how to read list of mounted filesystems" 1>&2; exit 1; }
! 4385: # FIXME -- no need to abort building the whole package
! 4386: # Can't build mountlist.c or anything that needs its functions
! 4387: fi
! 4388:
! 4389: echo "checking how to get filesystem space usage" 1>&6
! 4390: echo "configure:4391: checking how to get filesystem space usage" >&5
! 4391: space=no
! 4392:
! 4393: # Perform only the link test since it seems there are no variants of the
! 4394: # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
! 4395: # because that got a false positive on SCO OSR5. Adding the declaration
! 4396: # of a `struct statvfs' causes this test to fail (as it should) on such
! 4397: # systems. That system is reported to work fine with STAT_STATFS4 which
! 4398: # is what it gets when this test fails.
! 4399: if test $space = no; then
! 4400: # SVR4
! 4401: echo $ac_n "checking statvfs function (SVR4)""... $ac_c" 1>&6
! 4402: echo "configure:4403: checking statvfs function (SVR4)" >&5
! 4403: if eval "test \"`echo '$''{'fu_cv_sys_stat_statvfs'+set}'`\" = set"; then
! 4404: echo $ac_n "(cached) $ac_c" 1>&6
! 4405: else
! 4406: cat > conftest.$ac_ext <<EOF
! 4407: #line 4408 "configure"
! 4408: #include "confdefs.h"
! 4409: #include <sys/types.h>
! 4410: #include <sys/statvfs.h>
! 4411: int main() {
! 4412: struct statvfs fsd; statvfs (0, &fsd);
! 4413: ; return 0; }
! 4414: EOF
! 4415: if { (eval echo configure:4416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 4416: rm -rf conftest*
! 4417: fu_cv_sys_stat_statvfs=yes
! 4418: else
! 4419: echo "configure: failed program was:" >&5
! 4420: cat conftest.$ac_ext >&5
! 4421: rm -rf conftest*
! 4422: fu_cv_sys_stat_statvfs=no
! 4423: fi
! 4424: rm -f conftest*
! 4425: fi
! 4426:
! 4427: echo "$ac_t""$fu_cv_sys_stat_statvfs" 1>&6
! 4428: if test $fu_cv_sys_stat_statvfs = yes; then
! 4429: space=yes
! 4430: cat >> confdefs.h <<\EOF
! 4431: #define STAT_STATVFS 1
! 4432: EOF
! 4433:
! 4434: fi
! 4435: fi
! 4436:
! 4437: if test $space = no; then
! 4438: # DEC Alpha running OSF/1
! 4439: echo $ac_n "checking for 3-argument statfs function (DEC OSF/1)""... $ac_c" 1>&6
! 4440: echo "configure:4441: checking for 3-argument statfs function (DEC OSF/1)" >&5
! 4441: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs3_osf1'+set}'`\" = set"; then
! 4442: echo $ac_n "(cached) $ac_c" 1>&6
! 4443: else
! 4444: if test "$cross_compiling" = yes; then
! 4445: fu_cv_sys_stat_statfs3_osf1=no
! 4446: else
! 4447: cat > conftest.$ac_ext <<EOF
! 4448: #line 4449 "configure"
! 4449: #include "confdefs.h"
! 4450:
! 4451: #include <sys/param.h>
! 4452: #include <sys/types.h>
! 4453: #include <sys/mount.h>
! 4454: main ()
! 4455: {
! 4456: struct statfs fsd;
! 4457: fsd.f_fsize = 0;
! 4458: exit (statfs (".", &fsd, sizeof (struct statfs)));
! 4459: }
! 4460: EOF
! 4461: if { (eval echo configure:4462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 4462: then
! 4463: fu_cv_sys_stat_statfs3_osf1=yes
! 4464: else
! 4465: echo "configure: failed program was:" >&5
! 4466: cat conftest.$ac_ext >&5
! 4467: rm -fr conftest*
! 4468: fu_cv_sys_stat_statfs3_osf1=no
! 4469: fi
! 4470: rm -fr conftest*
! 4471: fi
! 4472:
! 4473: fi
! 4474:
! 4475: echo "$ac_t""$fu_cv_sys_stat_statfs3_osf1" 1>&6
! 4476: if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
! 4477: space=yes
! 4478: cat >> confdefs.h <<\EOF
! 4479: #define STAT_STATFS3_OSF1 1
! 4480: EOF
! 4481:
! 4482: fi
! 4483: fi
! 4484:
! 4485: if test $space = no; then
! 4486: # AIX
! 4487: echo $ac_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)""... $ac_c" 1>&6
! 4488: echo "configure:4489: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
! 4489: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_bsize'+set}'`\" = set"; then
! 4490: echo $ac_n "(cached) $ac_c" 1>&6
! 4491: else
! 4492: if test "$cross_compiling" = yes; then
! 4493: fu_cv_sys_stat_statfs2_bsize=no
! 4494: else
! 4495: cat > conftest.$ac_ext <<EOF
! 4496: #line 4497 "configure"
! 4497: #include "confdefs.h"
! 4498:
! 4499: #ifdef HAVE_SYS_PARAM_H
! 4500: #include <sys/param.h>
! 4501: #endif
! 4502: #ifdef HAVE_SYS_MOUNT_H
! 4503: #include <sys/mount.h>
! 4504: #endif
! 4505: #ifdef HAVE_SYS_VFS_H
! 4506: #include <sys/vfs.h>
! 4507: #endif
! 4508: main ()
! 4509: {
! 4510: struct statfs fsd;
! 4511: fsd.f_bsize = 0;
! 4512: exit (statfs (".", &fsd));
! 4513: }
! 4514: EOF
! 4515: if { (eval echo configure:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 4516: then
! 4517: fu_cv_sys_stat_statfs2_bsize=yes
! 4518: else
! 4519: echo "configure: failed program was:" >&5
! 4520: cat conftest.$ac_ext >&5
! 4521: rm -fr conftest*
! 4522: fu_cv_sys_stat_statfs2_bsize=no
! 4523: fi
! 4524: rm -fr conftest*
! 4525: fi
! 4526:
! 4527: fi
! 4528:
! 4529: echo "$ac_t""$fu_cv_sys_stat_statfs2_bsize" 1>&6
! 4530: if test $fu_cv_sys_stat_statfs2_bsize = yes; then
! 4531: space=yes
! 4532: cat >> confdefs.h <<\EOF
! 4533: #define STAT_STATFS2_BSIZE 1
! 4534: EOF
! 4535:
! 4536: fi
! 4537: fi
! 4538:
! 4539: if test $space = no; then
! 4540: # SVR3
! 4541: echo $ac_n "checking for four-argument statfs (AIX-3.2.5, SVR3)""... $ac_c" 1>&6
! 4542: echo "configure:4543: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
! 4543: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs4'+set}'`\" = set"; then
! 4544: echo $ac_n "(cached) $ac_c" 1>&6
! 4545: else
! 4546: if test "$cross_compiling" = yes; then
! 4547: fu_cv_sys_stat_statfs4=no
! 4548: else
! 4549: cat > conftest.$ac_ext <<EOF
! 4550: #line 4551 "configure"
! 4551: #include "confdefs.h"
! 4552: #include <sys/types.h>
! 4553: #include <sys/statfs.h>
! 4554: main ()
! 4555: {
! 4556: struct statfs fsd;
! 4557: exit (statfs (".", &fsd, sizeof fsd, 0));
! 4558: }
! 4559: EOF
! 4560: if { (eval echo configure:4561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 4561: then
! 4562: fu_cv_sys_stat_statfs4=yes
! 4563: else
! 4564: echo "configure: failed program was:" >&5
! 4565: cat conftest.$ac_ext >&5
! 4566: rm -fr conftest*
! 4567: fu_cv_sys_stat_statfs4=no
! 4568: fi
! 4569: rm -fr conftest*
! 4570: fi
! 4571:
! 4572: fi
! 4573:
! 4574: echo "$ac_t""$fu_cv_sys_stat_statfs4" 1>&6
! 4575: if test $fu_cv_sys_stat_statfs4 = yes; then
! 4576: space=yes
! 4577: cat >> confdefs.h <<\EOF
! 4578: #define STAT_STATFS4 1
! 4579: EOF
! 4580:
! 4581: fi
! 4582: fi
! 4583:
! 4584: if test $space = no; then
! 4585: # 4.4BSD and NetBSD
! 4586: echo $ac_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)""... $ac_c" 1>&6
! 4587: echo "configure:4588: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
! 4588: if eval "test \"`echo '$''{'fu_cv_sys_stat_statfs2_fsize'+set}'`\" = set"; then
! 4589: echo $ac_n "(cached) $ac_c" 1>&6
! 4590: else
! 4591: if test "$cross_compiling" = yes; then
! 4592: fu_cv_sys_stat_statfs2_fsize=no
! 4593: else
! 4594: cat > conftest.$ac_ext <<EOF
! 4595: #line 4596 "configure"
! 4596: #include "confdefs.h"
! 4597: #include <sys/types.h>
! 4598: #ifdef HAVE_SYS_PARAM_H
! 4599: #include <sys/param.h>
! 4600: #endif
! 4601: #ifdef HAVE_SYS_MOUNT_H
! 4602: #include <sys/mount.h>
! 4603: #endif
! 4604: main ()
! 4605: {
! 4606: struct statfs fsd;
! 4607: fsd.f_fsize = 0;
! 4608: exit (statfs (".", &fsd));
! 4609: }
! 4610: EOF
! 4611: if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 4612: then
! 4613: fu_cv_sys_stat_statfs2_fsize=yes
! 4614: else
! 4615: echo "configure: failed program was:" >&5
! 4616: cat conftest.$ac_ext >&5
! 4617: rm -fr conftest*
! 4618: fu_cv_sys_stat_statfs2_fsize=no
! 4619: fi
! 4620: rm -fr conftest*
! 4621: fi
! 4622:
! 4623: fi
! 4624:
! 4625: echo "$ac_t""$fu_cv_sys_stat_statfs2_fsize" 1>&6
! 4626: if test $fu_cv_sys_stat_statfs2_fsize = yes; then
! 4627: space=yes
! 4628: cat >> confdefs.h <<\EOF
! 4629: #define STAT_STATFS2_FSIZE 1
! 4630: EOF
! 4631:
! 4632: fi
! 4633: fi
! 4634:
! 4635: if test $space = no; then
! 4636: # Ultrix
! 4637: echo $ac_n "checking for two-argument statfs with struct fs_data (Ultrix)""... $ac_c" 1>&6
! 4638: echo "configure:4639: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
! 4639: if eval "test \"`echo '$''{'fu_cv_sys_stat_fs_data'+set}'`\" = set"; then
! 4640: echo $ac_n "(cached) $ac_c" 1>&6
! 4641: else
! 4642: if test "$cross_compiling" = yes; then
! 4643: fu_cv_sys_stat_fs_data=no
! 4644: else
! 4645: cat > conftest.$ac_ext <<EOF
! 4646: #line 4647 "configure"
! 4647: #include "confdefs.h"
! 4648: #include <sys/types.h>
! 4649: #ifdef HAVE_SYS_PARAM_H
! 4650: #include <sys/param.h>
! 4651: #endif
! 4652: #ifdef HAVE_SYS_MOUNT_H
! 4653: #include <sys/mount.h>
! 4654: #endif
! 4655: #ifdef HAVE_SYS_FS_TYPES_H
! 4656: #include <sys/fs_types.h>
! 4657: #endif
! 4658: main ()
! 4659: {
! 4660: struct fs_data fsd;
! 4661: /* Ultrix's statfs returns 1 for success,
! 4662: 0 for not mounted, -1 for failure. */
! 4663: exit (statfs (".", &fsd) != 1);
! 4664: }
! 4665: EOF
! 4666: if { (eval echo configure:4667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
! 4667: then
! 4668: fu_cv_sys_stat_fs_data=yes
! 4669: else
! 4670: echo "configure: failed program was:" >&5
! 4671: cat conftest.$ac_ext >&5
! 4672: rm -fr conftest*
! 4673: fu_cv_sys_stat_fs_data=no
! 4674: fi
! 4675: rm -fr conftest*
! 4676: fi
! 4677:
! 4678: fi
! 4679:
! 4680: echo "$ac_t""$fu_cv_sys_stat_fs_data" 1>&6
! 4681: if test $fu_cv_sys_stat_fs_data = yes; then
! 4682: space=yes
! 4683: cat >> confdefs.h <<\EOF
! 4684: #define STAT_STATFS2_FS_DATA 1
! 4685: EOF
! 4686:
! 4687: fi
! 4688: fi
! 4689:
! 4690: if test $space = no; then
! 4691: # SVR2
! 4692: cat > conftest.$ac_ext <<EOF
! 4693: #line 4694 "configure"
! 4694: #include "confdefs.h"
! 4695: #include <sys/filsys.h>
! 4696: EOF
! 4697: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 4698: { (eval echo configure:4699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 4699: ac_err=`grep -v '^ *+' conftest.out`
! 4700: if test -z "$ac_err"; then
! 4701: rm -rf conftest*
! 4702: cat >> confdefs.h <<\EOF
! 4703: #define STAT_READ_FILSYS 1
! 4704: EOF
! 4705: space=yes
! 4706: else
! 4707: echo "$ac_err" >&5
! 4708: echo "configure: failed program was:" >&5
! 4709: cat conftest.$ac_ext >&5
! 4710: fi
! 4711: rm -f conftest*
! 4712: fi
! 4713:
! 4714: if test -n "$list_mounted_fs" && test $space != no; then
! 4715: DF_PROG="df"
! 4716: LIBOBJS="$LIBOBJS fsusage.o"
! 4717: LIBOBJS="$LIBOBJS mountlist.o"
! 4718: fi
1.1.1.4 root 4719:
1.1.1.6 ! root 4720: for ac_func in ftruncate
1.1.1.4 root 4721: do
4722: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.6 ! root 4723: echo "configure:4724: checking for $ac_func" >&5
1.1.1.4 root 4724: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4725: echo $ac_n "(cached) $ac_c" 1>&6
4726: else
4727: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 4728: #line 4729 "configure"
1.1.1.4 root 4729: #include "confdefs.h"
4730: /* System header to define __stub macros and hopefully few prototypes,
4731: which can conflict with char $ac_func(); below. */
4732: #include <assert.h>
4733: /* Override any gcc2 internal prototype to avoid an error. */
4734: /* We use char because int might match the return type of a gcc2
4735: builtin and then its argument prototype would still apply. */
4736: char $ac_func();
4737:
4738: int main() {
4739:
4740: /* The GNU C library defines this for functions which it implements
4741: to always fail with ENOSYS. Some functions are actually named
4742: something starting with __ and the normal name is an alias. */
4743: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4744: choke me
4745: #else
4746: $ac_func();
4747: #endif
1.1 root 4748:
1.1.1.4 root 4749: ; return 0; }
4750: EOF
1.1.1.6 ! root 4751: if { (eval echo configure:4752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 4752: rm -rf conftest*
4753: eval "ac_cv_func_$ac_func=yes"
4754: else
4755: echo "configure: failed program was:" >&5
4756: cat conftest.$ac_ext >&5
4757: rm -rf conftest*
4758: eval "ac_cv_func_$ac_func=no"
4759: fi
4760: rm -f conftest*
1.1 root 4761: fi
1.1.1.4 root 4762:
1.1 root 4763: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4764: echo "$ac_t""yes" 1>&6
4765: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4766: cat >> confdefs.h <<EOF
4767: #define $ac_tr_func 1
4768: EOF
4769:
4770: else
4771: echo "$ac_t""no" 1>&6
1.1.1.6 ! root 4772: ftruncate_missing=yes
1.1 root 4773: fi
4774: done
4775:
4776:
1.1.1.6 ! root 4777: if test "$ftruncate_missing" = yes; then
! 4778: echo $ac_n "checking fcntl emulation of ftruncate""... $ac_c" 1>&6
! 4779: echo "configure:4780: checking fcntl emulation of ftruncate" >&5
! 4780: if eval "test \"`echo '$''{'fu_cv_sys_ftruncate_emulation'+set}'`\" = set"; then
! 4781: echo $ac_n "(cached) $ac_c" 1>&6
! 4782: else
1.1 root 4783: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 4784: #line 4785 "configure"
1.1 root 4785: #include "confdefs.h"
4786:
1.1.1.2 root 4787: #include <sys/types.h>
1.1.1.6 ! root 4788: #include <fcntl.h>
1.1.1.4 root 4789: int main() {
1.1.1.6 ! root 4790:
! 4791: #if !defined(F_CHSIZE) && !defined(F_FREESP)
! 4792: chsize();
! 4793: #endif
! 4794:
1.1 root 4795: ; return 0; }
4796: EOF
1.1.1.6 ! root 4797: if { (eval echo configure:4798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1 root 4798: rm -rf conftest*
1.1.1.6 ! root 4799: fu_cv_sys_ftruncate_emulation=yes
1.1 root 4800: else
1.1.1.4 root 4801: echo "configure: failed program was:" >&5
4802: cat conftest.$ac_ext >&5
1.1 root 4803: rm -rf conftest*
1.1.1.6 ! root 4804: fu_cv_sys_ftruncate_emulation=no
1.1 root 4805: fi
4806: rm -f conftest*
4807: fi
4808:
1.1.1.6 ! root 4809: echo "$ac_t""$fu_cv_sys_ftruncate_emulation" 1>&6
! 4810: if test $fu_cv_sys_ftruncate_emulation = yes; then
! 4811: LIBOBJS="$LIBOBJS ftruncate.o"
! 4812: fi
! 4813: fi
! 4814:
! 4815: case "$LIBOBJS" in
! 4816: *rename.o*)
! 4817: MVDIR_PROG="mvdir"
! 4818: ;;
! 4819: esac
! 4820:
! 4821: # Check for SunOS statfs brokenness wrt partitions 2GB and larger.
! 4822: # If <sys/vfs.h> exists and struct statfs has a member named f_spare,
! 4823: # enable the work-around code in fsusage.c.
! 4824: echo $ac_n "checking for statfs that truncates block counts""... $ac_c" 1>&6
! 4825: echo "configure:4826: checking for statfs that truncates block counts" >&5
! 4826: if eval "test \"`echo '$''{'fu_cv_sys_truncating_statfs'+set}'`\" = set"; then
! 4827: echo $ac_n "(cached) $ac_c" 1>&6
! 4828: else
1.1 root 4829: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 4830: #line 4831 "configure"
1.1 root 4831: #include "confdefs.h"
4832:
1.1.1.6 ! root 4833: #if !defined(sun) && !defined(__sun)
! 4834: choke -- this is a workaround for a Sun-specific problem
1.1 root 4835: #endif
1.1.1.6 ! root 4836: #include <sys/types.h>
1.1 root 4837: #include <sys/vfs.h>
1.1.1.4 root 4838: int main() {
1.1.1.6 ! root 4839: struct statfs t; long c = *(t.f_spare);
1.1 root 4840: ; return 0; }
4841: EOF
1.1.1.6 ! root 4842: if { (eval echo configure:4843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 root 4843: rm -rf conftest*
1.1.1.6 ! root 4844: fu_cv_sys_truncating_statfs=yes
1.1 root 4845: else
1.1.1.4 root 4846: echo "configure: failed program was:" >&5
4847: cat conftest.$ac_ext >&5
1.1 root 4848: rm -rf conftest*
1.1.1.6 ! root 4849: fu_cv_sys_truncating_statfs=no
! 4850: fi
! 4851: rm -f conftest*
! 4852: fi
! 4853:
! 4854: if test $fu_cv_sys_truncating_statfs = yes; then
! 4855: cat >> confdefs.h <<\EOF
! 4856: #define STATFS_TRUNCATES_BLOCK_COUNTS 1
! 4857: EOF
! 4858:
! 4859: fi
! 4860: echo "$ac_t""$fu_cv_sys_truncating_statfs" 1>&6
! 4861:
! 4862: echo "checking for AFS" 1>&6
! 4863: echo "configure:4864: checking for AFS" >&5
! 4864: test -d /afs && cat >> confdefs.h <<\EOF
! 4865: #define AFS 1
! 4866: EOF
! 4867:
! 4868:
! 4869: fi
! 4870:
! 4871: if [ $target = "p.os" ]; then
! 4872: HAVE_POS=yes
! 4873: else
! 4874: echo $ac_n "checking for pOS""... $ac_c" 1>&6
! 4875: echo "configure:4876: checking for pOS" >&5
! 4876: cat > conftest.$ac_ext <<EOF
! 4877: #line 4878 "configure"
! 4878: #include "confdefs.h"
! 4879: #ifdef __POS__
! 4880: yes
! 4881: #endif
! 4882:
! 4883: EOF
! 4884: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4885: egrep "yes" >/dev/null 2>&1; then
! 4886: rm -rf conftest*
! 4887: echo "$ac_t""yes" 1>&6; HAVE_POS=yes
! 4888: else
! 4889: rm -rf conftest*
! 4890: echo "$ac_t""no" 1>&6; HAVE_POS=no
1.1 root 4891: fi
4892: rm -f conftest*
1.1.1.6 ! root 4893:
1.1 root 4894: fi
4895:
1.1.1.2 root 4896:
1.1.1.4 root 4897: if [ "x$HAVE_NCURSES_LIB" = "xyes" ]; then
4898: if [ "x$ac_cv_header_ncurses_h" = "xno" -a "x$ac_cv_header_curses_h" = "xno" ]; then
4899: echo "Installation problem, found libncurses but neither curses.h nor ncurses.h!"
4900: HAVE_NCURSES_LIB=no
4901: NR_ERRORS=`expr $NR_ERRORS + 1`
4902: else
4903: if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
4904: echo $ac_n "checking for attr_t in curses.h""... $ac_c" 1>&6
1.1.1.6 ! root 4905: echo "configure:4906: checking for attr_t in curses.h" >&5
1.1.1.4 root 4906: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 4907: #line 4908 "configure"
1.1.1.4 root 4908: #include "confdefs.h"
4909: #include <curses.h>
4910: int main() {
4911: { attr_t a; a = A_NORMAL; }
4912: ; return 0; }
4913: EOF
1.1.1.6 ! root 4914: if { (eval echo configure:4915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4 root 4915: rm -rf conftest*
4916: echo "$ac_t""yes" 1>&6
1.1.1.2 root 4917: else
1.1.1.4 root 4918: echo "configure: failed program was:" >&5
4919: cat conftest.$ac_ext >&5
4920: rm -rf conftest*
4921:
4922: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
4923: echo "$ac_t""no" 1>&6
4924: NR_WARNINGS=`expr $NR_WARNINGS + 1`
4925: echo "Please install a newer version of libncurses if you can."
4926:
4927: fi
4928: rm -f conftest*
4929: else
4930: echo $ac_n "checking for attr_t in ncurses.h""... $ac_c" 1>&6
1.1.1.6 ! root 4931: echo "configure:4932: checking for attr_t in ncurses.h" >&5
1.1.1.4 root 4932: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 4933: #line 4934 "configure"
1.1.1.4 root 4934: #include "confdefs.h"
4935: #include <ncurses.h>
4936: int main() {
4937: { attr_t a; a = A_NORMAL; }
4938: ; return 0; }
4939: EOF
1.1.1.6 ! root 4940: if { (eval echo configure:4941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4 root 4941: rm -rf conftest*
4942: echo "$ac_t""yes" 1>&6
1.1.1.2 root 4943: else
1.1.1.4 root 4944: echo "configure: failed program was:" >&5
4945: cat conftest.$ac_ext >&5
4946: rm -rf conftest*
4947:
4948: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DDONT_HAVE_ATTR_T"
4949: echo "$ac_t""no" 1>&6
4950: NR_WARNINGS=`expr $NR_WARNINGS + 1`
4951: echo "Please install a newer version of libncurses if you can."
4952:
4953: fi
4954: rm -f conftest*
1.1.1.2 root 4955: fi
1.1.1.4 root 4956: fi
1.1.1.2 root 4957: fi
1.1.1.4 root 4958:
1.1.1.6 ! root 4959:
! 4960: echo $ac_n "checking for pthread library""... $ac_c" 1>&6
! 4961: echo "configure:4962: checking for pthread library" >&5
! 4962: TMP_SAVE_CFLAGS=$CFLAGS
! 4963: TMP_SAVE_LIBS=$LIBS
! 4964: LIBS="$LIBS -lpthread"
! 4965: cat > conftest.$ac_ext <<EOF
! 4966: #line 4967 "configure"
! 4967: #include "confdefs.h"
! 4968:
! 4969: #include "confdefs.h"
! 4970: #ifdef HAVE_SYS_TYPES_H
! 4971: #include <sys/types.h>
! 4972: #endif
! 4973: #include <pthread.h>
! 4974: int main() {
! 4975:
! 4976: void foo(void)
! 4977: {
! 4978: pthread_exit (0);
! 4979: }
! 4980: ; return 0; }
! 4981: EOF
! 4982: if { (eval echo configure:4983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 4983: rm -rf conftest*
! 4984: HAVE_PTHREAD_LIB=yes
! 4985: echo "$ac_t""yes" 1>&6
! 4986: else
! 4987: echo "configure: failed program was:" >&5
! 4988: cat conftest.$ac_ext >&5
! 4989: rm -rf conftest*
! 4990: HAVE_PTHREAD_LIB=no
! 4991: echo "$ac_t""no" 1>&6
! 4992: fi
! 4993: rm -f conftest*
! 4994: CFLAGS=$TMP_SAVE_CFLAGS
! 4995: LIBS=$TMP_SAVE_LIBS
! 4996:
! 4997: echo $ac_n "checking for DirectX""... $ac_c" 1>&6
! 4998: echo "configure:4999: checking for DirectX" >&5
! 4999: TMP_SAVE_CFLAGS=$CFLAGS
! 5000: TMP_SAVE_LIBS=$LIBS
! 5001: CFLAGS="$CFLAGS $X_CFLAGS"
! 5002: LIBS="$LIBS -lddraw"
! 5003: cat > conftest.$ac_ext <<EOF
! 5004: #line 5005 "configure"
! 5005: #include "confdefs.h"
! 5006:
! 5007: #include "confdefs.h"
! 5008: #ifdef HAVE_SYS_TYPES_H
! 5009: #include <sys/types.h>
! 5010: #endif
! 5011: #include <windows.h>
! 5012: #include <ddraw.h>
! 5013: int main() {
! 5014:
! 5015: LPDIRECTDRAW lpDD;
! 5016: IDirectDraw_CreateSurface(lpDD, 0, 0, 0);
! 5017:
! 5018: ; return 0; }
! 5019: EOF
! 5020: if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
! 5021: rm -rf conftest*
! 5022: HAVE_DIRECTX=yes
! 5023: echo "$ac_t""yes" 1>&6
! 5024: else
! 5025: echo "configure: failed program was:" >&5
! 5026: cat conftest.$ac_ext >&5
! 5027: rm -rf conftest*
! 5028: HAVE_DIRECTX=no
! 5029: echo "$ac_t""no" 1>&6
! 5030: fi
! 5031: rm -f conftest*
! 5032: CFLAGS=$TMP_SAVE_CFLAGS
! 5033: LIBS=$TMP_SAVE_LIBS
! 5034:
1.1.1.4 root 5035: DO_PROFILING=no
5036: WANT_GGI=dunno
5037: WANT_SVGALIB=dunno
5038: WANT_ASCIIART=dunno
5039: WANT_UI=dunno
5040: WANT_NCURSES_UI=no
5041: WANT_DGA=no
5042: WANT_VIDMODE=no
5043: SYSTEM_IS_ELF=dunno
5044:
5045: # Check whether --enable-profiling or --disable-profiling was given.
5046: if test "${enable_profiling+set}" = set; then
5047: enableval="$enable_profiling"
5048: DO_PROFILING=$enableval
1.1.1.2 root 5049: fi
1.1.1.4 root 5050:
5051: # Check whether --with-svgalib or --without-svgalib was given.
5052: if test "${with_svgalib+set}" = set; then
5053: withval="$with_svgalib"
5054: WANT_SVGALIB=$withval
1.1.1.2 root 5055: fi
5056:
1.1.1.4 root 5057: # Check whether --with-ggi or --without-ggi was given.
5058: if test "${with_ggi+set}" = set; then
5059: withval="$with_ggi"
5060: WANT_GGI=$withval
1.1.1.2 root 5061: fi
5062:
1.1.1.4 root 5063: # Check whether --with-asciiart or --without-asciiart was given.
5064: if test "${with_asciiart+set}" = set; then
5065: withval="$with_asciiart"
5066: WANT_ASCIIART=$withval
5067: fi
1.1.1.3 root 5068:
1.1.1.4 root 5069: # Check whether --enable-dga or --disable-dga was given.
5070: if test "${enable_dga+set}" = set; then
5071: enableval="$enable_dga"
5072: WANT_DGA=$enableval
5073: fi
5074:
5075: # Check whether --enable-vidmode or --disable-vidmode was given.
5076: if test "${enable_vidmode+set}" = set; then
5077: enableval="$enable_vidmode"
5078: WANT_VIDMODE=$enableval
5079: fi
5080:
5081: # Check whether --enable-ui or --disable-ui was given.
5082: if test "${enable_ui+set}" = set; then
5083: enableval="$enable_ui"
5084: WANT_UI=$enableval
5085: fi
5086:
5087: # Check whether --with-elf or --without-elf was given.
5088: if test "${with_elf+set}" = set; then
5089: withval="$with_elf"
5090: SYSTEM_IS_ELF=$withval
5091: fi
5092:
5093:
5094:
5095: if [ "x$WANT_DGA" = "xyes" ]; then
5096: if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_GGI" = "xyes" -o "x$WANT_ASCIIART" = "xyes" ]; then
5097: echo "You can't enable DGA for SVGAlib, GGI and ncurses targets!"
5098: NR_ERRORS=`expr $NR_ERRORS + 1`
5099: WANT_DGA=no
5100: fi
5101: fi
5102:
5103: if [ "x$WANT_DGA" = "xyes" -a "x$no_x" = "xyes" ]; then
5104: echo "Ignoring --enable-dga, since X was disabled or not found."
5105: NR_ERRORS=`expr $NR_ERRORS + 1`
5106: WANT_DGA=no
5107: fi
5108:
5109: if [ "x$WANT_DGA" = "xno" -a "x$WANT_VIDMODE" = "xyes" ]; then
5110: echo "The XF86VidMode extension can only be used in DGA mode. Disabling it."
5111: NR_ERRORS=`expr $NR_ERRORS + 1`
5112: WANT_VIDMODE=no
5113: fi
5114:
5115:
5116: if [ "x$WANT_SVGALIB" = "xyes" ]; then
5117: if [ "x$HAVE_SVGA_LIB" = "xno" ]; then
5118: echo "Could not find libsvga, disabling svgalib support."
5119: NR_ERRORS=`expr $NR_ERRORS + 1`
5120: WANT_SVGALIB=no
1.1 root 5121: else
1.1.1.4 root 5122: no_x=yes
5123: fi
5124: fi
5125:
5126: if [ "x$WANT_GGI" = "xyes" ]; then
5127: if [ "x$HAVE_GGI_LIB" = "xno" ]; then
5128: echo "Could not find libggi, disabling GGI support."
5129: NR_ERRORS=`expr $NR_ERRORS + 1`
5130: WANT_GGI=no
5131: else if [ "x$WANT_SVGALIB" = "xyes" ]; then
5132: echo "You can't configure for both SVGAlib and GGI. Disabling GGI."
5133: NR_ERRORS=`expr $NR_ERRORS + 1`
5134: WANT_GGI=no
5135: else
5136: no_x=yes
5137: fi
5138: fi
5139: fi
5140:
5141: if [ "x$WANT_ASCIIART" = "xyes" ]; then
5142: if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
5143: echo "Could not find libncurses, disabling ascii art support."
5144: NR_ERRORS=`expr $NR_ERRORS + 1`
5145: WANT_ASCIIART=no
5146: else if [ "x$WANT_SVGALIB" = "xyes" -o "x$WANT_GGI" = "xyes" ]; then
5147: echo "You can't configure for both ncurses and another target. Disabling ncurses."
5148: NR_ERRORS=`expr $NR_ERRORS + 1`
5149: WANT_ASCIIART=no
5150: else
5151: no_x=yes
5152: fi
5153: fi
5154: fi
5155:
5156:
5157: if [ "x$WANT_DGA" = "xyes" ]; then
5158: TMP_SAVE_LIBS=$LIBS
5159: LIBS="$X_LIBS $LIBS"
5160: echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
1.1.1.6 ! root 5161: echo "configure:5162: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
1.1.1.4 root 5162: ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
1.1.1.2 root 5163: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5164: echo $ac_n "(cached) $ac_c" 1>&6
5165: else
5166: ac_save_LIBS="$LIBS"
1.1.1.4 root 5167: LIBS="-lXxf86dga $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
1.1.1.2 root 5168: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 5169: #line 5170 "configure"
1.1.1.2 root 5170: #include "confdefs.h"
5171: /* Override any gcc2 internal prototype to avoid an error. */
5172: /* We use char because int might match the return type of a gcc2
5173: builtin and then its argument prototype would still apply. */
1.1.1.4 root 5174: char XF86DGAQueryExtension();
1.1.1.2 root 5175:
1.1.1.4 root 5176: int main() {
5177: XF86DGAQueryExtension()
1.1.1.2 root 5178: ; return 0; }
5179: EOF
1.1.1.6 ! root 5180: if { (eval echo configure:5181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.2 root 5181: rm -rf conftest*
5182: eval "ac_cv_lib_$ac_lib_var=yes"
5183: else
1.1.1.4 root 5184: echo "configure: failed program was:" >&5
5185: cat conftest.$ac_ext >&5
1.1.1.2 root 5186: rm -rf conftest*
5187: eval "ac_cv_lib_$ac_lib_var=no"
5188: fi
5189: rm -f conftest*
5190: LIBS="$ac_save_LIBS"
5191:
5192: fi
5193: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5194: echo "$ac_t""yes" 1>&6
1.1.1.4 root 5195: HAVE_DGA=yes
1.1.1.2 root 5196: else
5197: echo "$ac_t""no" 1>&6
1.1.1.4 root 5198: HAVE_DGA=no
1.1.1.2 root 5199: fi
5200:
1.1.1.4 root 5201: LIBS=$TMP_SAVE_LIBS
5202: if [ "x$HAVE_DGA" = "xno" ]; then
5203: echo "Could not find DGA extension, ignoring --enable-dga."
5204: NR_ERRORS=`expr $NR_ERRORS + 1`
5205: WANT_DGA=no
1.1.1.3 root 5206: fi
1.1.1.2 root 5207: fi
5208:
1.1.1.4 root 5209: if [ "x$WANT_VIDMODE" = "xyes" ]; then
5210: TMP_SAVE_LIBS=$LIBS
5211: LIBS="$X_LIBS $LIBS"
5212: echo $ac_n "checking for XF86VidModeQueryExtension in -lXxf86vm""... $ac_c" 1>&6
1.1.1.6 ! root 5213: echo "configure:5214: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
1.1.1.4 root 5214: ac_lib_var=`echo Xxf86vm'_'XF86VidModeQueryExtension | sed 'y%./+-%__p_%'`
1.1.1.3 root 5215: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5216: echo $ac_n "(cached) $ac_c" 1>&6
5217: else
5218: ac_save_LIBS="$LIBS"
1.1.1.4 root 5219: LIBS="-lXxf86vm $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
1.1.1.3 root 5220: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 5221: #line 5222 "configure"
1.1.1.3 root 5222: #include "confdefs.h"
5223: /* Override any gcc2 internal prototype to avoid an error. */
5224: /* We use char because int might match the return type of a gcc2
5225: builtin and then its argument prototype would still apply. */
1.1.1.4 root 5226: char XF86VidModeQueryExtension();
1.1.1.3 root 5227:
1.1.1.4 root 5228: int main() {
5229: XF86VidModeQueryExtension()
1.1.1.3 root 5230: ; return 0; }
5231: EOF
1.1.1.6 ! root 5232: if { (eval echo configure:5233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.3 root 5233: rm -rf conftest*
5234: eval "ac_cv_lib_$ac_lib_var=yes"
5235: else
1.1.1.4 root 5236: echo "configure: failed program was:" >&5
5237: cat conftest.$ac_ext >&5
1.1.1.3 root 5238: rm -rf conftest*
5239: eval "ac_cv_lib_$ac_lib_var=no"
5240: fi
5241: rm -f conftest*
5242: LIBS="$ac_save_LIBS"
5243:
5244: fi
5245: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5246: echo "$ac_t""yes" 1>&6
1.1.1.4 root 5247: HAVE_VIDMODE=yes
1.1.1.3 root 5248: else
5249: echo "$ac_t""no" 1>&6
1.1.1.4 root 5250: HAVE_VIDMODE=no
1.1.1.3 root 5251: fi
5252:
1.1.1.4 root 5253: LIBS=$TMP_SAVE_LIBS
5254: if [ "x$HAVE_VIDMODE" = "xno" ]; then
5255: echo "Could not find VidMode extension, ignoring --enable-vidmode."
5256: NR_ERRORS=`expr $NR_ERRORS + 1`
5257: WANT_VIDMODE=no
1.1.1.3 root 5258: fi
1.1.1.4 root 5259: fi
5260:
5261: # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
5262: if test "${with_gtk_prefix+set}" = set; then
5263: withval="$with_gtk_prefix"
5264: gtk_config_prefix="$withval"
5265: else
5266: gtk_config_prefix=""
5267: fi
5268:
5269: # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
5270: if test "${with_gtk_exec_prefix+set}" = set; then
5271: withval="$with_gtk_exec_prefix"
5272: gtk_config_exec_prefix="$withval"
5273: else
5274: gtk_config_exec_prefix=""
5275: fi
5276:
5277: # Check whether --enable-gtktest or --disable-gtktest was given.
5278: if test "${enable_gtktest+set}" = set; then
5279: enableval="$enable_gtktest"
5280: :
5281: else
5282: enable_gtktest=yes
5283: fi
5284:
5285:
5286: if test x$gtk_config_exec_prefix != x ; then
5287: gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
5288: if test x${GTK_CONFIG+set} != xset ; then
5289: GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
5290: fi
5291: fi
5292: if test x$gtk_config_prefix != x ; then
5293: gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
5294: if test x${GTK_CONFIG+set} != xset ; then
5295: GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
5296: fi
5297: fi
5298:
5299: # Extract the first word of "gtk-config", so it can be a program name with args.
5300: set dummy gtk-config; ac_word=$2
5301: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.6 ! root 5302: echo "configure:5303: checking for $ac_word" >&5
1.1.1.4 root 5303: if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
5304: echo $ac_n "(cached) $ac_c" 1>&6
5305: else
5306: case "$GTK_CONFIG" in
5307: /*)
5308: ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
5309: ;;
5310: *)
5311: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5312: for ac_dir in $PATH; do
5313: test -z "$ac_dir" && ac_dir=.
5314: if test -f $ac_dir/$ac_word; then
5315: ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
5316: break
5317: fi
5318: done
5319: IFS="$ac_save_ifs"
5320: test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
5321: ;;
5322: esac
5323: fi
5324: GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
5325: if test -n "$GTK_CONFIG"; then
5326: echo "$ac_t""$GTK_CONFIG" 1>&6
5327: else
5328: echo "$ac_t""no" 1>&6
5329: fi
5330:
5331: min_gtk_version=0.99.7
5332: echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1.1.1.6 ! root 5333: echo "configure:5334: checking for GTK - version >= $min_gtk_version" >&5
1.1.1.4 root 5334: no_gtk=""
5335: if test "$GTK_CONFIG" = "no" ; then
5336: no_gtk=yes
5337: else
5338: GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
5339: GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
5340: gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
5341: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
5342: gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
5343: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
5344: gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
5345: sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
5346: if test "x$enable_gtktest" = "xyes" ; then
5347: ac_save_CFLAGS="$CFLAGS"
5348: ac_save_LIBS="$LIBS"
5349: CFLAGS="$CFLAGS $GTK_CFLAGS"
5350: LIBS="$LIBS $GTK_LIBS"
5351: rm -f conf.gtktest
5352: if test "$cross_compiling" = yes; then
5353: echo $ac_n "cross compiling; assumed OK... $ac_c"
5354: else
5355: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 5356: #line 5357 "configure"
1.1.1.4 root 5357: #include "confdefs.h"
5358:
5359: #include <gtk/gtk.h>
5360: #include <stdio.h>
5361:
5362: int
5363: main ()
1.1.1.3 root 5364: {
1.1.1.4 root 5365: int major, minor, micro;
5366:
5367: system ("touch conf.gtktest");
5368:
5369: if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
5370: printf("%s, bad version string\n", "$min_gtk_version");
5371: exit(1);
5372: }
5373:
5374: if ((gtk_major_version != $gtk_config_major_version) ||
5375: (gtk_minor_version != $gtk_config_minor_version) ||
5376: (gtk_micro_version != $gtk_config_micro_version))
5377: {
5378: printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
5379: $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
5380: gtk_major_version, gtk_minor_version, gtk_micro_version);
5381: printf ("*** was found! If gtk-config was correct, then it is best\n");
5382: printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
5383: printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
5384: printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
5385: printf("*** required on your system.\n");
5386: printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
5387: printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
5388: printf("*** before re-running configure\n");
5389: }
5390: else
5391: {
5392: if ((gtk_major_version > major) ||
5393: ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
5394: ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
5395: {
5396: return 0;
5397: }
5398: else
5399: {
5400: printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
5401: gtk_major_version, gtk_minor_version, gtk_micro_version);
5402: printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
5403: major, minor, micro);
5404: printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
5405: printf("***\n");
5406: printf("*** If you have already installed a sufficiently new version, this error\n");
5407: printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
5408: printf("*** being found. The easiest way to fix this is to remove the old version\n");
5409: printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
5410: printf("*** correct copy of gtk-config. (In this case, you will have to\n");
5411: printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
5412: printf("*** so that the correct libraries are found at run-time))\n");
5413: }
5414: }
5415: return 1;
1.1.1.3 root 5416: }
1.1.1.4 root 5417:
5418: EOF
1.1.1.6 ! root 5419: if { (eval echo configure:5420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1.1.1.4 root 5420: then
5421: :
5422: else
5423: echo "configure: failed program was:" >&5
5424: cat conftest.$ac_ext >&5
5425: rm -fr conftest*
5426: no_gtk=yes
5427: fi
5428: rm -fr conftest*
5429: fi
5430:
5431: CFLAGS="$ac_save_CFLAGS"
5432: LIBS="$ac_save_LIBS"
5433: fi
5434: fi
5435: if test "x$no_gtk" = x ; then
5436: echo "$ac_t""yes" 1>&6
5437: :
5438: else
5439: echo "$ac_t""no" 1>&6
5440: if test "$GTK_CONFIG" = "no" ; then
5441: echo "*** The gtk-config script installed by GTK could not be found"
5442: echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
5443: echo "*** your path, or set the GTK_CONFIG environment variable to the"
5444: echo "*** full path to gtk-config."
5445: else
5446: if test -f conf.gtktest ; then
5447: :
5448: else
5449: echo "*** Could not run GTK test program, checking why..."
5450: CFLAGS="$CFLAGS $GTK_CFLAGS"
5451: LIBS="$LIBS $GTK_LIBS"
5452: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 5453: #line 5454 "configure"
1.1.1.4 root 5454: #include "confdefs.h"
5455:
5456: #include <gtk/gtk.h>
5457: #include <stdio.h>
5458:
5459: int main() {
5460: return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
5461: ; return 0; }
1.1.1.3 root 5462: EOF
1.1.1.6 ! root 5463: if { (eval echo configure:5464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.4 root 5464: rm -rf conftest*
5465: echo "*** The test program compiled, but did not run. This usually means"
5466: echo "*** that the run-time linker is not finding GTK or finding the wrong"
5467: echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
5468: echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
5469: echo "*** to the installed location Also, make sure you have run ldconfig if that"
5470: echo "*** is required on your system"
5471: echo "***"
5472: echo "*** If you have an old version installed, it is best to remove it, although"
5473: echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
5474: echo "***"
5475: echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
5476: echo "*** came with the system with the command"
5477: echo "***"
5478: echo "*** rpm --erase --nodeps gtk gtk-devel"
5479: else
5480: echo "configure: failed program was:" >&5
5481: cat conftest.$ac_ext >&5
5482: rm -rf conftest*
5483: echo "*** The test program failed to compile or link. See the file config.log for the"
5484: echo "*** exact error that occured. This usually means GTK was incorrectly installed"
5485: echo "*** or that you have moved GTK since it was installed. In the latter case, you"
5486: echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
5487: fi
5488: rm -f conftest*
5489: CFLAGS="$ac_save_CFLAGS"
5490: LIBS="$ac_save_LIBS"
5491: fi
5492: fi
5493: GTK_CFLAGS=""
5494: GTK_LIBS=""
5495: :
1.1.1.3 root 5496: fi
1.1.1.4 root 5497:
5498:
5499: rm -f conf.gtktest
1.1.1.3 root 5500:
1.1.1.4 root 5501:
5502:
5503: SHM_SUPPORT_LINKS=0
1.1.1.6 ! root 5504: if [ "x$no_x" != "xyes" -a "x$ac_cv_header_sys_ipc_h" = "xyes" -a "x$ac_cv_header_sys_shm_h" = "xyes" ]; then
1.1.1.4 root 5505: echo $ac_n "checking whether the X11 MIT-SHM extension can be compiled in""... $ac_c" 1>&6
1.1.1.6 ! root 5506: echo "configure:5507: checking whether the X11 MIT-SHM extension can be compiled in" >&5
1.1.1.4 root 5507: TMP_SAVE_CFLAGS=$CFLAGS
5508: TMP_SAVE_LIBS=$LIBS
5509: CFLAGS="$CFLAGS $X_CFLAGS"
5510: LIBS="$X_LIBS $LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"
5511: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 5512: #line 5513 "configure"
1.1.1.2 root 5513: #include "confdefs.h"
5514:
1.1.1.4 root 5515: #include "confdefs.h"
5516: #ifdef HAVE_SYS_TYPES_H
5517: #include <sys/types.h>
5518: #endif
5519: #include <X11/Xlib.h>
5520: #include <X11/Xutil.h>
5521: #include <X11/keysym.h>
5522: #include <X11/cursorfont.h>
5523: #include <sys/ipc.h>
5524: #include <sys/shm.h>
5525: #include <X11/extensions/XShm.h>
5526: int main() {
5527:
5528: static XShmSegmentInfo shminfo;
5529: static Display *display;
5530: void foo(void)
5531: {
5532: XShmAttach(display, &shminfo);
5533: XSync(display,0);
5534: shmctl(shminfo.shmid, IPC_RMID, 0);
5535: }
1.1.1.2 root 5536: ; return 0; }
5537: EOF
1.1.1.6 ! root 5538: if { (eval echo configure:5539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1.1.1.2 root 5539: rm -rf conftest*
1.1.1.4 root 5540: SHM_SUPPORT_LINKS=1
5541: echo "$ac_t""yes" 1>&6
1.1 root 5542: else
1.1.1.4 root 5543: echo "configure: failed program was:" >&5
5544: cat conftest.$ac_ext >&5
1.1.1.2 root 5545: rm -rf conftest*
1.1.1.4 root 5546: SHM_SUPPORT_LINKS=0
5547: echo "$ac_t""no" 1>&6
1.1 root 5548: fi
1.1.1.2 root 5549: rm -f conftest*
1.1.1.4 root 5550: CFLAGS=$TMP_SAVE_CFLAGS
5551: LIBS=$TMP_SAVE_LIBS
1.1 root 5552: fi
5553:
1.1.1.4 root 5554: MATHLIB=-lm
5555: DEBUGOBJS="debug.o"
5556:
5557: echo $ac_n "checking which target to use""... $ac_c" 1>&6
1.1.1.6 ! root 5558: echo "configure:5559: checking which target to use" >&5
1.1.1.4 root 5559:
1.1.1.6 ! root 5560: if [ "x$HAVE_DIRECTX" = "xyes" ]; then
! 5561: echo "$ac_t""Win32/DirectX" 1>&6
! 5562: MATHLIB=
! 5563: TARGET=win32
! 5564: TARGETDEP=t-win32.h
! 5565: GFXOBJS="osdep/win32.o osdep/win32gui.o osdep/parser.o osdep/keyboard.o osdep/posixemu.o"
! 5566: RESOBJS="osdep/winuae.res"
! 5567: else if [ "x$HAVE_BEOS" = "xyes" ]; then
1.1.1.4 root 5568: echo "$ac_t""BeOS" 1>&6
5569: MATHLIB=
5570: TARGET=beos
5571: TARGETDEP=t-beos.h
5572: GFXOBJS=osdep/beos.o
5573: GUIOBJS=
5574: OPTIMIZE_CFLAGS=-O7
5575: else if [ "x$HAVE_POS" = "xyes" ]; then
5576: echo "$ac_t""p.OS" 1>&6
5577: TARGET=p_os
5578: TARGETDEP=t-pos.h
5579: GFXOBJS="osdep/pos-win.o osdep/pos-disk.o osdep/pos-rexx.o"
5580: GUIOBJS="osdep/pos-gui.o"
5581: else if [ "x$HAVE_AMIGA_LIB" = "xyes" ]; then
5582: echo "$ac_t""AmigaOS" 1>&6
5583: TARGET=amigaos
5584: TARGETDEP=t-amiga.h
5585: GFXOBJS="osdep/ami-win.o osdep/ami-disk.o osdep/ami-rexx.o osdep/ami-appw.o"
5586: GUIOBJS="osdep/ami-gui.o"
5587: else if [ "x$HAVE_NEXT_LIB" = "xyes" ]; then
5588: echo "$ac_t""NeXTStep" 1>&6
5589: MATHLIB=
5590: TARGET=next
5591: GFXOBJS="NeXTwin.o"
5592: GUIOBJS=
5593: TARGETDEP=t-next.h
5594: LIBRARIES="-sectcreate __ICON __header ../Uae.app/Uae.iconheader -segprot __ICON r r -sectcreate __ICON app ../Uae.app/Uae.tiff -lMedia_s -lNeXT_s"
5595: else
5596:
5597: if [ "x$no_x" = "xyes" ]; then
5598: if [ "x$WANT_SVGALIB" != "xyes" -a "x$WANT_GGI" != "xyes" -a "x$WANT_ASCIIART" != "xyes" ]; then
5599: if [ "x$WANT_SVGALIB" != "xno" -a "x$HAVE_SVGA_LIB" = "xyes" ]; then
5600: WANT_SVGALIB=yes
5601: else if [ "x$WANT_GGI" != "xno" -a "x$HAVE_GGI_LIB" = "xyes" ]; then
5602: WANT_GGI=yes
5603: else if [ "x$WANT_ASCIIART" != "xno" -a "x$HAVE_NCURSES_LIB" = "xyes" ]; then
5604: WANT_ASCIIART=yes
5605: fi
5606: fi
5607: fi
5608: fi
1.1.1.3 root 5609: fi
1.1.1.4 root 5610:
5611: if [ "x$WANT_GGI" = "xyes" ]; then
5612: echo "$ac_t""GGI" 1>&6
5613: TARGET=ggilib
5614: TARGETDEP=t-ggi.h
5615: WANT_NCURSES_UI=yes
5616: GFXOBJS=ggi.o
5617: LIBRARIES="-ldl -lggi"
5618: LDFLAGS="-rdynamic $LDFLAGS"
5619: else if [ "x$WANT_SVGALIB" = "xyes" ]; then
5620: echo "$ac_t""SVGAlib" 1>&6
5621: TARGET=svgalib
5622: TARGETDEP=t-svgalib.h
5623: GFXOBJS=svga.o
5624: LIBRARIES="-lvga"
5625: WANT_NCURSES_UI=yes
5626: else if [ "x$WANT_ASCIIART" = "xyes" ]; then
5627: echo "$ac_t""ncurses ASCII art" 1>&6
5628: TARGET=asciiart
5629: TARGETDEP=t-ascii.h
5630: GFXOBJS="ncurses.o"
5631: GUIOBJS="tui.o svgancui.o"
5632: LIBRARIES="-lncurses"
5633: else if [ "x$no_x" = "xyes" ]; then
5634: echo "$ac_t""Ummm...." 1>&6
5635: echo "Fatal error: No graphics system found, don't know what target to use."
5636: exit 1
5637: else
5638: echo "$ac_t""X11" 1>&6
5639: TARGET=x11
5640: TARGETDEP=t-x11.h
5641: GFXOBJS=xwin.o
5642: GUIOBJS=nogui.o
5643:
5644: LIBRARIES="$X_LIBS $X_PRE_LIBS"
5645: if [ "x$WANT_DGA" = "xyes" ]; then
5646: LIBRARIES="$LIBRARIES -lXxf86dga"
5647: X_CFLAGS="$X_CFLAGS -DUSE_DGA_EXTENSION"
5648: if [ "x$WANT_VIDMODE" = "xyes" ]; then
5649: LIBRARIES="$LIBRARIES -lXxf86vm"
5650: X_CFLAGS="$X_CFLAGS -DUSE_VIDMODE_EXTENSION"
5651: fi
5652: fi
5653: LIBRARIES="$LIBRARIES -lXext -lX11 $X_EXTRA_LIBS"
5654:
5655: if [ "x$WANT_UI" != "xno" ]; then
5656: if [ "x$no_gtk" = "xyes" ]; then
5657: echo "Did not find gtk+, disabling user interface"
5658: GTK_CFLAGS=
5659: GTK_LIBS=
5660: if [ "x$WANT_UI" = "xyes" ]; then
5661: NR_ERRORS=`expr $NR_ERRORS + 1`
5662: fi
1.1 root 5663: else
1.1.1.4 root 5664: echo "Using gtk+ GUI."
5665: NEED_THREAD_SUPPORT=yes
5666: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_GTK_GUI"
5667: GUIOBJS=gtkui.o
1.1 root 5668: fi
5669: fi
1.1.1.4 root 5670: fi
5671: fi
5672: fi
1.1 root 5673: fi
5674: fi
1.1.1.3 root 5675: fi
5676: fi
5677: fi
1.1.1.6 ! root 5678: fi
1.1 root 5679:
1.1.1.4 root 5680: if [ "x$WANT_NCURSES_UI" = "xyes" ]; then
5681: if [ "x$HAVE_NCURSES_LIB" = "xno" ]; then
5682: if [ "x$WANT_UI" = "xyes" ]; then
5683: echo "ncurses is unavailable, can't provide a user interface"
5684: NR_ERRORS=`expr $NR_ERRORS + 1`
5685: fi
5686: WANT_UI=no
5687: fi
5688: if [ "x$WANT_UI" != "xno" ]; then
5689: GUIOBJS="tui.o svgancui.o"
5690: LIBRARIES="$LIBRARIES -lncurses"
5691: ADDITIONAL_CFLAGS="$ADDITIONAL_CFLAGS -DUSING_CURSES_UI"
5692: if [ "x$ac_cv_header_ncurses_h" = "xno" ]; then
5693: echo "Found libncurses, but no ncurses.h. This is normal with recent versions"
5694: echo "of ncurses, but it might indicate a problem with older versions."
5695: NR_WARNINGS=`expr $NR_WARNINGS + 1`
5696: fi
5697: else
5698: GUIOBJS=nogui.o
5699: fi
1.1.1.3 root 5700: fi
5701:
1.1.1.4 root 5702: GFXOBJS="$GFXOBJS $GUIOBJS"
5703:
5704:
5705: MACHDEP=md-generic
5706: OSDEP=od-generic
5707: THREADDEP=td-none
5708: SOUNDDEP=od-generic
5709:
1.1.1.6 ! root 5710: MD_SUPPORT=machdep/support.c
! 5711: OD_JOYSTICK=osdep/joystick.c
! 5712: SD_SOUND=sounddep/sound.c
! 5713: P2C=p2c.o
! 5714:
1.1.1.4 root 5715: USE_PENGUINS=no
5716: USE_THREADS=no
5717: USE_SOUND=no
5718: USE_FILE_SOUND=no
5719:
1.1.1.6 ! root 5720: USE_UNDERSCORE=dunno
! 5721:
1.1.1.4 root 5722: HAVELINUX=no
1.1.1.6 ! root 5723: HAVEBSD=no
1.1.1.4 root 5724: HAVEGCC27=no
1.1.1.6 ! root 5725: HAVEGAS=no
1.1.1.4 root 5726: HAVEI386=no
5727: HAVE68K=no
5728: HAVEGLIBC2=no
1.1.1.3 root 5729:
1.1 root 5730: ASMOBJS=
1.1.1.4 root 5731: CPUOBJS=cpuemu.o
1.1.1.3 root 5732:
1.1.1.4 root 5733: echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6
1.1.1.6 ! root 5734: echo "configure:5735: checking for GCC 2.7 or higher" >&5
! 5735: cat > conftest.$ac_ext <<EOF
! 5736: #line 5737 "configure"
! 5737: #include "confdefs.h"
! 5738: #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
! 5739: yes
1.1.1.3 root 5740: #endif
5741:
1.1.1.6 ! root 5742: EOF
! 5743: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 5744: egrep "yes" >/dev/null 2>&1; then
! 5745: rm -rf conftest*
! 5746: echo "$ac_t""yes" 1>&6; HAVEGCC27=yes
1.1.1.3 root 5747: else
1.1.1.6 ! root 5748: rm -rf conftest*
1.1.1.4 root 5749: echo "$ac_t""no" 1>&6
1.1.1.6 ! root 5750: fi
! 5751: rm -f conftest*
! 5752:
! 5753:
! 5754: if test $ac_cv_prog_gcc = yes; then
! 5755: if test $HAVEGCC27 != yes; then
1.1.1.3 root 5756: echo "I suggest you upgrade to at least version 2.7 of GCC"
1.1.1.6 ! root 5757: fi
! 5758: else
! 5759: if test $uae_cv_prog_cc_watcom != yes; then
1.1.1.3 root 5760: echo "Couldn't find GCC. UAE may or may not compile and run correctly."
1.1.1.4 root 5761: NR_WARNINGS=`expr $NR_WARNINGS + 1`
1.1.1.3 root 5762: fi
5763: fi
5764:
1.1.1.4 root 5765: if [ "x$ac_cv_header_features_h" = "xyes" ]; then
1.1.1.6 ! root 5766: echo $ac_n "checking for glibc-2.0 or higher""... $ac_c" 1>&6
! 5767: echo "configure:5768: checking for glibc-2.0 or higher" >&5
! 5768: cat > conftest.$ac_ext <<EOF
! 5769: #line 5770 "configure"
! 5770: #include "confdefs.h"
1.1.1.4 root 5771: #include <features.h>
1.1.1.6 ! root 5772: #if __GLIBC__ - 1 >= 1
! 5773: yes
1.1.1.4 root 5774: #endif
5775:
1.1.1.6 ! root 5776: EOF
! 5777: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 5778: egrep "yes" >/dev/null 2>&1; then
! 5779: rm -rf conftest*
! 5780: echo "$ac_t""yes" 1>&6; HAVEGLIBC2=yes
1.1.1.3 root 5781: else
1.1.1.6 ! root 5782: rm -rf conftest*
1.1.1.4 root 5783: echo "$ac_t""no" 1>&6
5784: fi
1.1.1.6 ! root 5785: rm -f conftest*
! 5786:
! 5787: fi
1.1.1.4 root 5788:
1.1.1.6 ! root 5789: if test $ac_cv_prog_gcc = yes; then
1.1.1.4 root 5790: WARNING_CFLAGS="-Wall -Wno-unused -Wno-format -W -Wmissing-prototypes -Wstrict-prototypes"
5791: OPTIMIZE_CFLAGS="-O2 -fomit-frame-pointer"
5792: CFLAGS=
5793: fi
5794:
5795: if [ "x$DO_PROFILING" = "xyes" ]; then
5796: if [ "x$CC" = "xgcc" ]; then
5797: OPTIMIZE_CFLAGS="-O"
5798: DEBUG_CFLAGS="-g -fno-inline -fno-omit-frame-pointer -pg -DUSE_PROFILING"
5799: LDFLAGS="-pg"
5800: else
5801: DO_PROFILING=no
5802: echo "Don't know how to set up profiling for your compiler."
5803: NR_ERRORS=`expr $NR_ERRORS + 1`
1.1.1.3 root 5804: fi
5805: fi
5806:
1.1.1.4 root 5807: CFLAGS="$OPTIMIZE_CFLAGS $DEBUG_CFLAGS $WARNING_CFLAGS $CFLAGS $ADDITIONAL_CFLAGS"
5808:
5809: if [ "x$HAVEGCC27" = "xyes" ]; then
1.1.1.3 root 5810: CFLAGS="$CFLAGS -DGCCCONSTFUNC=\"__attribute__((const))\""
5811: else
5812: CFLAGS="$CFLAGS -DGCCCONSTFUNC="
5813: fi
1.1.1.2 root 5814:
1.1.1.6 ! root 5815: echo $ac_n "checking for x86 target CPU""... $ac_c" 1>&6
! 5816: echo "configure:5817: checking for x86 target CPU" >&5
! 5817: cat > conftest.$ac_ext <<EOF
! 5818: #line 5819 "configure"
! 5819: #include "confdefs.h"
! 5820:
1.1.1.3 root 5821: #ifdef __i386__
1.1.1.6 ! root 5822: yes
1.1.1.3 root 5823: #endif
1.1 root 5824:
1.1.1.6 ! root 5825: EOF
! 5826: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 5827: egrep "yes" >/dev/null 2>&1; then
! 5828: rm -rf conftest*
! 5829: echo "$ac_t""yes" 1>&6; HAVEI386=yes
1.1.1.3 root 5830: else
1.1.1.6 ! root 5831: rm -rf conftest*
! 5832: echo "$ac_t""no" 1>&6
! 5833: fi
! 5834: rm -f conftest*
! 5835:
! 5836:
! 5837: echo $ac_n "checking for m68k target CPU""... $ac_c" 1>&6
! 5838: echo "configure:5839: checking for m68k target CPU" >&5
! 5839: cat > conftest.$ac_ext <<EOF
! 5840: #line 5841 "configure"
! 5841: #include "confdefs.h"
! 5842:
! 5843: #ifdef __m68k__
! 5844: yes
! 5845: #endif
1.1.1.3 root 5846:
1.1.1.6 ! root 5847: EOF
! 5848: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 5849: egrep "yes" >/dev/null 2>&1; then
! 5850: rm -rf conftest*
! 5851: echo "$ac_t""yes" 1>&6; HAVEI386=yes
! 5852: else
! 5853: rm -rf conftest*
! 5854: echo "$ac_t""no" 1>&6
! 5855: fi
1.1.1.3 root 5856: rm -f conftest*
5857:
1.1.1.6 ! root 5858:
1.1.1.4 root 5859: if MACHINE=`uname -a 2>/dev/null`; then
5860: case "$MACHINE" in
5861: Linux*)
5862: HAVELINUX=yes
5863: ;;
5864: esac
5865: fi
5866:
1.1.1.3 root 5867:
1.1.1.6 ! root 5868: if [ "x$HAVE_MACHINE_JOYSTICK_H" = "xyes" ]; then
! 5869: cat > conftest.$ac_ext <<EOF
! 5870: #line 5871 "configure"
! 5871: #include "confdefs.h"
! 5872: #include <machine/joystick.h>
! 5873: int main() {
! 5874: { struct joystick a; }
! 5875: ; return 0; }
! 5876: EOF
! 5877: if { (eval echo configure:5878: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
! 5878: rm -rf conftest*
! 5879: OD_JOYSTICK=$abssrcdir/src/od-linux/joystick.c
! 5880: else
! 5881: echo "configure: failed program was:" >&5
! 5882: cat conftest.$ac_ext >&5
! 5883: fi
! 5884: rm -f conftest*
! 5885: fi
! 5886:
1.1.1.4 root 5887:
1.1.1.6 ! root 5888: echo $ac_n "checking for GAS .p2align feature""... $ac_c" 1>&6
! 5889: echo "configure:5890: checking for GAS .p2align feature" >&5
! 5890: cat >conftest.S << EOF
! 5891: .text
! 5892: .p2align 5
1.1 root 5893: EOF
1.1.1.6 ! root 5894: if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVEGAS=yes; fi
! 5895: echo "$ac_t""$HAVEGAS" 1>&6
1.1.1.4 root 5896:
1.1.1.6 ! root 5897: echo $ac_n "checking whether assembler symbols need an underscore""... $ac_c" 1>&6
! 5898: echo "configure:5899: checking whether assembler symbols need an underscore" >&5
! 5899: cat >conftest1.S << EOF
! 5900: .text
! 5901: .globl _symbol
! 5902: _symbol:
! 5903: EOF
! 5904: cat >conftest2.c << EOF
! 5905: extern void symbol ();
! 5906: int main ()
! 5907: {
! 5908: symbol ();
! 5909: }
! 5910: EOF
! 5911: $CC conftest1.S -c -o conftest1.o >/dev/null 2>&1
! 5912: $CC conftest2.c -c -o conftest2.o >/dev/null 2>&1
! 5913: if $CC conftest1.o conftest2.o -o conftest >/dev/null 2>&1; then
! 5914: USE_UNDERSCORE=yes
! 5915: CFLAGS="$CFLAGS -DUSE_UNDERSCORE"
1.1.1.4 root 5916: else
1.1.1.6 ! root 5917: USE_UNDERSCORE=no
1.1.1.4 root 5918: fi
1.1.1.6 ! root 5919: echo "$ac_t""$USE_UNDERSCORE" 1>&6
1.1.1.4 root 5920:
5921: rm -f conftest*
5922:
5923: # Check whether --enable-threads or --disable-threads was given.
5924: if test "${enable_threads+set}" = set; then
5925: enableval="$enable_threads"
5926: USE_THREADS=$enableval
5927: fi
5928:
5929: # Check whether --enable-penguins or --disable-penguins was given.
5930: if test "${enable_penguins+set}" = set; then
5931: enableval="$enable_penguins"
5932: USE_PENGUINS=$enableval
5933: fi
5934:
5935:
5936: if [ "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
5937: if [ "x$USE_THREADS" != "xyes" -a "x$USE_PENGUINS" != "xyes" ]; then
5938: echo "The gtk+ GUI needs threads; enabling thread support."
5939: fi
5940: fi
5941:
5942: if [ "x$USE_THREADS" = "xyes" -o "x$USE_PENGUINS" = "xyes" -o "x$NEED_THREAD_SUPPORT" = "xyes" ]; then
5943: if [ "x$HAVE_PTHREAD_LIB" = "xyes" ]; then
5944: THREADDEP=td-posix
5945: CFLAGS="$CFLAGS -DSUPPORT_THREADS -D_REENTRANT"
5946: LIBS="$LIBS -lpthread"
5947: if [ "x$HAVE_POSIX4_LIB" = "xyes" ]; then
5948: LIBS="$LIBS -lposix4"
5949: fi
5950:
5951: if [ "x$USE_THREADS" = "xyes" ]; then
5952: CFLAGS="$CFLAGS -DUAE_FILESYS_THREADS"
5953: fi
5954: if [ "x$USE_PENGUINS" = "xyes" ]; then
5955: CFLAGS="$CFLAGS -DSUPPORT_PENGUINS"
5956: fi
5957:
5958: if [ "x$HAVELINUX" = "xno" -o "x$HAVEGLIBC2" = "xno" ]; then
1.1.1.6 ! root 5959: echo "Thread support has only been tested on Linux systems with glibc-2.0"
1.1.1.4 root 5960: NR_WARNINGS=`expr $NR_WARNINGS + 1`
5961: fi
5962: if [ "x$TARGET" = "xsvgalib" ]; then
5963: echo "If you didn't compile a fixed version of SVGAlib then thread support"
5964: echo "in UAE will lock your machine real hard."
5965: NR_WARNINGS=`expr $NR_WARNINGS + 1`
5966: fi
1.1 root 5967: else
1.1.1.4 root 5968: echo "You tried to enable threads, but I couldn't find a thread library!"
5969: NR_ERRORS=`expr $NR_ERRORS + 1`
1.1 root 5970: fi
1.1.1.3 root 5971: fi
5972:
5973:
1.1.1.4 root 5974: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
5975: SAVECFLAGS=$CFLAGS
5976: CFLAGS="$CFLAGS -mno-schedule-prologue"
5977: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 5978: #line 5979 "configure"
1.1.1.4 root 5979: #include "confdefs.h"
5980:
5981: int main() {
5982: int main(){return 0;}
5983: ; return 0; }
5984: EOF
1.1.1.6 ! root 5985: if { (eval echo configure:5986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4 root 5986: rm -rf conftest*
5987: NO_SCHED_CFLAGS="-mno-schedule-prologue"
5988: else
5989: echo "configure: failed program was:" >&5
5990: cat conftest.$ac_ext >&5
5991: fi
5992: rm -f conftest*
5993: CFLAGS=$SAVECFLAGS
5994: fi
5995:
5996:
5997: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
5998: SAVECFLAGS=$CFLAGS
5999: CFLAGS="$CFLAGS -fno-exceptions"
6000: NOEXCEPTIONS=no
6001: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 6002: #line 6003 "configure"
1.1.1.4 root 6003: #include "confdefs.h"
6004:
6005: int main() {
6006: int main(){return 0;}
6007: ; return 0; }
6008: EOF
1.1.1.6 ! root 6009: if { (eval echo configure:6010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4 root 6010: rm -rf conftest*
6011: NOEXCEPTIONS=yes
6012: else
6013: echo "configure: failed program was:" >&5
6014: cat conftest.$ac_ext >&5
6015: fi
6016: rm -f conftest*
6017: if [ "x$NOEXCEPTIONS" = "xno" ]; then
6018: CFLAGS=$SAVECFLAGS
6019: fi
6020: fi
6021:
6022:
6023:
6024: if [ "x$HAVEGCC27" = "xyes" -a "x$HAVEI386" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
6025: MACHDEP=md-i386-gcc
1.1.1.6 ! root 6026: CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
! 6027:
! 6028: if [ "x$HAVEGAS" = "xyes" ]; then
! 6029: CFLAGS="$CFLAGS -DX86_ASSEMBLY"
! 6030: ASMOBJS=md-X86.o
! 6031:
! 6032: CPUOBJS=cpufast.o
! 6033: P2C=p2c_x86.o
! 6034: fi
! 6035: else if test $uae_cv_prog_cc_watcom = yes; then
! 6036: MACHDEP=md-i386-watcom
! 6037: echo CFLAGS before: $CFLAGS
! 6038: CFLAGS=`echo $CFLAGS | sed 's, -g , ,' |sed 's,^-g ,,'`
! 6039: CFLAGS="$CFLAGS --/--bm --/--mf --/--w4 --/--s --/--ei --/--zp4 --/--5r"
! 6040: CFLAGS="$CFLAGS --/--oe=50 --/--oi --/--ok --/--ol --/--ot --/--oh --/--or --/--zq"
! 6041: CFLAGS="$CFLAGS -DREGPARAM= -DUNALIGNED_PROFITABLE"
! 6042: echo CFLAGS after: $CFLAGS
1.1.1.4 root 6043: else if [ "x$TARGET" = "xp_os" ]; then
6044: CPU=`uname -m`
6045: if [ "x$CPU" = "xm68k" ]; then
6046: MACHDEP=md-68k
6047: CFLAGS="$CFLAGS -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
6048: else if [ "x$CPU" = "xppc" ]; then
6049: MACHDEP=md-ppc
6050: CFLAGS="$CFLAGS -DREGPARAM="
6051: else if [ "x$CPU" = "xi386" ]; then
6052: MACHDEP=md-i386-gcc
6053: CFLAGS="$CFLAGS -DX86_ASSEMBLY -fno-strength-reduce -DREGPARAM=\"__attribute__((regparm(3)))\""
6054: else
6055: echo "Unsupported CPU: $CPU!"
6056: exit 5
6057: fi
6058: fi
6059: fi
6060: CFLAGS="$CFLAGS -nostdinc -I/gg/include -I/p/../inc -D__POS__"
6061: OSDEP=od-pos
6062: CPUOBJS="cpufast.o"
6063: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" -a "x$TARGET" = "xamigaos" ]; then
6064: MACHDEP=md-68k
6065: OSDEP=od-amiga
1.1.1.6 ! root 6066: CFLAGS="$CFLAGS -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(4)))\" -DM68K_FLAG_OPT=1"
! 6067: CPUOBJS="cpufast1.o cpufast2.o cpufast3.o cpufast4.o cpufast5.o cpufast6.o cpufast7.o cpufast8.o"
1.1.1.4 root 6068: else if [ "x$TARGET" = "xamigaos" ]; then
6069: MACHDEP=md-generic
6070: OSDEP=od-amiga
1.1.1.6 ! root 6071: CFLAGS="$CFLAGS -O -DREGPARAM="
! 6072: CPUOBJS="cpuemu1.o cpuemu2.o cpuemu3.o cpuemu4.o cpuemu5.o cpuemu6.o cpuemu7.o cpuemu8.o"
1.1.1.4 root 6073: else if [ "x$HAVEGCC27" = "xyes" -a "x$HAVE68K" = "xyes" -a "x$DO_PROFILING" = "xno" ]; then
6074: MACHDEP=md-68k
6075: CFLAGS="$CFLAGS -DM68K_FLAG_OPT=1 -DREGPARAM="
6076: CPUOBJS="cpufast.o"
6077: else if [ "x$TARGET" = "xbeos" ]; then
6078: MACHDEP=md-ppc
6079: CFLAGS="$CFLAGS -DREGPARAM="
6080: OSDEP=od-beos
1.1 root 6081: else
1.1.1.3 root 6082: CFLAGS="$CFLAGS -DREGPARAM="
6083: fi
6084: fi
1.1 root 6085: fi
1.1.1.4 root 6086: fi
6087: fi
6088: fi
1.1.1.6 ! root 6089: fi
1.1.1.4 root 6090:
1.1.1.6 ! root 6091: if [ "x$TARGET" = "xwin32" ]; then
! 6092: OSDEP=od-win32
! 6093: if test $ac_cv_prog_gcc = yes; then
! 6094: LIBS="$LIBS -lddraw -lwinmm -lcomctl32 -lcomdlg32 -luser32 -lgdi32 -lkernel32 -ladvapi32 -lshell32"
! 6095: else if test $uae_cv_prog_cc_watcom = yes; then
! 6096: LIBS="$LIBS -lddraw -lwinmm -lcomctl32"
! 6097: fi
! 6098: fi
! 6099: else if [ "x$HAVELINUX" = "xyes" ]; then
1.1.1.4 root 6100: OSDEP=od-linux
6101: if [ "x$HAVEGLIBC2" = "xyes" -a "x$HAVEI386" = "xyes" ]; then
6102: CFLAGS="$CFLAGS -DHAVE_GLIBC_2_LINUX"
6103: fi
6104: fi
1.1.1.6 ! root 6105: fi
1.1 root 6106:
1.1.1.4 root 6107: if [ "x$TARGET" = "xx11" -o "x$TARGET" = "xsvgalib" -o "x$TARGET" = "xamigaos" \
6108: -o "x$TARGET" = "xbeos" -o "x$TARGET" = "xasciiart" -o "x$TARGET" = "xggilib" -o "x$TARGET" = "xp_os" ]; then
1.1.1.2 root 6109: CFLAGS="$CFLAGS -DUSE_ZFILE"
6110: fi
6111:
1.1.1.4 root 6112: HAVE_USS_SOUND=no
6113: if [ "x$ac_cv_header_sys_soundcard_h" = "xyes" -o "x$ac_cv_header_machine_soundcard_h" = "xyes" ]; then
6114: echo $ac_n "checking whether sys/soundcard.h or machine/soundcard.h works""... $ac_c" 1>&6
1.1.1.6 ! root 6115: echo "configure:6116: checking whether sys/soundcard.h or machine/soundcard.h works" >&5
1.1.1.4 root 6116: cat > conftest.$ac_ext <<EOF
1.1.1.6 ! root 6117: #line 6118 "configure"
1.1.1.4 root 6118: #include "confdefs.h"
6119:
6120: #include "confdefs.h"
6121: #ifdef HAVE_SYS_SOUNDCARD_H
6122: #include <sys/soundcard.h>
6123: #else
6124: #include <machine/soundcard.h>
6125: #endif
6126: #include <sys/ioctl.h>
6127:
6128: int main() {
6129: int soundfd; ioctl (soundfd, SNDCTL_DSP_GETFMTS, 0);
6130: ; return 0; }
6131: EOF
1.1.1.6 ! root 6132: if { (eval echo configure:6133: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1.1.4 root 6133: rm -rf conftest*
6134: echo "$ac_t""yes" 1>&6
6135: HAVE_USS_SOUND=yes
6136: else
6137: echo "configure: failed program was:" >&5
6138: cat conftest.$ac_ext >&5
6139: rm -rf conftest*
6140: echo "$ac_t""no" 1>&6
6141: fi
6142: rm -f conftest*
6143: fi
6144:
6145: echo $ac_n "checking which sound system to use""... $ac_c" 1>&6
1.1.1.6 ! root 6146: echo "configure:6147: checking which sound system to use" >&5
1.1.1.4 root 6147: # Check whether --enable-sound or --disable-sound was given.
6148: if test "${enable_sound+set}" = set; then
6149: enableval="$enable_sound"
6150: USE_SOUND=$enableval
6151: fi
6152:
6153: # Check whether --enable-file-sound or --disable-file-sound was given.
6154: if test "${enable_file_sound+set}" = set; then
6155: enableval="$enable_file_sound"
6156: USE_FILE_SOUND=$enableval
6157: fi
6158:
6159:
6160: if [ "x$USE_FILE_SOUND" = "xyes" ]; then
6161: USE_SOUND=yes
6162: fi
6163:
6164: if [ "x$USE_SOUND" = "xno" ]; then
6165: echo "$ac_t""sound not enabled" 1>&6
6166: else
6167: if [ "x$USE_FILE_SOUND" = "xyes" ]; then
6168: echo "$ac_t""file output" 1>&6
6169: SOUNDDEP=sd-file
6170: USE_SOUND=yes
6171: else if [ "x$HAVE_USS_SOUND" = "xyes" ]; then
6172: echo "$ac_t""USS" 1>&6
6173: SOUNDDEP=sd-uss
6174: USE_SOUND=yes
6175: else if [ "x$ac_cv_header_sys_audioio_h" = "xyes" -o "x$ac_cv_header_sun_audioio_h" = "xyes" ]; then
6176: echo "$ac_t""Solaris/NetBSD" 1>&6
6177: SOUNDDEP=sd-solaris
6178: USE_SOUND=yes
6179: else if [ "x$HAVE_AF_LIB" = "xyes" ]; then
6180: echo "$ac_t""AF sound" 1>&6
6181: SOUNDDEP=sd-af
1.1.1.6 ! root 6182: LIBS="$LIBS -lAF"
! 6183: USE_SOUND=yes
! 6184: else if [ "x$HAVE_MME_LIB" = "xyes" ]; then
! 6185: echo "$ac_t""MME sound" 1>&6
! 6186: SOUNDDEP=sd-mme
! 6187: LIBS="$LIBS -lmme"
1.1.1.4 root 6188: USE_SOUND=yes
6189: else if [ "x$TARGET" = "xp_os" ]; then
6190: echo "$ac_t""pAudio.device" 1>&6
6191: SOUNDDEP=od-pos
6192: USE_SOUND=yes
6193: else if [ "x$TARGET" = "xamigaos" ]; then
1.1.1.6 ! root 6194: if [ "x$ac_cv_header_devices_ahi_h" = "xyes" ]; then
! 6195: echo "$ac_t""Amiga AHI.device" 1>&6
! 6196: else
! 6197: echo "$ac_t""Amiga audio.device" 1>&6
! 6198: fi
1.1.1.4 root 6199: SOUNDDEP=od-amiga
6200: USE_SOUND=yes
6201: else if [ "x$TARGET" = "xbeos" ]; then
6202: echo "$ac_t""BeOS sound" 1>&6
6203: SOUNDDEP=od-beos
6204: USE_SOUND=yes
1.1.1.6 ! root 6205: else if [ "x$TARGET" = "xwin32" ]; then
! 6206: echo "$ac_t""Win32 sound" 1>&6
! 6207: SOUNDDEP=od-win32
! 6208: USE_SOUND=yes
1.1.1.4 root 6209: else
6210: echo "no known sound system found"
6211: NR_ERRORS=`expr $NR_ERRORS + 1`
6212: fi
6213: fi
6214: fi
6215: fi
6216: fi
6217: fi
6218: fi
1.1.1.6 ! root 6219: fi
! 6220: fi
1.1.1.4 root 6221: fi
6222:
6223: rm -f src/machdep
6224: rm -f src/osdep
6225: rm -f src/threaddep
6226: rm -f src/sounddep
6227: rm -f src/target.h
1.1.1.5 root 6228: rm -f src/config.h
1.1.1.6 ! root 6229: rm -f src/sd-sound.c
! 6230: rm -f src/od-joy.c
! 6231: rm -f src/md-support.c
! 6232: rm -f src/md-X86.S
1.1.1.3 root 6233:
1.1.1.4 root 6234: if [ "x$TARGET" = "xamigaos" -o "x$TARGET" = "xp_os" ]; then
1.1.1.3 root 6235: echo $ac_n "checking which CPU to use""... $ac_c" 1>&6
1.1.1.6 ! root 6236: echo "configure:6237: checking which CPU to use" >&5
1.1.1.3 root 6237: cpu=`cpu | cut -d' ' -f2`
6238: echo "$ac_t""$cpu" 1>&6
6239: CFLAGS="$CFLAGS -m$cpu"
6240:
6241: echo $ac_n "checking which FPU to use""... $ac_c" 1>&6
1.1.1.6 ! root 6242: echo "configure:6243: checking which FPU to use" >&5
1.1.1.4 root 6243: fpu=`cpu | cut -d' ' -f3 | grep '^688812$'`
6244: if [ "x$fpu" != "x" ]; then
6245: echo "$ac_t""68881" 1>&6
6246: CFLAGS="$CFLAGS -m68881"
1.1.1.3 root 6247: else
6248: echo "$ac_t""none" 1>&6
6249: fi
6250: fi
6251:
1.1.1.2 root 6252:
6253:
1.1 root 6254:
6255:
6256:
6257:
6258:
6259:
6260:
6261:
6262:
1.1.1.3 root 6263:
1.1.1.4 root 6264:
1.1.1.3 root 6265:
6266:
6267:
1.1.1.6 ! root 6268:
1.1 root 6269: trap '' 1 2 15
6270: cat > confcache <<\EOF
6271: # This file is a shell script that caches the results of configure
6272: # tests run on this system so they can be shared between configure
6273: # scripts and configure runs. It is not useful on other systems.
6274: # If it contains results you don't want to keep, you may remove or edit it.
6275: #
6276: # By default, configure uses ./config.cache as the cache file,
6277: # creating it if it does not exist already. You can give configure
6278: # the --cache-file=FILE option to use a different cache file; that is
6279: # what configure does when it calls configure scripts in
6280: # subdirectories, so they share the cache.
6281: # Giving --cache-file=/dev/null disables caching, for debugging configure.
6282: # config.status only pays attention to the cache file if you give it the
6283: # --recheck option to rerun configure.
6284: #
6285: EOF
1.1.1.4 root 6286: # The following way of writing the cache mishandles newlines in values,
6287: # but we know of no workaround that is simple, portable, and efficient.
6288: # So, don't put newlines in cache variables' values.
1.1 root 6289: # Ultrix sh set writes to stderr and can't be redirected directly,
6290: # and sets the high bit in the cache file unless we assign to the vars.
6291: (set) 2>&1 |
1.1.1.4 root 6292: case `(ac_space=' '; set) 2>&1` in
6293: *ac_space=\ *)
6294: # `set' does not quote correctly, so add quotes (double-quote substitution
6295: # turns \\\\ into \\, and sed turns \\ into \).
6296: sed -n \
6297: -e "s/'/'\\\\''/g" \
6298: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6299: ;;
6300: *)
6301: # `set' quotes correctly as required by POSIX, so do not add quotes.
6302: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6303: ;;
6304: esac >> confcache
1.1 root 6305: if cmp -s $cache_file confcache; then
6306: :
6307: else
6308: if test -w $cache_file; then
6309: echo "updating cache $cache_file"
6310: cat confcache > $cache_file
6311: else
6312: echo "not updating unwritable cache $cache_file"
6313: fi
6314: fi
6315: rm -f confcache
6316:
6317: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6318:
6319: test "x$prefix" = xNONE && prefix=$ac_default_prefix
6320: # Let make expand exec_prefix.
6321: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6322:
6323: # Any assignment to VPATH causes Sun make to only execute
6324: # the first set of double-colon rules, so remove it if not needed.
6325: # If there is a colon in the path, we need to keep it.
6326: if test "x$srcdir" = x.; then
6327: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6328: fi
6329:
6330: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6331:
6332: DEFS=-DHAVE_CONFIG_H
6333:
6334: # Without the "./", some shells look in PATH for config.status.
6335: : ${CONFIG_STATUS=./config.status}
6336:
6337: echo creating $CONFIG_STATUS
6338: rm -f $CONFIG_STATUS
6339: cat > $CONFIG_STATUS <<EOF
6340: #! /bin/sh
6341: # Generated automatically by configure.
6342: # Run this file to recreate the current configuration.
6343: # This directory was configured as follows,
6344: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6345: #
6346: # $0 $ac_configure_args
6347: #
6348: # Compiler output produced by configure, useful for debugging
6349: # configure, is in ./config.log if it exists.
6350:
6351: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6352: for ac_option
6353: do
6354: case "\$ac_option" in
6355: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6356: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6357: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6358: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1.1.1.4 root 6359: echo "$CONFIG_STATUS generated by autoconf version 2.12"
1.1 root 6360: exit 0 ;;
6361: -help | --help | --hel | --he | --h)
6362: echo "\$ac_cs_usage"; exit 0 ;;
6363: *) echo "\$ac_cs_usage"; exit 1 ;;
6364: esac
6365: done
6366:
6367: ac_given_srcdir=$srcdir
6368:
1.1.1.4 root 6369: trap 'rm -fr `echo "src/Makefile Makefile src/sysconfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1.1 root 6370: EOF
6371: cat >> $CONFIG_STATUS <<EOF
6372:
6373: # Protect against being on the right side of a sed subst in config.status.
6374: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6375: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6376: $ac_vpsub
6377: $extrasub
6378: s%@CFLAGS@%$CFLAGS%g
6379: s%@CPPFLAGS@%$CPPFLAGS%g
6380: s%@CXXFLAGS@%$CXXFLAGS%g
6381: s%@DEFS@%$DEFS%g
6382: s%@LDFLAGS@%$LDFLAGS%g
6383: s%@LIBS@%$LIBS%g
6384: s%@exec_prefix@%$exec_prefix%g
6385: s%@prefix@%$prefix%g
6386: s%@program_transform_name@%$program_transform_name%g
6387: s%@bindir@%$bindir%g
6388: s%@sbindir@%$sbindir%g
6389: s%@libexecdir@%$libexecdir%g
6390: s%@datadir@%$datadir%g
6391: s%@sysconfdir@%$sysconfdir%g
6392: s%@sharedstatedir@%$sharedstatedir%g
6393: s%@localstatedir@%$localstatedir%g
6394: s%@libdir@%$libdir%g
6395: s%@includedir@%$includedir%g
6396: s%@oldincludedir@%$oldincludedir%g
6397: s%@infodir@%$infodir%g
6398: s%@mandir@%$mandir%g
6399: s%@CC@%$CC%g
6400: s%@CPP@%$CPP%g
6401: s%@SET_MAKE@%$SET_MAKE%g
1.1.1.4 root 6402: s%@FILEPRG@%$FILEPRG%g
1.1.1.6 ! root 6403: s%@WRCPRG@%$WRCPRG%g
! 6404: s%@RCLPRG@%$RCLPRG%g
! 6405: s%@EXEEXT@%$EXEEXT%g
1.1 root 6406: s%@X_CFLAGS@%$X_CFLAGS%g
6407: s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6408: s%@X_LIBS@%$X_LIBS%g
6409: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6410: s%@LIBOBJS@%$LIBOBJS%g
1.1.1.4 root 6411: s%@GTK_CONFIG@%$GTK_CONFIG%g
6412: s%@GTK_CFLAGS@%$GTK_CFLAGS%g
6413: s%@GTK_LIBS@%$GTK_LIBS%g
1.1 root 6414: s%@ac_cv_c_inline@%$ac_cv_c_inline%g
1.1.1.6 ! root 6415: s%@WRC@%$WRC%g
1.1.1.4 root 6416: s%@NO_SCHED_CFLAGS@%$NO_SCHED_CFLAGS%g
1.1 root 6417: s%@LIBRARIES@%$LIBRARIES%g
6418: s%@TARGET@%$TARGET%g
6419: s%@GFXOBJS@%$GFXOBJS%g
1.1.1.6 ! root 6420: s%@RESOBJS@%$RESOBJS%g
1.1 root 6421: s%@ASMOBJS@%$ASMOBJS%g
1.1.1.6 ! root 6422: s%@P2C@%$P2C%g
1.1.1.2 root 6423: s%@CPUOBJS@%$CPUOBJS%g
1.1.1.3 root 6424: s%@DEBUGOBJS@%$DEBUGOBJS%g
6425: s%@MATHLIB@%$MATHLIB%g
1.1.1.4 root 6426: s%@SHM_SUPPORT_LINKS@%$SHM_SUPPORT_LINKS%g
1.1.1.3 root 6427: s%@top_srcdir@%$top_srcdir%g
1.1 root 6428:
6429: CEOF
6430: EOF
1.1.1.4 root 6431:
6432: cat >> $CONFIG_STATUS <<\EOF
6433:
6434: # Split the substitutions into bite-sized pieces for seds with
6435: # small command number limits, like on Digital OSF/1 and HP-UX.
6436: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6437: ac_file=1 # Number of current file.
6438: ac_beg=1 # First line for current file.
6439: ac_end=$ac_max_sed_cmds # Line after last line for current file.
6440: ac_more_lines=:
6441: ac_sed_cmds=""
6442: while $ac_more_lines; do
6443: if test $ac_beg -gt 1; then
6444: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6445: else
6446: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6447: fi
6448: if test ! -s conftest.s$ac_file; then
6449: ac_more_lines=false
6450: rm -f conftest.s$ac_file
6451: else
6452: if test -z "$ac_sed_cmds"; then
6453: ac_sed_cmds="sed -f conftest.s$ac_file"
6454: else
6455: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6456: fi
6457: ac_file=`expr $ac_file + 1`
6458: ac_beg=$ac_end
6459: ac_end=`expr $ac_end + $ac_max_sed_cmds`
6460: fi
6461: done
6462: if test -z "$ac_sed_cmds"; then
6463: ac_sed_cmds=cat
6464: fi
6465: EOF
6466:
1.1 root 6467: cat >> $CONFIG_STATUS <<EOF
6468:
1.1.1.2 root 6469: CONFIG_FILES=\${CONFIG_FILES-"src/Makefile Makefile"}
1.1 root 6470: EOF
6471: cat >> $CONFIG_STATUS <<\EOF
6472: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1.1.1.4 root 6473: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1 root 6474: case "$ac_file" in
1.1.1.4 root 6475: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1.1 root 6476: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6477: *) ac_file_in="${ac_file}.in" ;;
6478: esac
6479:
1.1.1.4 root 6480: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1.1 root 6481:
6482: # Remove last slash and all that follows it. Not all systems have dirname.
6483: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6484: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6485: # The file is in a subdirectory.
6486: test ! -d "$ac_dir" && mkdir "$ac_dir"
6487: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6488: # A "../" for each directory in $ac_dir_suffix.
6489: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6490: else
6491: ac_dir_suffix= ac_dots=
6492: fi
6493:
6494: case "$ac_given_srcdir" in
6495: .) srcdir=.
6496: if test -z "$ac_dots"; then top_srcdir=.
6497: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6498: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6499: *) # Relative path.
6500: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6501: top_srcdir="$ac_dots$ac_given_srcdir" ;;
6502: esac
6503:
1.1.1.4 root 6504:
1.1 root 6505: echo creating "$ac_file"
6506: rm -f "$ac_file"
6507: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6508: case "$ac_file" in
6509: *Makefile*) ac_comsub="1i\\
6510: # $configure_input" ;;
6511: *) ac_comsub= ;;
6512: esac
1.1.1.4 root 6513:
6514: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1.1 root 6515: sed -e "$ac_comsub
6516: s%@configure_input@%$configure_input%g
6517: s%@srcdir@%$srcdir%g
6518: s%@top_srcdir@%$top_srcdir%g
1.1.1.4 root 6519: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1.1 root 6520: fi; done
1.1.1.4 root 6521: rm -f conftest.s*
1.1 root 6522:
6523: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6524: # NAME is the cpp macro being defined and VALUE is the value it is being given.
6525: #
6526: # ac_d sets the value in "#define NAME VALUE" lines.
6527: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6528: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6529: ac_dC='\3'
6530: ac_dD='%g'
6531: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6532: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6533: ac_uB='\([ ]\)%\1#\2define\3'
6534: ac_uC=' '
6535: ac_uD='\4%g'
6536: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6537: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6538: ac_eB='$%\1#\2define\3'
6539: ac_eC=' '
6540: ac_eD='%g'
6541:
1.1.1.4 root 6542: if test "${CONFIG_HEADERS+set}" != set; then
6543: EOF
6544: cat >> $CONFIG_STATUS <<EOF
6545: CONFIG_HEADERS="src/sysconfig.h"
6546: EOF
6547: cat >> $CONFIG_STATUS <<\EOF
6548: fi
1.1 root 6549: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1.1.1.4 root 6550: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1.1 root 6551: case "$ac_file" in
1.1.1.4 root 6552: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1.1 root 6553: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6554: *) ac_file_in="${ac_file}.in" ;;
6555: esac
6556:
6557: echo creating $ac_file
6558:
6559: rm -f conftest.frag conftest.in conftest.out
1.1.1.4 root 6560: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6561: cat $ac_file_inputs > conftest.in
1.1 root 6562:
6563: EOF
6564:
6565: # Transform confdefs.h into a sed script conftest.vals that substitutes
6566: # the proper values into config.h.in to produce config.h. And first:
6567: # Protect against being on the right side of a sed subst in config.status.
6568: # Protect against being in an unquoted here document in config.status.
6569: rm -f conftest.vals
6570: cat > conftest.hdr <<\EOF
6571: s/[\\&%]/\\&/g
6572: s%[\\$`]%\\&%g
6573: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6574: s%ac_d%ac_u%gp
6575: s%ac_u%ac_e%gp
6576: EOF
6577: sed -n -f conftest.hdr confdefs.h > conftest.vals
6578: rm -f conftest.hdr
6579:
6580: # This sed command replaces #undef with comments. This is necessary, for
6581: # example, in the case of _POSIX_SOURCE, which is predefined and required
6582: # on some systems where configure will not decide to define it.
6583: cat >> conftest.vals <<\EOF
6584: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6585: EOF
6586:
6587: # Break up conftest.vals because some shells have a limit on
6588: # the size of here documents, and old seds have small limits too.
6589:
6590: rm -f conftest.tail
6591: while :
6592: do
6593: ac_lines=`grep -c . conftest.vals`
6594: # grep -c gives empty output for an empty file on some AIX systems.
6595: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6596: # Write a limited-size here document to conftest.frag.
6597: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6598: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6599: echo 'CEOF
6600: sed -f conftest.frag conftest.in > conftest.out
6601: rm -f conftest.in
6602: mv conftest.out conftest.in
6603: ' >> $CONFIG_STATUS
6604: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6605: rm -f conftest.vals
6606: mv conftest.tail conftest.vals
6607: done
6608: rm -f conftest.vals
6609:
6610: cat >> $CONFIG_STATUS <<\EOF
6611: rm -f conftest.frag conftest.h
6612: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6613: cat conftest.in >> conftest.h
6614: rm -f conftest.in
6615: if cmp -s $ac_file conftest.h 2>/dev/null; then
6616: echo "$ac_file is unchanged"
6617: rm -f conftest.h
6618: else
6619: # Remove last slash and all that follows it. Not all systems have dirname.
6620: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6621: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6622: # The file is in a subdirectory.
6623: test ! -d "$ac_dir" && mkdir "$ac_dir"
6624: fi
6625: rm -f $ac_file
6626: mv conftest.h $ac_file
6627: fi
6628: fi; done
6629:
1.1.1.4 root 6630: EOF
6631: cat >> $CONFIG_STATUS <<EOF
1.1 root 6632:
1.1.1.4 root 6633: EOF
6634: cat >> $CONFIG_STATUS <<\EOF
1.1 root 6635:
6636: exit 0
6637: EOF
6638: chmod +x $CONFIG_STATUS
6639: rm -fr confdefs* $ac_clean_files
6640: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6641:
1.1.1.4 root 6642: if [ "x$DO_PROFILING" = "xyes" ]; then
1.1.1.3 root 6643: echo "Building a profiling version of UAE (select this option only if you know"
6644: echo "what you are doing)"
6645: fi
1.1.1.4 root 6646:
6647:
6648:
6649:
1.1.1.6 ! root 6650: if (test -e $abssrcdir/src/sounddep) || (test -e $abssrcdir/src/machdep) \
! 6651: || (test -e $abssrcdir/src/osdep) || (test -e $abssrcdir/src/threaddep) \
! 6652: || (test -e $abssrcdir/src/target.h)
! 6653: then
! 6654: echo
! 6655: echo "Fatal error: Can't configure in the current directory, because"
! 6656: echo "configure was run in the source directory. Go to the source"
! 6657: echo "directory, type"
! 6658: echo " make streifenfrei"
! 6659: echo "and try again."
! 6660: exit 1
! 6661: fi
1.1.1.4 root 6662:
6663: ln -s $abssrcdir/src/$MACHDEP src/machdep
6664: ln -s $abssrcdir/src/$OSDEP src/osdep
6665: ln -s $abssrcdir/src/$THREADDEP src/threaddep
6666: ln -s $abssrcdir/src/$SOUNDDEP src/sounddep
6667: ln -s $abssrcdir/src/targets/$TARGETDEP src/target.h
1.1.1.5 root 6668: ln -s $abssrcdir/config.h src/config.h
1.1.1.4 root 6669:
1.1.1.6 ! root 6670:
! 6671: ln -s $SD_SOUND src/sd-sound.c
! 6672: ln -s $OD_JOYSTICK src/od-joy.c
! 6673: ln -s $MD_SUPPORT src/md-support.c
! 6674:
! 6675: if [ "x$MACHDEP" = "xmd-i386-gcc" ]; then
! 6676: ln -s machdep/X86.S src/md-X86.S
! 6677: fi
! 6678:
! 6679:
1.1.1.4 root 6680: echo
6681: echo
6682: if [ "x$NR_ERRORS" = "x0" ]; then
6683: if [ "x$NR_WARNINGS" = "x0" ]; then
6684: echo "Configuration was successful!"
6685: else
6686: echo "There were $NR_WARNINGS warnings. That is usually harmless, but read the output"
6687: echo "from configure carefully if you run into problems."
6688: fi
6689: else
6690: echo "There were $NR_ERRORS errors. UAE may still build and run cleanly, but you may"
6691: echo "not get all the features you asked for."
6692: fi
6693: echo
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.