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