ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/configure
Revision: 1.11
Committed: 1999-10-25T19:01:35Z (25 years ago) by cebix
Branch: MAIN
Changes since 1.10: +206 -181 lines
Log Message:
- fixes to audio_oss_esd.cpp from Alexander R. Pruss (8-bit mode)
- added configuration summary to configure script
- prefs_editor_amiga.cpp: output of SCSI prefs was broken

File Contents

# User Rev Content
1 cebix 1.1 #! /bin/sh
2    
3     # Guess values for system-dependent variables and create Makefiles.
4     # Generated automatically using autoconf version 2.13
5     # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6     #
7     # This configure script is free software; the Free Software Foundation
8     # gives unlimited permission to copy, distribute and modify it.
9    
10     # Defaults:
11     ac_help=
12     ac_default_prefix=/usr/local
13     # Any additions from configure.in:
14     ac_help="$ac_help
15 cebix 1.9 --enable-xf86-dga use the XFree86 DGA extension [default=yes]"
16 cebix 1.7 ac_help="$ac_help
17 cebix 1.9 --enable-fbdev-dga use direct frame buffer access via /dev/fb [default=yes]"
18 cebix 1.1 ac_help="$ac_help
19 cebix 1.9 --enable-esd Enlightened Sound Daemon support [default=yes]"
20     ac_help="$ac_help
21     --enable-ui use GTK user interface [default=yes]"
22 cebix 1.1 ac_help="$ac_help
23     --with-x use the X Window System"
24     ac_help="$ac_help
25     --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
26     ac_help="$ac_help
27     --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
28     ac_help="$ac_help
29     --disable-gtktest Do not try to compile and run a test GTK program"
30 cebix 1.9 ac_help="$ac_help
31     --with-esd-prefix=PFX Prefix where ESD is installed (optional)"
32     ac_help="$ac_help
33     --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)"
34     ac_help="$ac_help
35     --disable-esdtest Do not try to compile and run a test ESD program"
36 cebix 1.1
37     # Initialize some variables set by options.
38     # The variables have the same names as the options, with
39     # dashes changed to underlines.
40     build=NONE
41     cache_file=./config.cache
42     exec_prefix=NONE
43     host=NONE
44     no_create=
45     nonopt=NONE
46     no_recursion=
47     prefix=NONE
48     program_prefix=NONE
49     program_suffix=NONE
50     program_transform_name=s,x,x,
51     silent=
52     site=
53     srcdir=
54     target=NONE
55     verbose=
56     x_includes=NONE
57     x_libraries=NONE
58     bindir='${exec_prefix}/bin'
59     sbindir='${exec_prefix}/sbin'
60     libexecdir='${exec_prefix}/libexec'
61     datadir='${prefix}/share'
62     sysconfdir='${prefix}/etc'
63     sharedstatedir='${prefix}/com'
64     localstatedir='${prefix}/var'
65     libdir='${exec_prefix}/lib'
66     includedir='${prefix}/include'
67     oldincludedir='/usr/include'
68     infodir='${prefix}/info'
69     mandir='${prefix}/man'
70    
71     # Initialize some other variables.
72     subdirs=
73     MFLAGS= MAKEFLAGS=
74     SHELL=${CONFIG_SHELL-/bin/sh}
75     # Maximum number of lines to put in a shell here document.
76     ac_max_here_lines=12
77    
78     ac_prev=
79     for ac_option
80     do
81    
82     # If the previous option needs an argument, assign it.
83     if test -n "$ac_prev"; then
84     eval "$ac_prev=\$ac_option"
85     ac_prev=
86     continue
87     fi
88    
89     case "$ac_option" in
90     -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
91     *) ac_optarg= ;;
92     esac
93    
94     # Accept the important Cygnus configure options, so we can diagnose typos.
95    
96     case "$ac_option" in
97    
98     -bindir | --bindir | --bindi | --bind | --bin | --bi)
99     ac_prev=bindir ;;
100     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
101     bindir="$ac_optarg" ;;
102    
103     -build | --build | --buil | --bui | --bu)
104     ac_prev=build ;;
105     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
106     build="$ac_optarg" ;;
107    
108     -cache-file | --cache-file | --cache-fil | --cache-fi \
109     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
110     ac_prev=cache_file ;;
111     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
112     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
113     cache_file="$ac_optarg" ;;
114    
115     -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
116     ac_prev=datadir ;;
117     -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
118     | --da=*)
119     datadir="$ac_optarg" ;;
120    
121     -disable-* | --disable-*)
122     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
123     # Reject names that are not valid shell variable names.
124     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
125     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126     fi
127     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128     eval "enable_${ac_feature}=no" ;;
129    
130     -enable-* | --enable-*)
131     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
132     # Reject names that are not valid shell variable names.
133     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
134     { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135     fi
136     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
137     case "$ac_option" in
138     *=*) ;;
139     *) ac_optarg=yes ;;
140     esac
141     eval "enable_${ac_feature}='$ac_optarg'" ;;
142    
143     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
144     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
145     | --exec | --exe | --ex)
146     ac_prev=exec_prefix ;;
147     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
148     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
149     | --exec=* | --exe=* | --ex=*)
150     exec_prefix="$ac_optarg" ;;
151    
152     -gas | --gas | --ga | --g)
153     # Obsolete; use --with-gas.
154     with_gas=yes ;;
155    
156     -help | --help | --hel | --he)
157     # Omit some internal or obsolete options to make the list less imposing.
158     # This message is too long to be a string in the A/UX 3.1 sh.
159     cat << EOF
160     Usage: configure [options] [host]
161     Options: [defaults in brackets after descriptions]
162     Configuration:
163     --cache-file=FILE cache test results in FILE
164     --help print this message
165     --no-create do not create output files
166     --quiet, --silent do not print \`checking...' messages
167     --version print the version of autoconf that created configure
168     Directory and file names:
169     --prefix=PREFIX install architecture-independent files in PREFIX
170     [$ac_default_prefix]
171     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172     [same as prefix]
173     --bindir=DIR user executables in DIR [EPREFIX/bin]
174     --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
175     --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
176     --datadir=DIR read-only architecture-independent data in DIR
177     [PREFIX/share]
178     --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
179     --sharedstatedir=DIR modifiable architecture-independent data in DIR
180     [PREFIX/com]
181     --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
182     --libdir=DIR object code libraries in DIR [EPREFIX/lib]
183     --includedir=DIR C header files in DIR [PREFIX/include]
184     --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
185     --infodir=DIR info documentation in DIR [PREFIX/info]
186     --mandir=DIR man documentation in DIR [PREFIX/man]
187     --srcdir=DIR find the sources in DIR [configure dir or ..]
188     --program-prefix=PREFIX prepend PREFIX to installed program names
189     --program-suffix=SUFFIX append SUFFIX to installed program names
190     --program-transform-name=PROGRAM
191     run sed PROGRAM on installed program names
192     EOF
193     cat << EOF
194     Host type:
195     --build=BUILD configure for building on BUILD [BUILD=HOST]
196     --host=HOST configure for HOST [guessed]
197     --target=TARGET configure for TARGET [TARGET=HOST]
198     Features and packages:
199     --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
200     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
201     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
202     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
203     --x-includes=DIR X include files are in DIR
204     --x-libraries=DIR X library files are in DIR
205     EOF
206     if test -n "$ac_help"; then
207     echo "--enable and --with options recognized:$ac_help"
208     fi
209     exit 0 ;;
210    
211     -host | --host | --hos | --ho)
212     ac_prev=host ;;
213     -host=* | --host=* | --hos=* | --ho=*)
214     host="$ac_optarg" ;;
215    
216     -includedir | --includedir | --includedi | --included | --include \
217     | --includ | --inclu | --incl | --inc)
218     ac_prev=includedir ;;
219     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
220     | --includ=* | --inclu=* | --incl=* | --inc=*)
221     includedir="$ac_optarg" ;;
222    
223     -infodir | --infodir | --infodi | --infod | --info | --inf)
224     ac_prev=infodir ;;
225     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
226     infodir="$ac_optarg" ;;
227    
228     -libdir | --libdir | --libdi | --libd)
229     ac_prev=libdir ;;
230     -libdir=* | --libdir=* | --libdi=* | --libd=*)
231     libdir="$ac_optarg" ;;
232    
233     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
234     | --libexe | --libex | --libe)
235     ac_prev=libexecdir ;;
236     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
237     | --libexe=* | --libex=* | --libe=*)
238     libexecdir="$ac_optarg" ;;
239    
240     -localstatedir | --localstatedir | --localstatedi | --localstated \
241     | --localstate | --localstat | --localsta | --localst \
242     | --locals | --local | --loca | --loc | --lo)
243     ac_prev=localstatedir ;;
244     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
245     | --localstate=* | --localstat=* | --localsta=* | --localst=* \
246     | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
247     localstatedir="$ac_optarg" ;;
248    
249     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
250     ac_prev=mandir ;;
251     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
252     mandir="$ac_optarg" ;;
253    
254     -nfp | --nfp | --nf)
255     # Obsolete; use --without-fp.
256     with_fp=no ;;
257    
258     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
259     | --no-cr | --no-c)
260     no_create=yes ;;
261    
262     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
263     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
264     no_recursion=yes ;;
265    
266     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
267     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
268     | --oldin | --oldi | --old | --ol | --o)
269     ac_prev=oldincludedir ;;
270     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
271     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
272     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
273     oldincludedir="$ac_optarg" ;;
274    
275     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
276     ac_prev=prefix ;;
277     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
278     prefix="$ac_optarg" ;;
279    
280     -program-prefix | --program-prefix | --program-prefi | --program-pref \
281     | --program-pre | --program-pr | --program-p)
282     ac_prev=program_prefix ;;
283     -program-prefix=* | --program-prefix=* | --program-prefi=* \
284     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
285     program_prefix="$ac_optarg" ;;
286    
287     -program-suffix | --program-suffix | --program-suffi | --program-suff \
288     | --program-suf | --program-su | --program-s)
289     ac_prev=program_suffix ;;
290     -program-suffix=* | --program-suffix=* | --program-suffi=* \
291     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
292     program_suffix="$ac_optarg" ;;
293    
294     -program-transform-name | --program-transform-name \
295     | --program-transform-nam | --program-transform-na \
296     | --program-transform-n | --program-transform- \
297     | --program-transform | --program-transfor \
298     | --program-transfo | --program-transf \
299     | --program-trans | --program-tran \
300     | --progr-tra | --program-tr | --program-t)
301     ac_prev=program_transform_name ;;
302     -program-transform-name=* | --program-transform-name=* \
303     | --program-transform-nam=* | --program-transform-na=* \
304     | --program-transform-n=* | --program-transform-=* \
305     | --program-transform=* | --program-transfor=* \
306     | --program-transfo=* | --program-transf=* \
307     | --program-trans=* | --program-tran=* \
308     | --progr-tra=* | --program-tr=* | --program-t=*)
309     program_transform_name="$ac_optarg" ;;
310    
311     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
312     | -silent | --silent | --silen | --sile | --sil)
313     silent=yes ;;
314    
315     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
316     ac_prev=sbindir ;;
317     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
318     | --sbi=* | --sb=*)
319     sbindir="$ac_optarg" ;;
320    
321     -sharedstatedir | --sharedstatedir | --sharedstatedi \
322     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
323     | --sharedst | --shareds | --shared | --share | --shar \
324     | --sha | --sh)
325     ac_prev=sharedstatedir ;;
326     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
327     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
328     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
329     | --sha=* | --sh=*)
330     sharedstatedir="$ac_optarg" ;;
331    
332     -site | --site | --sit)
333     ac_prev=site ;;
334     -site=* | --site=* | --sit=*)
335     site="$ac_optarg" ;;
336    
337     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
338     ac_prev=srcdir ;;
339     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
340     srcdir="$ac_optarg" ;;
341    
342     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
343     | --syscon | --sysco | --sysc | --sys | --sy)
344     ac_prev=sysconfdir ;;
345     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
346     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
347     sysconfdir="$ac_optarg" ;;
348    
349     -target | --target | --targe | --targ | --tar | --ta | --t)
350     ac_prev=target ;;
351     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
352     target="$ac_optarg" ;;
353    
354     -v | -verbose | --verbose | --verbos | --verbo | --verb)
355     verbose=yes ;;
356    
357     -version | --version | --versio | --versi | --vers)
358     echo "configure generated by autoconf version 2.13"
359     exit 0 ;;
360    
361     -with-* | --with-*)
362     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
363     # Reject names that are not valid shell variable names.
364     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
365     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366     fi
367     ac_package=`echo $ac_package| sed 's/-/_/g'`
368     case "$ac_option" in
369     *=*) ;;
370     *) ac_optarg=yes ;;
371     esac
372     eval "with_${ac_package}='$ac_optarg'" ;;
373    
374     -without-* | --without-*)
375     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
376     # Reject names that are not valid shell variable names.
377     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
378     { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379     fi
380     ac_package=`echo $ac_package| sed 's/-/_/g'`
381     eval "with_${ac_package}=no" ;;
382    
383     --x)
384     # Obsolete; use --with-x.
385     with_x=yes ;;
386    
387     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
388     | --x-incl | --x-inc | --x-in | --x-i)
389     ac_prev=x_includes ;;
390     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
391     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
392     x_includes="$ac_optarg" ;;
393    
394     -x-libraries | --x-libraries | --x-librarie | --x-librari \
395     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
396     ac_prev=x_libraries ;;
397     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
398     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
399     x_libraries="$ac_optarg" ;;
400    
401     -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
402     ;;
403    
404     *)
405     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
406     echo "configure: warning: $ac_option: invalid host type" 1>&2
407     fi
408     if test "x$nonopt" != xNONE; then
409     { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
410     fi
411     nonopt="$ac_option"
412     ;;
413    
414     esac
415     done
416    
417     if test -n "$ac_prev"; then
418     { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
419     fi
420    
421     trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422    
423     # File descriptor usage:
424     # 0 standard input
425     # 1 file creation
426     # 2 errors and warnings
427     # 3 some systems may open it to /dev/tty
428     # 4 used on the Kubota Titan
429     # 6 checking for... messages and results
430     # 5 compiler messages saved in config.log
431     if test "$silent" = yes; then
432     exec 6>/dev/null
433     else
434     exec 6>&1
435     fi
436     exec 5>./config.log
437    
438     echo "\
439     This file contains any messages produced by compilers while
440     running configure, to aid debugging if configure makes a mistake.
441     " 1>&5
442    
443     # Strip out --no-create and --no-recursion so they do not pile up.
444     # Also quote any args containing shell metacharacters.
445     ac_configure_args=
446     for ac_arg
447     do
448     case "$ac_arg" in
449     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
450     | --no-cr | --no-c) ;;
451     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
453     *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
454     ac_configure_args="$ac_configure_args '$ac_arg'" ;;
455     *) ac_configure_args="$ac_configure_args $ac_arg" ;;
456     esac
457     done
458    
459     # NLS nuisances.
460     # Only set these to C if already set. These must not be set unconditionally
461     # because not all systems understand e.g. LANG=C (notably SCO).
462     # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
463     # Non-C LC_CTYPE values break the ctype check.
464     if test "${LANG+set}" = set; then LANG=C; export LANG; fi
465     if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
466     if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
467     if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
468    
469     # confdefs.h avoids OS command line length limits that DEFS can exceed.
470     rm -rf conftest* confdefs.h
471     # AIX cpp loses on an empty file, so make sure it contains at least a newline.
472     echo > confdefs.h
473    
474     # A filename unique to this package, relative to the directory that
475     # configure is in, which we can look for to find out if srcdir is correct.
476     ac_unique_file=main_unix.cpp
477    
478     # Find the source files, if location was not specified.
479     if test -z "$srcdir"; then
480     ac_srcdir_defaulted=yes
481     # Try the directory containing this script, then its parent.
482     ac_prog=$0
483     ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
484     test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
485     srcdir=$ac_confdir
486     if test ! -r $srcdir/$ac_unique_file; then
487     srcdir=..
488     fi
489     else
490     ac_srcdir_defaulted=no
491     fi
492     if test ! -r $srcdir/$ac_unique_file; then
493     if test "$ac_srcdir_defaulted" = yes; then
494     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495     else
496     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
497     fi
498     fi
499     srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500    
501     # Prefer explicitly selected file to automatically selected ones.
502     if test -z "$CONFIG_SITE"; then
503     if test "x$prefix" != xNONE; then
504     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
505     else
506     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
507     fi
508     fi
509     for ac_site_file in $CONFIG_SITE; do
510     if test -r "$ac_site_file"; then
511     echo "loading site script $ac_site_file"
512     . "$ac_site_file"
513     fi
514     done
515    
516     if test -r "$cache_file"; then
517     echo "loading cache $cache_file"
518     . $cache_file
519     else
520     echo "creating cache $cache_file"
521     > $cache_file
522     fi
523    
524     ac_ext=c
525     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
526     ac_cpp='$CPP $CPPFLAGS'
527     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
528     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
529     cross_compiling=$ac_cv_prog_cc_cross
530    
531     ac_exeext=
532     ac_objext=o
533     if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
534     # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
535     if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
536     ac_n= ac_c='
537     ' ac_t=' '
538     else
539     ac_n=-n ac_c= ac_t=
540     fi
541     else
542     ac_n= ac_c='\c' ac_t=
543     fi
544    
545    
546    
547    
548    
549 cebix 1.7 # Check whether --enable-xf86-dga or --disable-xf86-dga was given.
550     if test "${enable_xf86_dga+set}" = set; then
551     enableval="$enable_xf86_dga"
552     WANT_XF86_DGA=$enableval
553 cebix 1.11 else
554     WANT_XF86_DGA=yes
555 cebix 1.7 fi
556    
557     # Check whether --enable-fbdev-dga or --disable-fbdev-dga was given.
558     if test "${enable_fbdev_dga+set}" = set; then
559     enableval="$enable_fbdev_dga"
560     WANT_FBDEV_DGA=$enableval
561 cebix 1.11 else
562     WANT_FBDEV_DGA=yes
563 cebix 1.1 fi
564    
565 cebix 1.9 # Check whether --enable-esd or --disable-esd was given.
566     if test "${enable_esd+set}" = set; then
567     enableval="$enable_esd"
568     WANT_ESD=$enableval
569 cebix 1.11 else
570     WANT_ESD=yes
571 cebix 1.9 fi
572    
573 cebix 1.1 # Check whether --enable-ui or --disable-ui was given.
574     if test "${enable_ui+set}" = set; then
575     enableval="$enable_ui"
576     WANT_UI=$enableval
577 cebix 1.11 else
578     WANT_UI=yes
579 cebix 1.1 fi
580    
581    
582     # Extract the first word of "gcc", so it can be a program name with args.
583     set dummy gcc; ac_word=$2
584     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
585 cebix 1.11 echo "configure:586: checking for $ac_word" >&5
586 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
587     echo $ac_n "(cached) $ac_c" 1>&6
588     else
589     if test -n "$CC"; then
590     ac_cv_prog_CC="$CC" # Let the user override the test.
591     else
592     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
593     ac_dummy="$PATH"
594     for ac_dir in $ac_dummy; do
595     test -z "$ac_dir" && ac_dir=.
596     if test -f $ac_dir/$ac_word; then
597     ac_cv_prog_CC="gcc"
598     break
599     fi
600     done
601     IFS="$ac_save_ifs"
602     fi
603     fi
604     CC="$ac_cv_prog_CC"
605     if test -n "$CC"; then
606     echo "$ac_t""$CC" 1>&6
607     else
608     echo "$ac_t""no" 1>&6
609     fi
610    
611     if test -z "$CC"; then
612     # Extract the first word of "cc", so it can be a program name with args.
613     set dummy cc; ac_word=$2
614     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
615 cebix 1.11 echo "configure:616: checking for $ac_word" >&5
616 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
617     echo $ac_n "(cached) $ac_c" 1>&6
618     else
619     if test -n "$CC"; then
620     ac_cv_prog_CC="$CC" # Let the user override the test.
621     else
622     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
623     ac_prog_rejected=no
624     ac_dummy="$PATH"
625     for ac_dir in $ac_dummy; do
626     test -z "$ac_dir" && ac_dir=.
627     if test -f $ac_dir/$ac_word; then
628     if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
629     ac_prog_rejected=yes
630     continue
631     fi
632     ac_cv_prog_CC="cc"
633     break
634     fi
635     done
636     IFS="$ac_save_ifs"
637     if test $ac_prog_rejected = yes; then
638     # We found a bogon in the path, so make sure we never use it.
639     set dummy $ac_cv_prog_CC
640     shift
641     if test $# -gt 0; then
642     # We chose a different compiler from the bogus one.
643     # However, it has the same basename, so the bogon will be chosen
644     # first if we set CC to just the basename; use the full file name.
645     shift
646     set dummy "$ac_dir/$ac_word" "$@"
647     shift
648     ac_cv_prog_CC="$@"
649     fi
650     fi
651     fi
652     fi
653     CC="$ac_cv_prog_CC"
654     if test -n "$CC"; then
655     echo "$ac_t""$CC" 1>&6
656     else
657     echo "$ac_t""no" 1>&6
658     fi
659    
660     if test -z "$CC"; then
661     case "`uname -s`" in
662     *win32* | *WIN32*)
663     # Extract the first word of "cl", so it can be a program name with args.
664     set dummy cl; ac_word=$2
665     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
666 cebix 1.11 echo "configure:667: checking for $ac_word" >&5
667 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
668     echo $ac_n "(cached) $ac_c" 1>&6
669     else
670     if test -n "$CC"; then
671     ac_cv_prog_CC="$CC" # Let the user override the test.
672     else
673     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
674     ac_dummy="$PATH"
675     for ac_dir in $ac_dummy; do
676     test -z "$ac_dir" && ac_dir=.
677     if test -f $ac_dir/$ac_word; then
678     ac_cv_prog_CC="cl"
679     break
680     fi
681     done
682     IFS="$ac_save_ifs"
683     fi
684     fi
685     CC="$ac_cv_prog_CC"
686     if test -n "$CC"; then
687     echo "$ac_t""$CC" 1>&6
688     else
689     echo "$ac_t""no" 1>&6
690     fi
691     ;;
692     esac
693     fi
694     test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
695     fi
696    
697     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
698 cebix 1.11 echo "configure:699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
699 cebix 1.1
700     ac_ext=c
701     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
702     ac_cpp='$CPP $CPPFLAGS'
703     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
704     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
705     cross_compiling=$ac_cv_prog_cc_cross
706    
707     cat > conftest.$ac_ext << EOF
708    
709 cebix 1.11 #line 710 "configure"
710 cebix 1.1 #include "confdefs.h"
711    
712     main(){return(0);}
713     EOF
714 cebix 1.11 if { (eval echo configure:715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
715 cebix 1.1 ac_cv_prog_cc_works=yes
716     # If we can't run a trivial program, we are probably using a cross compiler.
717     if (./conftest; exit) 2>/dev/null; then
718     ac_cv_prog_cc_cross=no
719     else
720     ac_cv_prog_cc_cross=yes
721     fi
722     else
723     echo "configure: failed program was:" >&5
724     cat conftest.$ac_ext >&5
725     ac_cv_prog_cc_works=no
726     fi
727     rm -fr conftest*
728     ac_ext=c
729     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
730     ac_cpp='$CPP $CPPFLAGS'
731     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
732     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
733     cross_compiling=$ac_cv_prog_cc_cross
734    
735     echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
736     if test $ac_cv_prog_cc_works = no; then
737     { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
738     fi
739     echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
740 cebix 1.11 echo "configure:741: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
741 cebix 1.1 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
742     cross_compiling=$ac_cv_prog_cc_cross
743    
744     echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
745 cebix 1.11 echo "configure:746: checking whether we are using GNU C" >&5
746 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
747     echo $ac_n "(cached) $ac_c" 1>&6
748     else
749     cat > conftest.c <<EOF
750     #ifdef __GNUC__
751     yes;
752     #endif
753     EOF
754 cebix 1.11 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
755 cebix 1.1 ac_cv_prog_gcc=yes
756     else
757     ac_cv_prog_gcc=no
758     fi
759     fi
760    
761     echo "$ac_t""$ac_cv_prog_gcc" 1>&6
762    
763     if test $ac_cv_prog_gcc = yes; then
764     GCC=yes
765     else
766     GCC=
767     fi
768    
769     ac_test_CFLAGS="${CFLAGS+set}"
770     ac_save_CFLAGS="$CFLAGS"
771     CFLAGS=
772     echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
773 cebix 1.11 echo "configure:774: checking whether ${CC-cc} accepts -g" >&5
774 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
775     echo $ac_n "(cached) $ac_c" 1>&6
776     else
777     echo 'void f(){}' > conftest.c
778     if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
779     ac_cv_prog_cc_g=yes
780     else
781     ac_cv_prog_cc_g=no
782     fi
783     rm -f conftest*
784    
785     fi
786    
787     echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
788     if test "$ac_test_CFLAGS" = set; then
789     CFLAGS="$ac_save_CFLAGS"
790     elif test $ac_cv_prog_cc_g = yes; then
791     if test "$GCC" = yes; then
792     CFLAGS="-g -O2"
793     else
794     CFLAGS="-g"
795     fi
796     else
797     if test "$GCC" = yes; then
798     CFLAGS="-O2"
799     else
800     CFLAGS=
801     fi
802     fi
803    
804 cebix 1.3 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
805 cebix 1.11 echo "configure:806: checking how to run the C preprocessor" >&5
806 cebix 1.3 # On Suns, sometimes $CPP names a directory.
807     if test -n "$CPP" && test -d "$CPP"; then
808     CPP=
809     fi
810     if test -z "$CPP"; then
811     if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
812     echo $ac_n "(cached) $ac_c" 1>&6
813     else
814     # This must be in double quotes, not single quotes, because CPP may get
815     # substituted into the Makefile and "${CC-cc}" will confuse make.
816     CPP="${CC-cc} -E"
817     # On the NeXT, cc -E runs the code through the compiler's parser,
818     # not just through cpp.
819     cat > conftest.$ac_ext <<EOF
820 cebix 1.11 #line 821 "configure"
821 cebix 1.3 #include "confdefs.h"
822     #include <assert.h>
823     Syntax Error
824     EOF
825     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
826 cebix 1.11 { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
827 cebix 1.3 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
828     if test -z "$ac_err"; then
829     :
830     else
831     echo "$ac_err" >&5
832     echo "configure: failed program was:" >&5
833     cat conftest.$ac_ext >&5
834     rm -rf conftest*
835     CPP="${CC-cc} -E -traditional-cpp"
836     cat > conftest.$ac_ext <<EOF
837 cebix 1.11 #line 838 "configure"
838 cebix 1.3 #include "confdefs.h"
839     #include <assert.h>
840     Syntax Error
841     EOF
842     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
843 cebix 1.11 { (eval echo configure:844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
844 cebix 1.3 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
845     if test -z "$ac_err"; then
846     :
847     else
848     echo "$ac_err" >&5
849     echo "configure: failed program was:" >&5
850     cat conftest.$ac_ext >&5
851     rm -rf conftest*
852     CPP="${CC-cc} -nologo -E"
853     cat > conftest.$ac_ext <<EOF
854 cebix 1.11 #line 855 "configure"
855 cebix 1.3 #include "confdefs.h"
856     #include <assert.h>
857     Syntax Error
858     EOF
859     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
860 cebix 1.11 { (eval echo configure:861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
861 cebix 1.3 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
862     if test -z "$ac_err"; then
863     :
864     else
865     echo "$ac_err" >&5
866     echo "configure: failed program was:" >&5
867     cat conftest.$ac_ext >&5
868     rm -rf conftest*
869     CPP=/lib/cpp
870     fi
871     rm -f conftest*
872     fi
873     rm -f conftest*
874     fi
875     rm -f conftest*
876     ac_cv_prog_CPP="$CPP"
877     fi
878     CPP="$ac_cv_prog_CPP"
879     else
880     ac_cv_prog_CPP="$CPP"
881     fi
882     echo "$ac_t""$CPP" 1>&6
883    
884 cebix 1.1 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
885     do
886     # Extract the first word of "$ac_prog", so it can be a program name with args.
887     set dummy $ac_prog; ac_word=$2
888     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
889 cebix 1.11 echo "configure:890: checking for $ac_word" >&5
890 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
891     echo $ac_n "(cached) $ac_c" 1>&6
892     else
893     if test -n "$CXX"; then
894     ac_cv_prog_CXX="$CXX" # Let the user override the test.
895     else
896     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
897     ac_dummy="$PATH"
898     for ac_dir in $ac_dummy; do
899     test -z "$ac_dir" && ac_dir=.
900     if test -f $ac_dir/$ac_word; then
901     ac_cv_prog_CXX="$ac_prog"
902     break
903     fi
904     done
905     IFS="$ac_save_ifs"
906     fi
907     fi
908     CXX="$ac_cv_prog_CXX"
909     if test -n "$CXX"; then
910     echo "$ac_t""$CXX" 1>&6
911     else
912     echo "$ac_t""no" 1>&6
913     fi
914    
915     test -n "$CXX" && break
916     done
917     test -n "$CXX" || CXX="gcc"
918    
919    
920     echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
921 cebix 1.11 echo "configure:922: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
922 cebix 1.1
923     ac_ext=C
924     # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
925     ac_cpp='$CXXCPP $CPPFLAGS'
926     ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
927     ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
928     cross_compiling=$ac_cv_prog_cxx_cross
929    
930     cat > conftest.$ac_ext << EOF
931    
932 cebix 1.11 #line 933 "configure"
933 cebix 1.1 #include "confdefs.h"
934    
935     int main(){return(0);}
936     EOF
937 cebix 1.11 if { (eval echo configure:938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
938 cebix 1.1 ac_cv_prog_cxx_works=yes
939     # If we can't run a trivial program, we are probably using a cross compiler.
940     if (./conftest; exit) 2>/dev/null; then
941     ac_cv_prog_cxx_cross=no
942     else
943     ac_cv_prog_cxx_cross=yes
944     fi
945     else
946     echo "configure: failed program was:" >&5
947     cat conftest.$ac_ext >&5
948     ac_cv_prog_cxx_works=no
949     fi
950     rm -fr conftest*
951     ac_ext=c
952     # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
953     ac_cpp='$CPP $CPPFLAGS'
954     ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
955     ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
956     cross_compiling=$ac_cv_prog_cc_cross
957    
958     echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
959     if test $ac_cv_prog_cxx_works = no; then
960     { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
961     fi
962     echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
963 cebix 1.11 echo "configure:964: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
964 cebix 1.1 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
965     cross_compiling=$ac_cv_prog_cxx_cross
966    
967     echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
968 cebix 1.11 echo "configure:969: checking whether we are using GNU C++" >&5
969 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
970     echo $ac_n "(cached) $ac_c" 1>&6
971     else
972     cat > conftest.C <<EOF
973     #ifdef __GNUC__
974     yes;
975     #endif
976     EOF
977 cebix 1.11 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:978: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
978 cebix 1.1 ac_cv_prog_gxx=yes
979     else
980     ac_cv_prog_gxx=no
981     fi
982     fi
983    
984     echo "$ac_t""$ac_cv_prog_gxx" 1>&6
985    
986     if test $ac_cv_prog_gxx = yes; then
987     GXX=yes
988     else
989     GXX=
990     fi
991    
992     ac_test_CXXFLAGS="${CXXFLAGS+set}"
993     ac_save_CXXFLAGS="$CXXFLAGS"
994     CXXFLAGS=
995     echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
996 cebix 1.11 echo "configure:997: checking whether ${CXX-g++} accepts -g" >&5
997 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
998     echo $ac_n "(cached) $ac_c" 1>&6
999     else
1000     echo 'void f(){}' > conftest.cc
1001     if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1002     ac_cv_prog_cxx_g=yes
1003     else
1004     ac_cv_prog_cxx_g=no
1005     fi
1006     rm -f conftest*
1007    
1008     fi
1009    
1010     echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1011     if test "$ac_test_CXXFLAGS" = set; then
1012     CXXFLAGS="$ac_save_CXXFLAGS"
1013     elif test $ac_cv_prog_cxx_g = yes; then
1014     if test "$GXX" = yes; then
1015     CXXFLAGS="-g -O2"
1016     else
1017     CXXFLAGS="-g"
1018     fi
1019     else
1020     if test "$GXX" = yes; then
1021     CXXFLAGS="-O2"
1022     else
1023     CXXFLAGS=
1024     fi
1025     fi
1026    
1027     echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1028 cebix 1.11 echo "configure:1029: checking whether ${MAKE-make} sets \${MAKE}" >&5
1029 cebix 1.1 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1030     if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1031     echo $ac_n "(cached) $ac_c" 1>&6
1032     else
1033     cat > conftestmake <<\EOF
1034     all:
1035     @echo 'ac_maketemp="${MAKE}"'
1036     EOF
1037     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1038     eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1039     if test -n "$ac_maketemp"; then
1040     eval ac_cv_prog_make_${ac_make}_set=yes
1041     else
1042     eval ac_cv_prog_make_${ac_make}_set=no
1043     fi
1044     rm -f conftestmake
1045     fi
1046     if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1047     echo "$ac_t""yes" 1>&6
1048     SET_MAKE=
1049     else
1050     echo "$ac_t""no" 1>&6
1051     SET_MAKE="MAKE=${MAKE-make}"
1052     fi
1053    
1054     ac_aux_dir=
1055     for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1056     if test -f $ac_dir/install-sh; then
1057     ac_aux_dir=$ac_dir
1058     ac_install_sh="$ac_aux_dir/install-sh -c"
1059     break
1060     elif test -f $ac_dir/install.sh; then
1061     ac_aux_dir=$ac_dir
1062     ac_install_sh="$ac_aux_dir/install.sh -c"
1063     break
1064     fi
1065     done
1066     if test -z "$ac_aux_dir"; then
1067     { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1068     fi
1069     ac_config_guess=$ac_aux_dir/config.guess
1070     ac_config_sub=$ac_aux_dir/config.sub
1071     ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1072    
1073     # Find a good install program. We prefer a C program (faster),
1074     # so one script is as good as another. But avoid the broken or
1075     # incompatible versions:
1076     # SysV /etc/install, /usr/sbin/install
1077     # SunOS /usr/etc/install
1078     # IRIX /sbin/install
1079     # AIX /bin/install
1080     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1081     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1082     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1083     # ./install, which can be erroneously created by make from ./install.sh.
1084     echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1085 cebix 1.11 echo "configure:1086: checking for a BSD compatible install" >&5
1086 cebix 1.1 if test -z "$INSTALL"; then
1087     if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1088     echo $ac_n "(cached) $ac_c" 1>&6
1089     else
1090     IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1091     for ac_dir in $PATH; do
1092     # Account for people who put trailing slashes in PATH elements.
1093     case "$ac_dir/" in
1094     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1095     *)
1096     # OSF1 and SCO ODT 3.0 have their own names for install.
1097     # Don't use installbsd from OSF since it installs stuff as root
1098     # by default.
1099     for ac_prog in ginstall scoinst install; do
1100     if test -f $ac_dir/$ac_prog; then
1101     if test $ac_prog = install &&
1102     grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1103     # AIX install. It has an incompatible calling convention.
1104     :
1105     else
1106     ac_cv_path_install="$ac_dir/$ac_prog -c"
1107     break 2
1108     fi
1109     fi
1110     done
1111     ;;
1112     esac
1113     done
1114     IFS="$ac_save_IFS"
1115    
1116     fi
1117     if test "${ac_cv_path_install+set}" = set; then
1118     INSTALL="$ac_cv_path_install"
1119     else
1120     # As a last resort, use the slow shell script. We don't cache a
1121     # path for INSTALL within a source directory, because that will
1122     # break other packages using the cache if that directory is
1123     # removed, or if the path is relative.
1124     INSTALL="$ac_install_sh"
1125     fi
1126     fi
1127     echo "$ac_t""$INSTALL" 1>&6
1128    
1129     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1130     # It thinks the first close brace ends the variable substitution.
1131     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1132    
1133     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1134    
1135     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1136    
1137    
1138 cebix 1.10 MONSRCS=
1139     echo $ac_n "checking for mon""... $ac_c" 1>&6
1140 cebix 1.11 echo "configure:1141: checking for mon" >&5
1141 cebix 1.10 if grep mon_init ../../../mon/src/mon.h >/dev/null 2>/dev/null; then
1142     echo "$ac_t""yes" 1>&6
1143 cebix 1.11 WANT_MON=yes
1144 cebix 1.10 DEFINES="$DEFINES -DENABLE_MON=1"
1145     MONSRCS="../../../mon/src/mon.cpp ../../../mon/src/mon_6502.cpp ../../../mon/src/mon_68k.cpp ../../../mon/src/mon_8080.cpp ../../../mon/src/mon_cmd.cpp ../../../mon/src/mon_ppc.cpp ../../../mon/src/mon_x86.cpp"
1146     CXXFLAGS="$CXXFLAGS -I../../../mon/src"
1147     else
1148     echo "$ac_t""no" 1>&6
1149 cebix 1.11 WANT_MON=no
1150 cebix 1.10 DEFINES="$DEFINES -DENABLE_MON=0"
1151     fi
1152    
1153 cebix 1.9 echo $ac_n "checking for sem_init in -lposix4""... $ac_c" 1>&6
1154 cebix 1.11 echo "configure:1155: checking for sem_init in -lposix4" >&5
1155 cebix 1.9 ac_lib_var=`echo posix4'_'sem_init | sed 'y%./+-%__p_%'`
1156     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1157     echo $ac_n "(cached) $ac_c" 1>&6
1158     else
1159     ac_save_LIBS="$LIBS"
1160     LIBS="-lposix4 $LIBS"
1161     cat > conftest.$ac_ext <<EOF
1162 cebix 1.11 #line 1163 "configure"
1163 cebix 1.9 #include "confdefs.h"
1164     /* Override any gcc2 internal prototype to avoid an error. */
1165     /* We use char because int might match the return type of a gcc2
1166     builtin and then its argument prototype would still apply. */
1167     char sem_init();
1168    
1169     int main() {
1170     sem_init()
1171     ; return 0; }
1172     EOF
1173 cebix 1.11 if { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1174 cebix 1.9 rm -rf conftest*
1175     eval "ac_cv_lib_$ac_lib_var=yes"
1176     else
1177     echo "configure: failed program was:" >&5
1178     cat conftest.$ac_ext >&5
1179     rm -rf conftest*
1180     eval "ac_cv_lib_$ac_lib_var=no"
1181     fi
1182     rm -f conftest*
1183     LIBS="$ac_save_LIBS"
1184    
1185     fi
1186     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1187     echo "$ac_t""yes" 1>&6
1188     ac_tr_lib=HAVE_LIB`echo posix4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1189     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1190     cat >> confdefs.h <<EOF
1191     #define $ac_tr_lib 1
1192     EOF
1193    
1194     LIBS="-lposix4 $LIBS"
1195    
1196     else
1197     echo "$ac_t""no" 1>&6
1198     fi
1199    
1200    
1201 cebix 1.1 # If we find X, set shell vars x_includes and x_libraries to the
1202     # paths, otherwise set no_x=yes.
1203     # Uses ac_ vars as temps to allow command line to override cache and checks.
1204     # --without-x overrides everything else, but does not touch the cache.
1205     echo $ac_n "checking for X""... $ac_c" 1>&6
1206 cebix 1.11 echo "configure:1207: checking for X" >&5
1207 cebix 1.1
1208     # Check whether --with-x or --without-x was given.
1209     if test "${with_x+set}" = set; then
1210     withval="$with_x"
1211     :
1212     fi
1213    
1214     # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1215     if test "x$with_x" = xno; then
1216     # The user explicitly disabled X.
1217     have_x=disabled
1218     else
1219     if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1220     # Both variables are already set.
1221     have_x=yes
1222     else
1223     if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1224     echo $ac_n "(cached) $ac_c" 1>&6
1225     else
1226     # One or both of the vars are not set, and there is no cached value.
1227     ac_x_includes=NO ac_x_libraries=NO
1228     rm -fr conftestdir
1229     if mkdir conftestdir; then
1230     cd conftestdir
1231     # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1232     cat > Imakefile <<'EOF'
1233     acfindx:
1234     @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1235     EOF
1236     if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1237     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1238     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1239     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1240     for ac_extension in a so sl; do
1241     if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1242     test -f $ac_im_libdir/libX11.$ac_extension; then
1243     ac_im_usrlibdir=$ac_im_libdir; break
1244     fi
1245     done
1246     # Screen out bogus values from the imake configuration. They are
1247     # bogus both because they are the default anyway, and because
1248     # using them would break gcc on systems where it needs fixed includes.
1249     case "$ac_im_incroot" in
1250     /usr/include) ;;
1251     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1252     esac
1253     case "$ac_im_usrlibdir" in
1254     /usr/lib | /lib) ;;
1255     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1256     esac
1257     fi
1258     cd ..
1259     rm -fr conftestdir
1260     fi
1261    
1262     if test "$ac_x_includes" = NO; then
1263     # Guess where to find include files, by looking for this one X11 .h file.
1264     test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1265    
1266     # First, try using that file with no special directory specified.
1267     cat > conftest.$ac_ext <<EOF
1268 cebix 1.11 #line 1269 "configure"
1269 cebix 1.1 #include "confdefs.h"
1270     #include <$x_direct_test_include>
1271     EOF
1272     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1273 cebix 1.11 { (eval echo configure:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1274 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1275     if test -z "$ac_err"; then
1276     rm -rf conftest*
1277     # We can compile using X headers with no special include directory.
1278     ac_x_includes=
1279     else
1280     echo "$ac_err" >&5
1281     echo "configure: failed program was:" >&5
1282     cat conftest.$ac_ext >&5
1283     rm -rf conftest*
1284     # Look for the header file in a standard set of common directories.
1285     # Check X11 before X11Rn because it is often a symlink to the current release.
1286     for ac_dir in \
1287     /usr/X11/include \
1288     /usr/X11R6/include \
1289     /usr/X11R5/include \
1290     /usr/X11R4/include \
1291     \
1292     /usr/include/X11 \
1293     /usr/include/X11R6 \
1294     /usr/include/X11R5 \
1295     /usr/include/X11R4 \
1296     \
1297     /usr/local/X11/include \
1298     /usr/local/X11R6/include \
1299     /usr/local/X11R5/include \
1300     /usr/local/X11R4/include \
1301     \
1302     /usr/local/include/X11 \
1303     /usr/local/include/X11R6 \
1304     /usr/local/include/X11R5 \
1305     /usr/local/include/X11R4 \
1306     \
1307     /usr/X386/include \
1308     /usr/x386/include \
1309     /usr/XFree86/include/X11 \
1310     \
1311     /usr/include \
1312     /usr/local/include \
1313     /usr/unsupported/include \
1314     /usr/athena/include \
1315     /usr/local/x11r5/include \
1316     /usr/lpp/Xamples/include \
1317     \
1318     /usr/openwin/include \
1319     /usr/openwin/share/include \
1320     ; \
1321     do
1322     if test -r "$ac_dir/$x_direct_test_include"; then
1323     ac_x_includes=$ac_dir
1324     break
1325     fi
1326     done
1327     fi
1328     rm -f conftest*
1329     fi # $ac_x_includes = NO
1330    
1331     if test "$ac_x_libraries" = NO; then
1332     # Check for the libraries.
1333    
1334     test -z "$x_direct_test_library" && x_direct_test_library=Xt
1335     test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1336    
1337     # See if we find them without any special options.
1338     # Don't add to $LIBS permanently.
1339     ac_save_LIBS="$LIBS"
1340     LIBS="-l$x_direct_test_library $LIBS"
1341     cat > conftest.$ac_ext <<EOF
1342 cebix 1.11 #line 1343 "configure"
1343 cebix 1.1 #include "confdefs.h"
1344    
1345     int main() {
1346     ${x_direct_test_function}()
1347     ; return 0; }
1348     EOF
1349 cebix 1.11 if { (eval echo configure:1350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1350 cebix 1.1 rm -rf conftest*
1351     LIBS="$ac_save_LIBS"
1352     # We can link X programs with no special library path.
1353     ac_x_libraries=
1354     else
1355     echo "configure: failed program was:" >&5
1356     cat conftest.$ac_ext >&5
1357     rm -rf conftest*
1358     LIBS="$ac_save_LIBS"
1359     # First see if replacing the include by lib works.
1360     # Check X11 before X11Rn because it is often a symlink to the current release.
1361     for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1362     /usr/X11/lib \
1363     /usr/X11R6/lib \
1364     /usr/X11R5/lib \
1365     /usr/X11R4/lib \
1366     \
1367     /usr/lib/X11 \
1368     /usr/lib/X11R6 \
1369     /usr/lib/X11R5 \
1370     /usr/lib/X11R4 \
1371     \
1372     /usr/local/X11/lib \
1373     /usr/local/X11R6/lib \
1374     /usr/local/X11R5/lib \
1375     /usr/local/X11R4/lib \
1376     \
1377     /usr/local/lib/X11 \
1378     /usr/local/lib/X11R6 \
1379     /usr/local/lib/X11R5 \
1380     /usr/local/lib/X11R4 \
1381     \
1382     /usr/X386/lib \
1383     /usr/x386/lib \
1384     /usr/XFree86/lib/X11 \
1385     \
1386     /usr/lib \
1387     /usr/local/lib \
1388     /usr/unsupported/lib \
1389     /usr/athena/lib \
1390     /usr/local/x11r5/lib \
1391     /usr/lpp/Xamples/lib \
1392     /lib/usr/lib/X11 \
1393     \
1394     /usr/openwin/lib \
1395     /usr/openwin/share/lib \
1396     ; \
1397     do
1398     for ac_extension in a so sl; do
1399     if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1400     ac_x_libraries=$ac_dir
1401     break 2
1402     fi
1403     done
1404     done
1405     fi
1406     rm -f conftest*
1407     fi # $ac_x_libraries = NO
1408    
1409     if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1410     # Didn't find X anywhere. Cache the known absence of X.
1411     ac_cv_have_x="have_x=no"
1412     else
1413     # Record where we found X for the cache.
1414     ac_cv_have_x="have_x=yes \
1415     ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1416     fi
1417     fi
1418     fi
1419     eval "$ac_cv_have_x"
1420     fi # $with_x != no
1421    
1422     if test "$have_x" != yes; then
1423     echo "$ac_t""$have_x" 1>&6
1424     no_x=yes
1425     else
1426     # If each of the values was on the command line, it overrides each guess.
1427     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1428     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1429     # Update the cache value to reflect the command line values.
1430     ac_cv_have_x="have_x=yes \
1431     ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1432     echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1433     fi
1434    
1435     if test "$no_x" = yes; then
1436     # Not all programs may use this symbol, but it does not hurt to define it.
1437     cat >> confdefs.h <<\EOF
1438     #define X_DISPLAY_MISSING 1
1439     EOF
1440    
1441     X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1442     else
1443     if test -n "$x_includes"; then
1444     X_CFLAGS="$X_CFLAGS -I$x_includes"
1445     fi
1446    
1447     # It would also be nice to do this for all -L options, not just this one.
1448     if test -n "$x_libraries"; then
1449     X_LIBS="$X_LIBS -L$x_libraries"
1450     # For Solaris; some versions of Sun CC require a space after -R and
1451     # others require no space. Words are not sufficient . . . .
1452     case "`(uname -sr) 2>/dev/null`" in
1453     "SunOS 5"*)
1454     echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1455 cebix 1.11 echo "configure:1456: checking whether -R must be followed by a space" >&5
1456 cebix 1.1 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1457     cat > conftest.$ac_ext <<EOF
1458 cebix 1.11 #line 1459 "configure"
1459 cebix 1.1 #include "confdefs.h"
1460    
1461     int main() {
1462    
1463     ; return 0; }
1464     EOF
1465 cebix 1.11 if { (eval echo configure:1466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1466 cebix 1.1 rm -rf conftest*
1467     ac_R_nospace=yes
1468     else
1469     echo "configure: failed program was:" >&5
1470     cat conftest.$ac_ext >&5
1471     rm -rf conftest*
1472     ac_R_nospace=no
1473     fi
1474     rm -f conftest*
1475     if test $ac_R_nospace = yes; then
1476     echo "$ac_t""no" 1>&6
1477     X_LIBS="$X_LIBS -R$x_libraries"
1478     else
1479     LIBS="$ac_xsave_LIBS -R $x_libraries"
1480     cat > conftest.$ac_ext <<EOF
1481 cebix 1.11 #line 1482 "configure"
1482 cebix 1.1 #include "confdefs.h"
1483    
1484     int main() {
1485    
1486     ; return 0; }
1487     EOF
1488 cebix 1.11 if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1489 cebix 1.1 rm -rf conftest*
1490     ac_R_space=yes
1491     else
1492     echo "configure: failed program was:" >&5
1493     cat conftest.$ac_ext >&5
1494     rm -rf conftest*
1495     ac_R_space=no
1496     fi
1497     rm -f conftest*
1498     if test $ac_R_space = yes; then
1499     echo "$ac_t""yes" 1>&6
1500     X_LIBS="$X_LIBS -R $x_libraries"
1501     else
1502     echo "$ac_t""neither works" 1>&6
1503     fi
1504     fi
1505     LIBS="$ac_xsave_LIBS"
1506     esac
1507     fi
1508    
1509     # Check for system-dependent libraries X programs must link with.
1510     # Do this before checking for the system-independent R6 libraries
1511     # (-lICE), since we may need -lsocket or whatever for X linking.
1512    
1513     if test "$ISC" = yes; then
1514     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1515     else
1516     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1517     # libraries were built with DECnet support. And karl@cs.umb.edu says
1518     # the Alpha needs dnet_stub (dnet does not exist).
1519     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1520 cebix 1.11 echo "configure:1521: checking for dnet_ntoa in -ldnet" >&5
1521 cebix 1.1 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1522     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1523     echo $ac_n "(cached) $ac_c" 1>&6
1524     else
1525     ac_save_LIBS="$LIBS"
1526     LIBS="-ldnet $LIBS"
1527     cat > conftest.$ac_ext <<EOF
1528 cebix 1.11 #line 1529 "configure"
1529 cebix 1.1 #include "confdefs.h"
1530     /* Override any gcc2 internal prototype to avoid an error. */
1531     /* We use char because int might match the return type of a gcc2
1532     builtin and then its argument prototype would still apply. */
1533     char dnet_ntoa();
1534    
1535     int main() {
1536     dnet_ntoa()
1537     ; return 0; }
1538     EOF
1539 cebix 1.11 if { (eval echo configure:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1540 cebix 1.1 rm -rf conftest*
1541     eval "ac_cv_lib_$ac_lib_var=yes"
1542     else
1543     echo "configure: failed program was:" >&5
1544     cat conftest.$ac_ext >&5
1545     rm -rf conftest*
1546     eval "ac_cv_lib_$ac_lib_var=no"
1547     fi
1548     rm -f conftest*
1549     LIBS="$ac_save_LIBS"
1550    
1551     fi
1552     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1553     echo "$ac_t""yes" 1>&6
1554     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1555     else
1556     echo "$ac_t""no" 1>&6
1557     fi
1558    
1559     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1560     echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1561 cebix 1.11 echo "configure:1562: checking for dnet_ntoa in -ldnet_stub" >&5
1562 cebix 1.1 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1563     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1564     echo $ac_n "(cached) $ac_c" 1>&6
1565     else
1566     ac_save_LIBS="$LIBS"
1567     LIBS="-ldnet_stub $LIBS"
1568     cat > conftest.$ac_ext <<EOF
1569 cebix 1.11 #line 1570 "configure"
1570 cebix 1.1 #include "confdefs.h"
1571     /* Override any gcc2 internal prototype to avoid an error. */
1572     /* We use char because int might match the return type of a gcc2
1573     builtin and then its argument prototype would still apply. */
1574     char dnet_ntoa();
1575    
1576     int main() {
1577     dnet_ntoa()
1578     ; return 0; }
1579     EOF
1580 cebix 1.11 if { (eval echo configure:1581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1581 cebix 1.1 rm -rf conftest*
1582     eval "ac_cv_lib_$ac_lib_var=yes"
1583     else
1584     echo "configure: failed program was:" >&5
1585     cat conftest.$ac_ext >&5
1586     rm -rf conftest*
1587     eval "ac_cv_lib_$ac_lib_var=no"
1588     fi
1589     rm -f conftest*
1590     LIBS="$ac_save_LIBS"
1591    
1592     fi
1593     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1594     echo "$ac_t""yes" 1>&6
1595     X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1596     else
1597     echo "$ac_t""no" 1>&6
1598     fi
1599    
1600     fi
1601    
1602     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1603     # to get the SysV transport functions.
1604     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1605     # needs -lnsl.
1606     # The nsl library prevents programs from opening the X display
1607     # on Irix 5.2, according to dickey@clark.net.
1608     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1609 cebix 1.11 echo "configure:1610: checking for gethostbyname" >&5
1610 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1611     echo $ac_n "(cached) $ac_c" 1>&6
1612     else
1613     cat > conftest.$ac_ext <<EOF
1614 cebix 1.11 #line 1615 "configure"
1615 cebix 1.1 #include "confdefs.h"
1616     /* System header to define __stub macros and hopefully few prototypes,
1617     which can conflict with char gethostbyname(); below. */
1618     #include <assert.h>
1619     /* Override any gcc2 internal prototype to avoid an error. */
1620     /* We use char because int might match the return type of a gcc2
1621     builtin and then its argument prototype would still apply. */
1622     char gethostbyname();
1623    
1624     int main() {
1625    
1626     /* The GNU C library defines this for functions which it implements
1627     to always fail with ENOSYS. Some functions are actually named
1628     something starting with __ and the normal name is an alias. */
1629     #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1630     choke me
1631     #else
1632     gethostbyname();
1633     #endif
1634    
1635     ; return 0; }
1636     EOF
1637 cebix 1.11 if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1638 cebix 1.1 rm -rf conftest*
1639     eval "ac_cv_func_gethostbyname=yes"
1640     else
1641     echo "configure: failed program was:" >&5
1642     cat conftest.$ac_ext >&5
1643     rm -rf conftest*
1644     eval "ac_cv_func_gethostbyname=no"
1645     fi
1646     rm -f conftest*
1647     fi
1648    
1649     if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1650     echo "$ac_t""yes" 1>&6
1651     :
1652     else
1653     echo "$ac_t""no" 1>&6
1654     fi
1655    
1656     if test $ac_cv_func_gethostbyname = no; then
1657     echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1658 cebix 1.11 echo "configure:1659: checking for gethostbyname in -lnsl" >&5
1659 cebix 1.1 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1660     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1661     echo $ac_n "(cached) $ac_c" 1>&6
1662     else
1663     ac_save_LIBS="$LIBS"
1664     LIBS="-lnsl $LIBS"
1665     cat > conftest.$ac_ext <<EOF
1666 cebix 1.11 #line 1667 "configure"
1667 cebix 1.1 #include "confdefs.h"
1668     /* Override any gcc2 internal prototype to avoid an error. */
1669     /* We use char because int might match the return type of a gcc2
1670     builtin and then its argument prototype would still apply. */
1671     char gethostbyname();
1672    
1673     int main() {
1674     gethostbyname()
1675     ; return 0; }
1676     EOF
1677 cebix 1.11 if { (eval echo configure:1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1678 cebix 1.1 rm -rf conftest*
1679     eval "ac_cv_lib_$ac_lib_var=yes"
1680     else
1681     echo "configure: failed program was:" >&5
1682     cat conftest.$ac_ext >&5
1683     rm -rf conftest*
1684     eval "ac_cv_lib_$ac_lib_var=no"
1685     fi
1686     rm -f conftest*
1687     LIBS="$ac_save_LIBS"
1688    
1689     fi
1690     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1691     echo "$ac_t""yes" 1>&6
1692     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1693     else
1694     echo "$ac_t""no" 1>&6
1695     fi
1696    
1697     fi
1698    
1699     # lieder@skyler.mavd.honeywell.com says without -lsocket,
1700     # socket/setsockopt and other routines are undefined under SCO ODT
1701     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1702     # on later versions), says simon@lia.di.epfl.ch: it contains
1703     # gethostby* variants that don't use the nameserver (or something).
1704     # -lsocket must be given before -lnsl if both are needed.
1705     # We assume that if connect needs -lnsl, so does gethostbyname.
1706     echo $ac_n "checking for connect""... $ac_c" 1>&6
1707 cebix 1.11 echo "configure:1708: checking for connect" >&5
1708 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1709     echo $ac_n "(cached) $ac_c" 1>&6
1710     else
1711     cat > conftest.$ac_ext <<EOF
1712 cebix 1.11 #line 1713 "configure"
1713 cebix 1.1 #include "confdefs.h"
1714     /* System header to define __stub macros and hopefully few prototypes,
1715     which can conflict with char connect(); below. */
1716     #include <assert.h>
1717     /* Override any gcc2 internal prototype to avoid an error. */
1718     /* We use char because int might match the return type of a gcc2
1719     builtin and then its argument prototype would still apply. */
1720     char connect();
1721    
1722     int main() {
1723    
1724     /* The GNU C library defines this for functions which it implements
1725     to always fail with ENOSYS. Some functions are actually named
1726     something starting with __ and the normal name is an alias. */
1727     #if defined (__stub_connect) || defined (__stub___connect)
1728     choke me
1729     #else
1730     connect();
1731     #endif
1732    
1733     ; return 0; }
1734     EOF
1735 cebix 1.11 if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1736 cebix 1.1 rm -rf conftest*
1737     eval "ac_cv_func_connect=yes"
1738     else
1739     echo "configure: failed program was:" >&5
1740     cat conftest.$ac_ext >&5
1741     rm -rf conftest*
1742     eval "ac_cv_func_connect=no"
1743     fi
1744     rm -f conftest*
1745     fi
1746    
1747     if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1748     echo "$ac_t""yes" 1>&6
1749     :
1750     else
1751     echo "$ac_t""no" 1>&6
1752     fi
1753    
1754     if test $ac_cv_func_connect = no; then
1755     echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1756 cebix 1.11 echo "configure:1757: checking for connect in -lsocket" >&5
1757 cebix 1.1 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1758     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1759     echo $ac_n "(cached) $ac_c" 1>&6
1760     else
1761     ac_save_LIBS="$LIBS"
1762     LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1763     cat > conftest.$ac_ext <<EOF
1764 cebix 1.11 #line 1765 "configure"
1765 cebix 1.1 #include "confdefs.h"
1766     /* Override any gcc2 internal prototype to avoid an error. */
1767     /* We use char because int might match the return type of a gcc2
1768     builtin and then its argument prototype would still apply. */
1769     char connect();
1770    
1771     int main() {
1772     connect()
1773     ; return 0; }
1774     EOF
1775 cebix 1.11 if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1776 cebix 1.1 rm -rf conftest*
1777     eval "ac_cv_lib_$ac_lib_var=yes"
1778     else
1779     echo "configure: failed program was:" >&5
1780     cat conftest.$ac_ext >&5
1781     rm -rf conftest*
1782     eval "ac_cv_lib_$ac_lib_var=no"
1783     fi
1784     rm -f conftest*
1785     LIBS="$ac_save_LIBS"
1786    
1787     fi
1788     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1789     echo "$ac_t""yes" 1>&6
1790     X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1791     else
1792     echo "$ac_t""no" 1>&6
1793     fi
1794    
1795     fi
1796    
1797     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1798     echo $ac_n "checking for remove""... $ac_c" 1>&6
1799 cebix 1.11 echo "configure:1800: checking for remove" >&5
1800 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1801     echo $ac_n "(cached) $ac_c" 1>&6
1802     else
1803     cat > conftest.$ac_ext <<EOF
1804 cebix 1.11 #line 1805 "configure"
1805 cebix 1.1 #include "confdefs.h"
1806     /* System header to define __stub macros and hopefully few prototypes,
1807     which can conflict with char remove(); below. */
1808     #include <assert.h>
1809     /* Override any gcc2 internal prototype to avoid an error. */
1810     /* We use char because int might match the return type of a gcc2
1811     builtin and then its argument prototype would still apply. */
1812     char remove();
1813    
1814     int main() {
1815    
1816     /* The GNU C library defines this for functions which it implements
1817     to always fail with ENOSYS. Some functions are actually named
1818     something starting with __ and the normal name is an alias. */
1819     #if defined (__stub_remove) || defined (__stub___remove)
1820     choke me
1821     #else
1822     remove();
1823     #endif
1824    
1825     ; return 0; }
1826     EOF
1827 cebix 1.11 if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1828 cebix 1.1 rm -rf conftest*
1829     eval "ac_cv_func_remove=yes"
1830     else
1831     echo "configure: failed program was:" >&5
1832     cat conftest.$ac_ext >&5
1833     rm -rf conftest*
1834     eval "ac_cv_func_remove=no"
1835     fi
1836     rm -f conftest*
1837     fi
1838    
1839     if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1840     echo "$ac_t""yes" 1>&6
1841     :
1842     else
1843     echo "$ac_t""no" 1>&6
1844     fi
1845    
1846     if test $ac_cv_func_remove = no; then
1847     echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1848 cebix 1.11 echo "configure:1849: checking for remove in -lposix" >&5
1849 cebix 1.1 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1850     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1851     echo $ac_n "(cached) $ac_c" 1>&6
1852     else
1853     ac_save_LIBS="$LIBS"
1854     LIBS="-lposix $LIBS"
1855     cat > conftest.$ac_ext <<EOF
1856 cebix 1.11 #line 1857 "configure"
1857 cebix 1.1 #include "confdefs.h"
1858     /* Override any gcc2 internal prototype to avoid an error. */
1859     /* We use char because int might match the return type of a gcc2
1860     builtin and then its argument prototype would still apply. */
1861     char remove();
1862    
1863     int main() {
1864     remove()
1865     ; return 0; }
1866     EOF
1867 cebix 1.11 if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1868 cebix 1.1 rm -rf conftest*
1869     eval "ac_cv_lib_$ac_lib_var=yes"
1870     else
1871     echo "configure: failed program was:" >&5
1872     cat conftest.$ac_ext >&5
1873     rm -rf conftest*
1874     eval "ac_cv_lib_$ac_lib_var=no"
1875     fi
1876     rm -f conftest*
1877     LIBS="$ac_save_LIBS"
1878    
1879     fi
1880     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1881     echo "$ac_t""yes" 1>&6
1882     X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1883     else
1884     echo "$ac_t""no" 1>&6
1885     fi
1886    
1887     fi
1888    
1889     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1890     echo $ac_n "checking for shmat""... $ac_c" 1>&6
1891 cebix 1.11 echo "configure:1892: checking for shmat" >&5
1892 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1893     echo $ac_n "(cached) $ac_c" 1>&6
1894     else
1895     cat > conftest.$ac_ext <<EOF
1896 cebix 1.11 #line 1897 "configure"
1897 cebix 1.1 #include "confdefs.h"
1898     /* System header to define __stub macros and hopefully few prototypes,
1899     which can conflict with char shmat(); below. */
1900     #include <assert.h>
1901     /* Override any gcc2 internal prototype to avoid an error. */
1902     /* We use char because int might match the return type of a gcc2
1903     builtin and then its argument prototype would still apply. */
1904     char shmat();
1905    
1906     int main() {
1907    
1908     /* The GNU C library defines this for functions which it implements
1909     to always fail with ENOSYS. Some functions are actually named
1910     something starting with __ and the normal name is an alias. */
1911     #if defined (__stub_shmat) || defined (__stub___shmat)
1912     choke me
1913     #else
1914     shmat();
1915     #endif
1916    
1917     ; return 0; }
1918     EOF
1919 cebix 1.11 if { (eval echo configure:1920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1920 cebix 1.1 rm -rf conftest*
1921     eval "ac_cv_func_shmat=yes"
1922     else
1923     echo "configure: failed program was:" >&5
1924     cat conftest.$ac_ext >&5
1925     rm -rf conftest*
1926     eval "ac_cv_func_shmat=no"
1927     fi
1928     rm -f conftest*
1929     fi
1930    
1931     if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1932     echo "$ac_t""yes" 1>&6
1933     :
1934     else
1935     echo "$ac_t""no" 1>&6
1936     fi
1937    
1938     if test $ac_cv_func_shmat = no; then
1939     echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1940 cebix 1.11 echo "configure:1941: checking for shmat in -lipc" >&5
1941 cebix 1.1 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1942     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1943     echo $ac_n "(cached) $ac_c" 1>&6
1944     else
1945     ac_save_LIBS="$LIBS"
1946     LIBS="-lipc $LIBS"
1947     cat > conftest.$ac_ext <<EOF
1948 cebix 1.11 #line 1949 "configure"
1949 cebix 1.1 #include "confdefs.h"
1950     /* Override any gcc2 internal prototype to avoid an error. */
1951     /* We use char because int might match the return type of a gcc2
1952     builtin and then its argument prototype would still apply. */
1953     char shmat();
1954    
1955     int main() {
1956     shmat()
1957     ; return 0; }
1958     EOF
1959 cebix 1.11 if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1960 cebix 1.1 rm -rf conftest*
1961     eval "ac_cv_lib_$ac_lib_var=yes"
1962     else
1963     echo "configure: failed program was:" >&5
1964     cat conftest.$ac_ext >&5
1965     rm -rf conftest*
1966     eval "ac_cv_lib_$ac_lib_var=no"
1967     fi
1968     rm -f conftest*
1969     LIBS="$ac_save_LIBS"
1970    
1971     fi
1972     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1973     echo "$ac_t""yes" 1>&6
1974     X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1975     else
1976     echo "$ac_t""no" 1>&6
1977     fi
1978    
1979     fi
1980     fi
1981    
1982     # Check for libraries that X11R6 Xt/Xaw programs need.
1983     ac_save_LDFLAGS="$LDFLAGS"
1984     test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1985     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1986     # check for ICE first), but we must link in the order -lSM -lICE or
1987     # we get undefined symbols. So assume we have SM if we have ICE.
1988     # These have to be linked with before -lX11, unlike the other
1989     # libraries we check for below, so use a different variable.
1990     # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1991     echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1992 cebix 1.11 echo "configure:1993: checking for IceConnectionNumber in -lICE" >&5
1993 cebix 1.1 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1994     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1995     echo $ac_n "(cached) $ac_c" 1>&6
1996     else
1997     ac_save_LIBS="$LIBS"
1998     LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1999     cat > conftest.$ac_ext <<EOF
2000 cebix 1.11 #line 2001 "configure"
2001 cebix 1.1 #include "confdefs.h"
2002     /* Override any gcc2 internal prototype to avoid an error. */
2003     /* We use char because int might match the return type of a gcc2
2004     builtin and then its argument prototype would still apply. */
2005     char IceConnectionNumber();
2006    
2007     int main() {
2008     IceConnectionNumber()
2009     ; return 0; }
2010     EOF
2011 cebix 1.11 if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2012 cebix 1.1 rm -rf conftest*
2013     eval "ac_cv_lib_$ac_lib_var=yes"
2014     else
2015     echo "configure: failed program was:" >&5
2016     cat conftest.$ac_ext >&5
2017     rm -rf conftest*
2018     eval "ac_cv_lib_$ac_lib_var=no"
2019     fi
2020     rm -f conftest*
2021     LIBS="$ac_save_LIBS"
2022    
2023     fi
2024     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2025     echo "$ac_t""yes" 1>&6
2026     X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2027     else
2028     echo "$ac_t""no" 1>&6
2029     fi
2030    
2031     LDFLAGS="$ac_save_LDFLAGS"
2032    
2033     fi
2034    
2035     if [ "x$no_x" = "xyes" ]; then
2036     { echo "configure: error: You need X11 to run Basilisk II." 1>&2; exit 1; }
2037     fi
2038     CFLAGS="$CFLAGS $X_CFLAGS"
2039     CXXFLAGS="$CXXFLAGS $X_CFLAGS"
2040     LIBS="$LIBS $X_PRE_LIBS $X_LIBS -lX11 -lXext $X_EXTRA_LIBS"
2041    
2042     echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
2043 cebix 1.11 echo "configure:2044: checking for pthread_create in -lpthread" >&5
2044 cebix 1.1 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
2045     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2046     echo $ac_n "(cached) $ac_c" 1>&6
2047     else
2048     ac_save_LIBS="$LIBS"
2049     LIBS="-lpthread $LIBS"
2050     cat > conftest.$ac_ext <<EOF
2051 cebix 1.11 #line 2052 "configure"
2052 cebix 1.1 #include "confdefs.h"
2053     /* Override any gcc2 internal prototype to avoid an error. */
2054     /* We use char because int might match the return type of a gcc2
2055     builtin and then its argument prototype would still apply. */
2056     char pthread_create();
2057    
2058     int main() {
2059     pthread_create()
2060     ; return 0; }
2061     EOF
2062 cebix 1.11 if { (eval echo configure:2063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2063 cebix 1.1 rm -rf conftest*
2064     eval "ac_cv_lib_$ac_lib_var=yes"
2065     else
2066     echo "configure: failed program was:" >&5
2067     cat conftest.$ac_ext >&5
2068     rm -rf conftest*
2069     eval "ac_cv_lib_$ac_lib_var=no"
2070     fi
2071     rm -f conftest*
2072     LIBS="$ac_save_LIBS"
2073    
2074     fi
2075     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2076     echo "$ac_t""yes" 1>&6
2077 cebix 1.9 ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2078     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2079     cat >> confdefs.h <<EOF
2080     #define $ac_tr_lib 1
2081     EOF
2082    
2083     LIBS="-lpthread $LIBS"
2084    
2085 cebix 1.1 else
2086     echo "$ac_t""no" 1>&6
2087    
2088 cebix 1.9 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
2089 cebix 1.11 echo "configure:2090: checking for pthread_create in -lc_r" >&5
2090 cebix 1.1 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
2091     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2092     echo $ac_n "(cached) $ac_c" 1>&6
2093     else
2094     ac_save_LIBS="$LIBS"
2095     LIBS="-lc_r $LIBS"
2096     cat > conftest.$ac_ext <<EOF
2097 cebix 1.11 #line 2098 "configure"
2098 cebix 1.1 #include "confdefs.h"
2099     /* Override any gcc2 internal prototype to avoid an error. */
2100     /* We use char because int might match the return type of a gcc2
2101     builtin and then its argument prototype would still apply. */
2102     char pthread_create();
2103    
2104     int main() {
2105     pthread_create()
2106     ; return 0; }
2107     EOF
2108 cebix 1.11 if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2109 cebix 1.1 rm -rf conftest*
2110     eval "ac_cv_lib_$ac_lib_var=yes"
2111     else
2112     echo "configure: failed program was:" >&5
2113     cat conftest.$ac_ext >&5
2114     rm -rf conftest*
2115     eval "ac_cv_lib_$ac_lib_var=no"
2116     fi
2117     rm -f conftest*
2118     LIBS="$ac_save_LIBS"
2119    
2120     fi
2121     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2122     echo "$ac_t""yes" 1>&6
2123 cebix 1.9 ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2124     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2125     cat >> confdefs.h <<EOF
2126     #define $ac_tr_lib 1
2127     EOF
2128    
2129     LIBS="-lc_r $LIBS"
2130    
2131 cebix 1.1 else
2132     echo "$ac_t""no" 1>&6
2133    
2134 cebix 1.9 echo $ac_n "checking for pthread_create in -lPTL""... $ac_c" 1>&6
2135 cebix 1.11 echo "configure:2136: checking for pthread_create in -lPTL" >&5
2136 cebix 1.5 ac_lib_var=`echo PTL'_'pthread_create | sed 'y%./+-%__p_%'`
2137     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2138     echo $ac_n "(cached) $ac_c" 1>&6
2139     else
2140     ac_save_LIBS="$LIBS"
2141     LIBS="-lPTL $LIBS"
2142     cat > conftest.$ac_ext <<EOF
2143 cebix 1.11 #line 2144 "configure"
2144 cebix 1.5 #include "confdefs.h"
2145     /* Override any gcc2 internal prototype to avoid an error. */
2146     /* We use char because int might match the return type of a gcc2
2147     builtin and then its argument prototype would still apply. */
2148     char pthread_create();
2149    
2150     int main() {
2151     pthread_create()
2152     ; return 0; }
2153     EOF
2154 cebix 1.11 if { (eval echo configure:2155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2155 cebix 1.5 rm -rf conftest*
2156     eval "ac_cv_lib_$ac_lib_var=yes"
2157     else
2158     echo "configure: failed program was:" >&5
2159     cat conftest.$ac_ext >&5
2160     rm -rf conftest*
2161     eval "ac_cv_lib_$ac_lib_var=no"
2162     fi
2163     rm -f conftest*
2164     LIBS="$ac_save_LIBS"
2165    
2166     fi
2167     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2168     echo "$ac_t""yes" 1>&6
2169 cebix 1.9 ac_tr_lib=HAVE_LIB`echo PTL | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2170     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2171     cat >> confdefs.h <<EOF
2172     #define $ac_tr_lib 1
2173     EOF
2174    
2175     LIBS="-lPTL $LIBS"
2176    
2177 cebix 1.5 else
2178     echo "$ac_t""no" 1>&6
2179 cebix 1.9
2180     { echo "configure: error: You need pthreads to run Basilisk II." 1>&2; exit 1; }
2181    
2182 cebix 1.5 fi
2183    
2184 cebix 1.9
2185     fi
2186    
2187    
2188 cebix 1.1 fi
2189 cebix 1.9
2190    
2191     SEMSRCS=
2192     for ac_func in sem_init
2193 cebix 1.1 do
2194     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2195 cebix 1.11 echo "configure:2196: checking for $ac_func" >&5
2196 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2197     echo $ac_n "(cached) $ac_c" 1>&6
2198     else
2199     cat > conftest.$ac_ext <<EOF
2200 cebix 1.11 #line 2201 "configure"
2201 cebix 1.1 #include "confdefs.h"
2202     /* System header to define __stub macros and hopefully few prototypes,
2203     which can conflict with char $ac_func(); below. */
2204     #include <assert.h>
2205     /* Override any gcc2 internal prototype to avoid an error. */
2206     /* We use char because int might match the return type of a gcc2
2207     builtin and then its argument prototype would still apply. */
2208     char $ac_func();
2209    
2210     int main() {
2211    
2212     /* The GNU C library defines this for functions which it implements
2213     to always fail with ENOSYS. Some functions are actually named
2214     something starting with __ and the normal name is an alias. */
2215     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2216     choke me
2217     #else
2218     $ac_func();
2219     #endif
2220    
2221     ; return 0; }
2222     EOF
2223 cebix 1.11 if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2224 cebix 1.1 rm -rf conftest*
2225     eval "ac_cv_func_$ac_func=yes"
2226     else
2227     echo "configure: failed program was:" >&5
2228     cat conftest.$ac_ext >&5
2229     rm -rf conftest*
2230     eval "ac_cv_func_$ac_func=no"
2231     fi
2232     rm -f conftest*
2233     fi
2234    
2235     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2236     echo "$ac_t""yes" 1>&6
2237     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2238     cat >> confdefs.h <<EOF
2239     #define $ac_tr_func 1
2240     EOF
2241    
2242     else
2243     echo "$ac_t""no" 1>&6
2244 cebix 1.9 SEMSRCS=posix_sem.cpp
2245    
2246 cebix 1.1 fi
2247     done
2248    
2249    
2250 cebix 1.7 if [ "x$WANT_XF86_DGA" = "xyes" ]; then
2251 cebix 1.1 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
2252 cebix 1.11 echo "configure:2253: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
2253 cebix 1.1 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
2254     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2255     echo $ac_n "(cached) $ac_c" 1>&6
2256     else
2257     ac_save_LIBS="$LIBS"
2258     LIBS="-lXxf86dga $LIBS"
2259     cat > conftest.$ac_ext <<EOF
2260 cebix 1.11 #line 2261 "configure"
2261 cebix 1.1 #include "confdefs.h"
2262     /* Override any gcc2 internal prototype to avoid an error. */
2263     /* We use char because int might match the return type of a gcc2
2264     builtin and then its argument prototype would still apply. */
2265     char XF86DGAQueryExtension();
2266    
2267     int main() {
2268     XF86DGAQueryExtension()
2269     ; return 0; }
2270     EOF
2271 cebix 1.11 if { (eval echo configure:2272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2272 cebix 1.1 rm -rf conftest*
2273     eval "ac_cv_lib_$ac_lib_var=yes"
2274     else
2275     echo "configure: failed program was:" >&5
2276     cat conftest.$ac_ext >&5
2277     rm -rf conftest*
2278     eval "ac_cv_lib_$ac_lib_var=no"
2279     fi
2280     rm -f conftest*
2281     LIBS="$ac_save_LIBS"
2282    
2283     fi
2284     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2285     echo "$ac_t""yes" 1>&6
2286 cebix 1.9
2287 cebix 1.7 DEFINES="$DEFINES -DENABLE_XF86_DGA=1"
2288 cebix 1.1 LIBS="$LIBS -lXxf86dga"
2289 cebix 1.7 if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then
2290     echo "configure: warning: Cannot have both --enable-xf86-dga and --enable-fbdev-dga, ignoring --enable-fbdev-dga." 1>&2
2291     WANT_FBDEV_DGA=no
2292     fi
2293 cebix 1.9
2294     else
2295     echo "$ac_t""no" 1>&6
2296    
2297     echo "configure: warning: Could not find XFree86 DGA extension, ignoring --enable-xf86-dga." 1>&2
2298     DEFINES="$DEFINES -DENABLE_XF86_DGA=0"
2299    
2300     fi
2301    
2302 cebix 1.7 else
2303     DEFINES="$DEFINES -DENABLE_XF86_DGA=0"
2304     fi
2305     if [ "x$WANT_FBDEV_DGA" = "xyes" ]; then
2306     DEFINES="$DEFINES -DENABLE_FBDEV_DGA=1"
2307     else
2308     DEFINES="$DEFINES -DENABLE_FBDEV_DGA=0"
2309 cebix 1.1 fi
2310    
2311 cebix 1.9 UISRCS=../dummy/prefs_editor_dummy.cpp
2312 cebix 1.1 if [ "x$WANT_UI" = "xyes" ]; then
2313     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2314     if test "${with_gtk_prefix+set}" = set; then
2315     withval="$with_gtk_prefix"
2316     gtk_config_prefix="$withval"
2317     else
2318     gtk_config_prefix=""
2319     fi
2320    
2321     # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2322     if test "${with_gtk_exec_prefix+set}" = set; then
2323     withval="$with_gtk_exec_prefix"
2324     gtk_config_exec_prefix="$withval"
2325     else
2326     gtk_config_exec_prefix=""
2327     fi
2328    
2329     # Check whether --enable-gtktest or --disable-gtktest was given.
2330     if test "${enable_gtktest+set}" = set; then
2331     enableval="$enable_gtktest"
2332     :
2333     else
2334     enable_gtktest=yes
2335     fi
2336    
2337    
2338     if test x$gtk_config_exec_prefix != x ; then
2339     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
2340     if test x${GTK_CONFIG+set} != xset ; then
2341     GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
2342     fi
2343     fi
2344     if test x$gtk_config_prefix != x ; then
2345     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
2346     if test x${GTK_CONFIG+set} != xset ; then
2347     GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
2348     fi
2349     fi
2350    
2351     # Extract the first word of "gtk-config", so it can be a program name with args.
2352     set dummy gtk-config; ac_word=$2
2353     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2354 cebix 1.11 echo "configure:2355: checking for $ac_word" >&5
2355 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
2356     echo $ac_n "(cached) $ac_c" 1>&6
2357     else
2358     case "$GTK_CONFIG" in
2359     /*)
2360     ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2361     ;;
2362     ?:/*)
2363     ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
2364     ;;
2365     *)
2366     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2367     ac_dummy="$PATH"
2368     for ac_dir in $ac_dummy; do
2369     test -z "$ac_dir" && ac_dir=.
2370     if test -f $ac_dir/$ac_word; then
2371     ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
2372     break
2373     fi
2374     done
2375     IFS="$ac_save_ifs"
2376     test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2377     ;;
2378     esac
2379     fi
2380     GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
2381     if test -n "$GTK_CONFIG"; then
2382     echo "$ac_t""$GTK_CONFIG" 1>&6
2383     else
2384     echo "$ac_t""no" 1>&6
2385     fi
2386    
2387     min_gtk_version=1.2.0
2388     echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2389 cebix 1.11 echo "configure:2390: checking for GTK - version >= $min_gtk_version" >&5
2390 cebix 1.1 no_gtk=""
2391     if test "$GTK_CONFIG" = "no" ; then
2392     no_gtk=yes
2393     else
2394     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2395     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2396     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2397     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2398     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2399     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2400     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2401     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2402     if test "x$enable_gtktest" = "xyes" ; then
2403     ac_save_CFLAGS="$CFLAGS"
2404     ac_save_LIBS="$LIBS"
2405     CFLAGS="$CFLAGS $GTK_CFLAGS"
2406     LIBS="$LIBS $GTK_LIBS"
2407     rm -f conf.gtktest
2408     if test "$cross_compiling" = yes; then
2409     echo $ac_n "cross compiling; assumed OK... $ac_c"
2410     else
2411     cat > conftest.$ac_ext <<EOF
2412 cebix 1.11 #line 2413 "configure"
2413 cebix 1.1 #include "confdefs.h"
2414    
2415     #include <gtk/gtk.h>
2416     #include <stdio.h>
2417    
2418     int
2419     main ()
2420     {
2421     int major, minor, micro;
2422    
2423     system ("touch conf.gtktest");
2424    
2425     if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
2426     printf("%s, bad version string\n", "$min_gtk_version");
2427     exit(1);
2428     }
2429    
2430     if ((gtk_major_version != $gtk_config_major_version) ||
2431     (gtk_minor_version != $gtk_config_minor_version) ||
2432     (gtk_micro_version != $gtk_config_micro_version))
2433     {
2434     printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2435     $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2436     gtk_major_version, gtk_minor_version, gtk_micro_version);
2437     printf ("*** was found! If gtk-config was correct, then it is best\n");
2438     printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2439     printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2440     printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2441     printf("*** required on your system.\n");
2442     printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2443     printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2444     printf("*** before re-running configure\n");
2445     }
2446     else
2447     {
2448     if ((gtk_major_version > major) ||
2449     ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2450     ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2451     {
2452     return 0;
2453     }
2454     else
2455     {
2456     printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2457     gtk_major_version, gtk_minor_version, gtk_micro_version);
2458     printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2459     major, minor, micro);
2460     printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2461     printf("***\n");
2462     printf("*** If you have already installed a sufficiently new version, this error\n");
2463     printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2464     printf("*** being found. The easiest way to fix this is to remove the old version\n");
2465     printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2466     printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2467     printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2468     printf("*** so that the correct libraries are found at run-time))\n");
2469     }
2470     }
2471     return 1;
2472     }
2473    
2474     EOF
2475 cebix 1.11 if { (eval echo configure:2476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2476 cebix 1.1 then
2477     :
2478     else
2479     echo "configure: failed program was:" >&5
2480     cat conftest.$ac_ext >&5
2481     rm -fr conftest*
2482     no_gtk=yes
2483     fi
2484     rm -fr conftest*
2485     fi
2486    
2487     CFLAGS="$ac_save_CFLAGS"
2488     LIBS="$ac_save_LIBS"
2489     fi
2490     fi
2491     if test "x$no_gtk" = x ; then
2492     echo "$ac_t""yes" 1>&6
2493 cebix 1.9
2494     DEFINES="$DEFINES -DENABLE_GTK=1"
2495     CFLAGS="$CFLAGS $GTK_CFLAGS"
2496     CXXFLAGS="$CXXFLAGS $GTK_CFLAGS"
2497     LIBS="$LIBS $GTK_LIBS"
2498     UISRCS=prefs_editor_gtk.cpp
2499    
2500 cebix 1.1 else
2501     echo "$ac_t""no" 1>&6
2502     if test "$GTK_CONFIG" = "no" ; then
2503     echo "*** The gtk-config script installed by GTK could not be found"
2504     echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2505     echo "*** your path, or set the GTK_CONFIG environment variable to the"
2506     echo "*** full path to gtk-config."
2507     else
2508     if test -f conf.gtktest ; then
2509     :
2510     else
2511     echo "*** Could not run GTK test program, checking why..."
2512     CFLAGS="$CFLAGS $GTK_CFLAGS"
2513     LIBS="$LIBS $GTK_LIBS"
2514     cat > conftest.$ac_ext <<EOF
2515 cebix 1.11 #line 2516 "configure"
2516 cebix 1.1 #include "confdefs.h"
2517    
2518     #include <gtk/gtk.h>
2519     #include <stdio.h>
2520    
2521     int main() {
2522     return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2523     ; return 0; }
2524     EOF
2525 cebix 1.11 if { (eval echo configure:2526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2526 cebix 1.1 rm -rf conftest*
2527     echo "*** The test program compiled, but did not run. This usually means"
2528     echo "*** that the run-time linker is not finding GTK or finding the wrong"
2529     echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2530     echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2531     echo "*** to the installed location Also, make sure you have run ldconfig if that"
2532     echo "*** is required on your system"
2533     echo "***"
2534     echo "*** If you have an old version installed, it is best to remove it, although"
2535     echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2536     echo "***"
2537     echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2538     echo "*** came with the system with the command"
2539     echo "***"
2540     echo "*** rpm --erase --nodeps gtk gtk-devel"
2541     else
2542     echo "configure: failed program was:" >&5
2543     cat conftest.$ac_ext >&5
2544     rm -rf conftest*
2545     echo "*** The test program failed to compile or link. See the file config.log for the"
2546     echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2547     echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2548     echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2549     fi
2550     rm -f conftest*
2551     CFLAGS="$ac_save_CFLAGS"
2552     LIBS="$ac_save_LIBS"
2553     fi
2554     fi
2555     GTK_CFLAGS=""
2556     GTK_LIBS=""
2557 cebix 1.9
2558     echo "configure: warning: Could not find GTK+, disabling user interface." 1>&2
2559     WANT_UI=no
2560    
2561 cebix 1.1 fi
2562    
2563    
2564     rm -f conf.gtktest
2565    
2566 cebix 1.9 fi
2567    
2568     if [ "x$WANT_ESD" = "xyes" ]; then
2569     # Check whether --with-esd-prefix or --without-esd-prefix was given.
2570     if test "${with_esd_prefix+set}" = set; then
2571     withval="$with_esd_prefix"
2572     esd_prefix="$withval"
2573     else
2574     esd_prefix=""
2575     fi
2576    
2577     # Check whether --with-esd-exec-prefix or --without-esd-exec-prefix was given.
2578     if test "${with_esd_exec_prefix+set}" = set; then
2579     withval="$with_esd_exec_prefix"
2580     esd_exec_prefix="$withval"
2581     else
2582     esd_exec_prefix=""
2583     fi
2584    
2585     # Check whether --enable-esdtest or --disable-esdtest was given.
2586     if test "${enable_esdtest+set}" = set; then
2587     enableval="$enable_esdtest"
2588     :
2589     else
2590     enable_esdtest=yes
2591     fi
2592    
2593    
2594     if test x$esd_exec_prefix != x ; then
2595     esd_args="$esd_args --exec-prefix=$esd_exec_prefix"
2596     if test x${ESD_CONFIG+set} != xset ; then
2597     ESD_CONFIG=$esd_exec_prefix/bin/esd-config
2598     fi
2599     fi
2600     if test x$esd_prefix != x ; then
2601     esd_args="$esd_args --prefix=$esd_prefix"
2602     if test x${ESD_CONFIG+set} != xset ; then
2603     ESD_CONFIG=$esd_prefix/bin/esd-config
2604     fi
2605 cebix 1.1 fi
2606 cebix 1.9
2607     # Extract the first word of "esd-config", so it can be a program name with args.
2608     set dummy esd-config; ac_word=$2
2609     echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2610 cebix 1.11 echo "configure:2611: checking for $ac_word" >&5
2611 cebix 1.9 if eval "test \"`echo '$''{'ac_cv_path_ESD_CONFIG'+set}'`\" = set"; then
2612     echo $ac_n "(cached) $ac_c" 1>&6
2613     else
2614     case "$ESD_CONFIG" in
2615     /*)
2616     ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a path.
2617     ;;
2618     ?:/*)
2619     ac_cv_path_ESD_CONFIG="$ESD_CONFIG" # Let the user override the test with a dos path.
2620     ;;
2621     *)
2622     IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2623     ac_dummy="$PATH"
2624     for ac_dir in $ac_dummy; do
2625     test -z "$ac_dir" && ac_dir=.
2626     if test -f $ac_dir/$ac_word; then
2627     ac_cv_path_ESD_CONFIG="$ac_dir/$ac_word"
2628     break
2629     fi
2630     done
2631     IFS="$ac_save_ifs"
2632     test -z "$ac_cv_path_ESD_CONFIG" && ac_cv_path_ESD_CONFIG="no"
2633     ;;
2634     esac
2635     fi
2636     ESD_CONFIG="$ac_cv_path_ESD_CONFIG"
2637     if test -n "$ESD_CONFIG"; then
2638     echo "$ac_t""$ESD_CONFIG" 1>&6
2639     else
2640     echo "$ac_t""no" 1>&6
2641 cebix 1.1 fi
2642    
2643 cebix 1.9 min_esd_version=0.2.8
2644     echo $ac_n "checking for ESD - version >= $min_esd_version""... $ac_c" 1>&6
2645 cebix 1.11 echo "configure:2646: checking for ESD - version >= $min_esd_version" >&5
2646 cebix 1.9 no_esd=""
2647     if test "$ESD_CONFIG" = "no" ; then
2648     no_esd=yes
2649     else
2650     ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
2651     ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
2652    
2653     esd_major_version=`$ESD_CONFIG $esd_args --version | \
2654     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2655     esd_minor_version=`$ESD_CONFIG $esd_args --version | \
2656     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2657     esd_micro_version=`$ESD_CONFIG $esd_config_args --version | \
2658     sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2659     if test "x$enable_esdtest" = "xyes" ; then
2660     ac_save_CFLAGS="$CFLAGS"
2661     ac_save_LIBS="$LIBS"
2662     CFLAGS="$CFLAGS $ESD_CFLAGS"
2663     LIBS="$LIBS $ESD_LIBS"
2664     rm -f conf.esdtest
2665     if test "$cross_compiling" = yes; then
2666     echo $ac_n "cross compiling; assumed OK... $ac_c"
2667 cebix 1.1 else
2668     cat > conftest.$ac_ext <<EOF
2669 cebix 1.11 #line 2670 "configure"
2670 cebix 1.1 #include "confdefs.h"
2671    
2672 cebix 1.9 #include <stdio.h>
2673     #include <stdlib.h>
2674     #include <string.h>
2675     #include <esd.h>
2676    
2677     char*
2678     my_strdup (char *str)
2679     {
2680     char *new_str;
2681    
2682     if (str)
2683     {
2684     new_str = malloc ((strlen (str) + 1) * sizeof(char));
2685     strcpy (new_str, str);
2686     }
2687     else
2688     new_str = NULL;
2689    
2690     return new_str;
2691     }
2692    
2693     int main ()
2694     {
2695     int major, minor, micro;
2696     char *tmp_version;
2697    
2698     system ("touch conf.esdtest");
2699    
2700     /* HP/UX 9 (%@#!) writes to sscanf strings */
2701     tmp_version = my_strdup("$min_esd_version");
2702     if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2703     printf("%s, bad version string\n", "$min_esd_version");
2704     exit(1);
2705     }
2706    
2707     if (($esd_major_version > major) ||
2708     (($esd_major_version == major) && ($esd_minor_version > minor)) ||
2709     (($esd_major_version == major) && ($esd_minor_version == minor) && ($esd_micro_version >= micro)))
2710     {
2711     return 0;
2712     }
2713     else
2714     {
2715     printf("\n*** 'esd-config --version' returned %d.%d.%d, but the minimum version\n", $esd_major_version, $esd_minor_version, $esd_micro_version);
2716     printf("*** of ESD required is %d.%d.%d. If esd-config is correct, then it is\n", major, minor, micro);
2717     printf("*** best to upgrade to the required version.\n");
2718     printf("*** If esd-config was wrong, set the environment variable ESD_CONFIG\n");
2719     printf("*** to point to the correct copy of esd-config, and remove the file\n");
2720     printf("*** config.cache before re-running configure\n");
2721     return 1;
2722     }
2723     }
2724 cebix 1.1
2725    
2726     EOF
2727 cebix 1.11 if { (eval echo configure:2728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2728 cebix 1.9 then
2729     :
2730 cebix 1.1 else
2731     echo "configure: failed program was:" >&5
2732     cat conftest.$ac_ext >&5
2733 cebix 1.9 rm -fr conftest*
2734     no_esd=yes
2735 cebix 1.1 fi
2736 cebix 1.9 rm -fr conftest*
2737 cebix 1.1 fi
2738    
2739 cebix 1.9 CFLAGS="$ac_save_CFLAGS"
2740     LIBS="$ac_save_LIBS"
2741     fi
2742     fi
2743     if test "x$no_esd" = x ; then
2744     echo "$ac_t""yes" 1>&6
2745    
2746     DEFINES="$DEFINES -DENABLE_ESD=1"
2747     CFLAGS="$CFLAGS $ESD_CFLAGS"
2748     CXXFLAGS="$CXXFLAGS $ESD_CFLAGS"
2749     LIBS="$LIBS $ESD_LIBS"
2750    
2751     else
2752     echo "$ac_t""no" 1>&6
2753     if test "$ESD_CONFIG" = "no" ; then
2754     echo "*** The esd-config script installed by ESD could not be found"
2755     echo "*** If ESD was installed in PREFIX, make sure PREFIX/bin is in"
2756     echo "*** your path, or set the ESD_CONFIG environment variable to the"
2757     echo "*** full path to esd-config."
2758     else
2759     if test -f conf.esdtest ; then
2760     :
2761     else
2762     echo "*** Could not run ESD test program, checking why..."
2763     CFLAGS="$CFLAGS $ESD_CFLAGS"
2764     LIBS="$LIBS $ESD_LIBS"
2765     cat > conftest.$ac_ext <<EOF
2766 cebix 1.11 #line 2767 "configure"
2767 cebix 1.9 #include "confdefs.h"
2768 cebix 1.1
2769 cebix 1.9 #include <stdio.h>
2770     #include <esd.h>
2771 cebix 1.1
2772     int main() {
2773 cebix 1.9 return 0;
2774 cebix 1.1 ; return 0; }
2775     EOF
2776 cebix 1.11 if { (eval echo configure:2777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2777 cebix 1.1 rm -rf conftest*
2778 cebix 1.9 echo "*** The test program compiled, but did not run. This usually means"
2779     echo "*** that the run-time linker is not finding ESD or finding the wrong"
2780     echo "*** version of ESD. If it is not finding ESD, you'll need to set your"
2781     echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2782     echo "*** to the installed location Also, make sure you have run ldconfig if that"
2783     echo "*** is required on your system"
2784     echo "***"
2785     echo "*** If you have an old version installed, it is best to remove it, although"
2786     echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2787 cebix 1.1 else
2788     echo "configure: failed program was:" >&5
2789     cat conftest.$ac_ext >&5
2790     rm -rf conftest*
2791 cebix 1.9 echo "*** The test program failed to compile or link. See the file config.log for the"
2792     echo "*** exact error that occured. This usually means ESD was incorrectly installed"
2793     echo "*** or that you have moved ESD since it was installed. In the latter case, you"
2794     echo "*** may want to edit the esd-config script: $ESD_CONFIG"
2795 cebix 1.1 fi
2796     rm -f conftest*
2797 cebix 1.9 CFLAGS="$ac_save_CFLAGS"
2798     LIBS="$ac_save_LIBS"
2799     fi
2800     fi
2801     ESD_CFLAGS=""
2802     ESD_LIBS=""
2803    
2804     echo "configure: warning: Could not find ESD, disabling ESD support." 1>&2
2805     WANT_ESD=no
2806    
2807     fi
2808    
2809    
2810     rm -f conf.esdtest
2811 cebix 1.1
2812     fi
2813    
2814     echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2815 cebix 1.11 echo "configure:2816: checking for ANSI C header files" >&5
2816 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2817     echo $ac_n "(cached) $ac_c" 1>&6
2818     else
2819     cat > conftest.$ac_ext <<EOF
2820 cebix 1.11 #line 2821 "configure"
2821 cebix 1.1 #include "confdefs.h"
2822     #include <stdlib.h>
2823     #include <stdarg.h>
2824     #include <string.h>
2825     #include <float.h>
2826     EOF
2827     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2828 cebix 1.11 { (eval echo configure:2829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2829 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2830     if test -z "$ac_err"; then
2831     rm -rf conftest*
2832     ac_cv_header_stdc=yes
2833     else
2834     echo "$ac_err" >&5
2835     echo "configure: failed program was:" >&5
2836     cat conftest.$ac_ext >&5
2837     rm -rf conftest*
2838     ac_cv_header_stdc=no
2839     fi
2840     rm -f conftest*
2841    
2842     if test $ac_cv_header_stdc = yes; then
2843     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2844     cat > conftest.$ac_ext <<EOF
2845 cebix 1.11 #line 2846 "configure"
2846 cebix 1.1 #include "confdefs.h"
2847     #include <string.h>
2848     EOF
2849     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2850     egrep "memchr" >/dev/null 2>&1; then
2851     :
2852     else
2853     rm -rf conftest*
2854     ac_cv_header_stdc=no
2855     fi
2856     rm -f conftest*
2857    
2858     fi
2859    
2860     if test $ac_cv_header_stdc = yes; then
2861     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2862     cat > conftest.$ac_ext <<EOF
2863 cebix 1.11 #line 2864 "configure"
2864 cebix 1.1 #include "confdefs.h"
2865     #include <stdlib.h>
2866     EOF
2867     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2868     egrep "free" >/dev/null 2>&1; then
2869     :
2870     else
2871     rm -rf conftest*
2872     ac_cv_header_stdc=no
2873     fi
2874     rm -f conftest*
2875    
2876     fi
2877    
2878     if test $ac_cv_header_stdc = yes; then
2879     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2880     if test "$cross_compiling" = yes; then
2881     :
2882     else
2883     cat > conftest.$ac_ext <<EOF
2884 cebix 1.11 #line 2885 "configure"
2885 cebix 1.1 #include "confdefs.h"
2886     #include <ctype.h>
2887     #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2888     #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2889     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2890     int main () { int i; for (i = 0; i < 256; i++)
2891     if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2892     exit (0); }
2893    
2894     EOF
2895 cebix 1.11 if { (eval echo configure:2896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2896 cebix 1.1 then
2897     :
2898     else
2899     echo "configure: failed program was:" >&5
2900     cat conftest.$ac_ext >&5
2901     rm -fr conftest*
2902     ac_cv_header_stdc=no
2903     fi
2904     rm -fr conftest*
2905     fi
2906    
2907     fi
2908     fi
2909    
2910     echo "$ac_t""$ac_cv_header_stdc" 1>&6
2911     if test $ac_cv_header_stdc = yes; then
2912     cat >> confdefs.h <<\EOF
2913     #define STDC_HEADERS 1
2914     EOF
2915    
2916     fi
2917    
2918     for ac_hdr in unistd.h fcntl.h sys/time.h
2919     do
2920     ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2921     echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2922 cebix 1.11 echo "configure:2923: checking for $ac_hdr" >&5
2923 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2924     echo $ac_n "(cached) $ac_c" 1>&6
2925     else
2926     cat > conftest.$ac_ext <<EOF
2927 cebix 1.11 #line 2928 "configure"
2928 cebix 1.1 #include "confdefs.h"
2929     #include <$ac_hdr>
2930     EOF
2931     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2932 cebix 1.11 { (eval echo configure:2933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2933 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2934     if test -z "$ac_err"; then
2935     rm -rf conftest*
2936     eval "ac_cv_header_$ac_safe=yes"
2937     else
2938     echo "$ac_err" >&5
2939     echo "configure: failed program was:" >&5
2940     cat conftest.$ac_ext >&5
2941     rm -rf conftest*
2942     eval "ac_cv_header_$ac_safe=no"
2943     fi
2944     rm -f conftest*
2945     fi
2946     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2947     echo "$ac_t""yes" 1>&6
2948     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2949     cat >> confdefs.h <<EOF
2950     #define $ac_tr_hdr 1
2951     EOF
2952    
2953     else
2954     echo "$ac_t""no" 1>&6
2955     fi
2956     done
2957    
2958    
2959     echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2960 cebix 1.11 echo "configure:2961: checking whether byte ordering is bigendian" >&5
2961 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2962     echo $ac_n "(cached) $ac_c" 1>&6
2963     else
2964     ac_cv_c_bigendian=unknown
2965     # See if sys/param.h defines the BYTE_ORDER macro.
2966     cat > conftest.$ac_ext <<EOF
2967 cebix 1.11 #line 2968 "configure"
2968 cebix 1.1 #include "confdefs.h"
2969     #include <sys/types.h>
2970     #include <sys/param.h>
2971     int main() {
2972    
2973     #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2974     bogus endian macros
2975     #endif
2976     ; return 0; }
2977     EOF
2978 cebix 1.11 if { (eval echo configure:2979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2979 cebix 1.1 rm -rf conftest*
2980     # It does; now see whether it defined to BIG_ENDIAN or not.
2981     cat > conftest.$ac_ext <<EOF
2982 cebix 1.11 #line 2983 "configure"
2983 cebix 1.1 #include "confdefs.h"
2984     #include <sys/types.h>
2985     #include <sys/param.h>
2986     int main() {
2987    
2988     #if BYTE_ORDER != BIG_ENDIAN
2989     not big endian
2990     #endif
2991     ; return 0; }
2992     EOF
2993 cebix 1.11 if { (eval echo configure:2994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2994 cebix 1.1 rm -rf conftest*
2995     ac_cv_c_bigendian=yes
2996     else
2997     echo "configure: failed program was:" >&5
2998     cat conftest.$ac_ext >&5
2999     rm -rf conftest*
3000     ac_cv_c_bigendian=no
3001     fi
3002     rm -f conftest*
3003     else
3004     echo "configure: failed program was:" >&5
3005     cat conftest.$ac_ext >&5
3006     fi
3007     rm -f conftest*
3008     if test $ac_cv_c_bigendian = unknown; then
3009     if test "$cross_compiling" = yes; then
3010     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3011     else
3012     cat > conftest.$ac_ext <<EOF
3013 cebix 1.11 #line 3014 "configure"
3014 cebix 1.1 #include "confdefs.h"
3015     main () {
3016     /* Are we little or big endian? From Harbison&Steele. */
3017     union
3018     {
3019     long l;
3020     char c[sizeof (long)];
3021     } u;
3022     u.l = 1;
3023     exit (u.c[sizeof (long) - 1] == 1);
3024     }
3025     EOF
3026 cebix 1.11 if { (eval echo configure:3027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3027 cebix 1.1 then
3028     ac_cv_c_bigendian=no
3029     else
3030     echo "configure: failed program was:" >&5
3031     cat conftest.$ac_ext >&5
3032     rm -fr conftest*
3033     ac_cv_c_bigendian=yes
3034     fi
3035     rm -fr conftest*
3036     fi
3037    
3038     fi
3039     fi
3040    
3041     echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3042     if test $ac_cv_c_bigendian = yes; then
3043     cat >> confdefs.h <<\EOF
3044     #define WORDS_BIGENDIAN 1
3045     EOF
3046    
3047     fi
3048    
3049     echo $ac_n "checking for working const""... $ac_c" 1>&6
3050 cebix 1.11 echo "configure:3051: checking for working const" >&5
3051 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3052     echo $ac_n "(cached) $ac_c" 1>&6
3053     else
3054     cat > conftest.$ac_ext <<EOF
3055 cebix 1.11 #line 3056 "configure"
3056 cebix 1.1 #include "confdefs.h"
3057    
3058     int main() {
3059    
3060     /* Ultrix mips cc rejects this. */
3061     typedef int charset[2]; const charset x;
3062     /* SunOS 4.1.1 cc rejects this. */
3063     char const *const *ccp;
3064     char **p;
3065     /* NEC SVR4.0.2 mips cc rejects this. */
3066     struct point {int x, y;};
3067     static struct point const zero = {0,0};
3068     /* AIX XL C 1.02.0.0 rejects this.
3069     It does not let you subtract one const X* pointer from another in an arm
3070     of an if-expression whose if-part is not a constant expression */
3071     const char *g = "string";
3072     ccp = &g + (g ? g-g : 0);
3073     /* HPUX 7.0 cc rejects these. */
3074     ++ccp;
3075     p = (char**) ccp;
3076     ccp = (char const *const *) p;
3077     { /* SCO 3.2v4 cc rejects this. */
3078     char *t;
3079     char const *s = 0 ? (char *) 0 : (char const *) 0;
3080    
3081     *t++ = 0;
3082     }
3083     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3084     int x[] = {25, 17};
3085     const int *foo = &x[0];
3086     ++foo;
3087     }
3088     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3089     typedef const int *iptr;
3090     iptr p = 0;
3091     ++p;
3092     }
3093     { /* AIX XL C 1.02.0.0 rejects this saying
3094     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3095     struct s { int j; const int *ap[3]; };
3096     struct s *b; b->j = 5;
3097     }
3098     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3099     const int foo = 10;
3100     }
3101    
3102     ; return 0; }
3103     EOF
3104 cebix 1.11 if { (eval echo configure:3105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3105 cebix 1.1 rm -rf conftest*
3106     ac_cv_c_const=yes
3107     else
3108     echo "configure: failed program was:" >&5
3109     cat conftest.$ac_ext >&5
3110     rm -rf conftest*
3111     ac_cv_c_const=no
3112     fi
3113     rm -f conftest*
3114     fi
3115    
3116     echo "$ac_t""$ac_cv_c_const" 1>&6
3117     if test $ac_cv_c_const = no; then
3118     cat >> confdefs.h <<\EOF
3119     #define const
3120     EOF
3121    
3122     fi
3123    
3124     echo $ac_n "checking for inline""... $ac_c" 1>&6
3125 cebix 1.11 echo "configure:3126: checking for inline" >&5
3126 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3127     echo $ac_n "(cached) $ac_c" 1>&6
3128     else
3129     ac_cv_c_inline=no
3130     for ac_kw in inline __inline__ __inline; do
3131     cat > conftest.$ac_ext <<EOF
3132 cebix 1.11 #line 3133 "configure"
3133 cebix 1.1 #include "confdefs.h"
3134    
3135     int main() {
3136     } $ac_kw foo() {
3137     ; return 0; }
3138     EOF
3139 cebix 1.11 if { (eval echo configure:3140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3140 cebix 1.1 rm -rf conftest*
3141     ac_cv_c_inline=$ac_kw; break
3142     else
3143     echo "configure: failed program was:" >&5
3144     cat conftest.$ac_ext >&5
3145     fi
3146     rm -f conftest*
3147     done
3148    
3149     fi
3150    
3151     echo "$ac_t""$ac_cv_c_inline" 1>&6
3152     case "$ac_cv_c_inline" in
3153     inline | yes) ;;
3154     no) cat >> confdefs.h <<\EOF
3155     #define inline
3156     EOF
3157     ;;
3158     *) cat >> confdefs.h <<EOF
3159     #define inline $ac_cv_c_inline
3160     EOF
3161     ;;
3162     esac
3163    
3164     echo $ac_n "checking size of short""... $ac_c" 1>&6
3165 cebix 1.11 echo "configure:3166: checking size of short" >&5
3166 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3167     echo $ac_n "(cached) $ac_c" 1>&6
3168     else
3169     if test "$cross_compiling" = yes; then
3170     ac_cv_sizeof_short=2
3171     else
3172     cat > conftest.$ac_ext <<EOF
3173 cebix 1.11 #line 3174 "configure"
3174 cebix 1.1 #include "confdefs.h"
3175     #include <stdio.h>
3176     main()
3177     {
3178     FILE *f=fopen("conftestval", "w");
3179     if (!f) exit(1);
3180     fprintf(f, "%d\n", sizeof(short));
3181     exit(0);
3182     }
3183     EOF
3184 cebix 1.11 if { (eval echo configure:3185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3185 cebix 1.1 then
3186     ac_cv_sizeof_short=`cat conftestval`
3187     else
3188     echo "configure: failed program was:" >&5
3189     cat conftest.$ac_ext >&5
3190     rm -fr conftest*
3191     ac_cv_sizeof_short=0
3192     fi
3193     rm -fr conftest*
3194     fi
3195    
3196     fi
3197     echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3198     cat >> confdefs.h <<EOF
3199     #define SIZEOF_SHORT $ac_cv_sizeof_short
3200     EOF
3201    
3202    
3203     echo $ac_n "checking size of int""... $ac_c" 1>&6
3204 cebix 1.11 echo "configure:3205: checking size of int" >&5
3205 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3206     echo $ac_n "(cached) $ac_c" 1>&6
3207     else
3208     if test "$cross_compiling" = yes; then
3209     ac_cv_sizeof_int=4
3210     else
3211     cat > conftest.$ac_ext <<EOF
3212 cebix 1.11 #line 3213 "configure"
3213 cebix 1.1 #include "confdefs.h"
3214     #include <stdio.h>
3215     main()
3216     {
3217     FILE *f=fopen("conftestval", "w");
3218     if (!f) exit(1);
3219     fprintf(f, "%d\n", sizeof(int));
3220     exit(0);
3221     }
3222     EOF
3223 cebix 1.11 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3224 cebix 1.1 then
3225     ac_cv_sizeof_int=`cat conftestval`
3226     else
3227     echo "configure: failed program was:" >&5
3228     cat conftest.$ac_ext >&5
3229     rm -fr conftest*
3230     ac_cv_sizeof_int=0
3231     fi
3232     rm -fr conftest*
3233     fi
3234    
3235     fi
3236     echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3237     cat >> confdefs.h <<EOF
3238     #define SIZEOF_INT $ac_cv_sizeof_int
3239     EOF
3240    
3241    
3242     echo $ac_n "checking size of long""... $ac_c" 1>&6
3243 cebix 1.11 echo "configure:3244: checking size of long" >&5
3244 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3245     echo $ac_n "(cached) $ac_c" 1>&6
3246     else
3247     if test "$cross_compiling" = yes; then
3248     ac_cv_sizeof_long=4
3249     else
3250     cat > conftest.$ac_ext <<EOF
3251 cebix 1.11 #line 3252 "configure"
3252 cebix 1.1 #include "confdefs.h"
3253     #include <stdio.h>
3254     main()
3255     {
3256     FILE *f=fopen("conftestval", "w");
3257     if (!f) exit(1);
3258     fprintf(f, "%d\n", sizeof(long));
3259     exit(0);
3260     }
3261     EOF
3262 cebix 1.11 if { (eval echo configure:3263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3263 cebix 1.1 then
3264     ac_cv_sizeof_long=`cat conftestval`
3265     else
3266     echo "configure: failed program was:" >&5
3267     cat conftest.$ac_ext >&5
3268     rm -fr conftest*
3269     ac_cv_sizeof_long=0
3270     fi
3271     rm -fr conftest*
3272     fi
3273    
3274     fi
3275     echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3276     cat >> confdefs.h <<EOF
3277     #define SIZEOF_LONG $ac_cv_sizeof_long
3278     EOF
3279    
3280    
3281     echo $ac_n "checking size of long long""... $ac_c" 1>&6
3282 cebix 1.11 echo "configure:3283: checking size of long long" >&5
3283 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3284     echo $ac_n "(cached) $ac_c" 1>&6
3285     else
3286     if test "$cross_compiling" = yes; then
3287     ac_cv_sizeof_long_long=8
3288     else
3289     cat > conftest.$ac_ext <<EOF
3290 cebix 1.11 #line 3291 "configure"
3291 cebix 1.1 #include "confdefs.h"
3292     #include <stdio.h>
3293     main()
3294     {
3295     FILE *f=fopen("conftestval", "w");
3296     if (!f) exit(1);
3297     fprintf(f, "%d\n", sizeof(long long));
3298     exit(0);
3299     }
3300     EOF
3301 cebix 1.11 if { (eval echo configure:3302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3302 cebix 1.1 then
3303     ac_cv_sizeof_long_long=`cat conftestval`
3304     else
3305     echo "configure: failed program was:" >&5
3306     cat conftest.$ac_ext >&5
3307     rm -fr conftest*
3308     ac_cv_sizeof_long_long=0
3309     fi
3310     rm -fr conftest*
3311     fi
3312    
3313     fi
3314     echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3315     cat >> confdefs.h <<EOF
3316     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3317     EOF
3318    
3319    
3320     echo $ac_n "checking for off_t""... $ac_c" 1>&6
3321 cebix 1.11 echo "configure:3322: checking for off_t" >&5
3322 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3323     echo $ac_n "(cached) $ac_c" 1>&6
3324     else
3325     cat > conftest.$ac_ext <<EOF
3326 cebix 1.11 #line 3327 "configure"
3327 cebix 1.1 #include "confdefs.h"
3328     #include <sys/types.h>
3329     #if STDC_HEADERS
3330     #include <stdlib.h>
3331     #include <stddef.h>
3332     #endif
3333     EOF
3334     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3335     egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3336     rm -rf conftest*
3337     ac_cv_type_off_t=yes
3338     else
3339     rm -rf conftest*
3340     ac_cv_type_off_t=no
3341     fi
3342     rm -f conftest*
3343    
3344     fi
3345     echo "$ac_t""$ac_cv_type_off_t" 1>&6
3346     if test $ac_cv_type_off_t = no; then
3347     cat >> confdefs.h <<\EOF
3348     #define off_t long
3349     EOF
3350    
3351     fi
3352    
3353     echo $ac_n "checking for loff_t""... $ac_c" 1>&6
3354 cebix 1.11 echo "configure:3355: checking for loff_t" >&5
3355 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_type_loff_t'+set}'`\" = set"; then
3356     echo $ac_n "(cached) $ac_c" 1>&6
3357     else
3358     cat > conftest.$ac_ext <<EOF
3359 cebix 1.11 #line 3360 "configure"
3360 cebix 1.1 #include "confdefs.h"
3361     #include <sys/types.h>
3362     #if STDC_HEADERS
3363     #include <stdlib.h>
3364     #include <stddef.h>
3365     #endif
3366     EOF
3367     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3368     egrep "(^|[^a-zA-Z_0-9])loff_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3369     rm -rf conftest*
3370     ac_cv_type_loff_t=yes
3371     else
3372     rm -rf conftest*
3373     ac_cv_type_loff_t=no
3374     fi
3375     rm -f conftest*
3376    
3377     fi
3378     echo "$ac_t""$ac_cv_type_loff_t" 1>&6
3379     if test $ac_cv_type_loff_t = no; then
3380     cat >> confdefs.h <<\EOF
3381     #define loff_t off_t
3382     EOF
3383    
3384     fi
3385    
3386     echo $ac_n "checking for size_t""... $ac_c" 1>&6
3387 cebix 1.11 echo "configure:3388: checking for size_t" >&5
3388 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3389     echo $ac_n "(cached) $ac_c" 1>&6
3390     else
3391     cat > conftest.$ac_ext <<EOF
3392 cebix 1.11 #line 3393 "configure"
3393 cebix 1.1 #include "confdefs.h"
3394     #include <sys/types.h>
3395     #if STDC_HEADERS
3396     #include <stdlib.h>
3397     #include <stddef.h>
3398     #endif
3399     EOF
3400     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401     egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3402     rm -rf conftest*
3403     ac_cv_type_size_t=yes
3404     else
3405     rm -rf conftest*
3406     ac_cv_type_size_t=no
3407     fi
3408     rm -f conftest*
3409    
3410     fi
3411     echo "$ac_t""$ac_cv_type_size_t" 1>&6
3412     if test $ac_cv_type_size_t = no; then
3413     cat >> confdefs.h <<\EOF
3414     #define size_t unsigned
3415     EOF
3416    
3417     fi
3418    
3419     echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3420 cebix 1.11 echo "configure:3421: checking whether time.h and sys/time.h may both be included" >&5
3421 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3422     echo $ac_n "(cached) $ac_c" 1>&6
3423     else
3424     cat > conftest.$ac_ext <<EOF
3425 cebix 1.11 #line 3426 "configure"
3426 cebix 1.1 #include "confdefs.h"
3427     #include <sys/types.h>
3428     #include <sys/time.h>
3429     #include <time.h>
3430     int main() {
3431     struct tm *tp;
3432     ; return 0; }
3433     EOF
3434 cebix 1.11 if { (eval echo configure:3435: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3435 cebix 1.1 rm -rf conftest*
3436     ac_cv_header_time=yes
3437     else
3438     echo "configure: failed program was:" >&5
3439     cat conftest.$ac_ext >&5
3440     rm -rf conftest*
3441     ac_cv_header_time=no
3442     fi
3443     rm -f conftest*
3444     fi
3445    
3446     echo "$ac_t""$ac_cv_header_time" 1>&6
3447     if test $ac_cv_header_time = yes; then
3448     cat >> confdefs.h <<\EOF
3449     #define TIME_WITH_SYS_TIME 1
3450     EOF
3451    
3452     fi
3453    
3454     echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3455 cebix 1.11 echo "configure:3456: checking whether struct tm is in sys/time.h or time.h" >&5
3456 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3457     echo $ac_n "(cached) $ac_c" 1>&6
3458     else
3459     cat > conftest.$ac_ext <<EOF
3460 cebix 1.11 #line 3461 "configure"
3461 cebix 1.1 #include "confdefs.h"
3462     #include <sys/types.h>
3463     #include <time.h>
3464     int main() {
3465     struct tm *tp; tp->tm_sec;
3466     ; return 0; }
3467     EOF
3468 cebix 1.11 if { (eval echo configure:3469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3469 cebix 1.1 rm -rf conftest*
3470     ac_cv_struct_tm=time.h
3471     else
3472     echo "configure: failed program was:" >&5
3473     cat conftest.$ac_ext >&5
3474     rm -rf conftest*
3475     ac_cv_struct_tm=sys/time.h
3476     fi
3477     rm -f conftest*
3478     fi
3479    
3480     echo "$ac_t""$ac_cv_struct_tm" 1>&6
3481     if test $ac_cv_struct_tm = sys/time.h; then
3482     cat >> confdefs.h <<\EOF
3483     #define TM_IN_SYS_TIME 1
3484     EOF
3485    
3486     fi
3487    
3488    
3489     for ac_func in strdup cfmakeraw
3490     do
3491     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3492 cebix 1.11 echo "configure:3493: checking for $ac_func" >&5
3493 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3494     echo $ac_n "(cached) $ac_c" 1>&6
3495     else
3496     cat > conftest.$ac_ext <<EOF
3497 cebix 1.11 #line 3498 "configure"
3498 cebix 1.1 #include "confdefs.h"
3499     /* System header to define __stub macros and hopefully few prototypes,
3500     which can conflict with char $ac_func(); below. */
3501     #include <assert.h>
3502     /* Override any gcc2 internal prototype to avoid an error. */
3503     /* We use char because int might match the return type of a gcc2
3504     builtin and then its argument prototype would still apply. */
3505     char $ac_func();
3506    
3507     int main() {
3508    
3509     /* The GNU C library defines this for functions which it implements
3510     to always fail with ENOSYS. Some functions are actually named
3511     something starting with __ and the normal name is an alias. */
3512     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3513     choke me
3514     #else
3515     $ac_func();
3516     #endif
3517    
3518     ; return 0; }
3519     EOF
3520 cebix 1.11 if { (eval echo configure:3521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3521 cebix 1.1 rm -rf conftest*
3522     eval "ac_cv_func_$ac_func=yes"
3523     else
3524     echo "configure: failed program was:" >&5
3525     cat conftest.$ac_ext >&5
3526     rm -rf conftest*
3527     eval "ac_cv_func_$ac_func=no"
3528     fi
3529     rm -f conftest*
3530     fi
3531    
3532     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3533     echo "$ac_t""yes" 1>&6
3534     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3535     cat >> confdefs.h <<EOF
3536     #define $ac_tr_func 1
3537     EOF
3538    
3539     else
3540     echo "$ac_t""no" 1>&6
3541     fi
3542     done
3543    
3544     for ac_func in nanosleep clock_gettime timer_create
3545     do
3546     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3547 cebix 1.11 echo "configure:3548: checking for $ac_func" >&5
3548 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3549     echo $ac_n "(cached) $ac_c" 1>&6
3550     else
3551     cat > conftest.$ac_ext <<EOF
3552 cebix 1.11 #line 3553 "configure"
3553 cebix 1.1 #include "confdefs.h"
3554     /* System header to define __stub macros and hopefully few prototypes,
3555     which can conflict with char $ac_func(); below. */
3556     #include <assert.h>
3557     /* Override any gcc2 internal prototype to avoid an error. */
3558     /* We use char because int might match the return type of a gcc2
3559     builtin and then its argument prototype would still apply. */
3560     char $ac_func();
3561    
3562     int main() {
3563    
3564     /* The GNU C library defines this for functions which it implements
3565     to always fail with ENOSYS. Some functions are actually named
3566     something starting with __ and the normal name is an alias. */
3567     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3568     choke me
3569     #else
3570     $ac_func();
3571     #endif
3572    
3573     ; return 0; }
3574     EOF
3575 cebix 1.11 if { (eval echo configure:3576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3576 cebix 1.9 rm -rf conftest*
3577     eval "ac_cv_func_$ac_func=yes"
3578     else
3579     echo "configure: failed program was:" >&5
3580     cat conftest.$ac_ext >&5
3581     rm -rf conftest*
3582     eval "ac_cv_func_$ac_func=no"
3583     fi
3584     rm -f conftest*
3585     fi
3586    
3587     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3588     echo "$ac_t""yes" 1>&6
3589     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3590     cat >> confdefs.h <<EOF
3591     #define $ac_tr_func 1
3592     EOF
3593    
3594     else
3595     echo "$ac_t""no" 1>&6
3596     fi
3597     done
3598    
3599     for ac_func in pthread_cancel
3600     do
3601     echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3602 cebix 1.11 echo "configure:3603: checking for $ac_func" >&5
3603 cebix 1.9 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3604     echo $ac_n "(cached) $ac_c" 1>&6
3605     else
3606     cat > conftest.$ac_ext <<EOF
3607 cebix 1.11 #line 3608 "configure"
3608 cebix 1.9 #include "confdefs.h"
3609     /* System header to define __stub macros and hopefully few prototypes,
3610     which can conflict with char $ac_func(); below. */
3611     #include <assert.h>
3612     /* Override any gcc2 internal prototype to avoid an error. */
3613     /* We use char because int might match the return type of a gcc2
3614     builtin and then its argument prototype would still apply. */
3615     char $ac_func();
3616    
3617     int main() {
3618    
3619     /* The GNU C library defines this for functions which it implements
3620     to always fail with ENOSYS. Some functions are actually named
3621     something starting with __ and the normal name is an alias. */
3622     #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3623     choke me
3624     #else
3625     $ac_func();
3626     #endif
3627    
3628     ; return 0; }
3629     EOF
3630 cebix 1.11 if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3631 cebix 1.1 rm -rf conftest*
3632     eval "ac_cv_func_$ac_func=yes"
3633     else
3634     echo "configure: failed program was:" >&5
3635     cat conftest.$ac_ext >&5
3636     rm -rf conftest*
3637     eval "ac_cv_func_$ac_func=no"
3638     fi
3639     rm -f conftest*
3640     fi
3641    
3642     if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3643     echo "$ac_t""yes" 1>&6
3644     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3645     cat >> confdefs.h <<EOF
3646     #define $ac_tr_func 1
3647     EOF
3648    
3649     else
3650     echo "$ac_t""no" 1>&6
3651     fi
3652     done
3653    
3654    
3655     SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp ../dummy/audio_dummy.cpp"
3656     if MACHINE=`uname -a 2>/dev/null`; then
3657     case "$MACHINE" in
3658     Linux*)
3659 cebix 1.9 SYSSRCS="Linux/ether_linux.cpp Linux/scsi_linux.cpp audio_oss_esd.cpp"
3660 cebix 1.1 ;;
3661     FreeBSD*3.*)
3662     echo $ac_n "checking for cam_open_btl in -lcam""... $ac_c" 1>&6
3663 cebix 1.11 echo "configure:3664: checking for cam_open_btl in -lcam" >&5
3664 cebix 1.1 ac_lib_var=`echo cam'_'cam_open_btl | sed 'y%./+-%__p_%'`
3665     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3666     echo $ac_n "(cached) $ac_c" 1>&6
3667     else
3668     ac_save_LIBS="$LIBS"
3669     LIBS="-lcam $LIBS"
3670     cat > conftest.$ac_ext <<EOF
3671 cebix 1.11 #line 3672 "configure"
3672 cebix 1.1 #include "confdefs.h"
3673     /* Override any gcc2 internal prototype to avoid an error. */
3674     /* We use char because int might match the return type of a gcc2
3675     builtin and then its argument prototype would still apply. */
3676     char cam_open_btl();
3677    
3678     int main() {
3679     cam_open_btl()
3680     ; return 0; }
3681     EOF
3682 cebix 1.11 if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3683 cebix 1.1 rm -rf conftest*
3684     eval "ac_cv_lib_$ac_lib_var=yes"
3685     else
3686     echo "configure: failed program was:" >&5
3687     cat conftest.$ac_ext >&5
3688     rm -rf conftest*
3689     eval "ac_cv_lib_$ac_lib_var=no"
3690     fi
3691     rm -f conftest*
3692     LIBS="$ac_save_LIBS"
3693    
3694     fi
3695     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3696     echo "$ac_t""yes" 1>&6
3697     HAVE_LIBCAM=yes
3698     else
3699     echo "$ac_t""no" 1>&6
3700     HAVE_LIBCAM=no
3701     fi
3702    
3703     if [ "x$HAVE_LIBCAM" = "xno" ]; then
3704     { echo "configure: error: Cannot find libcam for SCSI management." 1>&2; exit 1; }
3705     else
3706     ac_safe=`echo "/sys/cam/cam.h" | sed 'y%./+-%__p_%'`
3707     echo $ac_n "checking for /sys/cam/cam.h""... $ac_c" 1>&6
3708 cebix 1.11 echo "configure:3709: checking for /sys/cam/cam.h" >&5
3709 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3710     echo $ac_n "(cached) $ac_c" 1>&6
3711     else
3712     cat > conftest.$ac_ext <<EOF
3713 cebix 1.11 #line 3714 "configure"
3714 cebix 1.1 #include "confdefs.h"
3715     #include </sys/cam/cam.h>
3716     EOF
3717     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3718 cebix 1.11 { (eval echo configure:3719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3719 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3720     if test -z "$ac_err"; then
3721     rm -rf conftest*
3722     eval "ac_cv_header_$ac_safe=yes"
3723     else
3724     echo "$ac_err" >&5
3725     echo "configure: failed program was:" >&5
3726     cat conftest.$ac_ext >&5
3727     rm -rf conftest*
3728     eval "ac_cv_header_$ac_safe=no"
3729     fi
3730     rm -f conftest*
3731     fi
3732     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3733     echo "$ac_t""yes" 1>&6
3734     :
3735     else
3736     echo "$ac_t""no" 1>&6
3737     fi
3738    
3739     if [ "x$ac_cv_header__sys_cam_cam_h" = "xno" ]; then
3740     { echo "configure: error: Cannot find kernel includes for CAM library." 1>&2; exit 1; }
3741     fi
3742 cebix 1.9 SYSSRCS="../dummy/ether_dummy.cpp FreeBSD/scsi_freebsd.cpp audio_oss_esd.cpp"
3743 cebix 1.1 CXXFLAGS="$CXXFLAGS -I/sys"
3744     CFLAGS="$CFLAGS -I/sys"
3745     LIBS="$LIBS -lcam"
3746     DEFINES="$DEFINES -DBSD_COMP -DCAM"
3747     fi
3748     ;;
3749     FreeBSD*)
3750     echo $ac_n "checking for scsi_open in -lscsi""... $ac_c" 1>&6
3751 cebix 1.11 echo "configure:3752: checking for scsi_open in -lscsi" >&5
3752 cebix 1.1 ac_lib_var=`echo scsi'_'scsi_open | sed 'y%./+-%__p_%'`
3753     if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3754     echo $ac_n "(cached) $ac_c" 1>&6
3755     else
3756     ac_save_LIBS="$LIBS"
3757     LIBS="-lscsi $LIBS"
3758     cat > conftest.$ac_ext <<EOF
3759 cebix 1.11 #line 3760 "configure"
3760 cebix 1.1 #include "confdefs.h"
3761     /* Override any gcc2 internal prototype to avoid an error. */
3762     /* We use char because int might match the return type of a gcc2
3763     builtin and then its argument prototype would still apply. */
3764     char scsi_open();
3765    
3766     int main() {
3767     scsi_open()
3768     ; return 0; }
3769     EOF
3770 cebix 1.11 if { (eval echo configure:3771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3771 cebix 1.1 rm -rf conftest*
3772     eval "ac_cv_lib_$ac_lib_var=yes"
3773     else
3774     echo "configure: failed program was:" >&5
3775     cat conftest.$ac_ext >&5
3776     rm -rf conftest*
3777     eval "ac_cv_lib_$ac_lib_var=no"
3778     fi
3779     rm -f conftest*
3780     LIBS="$ac_save_LIBS"
3781    
3782     fi
3783     if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3784     echo "$ac_t""yes" 1>&6
3785     HAVE_LIBSCSI=yes
3786     else
3787     echo "$ac_t""no" 1>&6
3788     HAVE_LIBSCSI=no
3789     fi
3790    
3791     if [ "x$HAVE_LIBSCSI" = "xno" ]; then
3792     { echo "configure: error: Cannot find libscsi for SCSI management." 1>&2; exit 1; }
3793     else
3794     ac_safe=`echo "scsi.h sys/scsiio.h" | sed 'y%./+-%__p_%'`
3795     echo $ac_n "checking for scsi.h sys/scsiio.h""... $ac_c" 1>&6
3796 cebix 1.11 echo "configure:3797: checking for scsi.h sys/scsiio.h" >&5
3797 cebix 1.1 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3798     echo $ac_n "(cached) $ac_c" 1>&6
3799     else
3800     cat > conftest.$ac_ext <<EOF
3801 cebix 1.11 #line 3802 "configure"
3802 cebix 1.1 #include "confdefs.h"
3803     #include <scsi.h sys/scsiio.h>
3804     EOF
3805     ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3806 cebix 1.11 { (eval echo configure:3807: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3807 cebix 1.1 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3808     if test -z "$ac_err"; then
3809     rm -rf conftest*
3810     eval "ac_cv_header_$ac_safe=yes"
3811     else
3812     echo "$ac_err" >&5
3813     echo "configure: failed program was:" >&5
3814     cat conftest.$ac_ext >&5
3815     rm -rf conftest*
3816     eval "ac_cv_header_$ac_safe=no"
3817     fi
3818     rm -f conftest*
3819     fi
3820     if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3821     echo "$ac_t""yes" 1>&6
3822     :
3823     else
3824     echo "$ac_t""no" 1>&6
3825     fi
3826    
3827     if [ "x$ac_cv_header_scsi_h" = "xno" ]; then
3828     { echo "configure: error: Cannot find includes for the SCSI library." 1>&2; exit 1; }
3829     fi
3830     SYSSRCS="../dummy/ether_dummy.cpp FreeBSD/scsi_freebsd.cpp ../dummy/audio_dummy.cpp"
3831     LIBS="$LIBS -lscsi"
3832     DEFINES="$DEFINES -DBSD_COMP"
3833     fi
3834     ;;
3835     SunOS*)
3836     SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp Solaris/audio_solaris.cpp"
3837     DEFINES="$DEFINES -DBSD_COMP -D_POSIX_PTHREAD_SEMANTICS"
3838     ;;
3839     IRIX*)
3840     SYSSRCS="../dummy/ether_dummy.cpp ../dummy/scsi_dummy.cpp ../dummy/audio_dummy.cpp Irix/unaligned.c"
3841     DEFINES="$DEFINES -DCRTSCTS=CNEW_RTSCTS -DB230400=B115200"
3842     LIBS="$LIBS -lm"
3843     ;;
3844     esac
3845 cebix 1.7 fi
3846 cebix 1.10 SYSSRCS="$SYSSRCS $SEMSRCS $UISRCS $MONSRCS"
3847 cebix 1.1
3848     HAVE_I386=no
3849     echo $ac_n "checking for x86 target CPU""... $ac_c" 1>&6
3850 cebix 1.11 echo "configure:3851: checking for x86 target CPU" >&5
3851 cebix 1.1 cat > conftest.$ac_ext <<EOF
3852 cebix 1.11 #line 3853 "configure"
3853 cebix 1.1 #include "confdefs.h"
3854    
3855     #ifdef __i386__
3856     yes
3857     #endif
3858    
3859     EOF
3860     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3861     egrep "yes" >/dev/null 2>&1; then
3862     rm -rf conftest*
3863     echo "$ac_t""yes" 1>&6; HAVE_I386=yes
3864     else
3865     rm -rf conftest*
3866     echo "$ac_t""no" 1>&6
3867     fi
3868     rm -f conftest*
3869    
3870    
3871 cebix 1.8 HAVE_SPARC=no
3872     echo $ac_n "checking for SPARC target CPU""... $ac_c" 1>&6
3873 cebix 1.11 echo "configure:3874: checking for SPARC target CPU" >&5
3874 cebix 1.8 cat > conftest.$ac_ext <<EOF
3875 cebix 1.11 #line 3876 "configure"
3876 cebix 1.8 #include "confdefs.h"
3877    
3878     #ifdef __sparc__
3879     yes
3880     #endif
3881    
3882     EOF
3883     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3884     egrep "yes" >/dev/null 2>&1; then
3885     rm -rf conftest*
3886     echo "$ac_t""yes" 1>&6; HAVE_SPARC=yes
3887     else
3888     rm -rf conftest*
3889     echo "$ac_t""no" 1>&6
3890     fi
3891     rm -f conftest*
3892    
3893    
3894 cebix 1.1 HAVE_GAS=no
3895     echo $ac_n "checking for GAS .p2align feature""... $ac_c" 1>&6
3896 cebix 1.11 echo "configure:3897: checking for GAS .p2align feature" >&5
3897 cebix 1.1 cat >conftest.S << EOF
3898     .text
3899     .p2align 5
3900     EOF
3901     if $CC conftest.S -c -o conftest.o >/dev/null 2>&1 ; then HAVE_GAS=yes; fi
3902     echo "$ac_t""$HAVE_GAS" 1>&6
3903    
3904     HAVE_GCC27=no
3905     echo $ac_n "checking for GCC 2.7 or higher""... $ac_c" 1>&6
3906 cebix 1.11 echo "configure:3907: checking for GCC 2.7 or higher" >&5
3907 cebix 1.1 cat > conftest.$ac_ext <<EOF
3908 cebix 1.11 #line 3909 "configure"
3909 cebix 1.1 #include "confdefs.h"
3910     #if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
3911     yes
3912     #endif
3913    
3914     EOF
3915     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3916     egrep "yes" >/dev/null 2>&1; then
3917     rm -rf conftest*
3918     echo "$ac_t""yes" 1>&6; HAVE_GCC27=yes
3919     else
3920     rm -rf conftest*
3921     echo "$ac_t""no" 1>&6
3922     fi
3923     rm -f conftest*
3924    
3925    
3926     if [ "x$HAVE_GCC27" = "xyes" ]; then
3927     CFLAGS="$CFLAGS -fomit-frame-pointer"
3928     CXXFLAGS="$CXXFLAGS -fomit-frame-pointer"
3929     fi
3930    
3931 cebix 1.11 WANT_X86_ASSEMBLY=no
3932     WANT_SPARC_V8_ASSEMBLY=no
3933     WANT_SPARC_V9_ASSEMBLY=no
3934 cebix 1.8 CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
3935 cebix 1.1 if [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]; then
3936 cebix 1.8 DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\""
3937 cebix 1.1 if [ "x$HAVE_GAS" = "xyes" ]; then
3938 cebix 1.11 WANT_X86_ASSEMBLY=yes
3939 cebix 1.1 DEFINES="$DEFINES -DX86_ASSEMBLY"
3940 cebix 1.8 CPUSRCS="cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s"
3941 cebix 1.1 fi
3942 cebix 1.8 elif [ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]; then
3943     case "$MACHINE" in
3944     SunOS*)
3945     echo $ac_n "checking SPARC CPU architecture""... $ac_c" 1>&6
3946 cebix 1.11 echo "configure:3947: checking SPARC CPU architecture" >&5
3947 cebix 1.8 SPARC_TYPE=`Solaris/which_sparc`
3948     echo "$ac_t""$SPARC_TYPE" 1>&6
3949     case "$SPARC_TYPE" in
3950     SPARC_V8)
3951 cebix 1.11 WANT_SPARC_V8_ASSEMBLY=yes
3952 cebix 1.8 DEFINES="$DEFINES -DSPARC_V8_ASSEMBLY"
3953     CFLAGS="$CFLAGS -Wa,-Av8"
3954     CXXFLAGS="$CXXFLAGS -Wa,-Av8"
3955     ;;
3956     SPARC_V9)
3957 cebix 1.11 WANT_SPARC_V9_ASSEMBLY=yes
3958 cebix 1.8 DEFINES="$DEFINES -DSPARC_V9_ASSEMBLY"
3959     CFLAGS="$CFLAGS -Wa,-Av9"
3960     CXXFLAGS="$CXXFLAGS -Wa,-Av9"
3961     ;;
3962     esac
3963     ;;
3964     esac
3965 cebix 1.1 fi
3966 cebix 1.8
3967     CPUINCLUDES="-I../uae_cpu"
3968     CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp ../uae_cpu/fpp.cpp cpustbl.cpp cpudefs.cpp $CPUSRCS"
3969 cebix 1.1
3970    
3971    
3972    
3973    
3974     trap '' 1 2 15
3975     cat > confcache <<\EOF
3976     # This file is a shell script that caches the results of configure
3977     # tests run on this system so they can be shared between configure
3978     # scripts and configure runs. It is not useful on other systems.
3979     # If it contains results you don't want to keep, you may remove or edit it.
3980     #
3981     # By default, configure uses ./config.cache as the cache file,
3982     # creating it if it does not exist already. You can give configure
3983     # the --cache-file=FILE option to use a different cache file; that is
3984     # what configure does when it calls configure scripts in
3985     # subdirectories, so they share the cache.
3986     # Giving --cache-file=/dev/null disables caching, for debugging configure.
3987     # config.status only pays attention to the cache file if you give it the
3988     # --recheck option to rerun configure.
3989     #
3990     EOF
3991     # The following way of writing the cache mishandles newlines in values,
3992     # but we know of no workaround that is simple, portable, and efficient.
3993     # So, don't put newlines in cache variables' values.
3994     # Ultrix sh set writes to stderr and can't be redirected directly,
3995     # and sets the high bit in the cache file unless we assign to the vars.
3996     (set) 2>&1 |
3997     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3998     *ac_space=\ *)
3999     # `set' does not quote correctly, so add quotes (double-quote substitution
4000     # turns \\\\ into \\, and sed turns \\ into \).
4001     sed -n \
4002     -e "s/'/'\\\\''/g" \
4003     -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4004     ;;
4005     *)
4006     # `set' quotes correctly as required by POSIX, so do not add quotes.
4007     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4008     ;;
4009     esac >> confcache
4010     if cmp -s $cache_file confcache; then
4011     :
4012     else
4013     if test -w $cache_file; then
4014     echo "updating cache $cache_file"
4015     cat confcache > $cache_file
4016     else
4017     echo "not updating unwritable cache $cache_file"
4018     fi
4019     fi
4020     rm -f confcache
4021    
4022     trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4023    
4024     test "x$prefix" = xNONE && prefix=$ac_default_prefix
4025     # Let make expand exec_prefix.
4026     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4027    
4028     # Any assignment to VPATH causes Sun make to only execute
4029     # the first set of double-colon rules, so remove it if not needed.
4030     # If there is a colon in the path, we need to keep it.
4031     if test "x$srcdir" = x.; then
4032     ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4033     fi
4034    
4035     trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4036    
4037     DEFS=-DHAVE_CONFIG_H
4038    
4039     # Without the "./", some shells look in PATH for config.status.
4040     : ${CONFIG_STATUS=./config.status}
4041    
4042     echo creating $CONFIG_STATUS
4043     rm -f $CONFIG_STATUS
4044     cat > $CONFIG_STATUS <<EOF
4045     #! /bin/sh
4046     # Generated automatically by configure.
4047     # Run this file to recreate the current configuration.
4048     # This directory was configured as follows,
4049     # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4050     #
4051     # $0 $ac_configure_args
4052     #
4053     # Compiler output produced by configure, useful for debugging
4054     # configure, is in ./config.log if it exists.
4055    
4056     ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4057     for ac_option
4058     do
4059     case "\$ac_option" in
4060     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4061     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4062     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4063     -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4064     echo "$CONFIG_STATUS generated by autoconf version 2.13"
4065     exit 0 ;;
4066     -help | --help | --hel | --he | --h)
4067     echo "\$ac_cs_usage"; exit 0 ;;
4068     *) echo "\$ac_cs_usage"; exit 1 ;;
4069     esac
4070     done
4071    
4072     ac_given_srcdir=$srcdir
4073     ac_given_INSTALL="$INSTALL"
4074    
4075     trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4076     EOF
4077     cat >> $CONFIG_STATUS <<EOF
4078    
4079     # Protect against being on the right side of a sed subst in config.status.
4080     sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4081     s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4082     $ac_vpsub
4083     $extrasub
4084     s%@SHELL@%$SHELL%g
4085     s%@CFLAGS@%$CFLAGS%g
4086     s%@CPPFLAGS@%$CPPFLAGS%g
4087     s%@CXXFLAGS@%$CXXFLAGS%g
4088     s%@FFLAGS@%$FFLAGS%g
4089     s%@DEFS@%$DEFS%g
4090     s%@LDFLAGS@%$LDFLAGS%g
4091     s%@LIBS@%$LIBS%g
4092     s%@exec_prefix@%$exec_prefix%g
4093     s%@prefix@%$prefix%g
4094     s%@program_transform_name@%$program_transform_name%g
4095     s%@bindir@%$bindir%g
4096     s%@sbindir@%$sbindir%g
4097     s%@libexecdir@%$libexecdir%g
4098     s%@datadir@%$datadir%g
4099     s%@sysconfdir@%$sysconfdir%g
4100     s%@sharedstatedir@%$sharedstatedir%g
4101     s%@localstatedir@%$localstatedir%g
4102     s%@libdir@%$libdir%g
4103     s%@includedir@%$includedir%g
4104     s%@oldincludedir@%$oldincludedir%g
4105     s%@infodir@%$infodir%g
4106     s%@mandir@%$mandir%g
4107     s%@CC@%$CC%g
4108 cebix 1.3 s%@CPP@%$CPP%g
4109 cebix 1.1 s%@CXX@%$CXX%g
4110     s%@SET_MAKE@%$SET_MAKE%g
4111     s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4112     s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4113     s%@INSTALL_DATA@%$INSTALL_DATA%g
4114     s%@X_CFLAGS@%$X_CFLAGS%g
4115     s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4116     s%@X_LIBS@%$X_LIBS%g
4117     s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4118     s%@GTK_CONFIG@%$GTK_CONFIG%g
4119     s%@GTK_CFLAGS@%$GTK_CFLAGS%g
4120     s%@GTK_LIBS@%$GTK_LIBS%g
4121 cebix 1.9 s%@ESD_CONFIG@%$ESD_CONFIG%g
4122     s%@ESD_CFLAGS@%$ESD_CFLAGS%g
4123     s%@ESD_LIBS@%$ESD_LIBS%g
4124 cebix 1.1 s%@DEFINES@%$DEFINES%g
4125     s%@SYSSRCS@%$SYSSRCS%g
4126     s%@CPUINCLUDES@%$CPUINCLUDES%g
4127     s%@CPUSRCS@%$CPUSRCS%g
4128    
4129     CEOF
4130     EOF
4131    
4132     cat >> $CONFIG_STATUS <<\EOF
4133    
4134     # Split the substitutions into bite-sized pieces for seds with
4135     # small command number limits, like on Digital OSF/1 and HP-UX.
4136     ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4137     ac_file=1 # Number of current file.
4138     ac_beg=1 # First line for current file.
4139     ac_end=$ac_max_sed_cmds # Line after last line for current file.
4140     ac_more_lines=:
4141     ac_sed_cmds=""
4142     while $ac_more_lines; do
4143     if test $ac_beg -gt 1; then
4144     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4145     else
4146     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4147     fi
4148     if test ! -s conftest.s$ac_file; then
4149     ac_more_lines=false
4150     rm -f conftest.s$ac_file
4151     else
4152     if test -z "$ac_sed_cmds"; then
4153     ac_sed_cmds="sed -f conftest.s$ac_file"
4154     else
4155     ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4156     fi
4157     ac_file=`expr $ac_file + 1`
4158     ac_beg=$ac_end
4159     ac_end=`expr $ac_end + $ac_max_sed_cmds`
4160     fi
4161     done
4162     if test -z "$ac_sed_cmds"; then
4163     ac_sed_cmds=cat
4164     fi
4165     EOF
4166    
4167     cat >> $CONFIG_STATUS <<EOF
4168    
4169     CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4170     EOF
4171     cat >> $CONFIG_STATUS <<\EOF
4172     for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4173     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4174     case "$ac_file" in
4175     *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4176     ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4177     *) ac_file_in="${ac_file}.in" ;;
4178     esac
4179    
4180     # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4181    
4182     # Remove last slash and all that follows it. Not all systems have dirname.
4183     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4184     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4185     # The file is in a subdirectory.
4186     test ! -d "$ac_dir" && mkdir "$ac_dir"
4187     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4188     # A "../" for each directory in $ac_dir_suffix.
4189     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4190     else
4191     ac_dir_suffix= ac_dots=
4192     fi
4193    
4194     case "$ac_given_srcdir" in
4195     .) srcdir=.
4196     if test -z "$ac_dots"; then top_srcdir=.
4197     else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4198     /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4199     *) # Relative path.
4200     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4201     top_srcdir="$ac_dots$ac_given_srcdir" ;;
4202     esac
4203    
4204     case "$ac_given_INSTALL" in
4205     [/$]*) INSTALL="$ac_given_INSTALL" ;;
4206     *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4207     esac
4208    
4209     echo creating "$ac_file"
4210     rm -f "$ac_file"
4211     configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4212     case "$ac_file" in
4213     *Makefile*) ac_comsub="1i\\
4214     # $configure_input" ;;
4215     *) ac_comsub= ;;
4216     esac
4217    
4218     ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4219     sed -e "$ac_comsub
4220     s%@configure_input@%$configure_input%g
4221     s%@srcdir@%$srcdir%g
4222     s%@top_srcdir@%$top_srcdir%g
4223     s%@INSTALL@%$INSTALL%g
4224     " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4225     fi; done
4226     rm -f conftest.s*
4227    
4228     # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4229     # NAME is the cpp macro being defined and VALUE is the value it is being given.
4230     #
4231     # ac_d sets the value in "#define NAME VALUE" lines.
4232     ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4233     ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4234     ac_dC='\3'
4235     ac_dD='%g'
4236     # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4237     ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4238     ac_uB='\([ ]\)%\1#\2define\3'
4239     ac_uC=' '
4240     ac_uD='\4%g'
4241     # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4242     ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4243     ac_eB='$%\1#\2define\3'
4244     ac_eC=' '
4245     ac_eD='%g'
4246    
4247     if test "${CONFIG_HEADERS+set}" != set; then
4248     EOF
4249     cat >> $CONFIG_STATUS <<EOF
4250     CONFIG_HEADERS="config.h"
4251     EOF
4252     cat >> $CONFIG_STATUS <<\EOF
4253     fi
4254     for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4255     # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4256     case "$ac_file" in
4257     *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4258     ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4259     *) ac_file_in="${ac_file}.in" ;;
4260     esac
4261    
4262     echo creating $ac_file
4263    
4264     rm -f conftest.frag conftest.in conftest.out
4265     ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4266     cat $ac_file_inputs > conftest.in
4267    
4268     EOF
4269    
4270     # Transform confdefs.h into a sed script conftest.vals that substitutes
4271     # the proper values into config.h.in to produce config.h. And first:
4272     # Protect against being on the right side of a sed subst in config.status.
4273     # Protect against being in an unquoted here document in config.status.
4274     rm -f conftest.vals
4275     cat > conftest.hdr <<\EOF
4276     s/[\\&%]/\\&/g
4277     s%[\\$`]%\\&%g
4278     s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4279     s%ac_d%ac_u%gp
4280     s%ac_u%ac_e%gp
4281     EOF
4282     sed -n -f conftest.hdr confdefs.h > conftest.vals
4283     rm -f conftest.hdr
4284    
4285     # This sed command replaces #undef with comments. This is necessary, for
4286     # example, in the case of _POSIX_SOURCE, which is predefined and required
4287     # on some systems where configure will not decide to define it.
4288     cat >> conftest.vals <<\EOF
4289     s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4290     EOF
4291    
4292     # Break up conftest.vals because some shells have a limit on
4293     # the size of here documents, and old seds have small limits too.
4294    
4295     rm -f conftest.tail
4296     while :
4297     do
4298     ac_lines=`grep -c . conftest.vals`
4299     # grep -c gives empty output for an empty file on some AIX systems.
4300     if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4301     # Write a limited-size here document to conftest.frag.
4302     echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4303     sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4304     echo 'CEOF
4305     sed -f conftest.frag conftest.in > conftest.out
4306     rm -f conftest.in
4307     mv conftest.out conftest.in
4308     ' >> $CONFIG_STATUS
4309     sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4310     rm -f conftest.vals
4311     mv conftest.tail conftest.vals
4312     done
4313     rm -f conftest.vals
4314    
4315     cat >> $CONFIG_STATUS <<\EOF
4316     rm -f conftest.frag conftest.h
4317     echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4318     cat conftest.in >> conftest.h
4319     rm -f conftest.in
4320     if cmp -s $ac_file conftest.h 2>/dev/null; then
4321     echo "$ac_file is unchanged"
4322     rm -f conftest.h
4323     else
4324     # Remove last slash and all that follows it. Not all systems have dirname.
4325     ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4326     if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4327     # The file is in a subdirectory.
4328     test ! -d "$ac_dir" && mkdir "$ac_dir"
4329     fi
4330     rm -f $ac_file
4331     mv conftest.h $ac_file
4332     fi
4333     fi; done
4334    
4335     EOF
4336     cat >> $CONFIG_STATUS <<EOF
4337    
4338     EOF
4339     cat >> $CONFIG_STATUS <<\EOF
4340    
4341     exit 0
4342     EOF
4343     chmod +x $CONFIG_STATUS
4344     rm -fr confdefs* $ac_clean_files
4345     test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4346    
4347 cebix 1.11
4348     echo
4349     echo Basilisk II configuration summary:
4350     echo
4351     echo XFree86 DGA support .............. : $WANT_XF86_DGA
4352     echo fbdev DGA support ................ : $WANT_FBDEV_DGA
4353     echo ESD sound support ................ : $WANT_ESD
4354     echo GTK user interface ............... : $WANT_UI
4355     echo mon debugger support ............. : $WANT_MON
4356     echo i386 assembly optimizations ...... : $WANT_X86_ASSEMBLY
4357     echo SPARC V8 assembly optimizations .. : $WANT_SPARC_V8_ASSEMBLY
4358     echo SPARC V9 assembly optimizations .. : $WANT_SPARC_V9_ASSEMBLY
4359     echo
4360 cebix 1.1 echo "Configuration done. Now type \"make\"."