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