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