Annotation of OpenXM_contrib/gnuplot/configure, Revision 1.1.1.3
1.1 maekawa 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
1.1.1.3 ! ohara 15: --disable-dependency-tracking Speeds up one-time builds
! 16: --enable-dependency-tracking Do not reject slow dependency extractors"
! 17: ac_help="$ac_help
! 18: --with-x use the X Window System"
! 19: ac_help="$ac_help
! 20: --with-lasergnu install lasergnu printer script"
! 21: ac_help="$ac_help
! 22: --with-linux-vga use the Linux SVGA console driver
! 23: (requires /usr/lib/libvga)"
! 24: ac_help="$ac_help
1.1.1.2 maekawa 25: --with-readline use the builtin minimal readline function (default)
26: --without-readline do not use the builtin readline function
27: --with-readline=gnu use the GNU readline library
1.1.1.3 ! ohara 28: --with-readline=PATH Specify the location of GNU readline"
1.1 maekawa 29: ac_help="$ac_help
1.1.1.3 ! ohara 30: --with-gd[=PATH] enable gif terminal with Tom Boutell's gd library
! 31: (requires GD library)"
1.1 maekawa 32: ac_help="$ac_help
1.1.1.3 ! ohara 33: --with-plot[=PATH] use the Unix plot library"
1.1 maekawa 34: ac_help="$ac_help
1.1.1.3 ! ohara 35: --with-png[=PATH] enable png terminal
! 36: (requires libpng and libz)"
! 37: ac_help="$ac_help
! 38: --with-pdf[=PATH] enable pdf terminal
! 39: (requires PDFLib)"
1.1 maekawa 40: ac_help="$ac_help
41: --with-cwdrc check current directory for .gnuplot file,
42: normally disabled for security reasons"
43: ac_help="$ac_help
1.1.1.3 ! ohara 44: --enable-ggi enable ggi driver (EXPERIMENTAL)"
1.1 maekawa 45: ac_help="$ac_help
46: --enable-iris enable IRIS terminal (IRIS4D only)"
47: ac_help="$ac_help
48: --enable-mgr enable MGR terminal"
49: ac_help="$ac_help
50: --enable-rgip enable Redwood Graphics Interface Protocol"
51:
52: # Initialize some variables set by options.
53: # The variables have the same names as the options, with
54: # dashes changed to underlines.
55: build=NONE
56: cache_file=./config.cache
57: exec_prefix=NONE
58: host=NONE
59: no_create=
60: nonopt=NONE
61: no_recursion=
62: prefix=NONE
63: program_prefix=NONE
64: program_suffix=NONE
65: program_transform_name=s,x,x,
66: silent=
67: site=
68: srcdir=
69: target=NONE
70: verbose=
71: x_includes=NONE
72: x_libraries=NONE
73: bindir='${exec_prefix}/bin'
74: sbindir='${exec_prefix}/sbin'
75: libexecdir='${exec_prefix}/libexec'
76: datadir='${prefix}/share'
77: sysconfdir='${prefix}/etc'
78: sharedstatedir='${prefix}/com'
79: localstatedir='${prefix}/var'
80: libdir='${exec_prefix}/lib'
81: includedir='${prefix}/include'
82: oldincludedir='/usr/include'
83: infodir='${prefix}/info'
84: mandir='${prefix}/man'
85:
86: # Initialize some other variables.
87: subdirs=
88: MFLAGS= MAKEFLAGS=
89: SHELL=${CONFIG_SHELL-/bin/sh}
90: # Maximum number of lines to put in a shell here document.
91: ac_max_here_lines=12
92:
93: ac_prev=
94: for ac_option
95: do
96:
97: # If the previous option needs an argument, assign it.
98: if test -n "$ac_prev"; then
99: eval "$ac_prev=\$ac_option"
100: ac_prev=
101: continue
102: fi
103:
104: case "$ac_option" in
105: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
106: *) ac_optarg= ;;
107: esac
108:
109: # Accept the important Cygnus configure options, so we can diagnose typos.
110:
111: case "$ac_option" in
112:
113: -bindir | --bindir | --bindi | --bind | --bin | --bi)
114: ac_prev=bindir ;;
115: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
116: bindir="$ac_optarg" ;;
117:
118: -build | --build | --buil | --bui | --bu)
119: ac_prev=build ;;
120: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
121: build="$ac_optarg" ;;
122:
123: -cache-file | --cache-file | --cache-fil | --cache-fi \
124: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
125: ac_prev=cache_file ;;
126: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
127: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
128: cache_file="$ac_optarg" ;;
129:
130: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
131: ac_prev=datadir ;;
132: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
133: | --da=*)
134: datadir="$ac_optarg" ;;
135:
136: -disable-* | --disable-*)
137: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
138: # Reject names that are not valid shell variable names.
139: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
140: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141: fi
142: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143: eval "enable_${ac_feature}=no" ;;
144:
145: -enable-* | --enable-*)
146: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
147: # Reject names that are not valid shell variable names.
148: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
149: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
150: fi
151: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152: case "$ac_option" in
153: *=*) ;;
154: *) ac_optarg=yes ;;
155: esac
156: eval "enable_${ac_feature}='$ac_optarg'" ;;
157:
158: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
159: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
160: | --exec | --exe | --ex)
161: ac_prev=exec_prefix ;;
162: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
163: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
164: | --exec=* | --exe=* | --ex=*)
165: exec_prefix="$ac_optarg" ;;
166:
167: -gas | --gas | --ga | --g)
168: # Obsolete; use --with-gas.
169: with_gas=yes ;;
170:
171: -help | --help | --hel | --he)
172: # Omit some internal or obsolete options to make the list less imposing.
173: # This message is too long to be a string in the A/UX 3.1 sh.
174: cat << EOF
175: Usage: configure [options] [host]
176: Options: [defaults in brackets after descriptions]
177: Configuration:
178: --cache-file=FILE cache test results in FILE
179: --help print this message
180: --no-create do not create output files
181: --quiet, --silent do not print \`checking...' messages
182: --version print the version of autoconf that created configure
183: Directory and file names:
184: --prefix=PREFIX install architecture-independent files in PREFIX
185: [$ac_default_prefix]
186: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
187: [same as prefix]
188: --bindir=DIR user executables in DIR [EPREFIX/bin]
189: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
190: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
191: --datadir=DIR read-only architecture-independent data in DIR
192: [PREFIX/share]
193: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
194: --sharedstatedir=DIR modifiable architecture-independent data in DIR
195: [PREFIX/com]
196: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
197: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
198: --includedir=DIR C header files in DIR [PREFIX/include]
199: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
200: --infodir=DIR info documentation in DIR [PREFIX/info]
201: --mandir=DIR man documentation in DIR [PREFIX/man]
202: --srcdir=DIR find the sources in DIR [configure dir or ..]
203: --program-prefix=PREFIX prepend PREFIX to installed program names
204: --program-suffix=SUFFIX append SUFFIX to installed program names
205: --program-transform-name=PROGRAM
206: run sed PROGRAM on installed program names
207: EOF
208: cat << EOF
209: Host type:
210: --build=BUILD configure for building on BUILD [BUILD=HOST]
211: --host=HOST configure for HOST [guessed]
212: --target=TARGET configure for TARGET [TARGET=HOST]
213: Features and packages:
214: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
215: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
216: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
217: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
218: --x-includes=DIR X include files are in DIR
219: --x-libraries=DIR X library files are in DIR
220: EOF
221: if test -n "$ac_help"; then
222: echo "--enable and --with options recognized:$ac_help"
223: fi
224: exit 0 ;;
225:
226: -host | --host | --hos | --ho)
227: ac_prev=host ;;
228: -host=* | --host=* | --hos=* | --ho=*)
229: host="$ac_optarg" ;;
230:
231: -includedir | --includedir | --includedi | --included | --include \
232: | --includ | --inclu | --incl | --inc)
233: ac_prev=includedir ;;
234: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
235: | --includ=* | --inclu=* | --incl=* | --inc=*)
236: includedir="$ac_optarg" ;;
237:
238: -infodir | --infodir | --infodi | --infod | --info | --inf)
239: ac_prev=infodir ;;
240: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
241: infodir="$ac_optarg" ;;
242:
243: -libdir | --libdir | --libdi | --libd)
244: ac_prev=libdir ;;
245: -libdir=* | --libdir=* | --libdi=* | --libd=*)
246: libdir="$ac_optarg" ;;
247:
248: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
249: | --libexe | --libex | --libe)
250: ac_prev=libexecdir ;;
251: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
252: | --libexe=* | --libex=* | --libe=*)
253: libexecdir="$ac_optarg" ;;
254:
255: -localstatedir | --localstatedir | --localstatedi | --localstated \
256: | --localstate | --localstat | --localsta | --localst \
257: | --locals | --local | --loca | --loc | --lo)
258: ac_prev=localstatedir ;;
259: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
260: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
261: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
262: localstatedir="$ac_optarg" ;;
263:
264: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
265: ac_prev=mandir ;;
266: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
267: mandir="$ac_optarg" ;;
268:
269: -nfp | --nfp | --nf)
270: # Obsolete; use --without-fp.
271: with_fp=no ;;
272:
273: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
274: | --no-cr | --no-c)
275: no_create=yes ;;
276:
277: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
278: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
279: no_recursion=yes ;;
280:
281: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
282: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
283: | --oldin | --oldi | --old | --ol | --o)
284: ac_prev=oldincludedir ;;
285: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
286: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
287: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
288: oldincludedir="$ac_optarg" ;;
289:
290: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
291: ac_prev=prefix ;;
292: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
293: prefix="$ac_optarg" ;;
294:
295: -program-prefix | --program-prefix | --program-prefi | --program-pref \
296: | --program-pre | --program-pr | --program-p)
297: ac_prev=program_prefix ;;
298: -program-prefix=* | --program-prefix=* | --program-prefi=* \
299: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
300: program_prefix="$ac_optarg" ;;
301:
302: -program-suffix | --program-suffix | --program-suffi | --program-suff \
303: | --program-suf | --program-su | --program-s)
304: ac_prev=program_suffix ;;
305: -program-suffix=* | --program-suffix=* | --program-suffi=* \
306: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
307: program_suffix="$ac_optarg" ;;
308:
309: -program-transform-name | --program-transform-name \
310: | --program-transform-nam | --program-transform-na \
311: | --program-transform-n | --program-transform- \
312: | --program-transform | --program-transfor \
313: | --program-transfo | --program-transf \
314: | --program-trans | --program-tran \
315: | --progr-tra | --program-tr | --program-t)
316: ac_prev=program_transform_name ;;
317: -program-transform-name=* | --program-transform-name=* \
318: | --program-transform-nam=* | --program-transform-na=* \
319: | --program-transform-n=* | --program-transform-=* \
320: | --program-transform=* | --program-transfor=* \
321: | --program-transfo=* | --program-transf=* \
322: | --program-trans=* | --program-tran=* \
323: | --progr-tra=* | --program-tr=* | --program-t=*)
324: program_transform_name="$ac_optarg" ;;
325:
326: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
327: | -silent | --silent | --silen | --sile | --sil)
328: silent=yes ;;
329:
330: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
331: ac_prev=sbindir ;;
332: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
333: | --sbi=* | --sb=*)
334: sbindir="$ac_optarg" ;;
335:
336: -sharedstatedir | --sharedstatedir | --sharedstatedi \
337: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
338: | --sharedst | --shareds | --shared | --share | --shar \
339: | --sha | --sh)
340: ac_prev=sharedstatedir ;;
341: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
342: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
343: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
344: | --sha=* | --sh=*)
345: sharedstatedir="$ac_optarg" ;;
346:
347: -site | --site | --sit)
348: ac_prev=site ;;
349: -site=* | --site=* | --sit=*)
350: site="$ac_optarg" ;;
351:
352: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
353: ac_prev=srcdir ;;
354: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
355: srcdir="$ac_optarg" ;;
356:
357: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
358: | --syscon | --sysco | --sysc | --sys | --sy)
359: ac_prev=sysconfdir ;;
360: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
361: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
362: sysconfdir="$ac_optarg" ;;
363:
364: -target | --target | --targe | --targ | --tar | --ta | --t)
365: ac_prev=target ;;
366: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
367: target="$ac_optarg" ;;
368:
369: -v | -verbose | --verbose | --verbos | --verbo | --verb)
370: verbose=yes ;;
371:
372: -version | --version | --versio | --versi | --vers)
373: echo "configure generated by autoconf version 2.13"
374: exit 0 ;;
375:
376: -with-* | --with-*)
377: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
378: # Reject names that are not valid shell variable names.
379: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
380: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
381: fi
382: ac_package=`echo $ac_package| sed 's/-/_/g'`
383: case "$ac_option" in
384: *=*) ;;
385: *) ac_optarg=yes ;;
386: esac
387: eval "with_${ac_package}='$ac_optarg'" ;;
388:
389: -without-* | --without-*)
390: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
391: # Reject names that are not valid shell variable names.
392: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
393: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394: fi
395: ac_package=`echo $ac_package| sed 's/-/_/g'`
396: eval "with_${ac_package}=no" ;;
397:
398: --x)
399: # Obsolete; use --with-x.
400: with_x=yes ;;
401:
402: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
403: | --x-incl | --x-inc | --x-in | --x-i)
404: ac_prev=x_includes ;;
405: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
406: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
407: x_includes="$ac_optarg" ;;
408:
409: -x-libraries | --x-libraries | --x-librarie | --x-librari \
410: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
411: ac_prev=x_libraries ;;
412: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
413: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
414: x_libraries="$ac_optarg" ;;
415:
416: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
417: ;;
418:
419: *)
420: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
421: echo "configure: warning: $ac_option: invalid host type" 1>&2
422: fi
423: if test "x$nonopt" != xNONE; then
424: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
425: fi
426: nonopt="$ac_option"
427: ;;
428:
429: esac
430: done
431:
432: if test -n "$ac_prev"; then
433: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
434: fi
435:
436: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
437:
438: # File descriptor usage:
439: # 0 standard input
440: # 1 file creation
441: # 2 errors and warnings
442: # 3 some systems may open it to /dev/tty
443: # 4 used on the Kubota Titan
444: # 6 checking for... messages and results
445: # 5 compiler messages saved in config.log
446: if test "$silent" = yes; then
447: exec 6>/dev/null
448: else
449: exec 6>&1
450: fi
451: exec 5>./config.log
452:
453: echo "\
454: This file contains any messages produced by compilers while
455: running configure, to aid debugging if configure makes a mistake.
456: " 1>&5
457:
458: # Strip out --no-create and --no-recursion so they do not pile up.
459: # Also quote any args containing shell metacharacters.
460: ac_configure_args=
461: for ac_arg
462: do
463: case "$ac_arg" in
464: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
465: | --no-cr | --no-c) ;;
466: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
467: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
468: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
469: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
470: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
471: esac
472: done
473:
474: # NLS nuisances.
475: # Only set these to C if already set. These must not be set unconditionally
476: # because not all systems understand e.g. LANG=C (notably SCO).
477: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
478: # Non-C LC_CTYPE values break the ctype check.
479: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
480: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
481: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
482: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
483:
484: # confdefs.h avoids OS command line length limits that DEFS can exceed.
485: rm -rf conftest* confdefs.h
486: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
487: echo > confdefs.h
488:
489: # A filename unique to this package, relative to the directory that
490: # configure is in, which we can look for to find out if srcdir is correct.
491: ac_unique_file=graphics.c
492:
493: # Find the source files, if location was not specified.
494: if test -z "$srcdir"; then
495: ac_srcdir_defaulted=yes
496: # Try the directory containing this script, then its parent.
497: ac_prog=$0
498: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
499: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
500: srcdir=$ac_confdir
501: if test ! -r $srcdir/$ac_unique_file; then
502: srcdir=..
503: fi
504: else
505: ac_srcdir_defaulted=no
506: fi
507: if test ! -r $srcdir/$ac_unique_file; then
508: if test "$ac_srcdir_defaulted" = yes; then
509: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
510: else
511: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
512: fi
513: fi
514: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
515:
516: # Prefer explicitly selected file to automatically selected ones.
517: if test -z "$CONFIG_SITE"; then
518: if test "x$prefix" != xNONE; then
519: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
520: else
521: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
522: fi
523: fi
524: for ac_site_file in $CONFIG_SITE; do
525: if test -r "$ac_site_file"; then
526: echo "loading site script $ac_site_file"
527: . "$ac_site_file"
528: fi
529: done
530:
531: if test -r "$cache_file"; then
532: echo "loading cache $cache_file"
533: . $cache_file
534: else
535: echo "creating cache $cache_file"
536: > $cache_file
537: fi
538:
539: ac_ext=c
540: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
541: ac_cpp='$CPP $CPPFLAGS'
542: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
543: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
544: cross_compiling=$ac_cv_prog_cc_cross
545:
546: ac_exeext=
547: ac_objext=o
548: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
549: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
550: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
551: ac_n= ac_c='
552: ' ac_t=' '
553: else
554: ac_n=-n ac_c= ac_t=
555: fi
556: else
557: ac_n= ac_c='\c' ac_t=
558: fi
559:
560:
1.1.1.2 maekawa 561:
1.1.1.3 ! ohara 562:
! 563:
! 564:
! 565:
1.1 maekawa 566: VERSION=`sed -n 's/.*version.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '`
1.1.1.2 maekawa 567: PL=`sed -n 's/.*patchlevel.*"\(.*\)".*/\1/p' $srcdir/version.c|tr -d ' '`
1.1 maekawa 568: ac_aux_dir=
569: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
570: if test -f $ac_dir/install-sh; then
571: ac_aux_dir=$ac_dir
572: ac_install_sh="$ac_aux_dir/install-sh -c"
573: break
574: elif test -f $ac_dir/install.sh; then
575: ac_aux_dir=$ac_dir
576: ac_install_sh="$ac_aux_dir/install.sh -c"
577: break
578: fi
579: done
580: if test -z "$ac_aux_dir"; then
581: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
582: fi
583: ac_config_guess=$ac_aux_dir/config.guess
584: ac_config_sub=$ac_aux_dir/config.sub
585: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
586:
1.1.1.3 ! ohara 587:
! 588: # expand $ac_aux_dir to an absolute path
! 589: am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
! 590:
1.1 maekawa 591: # Find a good install program. We prefer a C program (faster),
592: # so one script is as good as another. But avoid the broken or
593: # incompatible versions:
594: # SysV /etc/install, /usr/sbin/install
595: # SunOS /usr/etc/install
596: # IRIX /sbin/install
597: # AIX /bin/install
598: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
599: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
600: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
601: # ./install, which can be erroneously created by make from ./install.sh.
602: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1.1.1.3 ! ohara 603: echo "configure:604: checking for a BSD compatible install" >&5
1.1 maekawa 604: if test -z "$INSTALL"; then
605: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
606: echo $ac_n "(cached) $ac_c" 1>&6
607: else
608: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
609: for ac_dir in $PATH; do
610: # Account for people who put trailing slashes in PATH elements.
611: case "$ac_dir/" in
612: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
613: *)
614: # OSF1 and SCO ODT 3.0 have their own names for install.
615: # Don't use installbsd from OSF since it installs stuff as root
616: # by default.
617: for ac_prog in ginstall scoinst install; do
618: if test -f $ac_dir/$ac_prog; then
619: if test $ac_prog = install &&
620: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
621: # AIX install. It has an incompatible calling convention.
622: :
623: else
624: ac_cv_path_install="$ac_dir/$ac_prog -c"
625: break 2
626: fi
627: fi
628: done
629: ;;
630: esac
631: done
632: IFS="$ac_save_IFS"
633:
634: fi
635: if test "${ac_cv_path_install+set}" = set; then
636: INSTALL="$ac_cv_path_install"
637: else
638: # As a last resort, use the slow shell script. We don't cache a
639: # path for INSTALL within a source directory, because that will
640: # break other packages using the cache if that directory is
641: # removed, or if the path is relative.
642: INSTALL="$ac_install_sh"
643: fi
644: fi
645: echo "$ac_t""$INSTALL" 1>&6
646:
647: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
648: # It thinks the first close brace ends the variable substitution.
649: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
650:
651: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
652:
653: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
654:
655: echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1.1.1.3 ! ohara 656: echo "configure:657: checking whether build environment is sane" >&5
1.1 maekawa 657: # Just in case
658: sleep 1
1.1.1.3 ! ohara 659: echo timestamp > conftest.file
1.1 maekawa 660: # Do `set' in a subshell so we don't clobber the current shell's
661: # arguments. Must try -L first in case configure is actually a
662: # symlink; some systems play weird games with the mod time of symlinks
663: # (eg FreeBSD returns the mod time of the symlink's containing
664: # directory).
665: if (
1.1.1.3 ! ohara 666: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1.1 maekawa 667: if test "$*" = "X"; then
668: # -L didn't work.
1.1.1.3 ! ohara 669: set X `ls -t $srcdir/configure conftest.file`
1.1 maekawa 670: fi
1.1.1.3 ! ohara 671: rm -f conftest.file
! 672: if test "$*" != "X $srcdir/configure conftest.file" \
! 673: && test "$*" != "X conftest.file $srcdir/configure"; then
1.1 maekawa 674:
675: # If neither matched, then we have a broken ls. This can happen
676: # if, for instance, CONFIG_SHELL is bash and it inherits a
677: # broken ls alias from the environment. This has actually
678: # happened. Such a system could not be considered "sane".
679: { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
680: alias in your environment" 1>&2; exit 1; }
681: fi
682:
1.1.1.3 ! ohara 683: test "$2" = conftest.file
1.1 maekawa 684: )
685: then
686: # Ok.
687: :
688: else
689: { echo "configure: error: newly created file is older than distributed files!
690: Check your system clock" 1>&2; exit 1; }
691: fi
692: echo "$ac_t""yes" 1>&6
693: if test "$program_transform_name" = s,x,x,; then
694: program_transform_name=
695: else
696: # Double any \ or $. echo might interpret backslashes.
697: cat <<\EOF_SED > conftestsed
698: s,\\,\\\\,g; s,\$,$$,g
699: EOF_SED
700: program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
701: rm -f conftestsed
702: fi
703: test "$program_prefix" != NONE &&
704: program_transform_name="s,^,${program_prefix},; $program_transform_name"
705: # Use a double $ so make ignores it.
706: test "$program_suffix" != NONE &&
707: program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
708:
709: # sed with no file args requires a program.
710: test "$program_transform_name" = "" && program_transform_name="s,x,x,"
711:
1.1.1.3 ! ohara 712: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
! 713: # Use eval to expand $SHELL
! 714: if eval "$MISSING --run true"; then
! 715: am_missing_run="$MISSING --run "
! 716: else
! 717: am_missing_run=
! 718: am_backtick='`'
! 719: echo "configure: warning: ${am_backtick}missing' script is too old or missing" 1>&2
! 720: fi
! 721:
! 722: for ac_prog in mawk gawk nawk awk
! 723: do
! 724: # Extract the first word of "$ac_prog", so it can be a program name with args.
! 725: set dummy $ac_prog; ac_word=$2
! 726: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
! 727: echo "configure:728: checking for $ac_word" >&5
! 728: if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
! 729: echo $ac_n "(cached) $ac_c" 1>&6
! 730: else
! 731: if test -n "$AWK"; then
! 732: ac_cv_prog_AWK="$AWK" # Let the user override the test.
! 733: else
! 734: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
! 735: ac_dummy="$PATH"
! 736: for ac_dir in $ac_dummy; do
! 737: test -z "$ac_dir" && ac_dir=.
! 738: if test -f $ac_dir/$ac_word; then
! 739: ac_cv_prog_AWK="$ac_prog"
! 740: break
! 741: fi
! 742: done
! 743: IFS="$ac_save_ifs"
! 744: fi
! 745: fi
! 746: AWK="$ac_cv_prog_AWK"
! 747: if test -n "$AWK"; then
! 748: echo "$ac_t""$AWK" 1>&6
! 749: else
! 750: echo "$ac_t""no" 1>&6
! 751: fi
! 752:
! 753: test -n "$AWK" && break
! 754: done
! 755:
1.1 maekawa 756: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1.1.1.3 ! ohara 757: echo "configure:758: checking whether ${MAKE-make} sets \${MAKE}" >&5
1.1 maekawa 758: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
759: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
760: echo $ac_n "(cached) $ac_c" 1>&6
761: else
762: cat > conftestmake <<\EOF
763: all:
764: @echo 'ac_maketemp="${MAKE}"'
765: EOF
766: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
767: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
768: if test -n "$ac_maketemp"; then
769: eval ac_cv_prog_make_${ac_make}_set=yes
770: else
771: eval ac_cv_prog_make_${ac_make}_set=no
772: fi
773: rm -f conftestmake
774: fi
775: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
776: echo "$ac_t""yes" 1>&6
777: SET_MAKE=
778: else
779: echo "$ac_t""no" 1>&6
780: SET_MAKE="MAKE=${MAKE-make}"
781: fi
782:
1.1.1.3 ! ohara 783: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
! 784: if test "${enable_dependency_tracking+set}" = set; then
! 785: enableval="$enable_dependency_tracking"
! 786: :
1.1 maekawa 787: fi
788:
1.1.1.3 ! ohara 789: if test "x$enable_dependency_tracking" != xno; then
! 790: am_depcomp="$ac_aux_dir/depcomp"
! 791: AMDEPBACKSLASH='\'
! 792: fi
1.1 maekawa 793:
794:
1.1.1.3 ! ohara 795: if test "x$enable_dependency_tracking" != xno; then
! 796: AMDEP_TRUE=
! 797: AMDEP_FALSE='#'
1.1 maekawa 798: else
1.1.1.3 ! ohara 799: AMDEP_TRUE='#'
! 800: AMDEP_FALSE=
1.1 maekawa 801: fi
802:
1.1.1.2 maekawa 803:
804:
805:
1.1.1.3 ! ohara 806: rm -f .deps 2>/dev/null
! 807: mkdir .deps 2>/dev/null
! 808: if test -d .deps; then
! 809: DEPDIR=.deps
! 810: else
! 811: # MS-DOS does not allow filenames that begin with a dot.
! 812: DEPDIR=_deps
1.1.1.2 maekawa 813: fi
1.1.1.3 ! ohara 814: rmdir .deps 2>/dev/null
1.1.1.2 maekawa 815:
1.1 maekawa 816:
1.1.1.3 ! ohara 817: # test to see if srcdir already configured
! 818: if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
! 819: test -f $srcdir/config.status; then
! 820: { echo "configure: error: source directory already configured; run \"make distclean\" there first" 1>&2; exit 1; }
! 821: fi
1.1 maekawa 822:
1.1.1.3 ! ohara 823: # Define the identity of the package.
! 824: PACKAGE=gnuplot
! 825: VERSION=$VERSION.$PL
! 826: cat >> confdefs.h <<EOF
! 827: #define PACKAGE "$PACKAGE"
! 828: EOF
1.1 maekawa 829:
1.1.1.3 ! ohara 830: cat >> confdefs.h <<EOF
! 831: #define VERSION "$VERSION"
! 832: EOF
1.1 maekawa 833:
834:
1.1.1.3 ! ohara 835: # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
! 836: # the ones we care about.
1.1 maekawa 837:
1.1.1.3 ! ohara 838: # Autoconf 2.50 always computes EXEEXT. However we need to be
! 839: # compatible with 2.13, for now. So we always define EXEEXT, but we
! 840: # don't compute it.
1.1 maekawa 841:
1.1.1.3 ! ohara 842: # Similar for OBJEXT -- only we only use OBJEXT if the user actually
! 843: # requests that it be used. This is a bit dumb.
! 844: : ${OBJEXT=o}
1.1 maekawa 845:
846:
1.1.1.3 ! ohara 847: # Some tools Automake needs.
1.1 maekawa 848:
1.1.1.3 ! ohara 849: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1.1 maekawa 850:
851:
1.1.1.3 ! ohara 852: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1.1 maekawa 853:
854:
1.1.1.3 ! ohara 855: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1.1 maekawa 856:
857:
1.1.1.3 ! ohara 858: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1.1 maekawa 859:
860:
1.1.1.3 ! ohara 861: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1.1 maekawa 862:
863:
1.1.1.3 ! ohara 864: AMTAR=${AMTAR-"${am_missing_run}tar"}
1.1 maekawa 865:
1.1.1.3 ! ohara 866: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1.1 maekawa 867:
1.1.1.3 ! ohara 868: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1.1 maekawa 869:
1.1.1.3 ! ohara 870: # We need awk for the "check" target. The system "awk" is bad on
! 871: # some platforms.
1.1 maekawa 872:
873:
874: # Extract the first word of "gcc", so it can be a program name with args.
875: set dummy gcc; ac_word=$2
876: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.3 ! ohara 877: echo "configure:878: checking for $ac_word" >&5
1.1 maekawa 878: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
879: echo $ac_n "(cached) $ac_c" 1>&6
880: else
881: if test -n "$CC"; then
882: ac_cv_prog_CC="$CC" # Let the user override the test.
883: else
884: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
885: ac_dummy="$PATH"
886: for ac_dir in $ac_dummy; do
887: test -z "$ac_dir" && ac_dir=.
888: if test -f $ac_dir/$ac_word; then
889: ac_cv_prog_CC="gcc"
890: break
891: fi
892: done
893: IFS="$ac_save_ifs"
894: fi
895: fi
896: CC="$ac_cv_prog_CC"
897: if test -n "$CC"; then
898: echo "$ac_t""$CC" 1>&6
899: else
900: echo "$ac_t""no" 1>&6
901: fi
902:
903: if test -z "$CC"; then
904: # Extract the first word of "cc", so it can be a program name with args.
905: set dummy cc; ac_word=$2
906: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.3 ! ohara 907: echo "configure:908: checking for $ac_word" >&5
1.1 maekawa 908: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
909: echo $ac_n "(cached) $ac_c" 1>&6
910: else
911: if test -n "$CC"; then
912: ac_cv_prog_CC="$CC" # Let the user override the test.
913: else
914: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
915: ac_prog_rejected=no
916: ac_dummy="$PATH"
917: for ac_dir in $ac_dummy; do
918: test -z "$ac_dir" && ac_dir=.
919: if test -f $ac_dir/$ac_word; then
920: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
921: ac_prog_rejected=yes
922: continue
923: fi
924: ac_cv_prog_CC="cc"
925: break
926: fi
927: done
928: IFS="$ac_save_ifs"
929: if test $ac_prog_rejected = yes; then
930: # We found a bogon in the path, so make sure we never use it.
931: set dummy $ac_cv_prog_CC
932: shift
933: if test $# -gt 0; then
934: # We chose a different compiler from the bogus one.
935: # However, it has the same basename, so the bogon will be chosen
936: # first if we set CC to just the basename; use the full file name.
937: shift
938: set dummy "$ac_dir/$ac_word" "$@"
939: shift
940: ac_cv_prog_CC="$@"
941: fi
942: fi
943: fi
944: fi
945: CC="$ac_cv_prog_CC"
946: if test -n "$CC"; then
947: echo "$ac_t""$CC" 1>&6
948: else
949: echo "$ac_t""no" 1>&6
950: fi
951:
952: if test -z "$CC"; then
953: case "`uname -s`" in
954: *win32* | *WIN32*)
955: # Extract the first word of "cl", so it can be a program name with args.
956: set dummy cl; ac_word=$2
957: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.1.1.3 ! ohara 958: echo "configure:959: checking for $ac_word" >&5
1.1 maekawa 959: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
960: echo $ac_n "(cached) $ac_c" 1>&6
961: else
962: if test -n "$CC"; then
963: ac_cv_prog_CC="$CC" # Let the user override the test.
964: else
965: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
966: ac_dummy="$PATH"
967: for ac_dir in $ac_dummy; do
968: test -z "$ac_dir" && ac_dir=.
969: if test -f $ac_dir/$ac_word; then
970: ac_cv_prog_CC="cl"
971: break
972: fi
973: done
974: IFS="$ac_save_ifs"
975: fi
976: fi
977: CC="$ac_cv_prog_CC"
978: if test -n "$CC"; then
979: echo "$ac_t""$CC" 1>&6
980: else
981: echo "$ac_t""no" 1>&6
982: fi
983: ;;
984: esac
985: fi
986: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
987: fi
988:
989: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.1.1.3 ! ohara 990: echo "configure:991: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1 maekawa 991:
992: ac_ext=c
993: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
994: ac_cpp='$CPP $CPPFLAGS'
995: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
996: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
997: cross_compiling=$ac_cv_prog_cc_cross
998:
999: cat > conftest.$ac_ext << EOF
1000:
1.1.1.3 ! ohara 1001: #line 1002 "configure"
1.1 maekawa 1002: #include "confdefs.h"
1003:
1004: main(){return(0);}
1005: EOF
1.1.1.3 ! ohara 1006: if { (eval echo configure:1007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 1007: ac_cv_prog_cc_works=yes
1008: # If we can't run a trivial program, we are probably using a cross compiler.
1009: if (./conftest; exit) 2>/dev/null; then
1010: ac_cv_prog_cc_cross=no
1011: else
1012: ac_cv_prog_cc_cross=yes
1013: fi
1014: else
1015: echo "configure: failed program was:" >&5
1016: cat conftest.$ac_ext >&5
1017: ac_cv_prog_cc_works=no
1018: fi
1019: rm -fr conftest*
1020: ac_ext=c
1021: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1022: ac_cpp='$CPP $CPPFLAGS'
1023: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1024: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1025: cross_compiling=$ac_cv_prog_cc_cross
1026:
1027: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1028: if test $ac_cv_prog_cc_works = no; then
1029: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1030: fi
1031: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.1.1.3 ! ohara 1032: echo "configure:1033: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 maekawa 1033: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1034: cross_compiling=$ac_cv_prog_cc_cross
1035:
1036: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.1.1.3 ! ohara 1037: echo "configure:1038: checking whether we are using GNU C" >&5
1.1 maekawa 1038: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1039: echo $ac_n "(cached) $ac_c" 1>&6
1040: else
1041: cat > conftest.c <<EOF
1042: #ifdef __GNUC__
1043: yes;
1044: #endif
1045: EOF
1.1.1.3 ! ohara 1046: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1047: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 maekawa 1047: ac_cv_prog_gcc=yes
1048: else
1049: ac_cv_prog_gcc=no
1050: fi
1051: fi
1052:
1053: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1054:
1055: if test $ac_cv_prog_gcc = yes; then
1056: GCC=yes
1057: else
1058: GCC=
1059: fi
1060:
1061: ac_test_CFLAGS="${CFLAGS+set}"
1062: ac_save_CFLAGS="$CFLAGS"
1063: CFLAGS=
1064: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.1.1.3 ! ohara 1065: echo "configure:1066: checking whether ${CC-cc} accepts -g" >&5
1.1 maekawa 1066: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1067: echo $ac_n "(cached) $ac_c" 1>&6
1068: else
1069: echo 'void f(){}' > conftest.c
1070: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1071: ac_cv_prog_cc_g=yes
1072: else
1073: ac_cv_prog_cc_g=no
1074: fi
1075: rm -f conftest*
1076:
1077: fi
1078:
1079: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1080: if test "$ac_test_CFLAGS" = set; then
1081: CFLAGS="$ac_save_CFLAGS"
1082: elif test $ac_cv_prog_cc_g = yes; then
1083: if test "$GCC" = yes; then
1084: CFLAGS="-g -O2"
1085: else
1086: CFLAGS="-g"
1087: fi
1088: else
1089: if test "$GCC" = yes; then
1090: CFLAGS="-O2"
1091: else
1092: CFLAGS=
1093: fi
1094: fi
1095:
1096:
1.1.1.3 ! ohara 1097: am_make=${MAKE-make}
! 1098: cat > confinc << 'END'
! 1099: doit:
! 1100: @echo done
! 1101: END
! 1102: # If we don't find an include directive, just comment out the code.
! 1103: echo $ac_n "checking for style of include used by $am_make""... $ac_c" 1>&6
! 1104: echo "configure:1105: checking for style of include used by $am_make" >&5
! 1105: am__include='#'
! 1106: am__quote=
! 1107: _am_result=none
! 1108: # First try GNU make style include.
! 1109: echo "include confinc" > confmf
! 1110: # We grep out `Entering directory' and `Leaving directory'
! 1111: # messages which can occur if `w' ends up in MAKEFLAGS.
! 1112: # In particular we don't look at `^make:' because GNU make might
! 1113: # be invoked under some other name (usually "gmake"), in which
! 1114: # case it prints its new name instead of `make'.
! 1115: if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
! 1116: am__include=include
! 1117: am__quote=
! 1118: _am_result=GNU
! 1119: fi
! 1120: # Now try BSD make style include.
! 1121: if test "$am__include" = "#"; then
! 1122: echo '.include "confinc"' > confmf
! 1123: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
! 1124: am__include=.include
! 1125: am__quote='"'
! 1126: _am_result=BSD
! 1127: fi
! 1128: fi
! 1129:
! 1130:
! 1131: echo "$ac_t""$_am_result" 1>&6
! 1132: rm -f confinc confmf
! 1133:
! 1134:
! 1135: depcc="$CC" am_compiler_list=
! 1136:
! 1137: echo $ac_n "checking dependency style of $depcc""... $ac_c" 1>&6
! 1138: echo "configure:1139: checking dependency style of $depcc" >&5
! 1139: if eval "test \"`echo '$''{'am_cv_CC_dependencies_compiler_type'+set}'`\" = set"; then
! 1140: echo $ac_n "(cached) $ac_c" 1>&6
! 1141: else
! 1142: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
! 1143: # We make a subdir and do the tests there. Otherwise we can end up
! 1144: # making bogus files that we don't know about and never remove. For
! 1145: # instance it was reported that on HP-UX the gcc test will end up
! 1146: # making a dummy file named `D' -- because `-MD' means `put the output
! 1147: # in D'.
! 1148: mkdir conftest.dir
! 1149: # Copy depcomp to subdir because otherwise we won't find it if we're
! 1150: # using a relative directory.
! 1151: cp "$am_depcomp" conftest.dir
! 1152: cd conftest.dir
! 1153:
! 1154: am_cv_CC_dependencies_compiler_type=none
! 1155: if test "$am_compiler_list" = ""; then
! 1156: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
! 1157: fi
! 1158: for depmode in $am_compiler_list; do
! 1159: # We need to recreate these files for each test, as the compiler may
! 1160: # overwrite some of them when testing with obscure command lines.
! 1161: # This happens at least with the AIX C compiler.
! 1162: echo '#include "conftest.h"' > conftest.c
! 1163: echo 'int i;' > conftest.h
! 1164: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
! 1165:
! 1166: case $depmode in
! 1167: nosideeffect)
! 1168: # after this tag, mechanisms are not by side-effect, so they'll
! 1169: # only be used when explicitly requested
! 1170: if test "x$enable_dependency_tracking" = xyes; then
! 1171: continue
! 1172: else
! 1173: break
! 1174: fi
! 1175: ;;
! 1176: none) break ;;
! 1177: esac
! 1178: # We check with `-c' and `-o' for the sake of the "dashmstdout"
! 1179: # mode. It turns out that the SunPro C++ compiler does not properly
! 1180: # handle `-M -o', and we need to detect this.
! 1181: if depmode=$depmode \
! 1182: source=conftest.c object=conftest.o \
! 1183: depfile=conftest.Po tmpdepfile=conftest.TPo \
! 1184: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
! 1185: grep conftest.h conftest.Po > /dev/null 2>&1 &&
! 1186: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
! 1187: am_cv_CC_dependencies_compiler_type=$depmode
! 1188: break
! 1189: fi
! 1190: done
! 1191:
! 1192: cd ..
! 1193: rm -rf conftest.dir
! 1194: else
! 1195: am_cv_CC_dependencies_compiler_type=none
! 1196: fi
! 1197:
! 1198: fi
! 1199:
! 1200: echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
! 1201: CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
! 1202:
! 1203:
! 1204:
1.1 maekawa 1205:
1206:
1207: echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1.1.1.3 ! ohara 1208: echo "configure:1209: checking for ${CC-cc} option to accept ANSI C" >&5
1.1 maekawa 1209: if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1210: echo $ac_n "(cached) $ac_c" 1>&6
1211: else
1212: am_cv_prog_cc_stdc=no
1213: ac_save_CC="$CC"
1214: # Don't try gcc -ansi; that turns off useful extensions and
1215: # breaks some systems' header files.
1216: # AIX -qlanglvl=ansi
1217: # Ultrix and OSF/1 -std1
1.1.1.2 maekawa 1218: # HP-UX 10.20 and later -Ae
1219: # HP-UX older versions -Aa -D_HPUX_SOURCE
1.1 maekawa 1220: # SVR4 -Xc -D__EXTENSIONS__
1.1.1.2 maekawa 1221: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.1 maekawa 1222: do
1223: CC="$ac_save_CC $ac_arg"
1224: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1225: #line 1226 "configure"
1.1 maekawa 1226: #include "confdefs.h"
1227: #include <stdarg.h>
1228: #include <stdio.h>
1229: #include <sys/types.h>
1230: #include <sys/stat.h>
1231: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1232: struct buf { int x; };
1233: FILE * (*rcsopen) (struct buf *, struct stat *, int);
1234: static char *e (p, i)
1235: char **p;
1236: int i;
1237: {
1238: return p[i];
1239: }
1240: static char *f (char * (*g) (char **, int), char **p, ...)
1241: {
1242: char *s;
1243: va_list v;
1244: va_start (v,p);
1245: s = g (p, va_arg (v,int));
1246: va_end (v);
1247: return s;
1248: }
1249: int test (int i, double x);
1250: struct s1 {int (*f) (int a);};
1251: struct s2 {int (*f) (double a);};
1252: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1253: int argc;
1254: char **argv;
1255:
1256: int main() {
1257:
1258: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1259:
1260: ; return 0; }
1261: EOF
1.1.1.3 ! ohara 1262: if { (eval echo configure:1263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 maekawa 1263: rm -rf conftest*
1264: am_cv_prog_cc_stdc="$ac_arg"; break
1265: else
1266: echo "configure: failed program was:" >&5
1267: cat conftest.$ac_ext >&5
1268: fi
1269: rm -f conftest*
1270: done
1271: CC="$ac_save_CC"
1272:
1273: fi
1274:
1275: if test -z "$am_cv_prog_cc_stdc"; then
1276: echo "$ac_t""none needed" 1>&6
1277: else
1278: echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1279: fi
1280: case "x$am_cv_prog_cc_stdc" in
1281: x|xno) ;;
1282: *) CC="$CC $am_cv_prog_cc_stdc" ;;
1283: esac
1284:
1285: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.1.1.3 ! ohara 1286: echo "configure:1287: checking how to run the C preprocessor" >&5
1.1 maekawa 1287: # On Suns, sometimes $CPP names a directory.
1288: if test -n "$CPP" && test -d "$CPP"; then
1289: CPP=
1290: fi
1291: if test -z "$CPP"; then
1292: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1293: echo $ac_n "(cached) $ac_c" 1>&6
1294: else
1295: # This must be in double quotes, not single quotes, because CPP may get
1296: # substituted into the Makefile and "${CC-cc}" will confuse make.
1297: CPP="${CC-cc} -E"
1298: # On the NeXT, cc -E runs the code through the compiler's parser,
1299: # not just through cpp.
1300: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1301: #line 1302 "configure"
1.1 maekawa 1302: #include "confdefs.h"
1303: #include <assert.h>
1304: Syntax Error
1305: EOF
1306: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 1307: { (eval echo configure:1308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 1308: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1309: if test -z "$ac_err"; then
1310: :
1311: else
1312: echo "$ac_err" >&5
1313: echo "configure: failed program was:" >&5
1314: cat conftest.$ac_ext >&5
1315: rm -rf conftest*
1316: CPP="${CC-cc} -E -traditional-cpp"
1317: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1318: #line 1319 "configure"
1.1 maekawa 1319: #include "confdefs.h"
1320: #include <assert.h>
1321: Syntax Error
1322: EOF
1323: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 1324: { (eval echo configure:1325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 1325: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1326: if test -z "$ac_err"; then
1327: :
1328: else
1329: echo "$ac_err" >&5
1330: echo "configure: failed program was:" >&5
1331: cat conftest.$ac_ext >&5
1332: rm -rf conftest*
1333: CPP="${CC-cc} -nologo -E"
1334: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1335: #line 1336 "configure"
1.1 maekawa 1336: #include "confdefs.h"
1337: #include <assert.h>
1338: Syntax Error
1339: EOF
1340: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 1341: { (eval echo configure:1342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 1342: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1343: if test -z "$ac_err"; then
1344: :
1345: else
1346: echo "$ac_err" >&5
1347: echo "configure: failed program was:" >&5
1348: cat conftest.$ac_ext >&5
1349: rm -rf conftest*
1350: CPP=/lib/cpp
1351: fi
1352: rm -f conftest*
1353: fi
1354: rm -f conftest*
1355: fi
1356: rm -f conftest*
1357: ac_cv_prog_CPP="$CPP"
1358: fi
1359: CPP="$ac_cv_prog_CPP"
1360: else
1361: ac_cv_prog_CPP="$CPP"
1362: fi
1363: echo "$ac_t""$CPP" 1>&6
1364:
1365:
1366:
1367: echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1.1.1.3 ! ohara 1368: echo "configure:1369: checking for function prototypes" >&5
1.1 maekawa 1369: if test "$am_cv_prog_cc_stdc" != no; then
1370: echo "$ac_t""yes" 1>&6
1371: cat >> confdefs.h <<\EOF
1372: #define PROTOTYPES 1
1373: EOF
1374:
1375: U= ANSI2KNR=
1376: else
1377: echo "$ac_t""no" 1>&6
1378: U=_ ANSI2KNR=./ansi2knr
1.1.1.3 ! ohara 1379: fi
! 1380: # Ensure some checks needed by ansi2knr itself.
! 1381: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
! 1382: echo "configure:1383: checking for ANSI C header files" >&5
1.1 maekawa 1383: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1384: echo $ac_n "(cached) $ac_c" 1>&6
1385: else
1386: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1387: #line 1388 "configure"
1.1 maekawa 1388: #include "confdefs.h"
1389: #include <stdlib.h>
1390: #include <stdarg.h>
1391: #include <string.h>
1392: #include <float.h>
1393: EOF
1394: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 1395: { (eval echo configure:1396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 1396: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1397: if test -z "$ac_err"; then
1398: rm -rf conftest*
1399: ac_cv_header_stdc=yes
1400: else
1401: echo "$ac_err" >&5
1402: echo "configure: failed program was:" >&5
1403: cat conftest.$ac_ext >&5
1404: rm -rf conftest*
1405: ac_cv_header_stdc=no
1406: fi
1407: rm -f conftest*
1408:
1409: if test $ac_cv_header_stdc = yes; then
1410: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1411: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1412: #line 1413 "configure"
1.1 maekawa 1413: #include "confdefs.h"
1414: #include <string.h>
1415: EOF
1416: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1417: egrep "memchr" >/dev/null 2>&1; then
1418: :
1419: else
1420: rm -rf conftest*
1421: ac_cv_header_stdc=no
1422: fi
1423: rm -f conftest*
1424:
1425: fi
1426:
1427: if test $ac_cv_header_stdc = yes; then
1428: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1429: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1430: #line 1431 "configure"
1.1 maekawa 1431: #include "confdefs.h"
1432: #include <stdlib.h>
1433: EOF
1434: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1435: egrep "free" >/dev/null 2>&1; then
1436: :
1437: else
1438: rm -rf conftest*
1439: ac_cv_header_stdc=no
1440: fi
1441: rm -f conftest*
1442:
1443: fi
1444:
1445: if test $ac_cv_header_stdc = yes; then
1446: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1447: if test "$cross_compiling" = yes; then
1448: :
1449: else
1450: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1451: #line 1452 "configure"
1.1 maekawa 1452: #include "confdefs.h"
1453: #include <ctype.h>
1454: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1455: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1456: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1457: int main () { int i; for (i = 0; i < 256; i++)
1458: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1459: exit (0); }
1460:
1461: EOF
1.1.1.3 ! ohara 1462: if { (eval echo configure:1463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1 maekawa 1463: then
1464: :
1465: else
1466: echo "configure: failed program was:" >&5
1467: cat conftest.$ac_ext >&5
1468: rm -fr conftest*
1469: ac_cv_header_stdc=no
1470: fi
1471: rm -fr conftest*
1472: fi
1473:
1474: fi
1475: fi
1476:
1477: echo "$ac_t""$ac_cv_header_stdc" 1>&6
1478: if test $ac_cv_header_stdc = yes; then
1479: cat >> confdefs.h <<\EOF
1480: #define STDC_HEADERS 1
1481: EOF
1482:
1483: fi
1484:
1.1.1.3 ! ohara 1485: for ac_hdr in string.h
1.1 maekawa 1486: do
1487: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1488: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.3 ! ohara 1489: echo "configure:1490: checking for $ac_hdr" >&5
1.1 maekawa 1490: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1491: echo $ac_n "(cached) $ac_c" 1>&6
1492: else
1493: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1494: #line 1495 "configure"
1.1 maekawa 1495: #include "confdefs.h"
1496: #include <$ac_hdr>
1497: EOF
1498: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 1499: { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 1500: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1501: if test -z "$ac_err"; then
1502: rm -rf conftest*
1503: eval "ac_cv_header_$ac_safe=yes"
1504: else
1505: echo "$ac_err" >&5
1506: echo "configure: failed program was:" >&5
1507: cat conftest.$ac_ext >&5
1508: rm -rf conftest*
1509: eval "ac_cv_header_$ac_safe=no"
1510: fi
1511: rm -f conftest*
1512: fi
1513: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1514: echo "$ac_t""yes" 1>&6
1515: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1516: cat >> confdefs.h <<EOF
1517: #define $ac_tr_hdr 1
1518: EOF
1519:
1520: else
1521: echo "$ac_t""no" 1>&6
1522: fi
1523: done
1524:
1525:
1526: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.1.1.3 ! ohara 1527: echo "configure:1528: checking how to run the C preprocessor" >&5
1.1 maekawa 1528: # On Suns, sometimes $CPP names a directory.
1529: if test -n "$CPP" && test -d "$CPP"; then
1530: CPP=
1531: fi
1532: if test -z "$CPP"; then
1533: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1534: echo $ac_n "(cached) $ac_c" 1>&6
1535: else
1536: # This must be in double quotes, not single quotes, because CPP may get
1537: # substituted into the Makefile and "${CC-cc}" will confuse make.
1538: CPP="${CC-cc} -E"
1539: # On the NeXT, cc -E runs the code through the compiler's parser,
1540: # not just through cpp.
1541: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1542: #line 1543 "configure"
1.1 maekawa 1543: #include "confdefs.h"
1544: #include <assert.h>
1545: Syntax Error
1546: EOF
1547: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 1548: { (eval echo configure:1549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 1549: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1550: if test -z "$ac_err"; then
1551: :
1552: else
1553: echo "$ac_err" >&5
1554: echo "configure: failed program was:" >&5
1555: cat conftest.$ac_ext >&5
1556: rm -rf conftest*
1557: CPP="${CC-cc} -E -traditional-cpp"
1558: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1559: #line 1560 "configure"
1.1 maekawa 1560: #include "confdefs.h"
1561: #include <assert.h>
1562: Syntax Error
1563: EOF
1564: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 1565: { (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 1566: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1567: if test -z "$ac_err"; then
1568: :
1569: else
1570: echo "$ac_err" >&5
1571: echo "configure: failed program was:" >&5
1572: cat conftest.$ac_ext >&5
1573: rm -rf conftest*
1574: CPP="${CC-cc} -nologo -E"
1575: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1576: #line 1577 "configure"
1.1 maekawa 1577: #include "confdefs.h"
1578: #include <assert.h>
1579: Syntax Error
1580: EOF
1581: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 1582: { (eval echo configure:1583: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 1583: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1584: if test -z "$ac_err"; then
1585: :
1586: else
1587: echo "$ac_err" >&5
1588: echo "configure: failed program was:" >&5
1589: cat conftest.$ac_ext >&5
1590: rm -rf conftest*
1591: CPP=/lib/cpp
1592: fi
1593: rm -f conftest*
1594: fi
1595: rm -f conftest*
1596: fi
1597: rm -f conftest*
1598: ac_cv_prog_CPP="$CPP"
1599: fi
1600: CPP="$ac_cv_prog_CPP"
1601: else
1602: ac_cv_prog_CPP="$CPP"
1603: fi
1604: echo "$ac_t""$CPP" 1>&6
1605:
1606: echo $ac_n "checking for working const""... $ac_c" 1>&6
1.1.1.3 ! ohara 1607: echo "configure:1608: checking for working const" >&5
1.1 maekawa 1608: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1609: echo $ac_n "(cached) $ac_c" 1>&6
1610: else
1611: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1612: #line 1613 "configure"
1.1 maekawa 1613: #include "confdefs.h"
1614:
1615: int main() {
1616:
1617: /* Ultrix mips cc rejects this. */
1618: typedef int charset[2]; const charset x;
1619: /* SunOS 4.1.1 cc rejects this. */
1620: char const *const *ccp;
1621: char **p;
1622: /* NEC SVR4.0.2 mips cc rejects this. */
1623: struct point {int x, y;};
1624: static struct point const zero = {0,0};
1625: /* AIX XL C 1.02.0.0 rejects this.
1626: It does not let you subtract one const X* pointer from another in an arm
1627: of an if-expression whose if-part is not a constant expression */
1628: const char *g = "string";
1629: ccp = &g + (g ? g-g : 0);
1630: /* HPUX 7.0 cc rejects these. */
1631: ++ccp;
1632: p = (char**) ccp;
1633: ccp = (char const *const *) p;
1634: { /* SCO 3.2v4 cc rejects this. */
1635: char *t;
1636: char const *s = 0 ? (char *) 0 : (char const *) 0;
1637:
1638: *t++ = 0;
1639: }
1640: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1641: int x[] = {25, 17};
1642: const int *foo = &x[0];
1643: ++foo;
1644: }
1645: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1646: typedef const int *iptr;
1647: iptr p = 0;
1648: ++p;
1649: }
1650: { /* AIX XL C 1.02.0.0 rejects this saying
1651: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1652: struct s { int j; const int *ap[3]; };
1653: struct s *b; b->j = 5;
1654: }
1655: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1656: const int foo = 10;
1657: }
1658:
1659: ; return 0; }
1660: EOF
1.1.1.3 ! ohara 1661: if { (eval echo configure:1662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 maekawa 1662: rm -rf conftest*
1663: ac_cv_c_const=yes
1664: else
1665: echo "configure: failed program was:" >&5
1666: cat conftest.$ac_ext >&5
1667: rm -rf conftest*
1668: ac_cv_c_const=no
1669: fi
1670: rm -f conftest*
1671: fi
1672:
1673: echo "$ac_t""$ac_cv_c_const" 1>&6
1674: if test $ac_cv_c_const = no; then
1675: cat >> confdefs.h <<\EOF
1676: #define const
1677: EOF
1678:
1679: fi
1680:
1681: echo $ac_n "checking for inline""... $ac_c" 1>&6
1.1.1.3 ! ohara 1682: echo "configure:1683: checking for inline" >&5
1.1 maekawa 1683: if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1684: echo $ac_n "(cached) $ac_c" 1>&6
1685: else
1686: ac_cv_c_inline=no
1687: for ac_kw in inline __inline__ __inline; do
1688: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1689: #line 1690 "configure"
1.1 maekawa 1690: #include "confdefs.h"
1691:
1692: int main() {
1693: } $ac_kw foo() {
1694: ; return 0; }
1695: EOF
1.1.1.3 ! ohara 1696: if { (eval echo configure:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 maekawa 1697: rm -rf conftest*
1698: ac_cv_c_inline=$ac_kw; break
1699: else
1700: echo "configure: failed program was:" >&5
1701: cat conftest.$ac_ext >&5
1702: fi
1703: rm -f conftest*
1704: done
1705:
1706: fi
1707:
1708: echo "$ac_t""$ac_cv_c_inline" 1>&6
1709: case "$ac_cv_c_inline" in
1710: inline | yes) ;;
1711: no) cat >> confdefs.h <<\EOF
1712: #define inline
1713: EOF
1714: ;;
1715: *) cat >> confdefs.h <<EOF
1716: #define inline $ac_cv_c_inline
1717: EOF
1718: ;;
1719: esac
1720:
1721:
1722:
1723: echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6
1.1.1.3 ! ohara 1724: echo "configure:1725: checking for preprocessor stringizing operator" >&5
1.1 maekawa 1725: if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then
1726: echo $ac_n "(cached) $ac_c" 1>&6
1727: else
1728: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1729: #line 1730 "configure"
1.1 maekawa 1730: #include "confdefs.h"
1731:
1732: #define x(y) #y
1733:
1734: char *s = x(teststring);
1735:
1736: EOF
1737: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1738: egrep "#teststring" >/dev/null 2>&1; then
1739: rm -rf conftest*
1740: ac_cv_c_stringize=no
1741: else
1742: rm -rf conftest*
1743: ac_cv_c_stringize=yes
1744: fi
1745: rm -f conftest*
1746:
1747: fi
1748:
1749: if test "${ac_cv_c_stringize}" = yes
1750: then
1751: cat >> confdefs.h <<\EOF
1752: #define HAVE_STRINGIZE 1
1753: EOF
1754:
1755: fi
1756: echo "$ac_t""${ac_cv_c_stringize}" 1>&6
1757:
1758:
1759: echo $ac_n "checking if compiler handles warn and error directives correctly""... $ac_c" 1>&6
1.1.1.3 ! ohara 1760: echo "configure:1761: checking if compiler handles warn and error directives correctly" >&5
1.1 maekawa 1761: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1762: #line 1763 "configure"
1.1 maekawa 1763: #include "confdefs.h"
1764: #if 0
1765: #error "error"
1766: #warning "warning"
1767: #endif
1768: EOF
1769: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 1770: { (eval echo configure:1771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 1771: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1772: if test -z "$ac_err"; then
1773: rm -rf conftest*
1774: ERRORFIX=
1775: echo "$ac_t""yes" 1>&6
1776: else
1777: echo "$ac_err" >&5
1778: echo "configure: failed program was:" >&5
1779: cat conftest.$ac_ext >&5
1780: rm -rf conftest*
1781: ERRORFIX=errorfix
1782: echo "$ac_t""no" 1>&6
1783: fi
1784: rm -f conftest*
1785:
1786:
1787:
1788:
1789: # If we find X, set shell vars x_includes and x_libraries to the
1790: # paths, otherwise set no_x=yes.
1791: # Uses ac_ vars as temps to allow command line to override cache and checks.
1792: # --without-x overrides everything else, but does not touch the cache.
1793: echo $ac_n "checking for X""... $ac_c" 1>&6
1.1.1.3 ! ohara 1794: echo "configure:1795: checking for X" >&5
1.1 maekawa 1795:
1796: # Check whether --with-x or --without-x was given.
1797: if test "${with_x+set}" = set; then
1798: withval="$with_x"
1799: :
1800: fi
1801:
1802: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1803: if test "x$with_x" = xno; then
1804: # The user explicitly disabled X.
1805: have_x=disabled
1806: else
1807: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1808: # Both variables are already set.
1809: have_x=yes
1810: else
1811: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1812: echo $ac_n "(cached) $ac_c" 1>&6
1813: else
1814: # One or both of the vars are not set, and there is no cached value.
1815: ac_x_includes=NO ac_x_libraries=NO
1816: rm -fr conftestdir
1817: if mkdir conftestdir; then
1818: cd conftestdir
1819: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1820: cat > Imakefile <<'EOF'
1821: acfindx:
1822: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1823: EOF
1824: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1825: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1826: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1827: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1828: for ac_extension in a so sl; do
1829: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1830: test -f $ac_im_libdir/libX11.$ac_extension; then
1831: ac_im_usrlibdir=$ac_im_libdir; break
1832: fi
1833: done
1834: # Screen out bogus values from the imake configuration. They are
1835: # bogus both because they are the default anyway, and because
1836: # using them would break gcc on systems where it needs fixed includes.
1837: case "$ac_im_incroot" in
1838: /usr/include) ;;
1839: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1840: esac
1841: case "$ac_im_usrlibdir" in
1842: /usr/lib | /lib) ;;
1843: *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1844: esac
1845: fi
1846: cd ..
1847: rm -fr conftestdir
1848: fi
1849:
1850: if test "$ac_x_includes" = NO; then
1851: # Guess where to find include files, by looking for this one X11 .h file.
1852: test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1853:
1854: # First, try using that file with no special directory specified.
1855: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1856: #line 1857 "configure"
1.1 maekawa 1857: #include "confdefs.h"
1858: #include <$x_direct_test_include>
1859: EOF
1860: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 1861: { (eval echo configure:1862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 1862: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1863: if test -z "$ac_err"; then
1864: rm -rf conftest*
1865: # We can compile using X headers with no special include directory.
1866: ac_x_includes=
1867: else
1868: echo "$ac_err" >&5
1869: echo "configure: failed program was:" >&5
1870: cat conftest.$ac_ext >&5
1871: rm -rf conftest*
1872: # Look for the header file in a standard set of common directories.
1873: # Check X11 before X11Rn because it is often a symlink to the current release.
1874: for ac_dir in \
1875: /usr/X11/include \
1876: /usr/X11R6/include \
1877: /usr/X11R5/include \
1878: /usr/X11R4/include \
1879: \
1880: /usr/include/X11 \
1881: /usr/include/X11R6 \
1882: /usr/include/X11R5 \
1883: /usr/include/X11R4 \
1884: \
1885: /usr/local/X11/include \
1886: /usr/local/X11R6/include \
1887: /usr/local/X11R5/include \
1888: /usr/local/X11R4/include \
1889: \
1890: /usr/local/include/X11 \
1891: /usr/local/include/X11R6 \
1892: /usr/local/include/X11R5 \
1893: /usr/local/include/X11R4 \
1894: \
1895: /usr/X386/include \
1896: /usr/x386/include \
1897: /usr/XFree86/include/X11 \
1898: \
1899: /usr/include \
1900: /usr/local/include \
1901: /usr/unsupported/include \
1902: /usr/athena/include \
1903: /usr/local/x11r5/include \
1904: /usr/lpp/Xamples/include \
1905: \
1906: /usr/openwin/include \
1907: /usr/openwin/share/include \
1908: ; \
1909: do
1910: if test -r "$ac_dir/$x_direct_test_include"; then
1911: ac_x_includes=$ac_dir
1912: break
1913: fi
1914: done
1915: fi
1916: rm -f conftest*
1917: fi # $ac_x_includes = NO
1918:
1919: if test "$ac_x_libraries" = NO; then
1920: # Check for the libraries.
1921:
1922: test -z "$x_direct_test_library" && x_direct_test_library=Xt
1923: test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1924:
1925: # See if we find them without any special options.
1926: # Don't add to $LIBS permanently.
1927: ac_save_LIBS="$LIBS"
1928: LIBS="-l$x_direct_test_library $LIBS"
1929: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 1930: #line 1931 "configure"
1.1 maekawa 1931: #include "confdefs.h"
1932:
1933: int main() {
1934: ${x_direct_test_function}()
1935: ; return 0; }
1936: EOF
1.1.1.3 ! ohara 1937: if { (eval echo configure:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 1938: rm -rf conftest*
1939: LIBS="$ac_save_LIBS"
1940: # We can link X programs with no special library path.
1941: ac_x_libraries=
1942: else
1943: echo "configure: failed program was:" >&5
1944: cat conftest.$ac_ext >&5
1945: rm -rf conftest*
1946: LIBS="$ac_save_LIBS"
1947: # First see if replacing the include by lib works.
1948: # Check X11 before X11Rn because it is often a symlink to the current release.
1949: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1950: /usr/X11/lib \
1951: /usr/X11R6/lib \
1952: /usr/X11R5/lib \
1953: /usr/X11R4/lib \
1954: \
1955: /usr/lib/X11 \
1956: /usr/lib/X11R6 \
1957: /usr/lib/X11R5 \
1958: /usr/lib/X11R4 \
1959: \
1960: /usr/local/X11/lib \
1961: /usr/local/X11R6/lib \
1962: /usr/local/X11R5/lib \
1963: /usr/local/X11R4/lib \
1964: \
1965: /usr/local/lib/X11 \
1966: /usr/local/lib/X11R6 \
1967: /usr/local/lib/X11R5 \
1968: /usr/local/lib/X11R4 \
1969: \
1970: /usr/X386/lib \
1971: /usr/x386/lib \
1972: /usr/XFree86/lib/X11 \
1973: \
1974: /usr/lib \
1975: /usr/local/lib \
1976: /usr/unsupported/lib \
1977: /usr/athena/lib \
1978: /usr/local/x11r5/lib \
1979: /usr/lpp/Xamples/lib \
1980: /lib/usr/lib/X11 \
1981: \
1982: /usr/openwin/lib \
1983: /usr/openwin/share/lib \
1984: ; \
1985: do
1986: for ac_extension in a so sl; do
1987: if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1988: ac_x_libraries=$ac_dir
1989: break 2
1990: fi
1991: done
1992: done
1993: fi
1994: rm -f conftest*
1995: fi # $ac_x_libraries = NO
1996:
1997: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1998: # Didn't find X anywhere. Cache the known absence of X.
1999: ac_cv_have_x="have_x=no"
2000: else
2001: # Record where we found X for the cache.
2002: ac_cv_have_x="have_x=yes \
2003: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2004: fi
2005: fi
2006: fi
2007: eval "$ac_cv_have_x"
2008: fi # $with_x != no
2009:
2010: if test "$have_x" != yes; then
2011: echo "$ac_t""$have_x" 1>&6
2012: no_x=yes
2013: else
2014: # If each of the values was on the command line, it overrides each guess.
2015: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2016: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2017: # Update the cache value to reflect the command line values.
2018: ac_cv_have_x="have_x=yes \
2019: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2020: echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2021: fi
2022:
2023: if test "$no_x" = yes; then
2024: # Not all programs may use this symbol, but it does not hurt to define it.
2025: cat >> confdefs.h <<\EOF
2026: #define X_DISPLAY_MISSING 1
2027: EOF
2028:
2029: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2030: else
2031: if test -n "$x_includes"; then
2032: X_CFLAGS="$X_CFLAGS -I$x_includes"
2033: fi
2034:
2035: # It would also be nice to do this for all -L options, not just this one.
2036: if test -n "$x_libraries"; then
2037: X_LIBS="$X_LIBS -L$x_libraries"
2038: # For Solaris; some versions of Sun CC require a space after -R and
2039: # others require no space. Words are not sufficient . . . .
2040: case "`(uname -sr) 2>/dev/null`" in
2041: "SunOS 5"*)
2042: echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1.1.1.3 ! ohara 2043: echo "configure:2044: checking whether -R must be followed by a space" >&5
1.1 maekawa 2044: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2045: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2046: #line 2047 "configure"
1.1 maekawa 2047: #include "confdefs.h"
2048:
2049: int main() {
2050:
2051: ; return 0; }
2052: EOF
1.1.1.3 ! ohara 2053: if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2054: rm -rf conftest*
2055: ac_R_nospace=yes
2056: else
2057: echo "configure: failed program was:" >&5
2058: cat conftest.$ac_ext >&5
2059: rm -rf conftest*
2060: ac_R_nospace=no
2061: fi
2062: rm -f conftest*
2063: if test $ac_R_nospace = yes; then
2064: echo "$ac_t""no" 1>&6
2065: X_LIBS="$X_LIBS -R$x_libraries"
2066: else
2067: LIBS="$ac_xsave_LIBS -R $x_libraries"
2068: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2069: #line 2070 "configure"
1.1 maekawa 2070: #include "confdefs.h"
2071:
2072: int main() {
2073:
2074: ; return 0; }
2075: EOF
1.1.1.3 ! ohara 2076: if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2077: rm -rf conftest*
2078: ac_R_space=yes
2079: else
2080: echo "configure: failed program was:" >&5
2081: cat conftest.$ac_ext >&5
2082: rm -rf conftest*
2083: ac_R_space=no
2084: fi
2085: rm -f conftest*
2086: if test $ac_R_space = yes; then
2087: echo "$ac_t""yes" 1>&6
2088: X_LIBS="$X_LIBS -R $x_libraries"
2089: else
2090: echo "$ac_t""neither works" 1>&6
2091: fi
2092: fi
2093: LIBS="$ac_xsave_LIBS"
2094: esac
2095: fi
2096:
2097: # Check for system-dependent libraries X programs must link with.
2098: # Do this before checking for the system-independent R6 libraries
2099: # (-lICE), since we may need -lsocket or whatever for X linking.
2100:
2101: if test "$ISC" = yes; then
2102: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2103: else
2104: # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2105: # libraries were built with DECnet support. And karl@cs.umb.edu says
2106: # the Alpha needs dnet_stub (dnet does not exist).
2107: echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1.1.1.3 ! ohara 2108: echo "configure:2109: checking for dnet_ntoa in -ldnet" >&5
1.1 maekawa 2109: ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2110: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2111: echo $ac_n "(cached) $ac_c" 1>&6
2112: else
2113: ac_save_LIBS="$LIBS"
2114: LIBS="-ldnet $LIBS"
2115: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2116: #line 2117 "configure"
1.1 maekawa 2117: #include "confdefs.h"
2118: /* Override any gcc2 internal prototype to avoid an error. */
2119: /* We use char because int might match the return type of a gcc2
2120: builtin and then its argument prototype would still apply. */
2121: char dnet_ntoa();
2122:
2123: int main() {
2124: dnet_ntoa()
2125: ; return 0; }
2126: EOF
1.1.1.3 ! ohara 2127: if { (eval echo configure:2128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2128: rm -rf conftest*
2129: eval "ac_cv_lib_$ac_lib_var=yes"
2130: else
2131: echo "configure: failed program was:" >&5
2132: cat conftest.$ac_ext >&5
2133: rm -rf conftest*
2134: eval "ac_cv_lib_$ac_lib_var=no"
2135: fi
2136: rm -f conftest*
2137: LIBS="$ac_save_LIBS"
2138:
2139: fi
2140: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2141: echo "$ac_t""yes" 1>&6
2142: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2143: else
2144: echo "$ac_t""no" 1>&6
2145: fi
2146:
2147: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2148: echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1.1.1.3 ! ohara 2149: echo "configure:2150: checking for dnet_ntoa in -ldnet_stub" >&5
1.1 maekawa 2150: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2151: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2152: echo $ac_n "(cached) $ac_c" 1>&6
2153: else
2154: ac_save_LIBS="$LIBS"
2155: LIBS="-ldnet_stub $LIBS"
2156: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2157: #line 2158 "configure"
1.1 maekawa 2158: #include "confdefs.h"
2159: /* Override any gcc2 internal prototype to avoid an error. */
2160: /* We use char because int might match the return type of a gcc2
2161: builtin and then its argument prototype would still apply. */
2162: char dnet_ntoa();
2163:
2164: int main() {
2165: dnet_ntoa()
2166: ; return 0; }
2167: EOF
1.1.1.3 ! ohara 2168: if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2169: rm -rf conftest*
2170: eval "ac_cv_lib_$ac_lib_var=yes"
2171: else
2172: echo "configure: failed program was:" >&5
2173: cat conftest.$ac_ext >&5
2174: rm -rf conftest*
2175: eval "ac_cv_lib_$ac_lib_var=no"
2176: fi
2177: rm -f conftest*
2178: LIBS="$ac_save_LIBS"
2179:
2180: fi
2181: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2182: echo "$ac_t""yes" 1>&6
2183: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2184: else
2185: echo "$ac_t""no" 1>&6
2186: fi
2187:
2188: fi
2189:
2190: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2191: # to get the SysV transport functions.
2192: # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2193: # needs -lnsl.
2194: # The nsl library prevents programs from opening the X display
2195: # on Irix 5.2, according to dickey@clark.net.
2196: echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1.1.1.3 ! ohara 2197: echo "configure:2198: checking for gethostbyname" >&5
1.1 maekawa 2198: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2199: echo $ac_n "(cached) $ac_c" 1>&6
2200: else
2201: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2202: #line 2203 "configure"
1.1 maekawa 2203: #include "confdefs.h"
2204: /* System header to define __stub macros and hopefully few prototypes,
2205: which can conflict with char gethostbyname(); below. */
2206: #include <assert.h>
2207: /* Override any gcc2 internal prototype to avoid an error. */
2208: /* We use char because int might match the return type of a gcc2
2209: builtin and then its argument prototype would still apply. */
2210: char gethostbyname();
2211:
2212: int main() {
2213:
2214: /* The GNU C library defines this for functions which it implements
2215: to always fail with ENOSYS. Some functions are actually named
2216: something starting with __ and the normal name is an alias. */
2217: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2218: choke me
2219: #else
2220: gethostbyname();
2221: #endif
2222:
2223: ; return 0; }
2224: EOF
1.1.1.3 ! ohara 2225: if { (eval echo configure:2226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2226: rm -rf conftest*
2227: eval "ac_cv_func_gethostbyname=yes"
2228: else
2229: echo "configure: failed program was:" >&5
2230: cat conftest.$ac_ext >&5
2231: rm -rf conftest*
2232: eval "ac_cv_func_gethostbyname=no"
2233: fi
2234: rm -f conftest*
2235: fi
2236:
2237: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2238: echo "$ac_t""yes" 1>&6
2239: :
2240: else
2241: echo "$ac_t""no" 1>&6
2242: fi
2243:
2244: if test $ac_cv_func_gethostbyname = no; then
2245: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.1.1.3 ! ohara 2246: echo "configure:2247: checking for gethostbyname in -lnsl" >&5
1.1 maekawa 2247: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2248: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2249: echo $ac_n "(cached) $ac_c" 1>&6
2250: else
2251: ac_save_LIBS="$LIBS"
2252: LIBS="-lnsl $LIBS"
2253: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2254: #line 2255 "configure"
1.1 maekawa 2255: #include "confdefs.h"
2256: /* Override any gcc2 internal prototype to avoid an error. */
2257: /* We use char because int might match the return type of a gcc2
2258: builtin and then its argument prototype would still apply. */
2259: char gethostbyname();
2260:
2261: int main() {
2262: gethostbyname()
2263: ; return 0; }
2264: EOF
1.1.1.3 ! ohara 2265: if { (eval echo configure:2266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2266: rm -rf conftest*
2267: eval "ac_cv_lib_$ac_lib_var=yes"
2268: else
2269: echo "configure: failed program was:" >&5
2270: cat conftest.$ac_ext >&5
2271: rm -rf conftest*
2272: eval "ac_cv_lib_$ac_lib_var=no"
2273: fi
2274: rm -f conftest*
2275: LIBS="$ac_save_LIBS"
2276:
2277: fi
2278: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2279: echo "$ac_t""yes" 1>&6
2280: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2281: else
2282: echo "$ac_t""no" 1>&6
2283: fi
2284:
2285: fi
2286:
2287: # lieder@skyler.mavd.honeywell.com says without -lsocket,
2288: # socket/setsockopt and other routines are undefined under SCO ODT
2289: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2290: # on later versions), says simon@lia.di.epfl.ch: it contains
2291: # gethostby* variants that don't use the nameserver (or something).
2292: # -lsocket must be given before -lnsl if both are needed.
2293: # We assume that if connect needs -lnsl, so does gethostbyname.
2294: echo $ac_n "checking for connect""... $ac_c" 1>&6
1.1.1.3 ! ohara 2295: echo "configure:2296: checking for connect" >&5
1.1 maekawa 2296: if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2297: echo $ac_n "(cached) $ac_c" 1>&6
2298: else
2299: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2300: #line 2301 "configure"
1.1 maekawa 2301: #include "confdefs.h"
2302: /* System header to define __stub macros and hopefully few prototypes,
2303: which can conflict with char connect(); below. */
2304: #include <assert.h>
2305: /* Override any gcc2 internal prototype to avoid an error. */
2306: /* We use char because int might match the return type of a gcc2
2307: builtin and then its argument prototype would still apply. */
2308: char connect();
2309:
2310: int main() {
2311:
2312: /* The GNU C library defines this for functions which it implements
2313: to always fail with ENOSYS. Some functions are actually named
2314: something starting with __ and the normal name is an alias. */
2315: #if defined (__stub_connect) || defined (__stub___connect)
2316: choke me
2317: #else
2318: connect();
2319: #endif
2320:
2321: ; return 0; }
2322: EOF
1.1.1.3 ! ohara 2323: if { (eval echo configure:2324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2324: rm -rf conftest*
2325: eval "ac_cv_func_connect=yes"
2326: else
2327: echo "configure: failed program was:" >&5
2328: cat conftest.$ac_ext >&5
2329: rm -rf conftest*
2330: eval "ac_cv_func_connect=no"
2331: fi
2332: rm -f conftest*
2333: fi
2334:
2335: if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2336: echo "$ac_t""yes" 1>&6
2337: :
2338: else
2339: echo "$ac_t""no" 1>&6
2340: fi
2341:
2342: if test $ac_cv_func_connect = no; then
2343: echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1.1.1.3 ! ohara 2344: echo "configure:2345: checking for connect in -lsocket" >&5
1.1 maekawa 2345: ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2346: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2347: echo $ac_n "(cached) $ac_c" 1>&6
2348: else
2349: ac_save_LIBS="$LIBS"
2350: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2351: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2352: #line 2353 "configure"
1.1 maekawa 2353: #include "confdefs.h"
2354: /* Override any gcc2 internal prototype to avoid an error. */
2355: /* We use char because int might match the return type of a gcc2
2356: builtin and then its argument prototype would still apply. */
2357: char connect();
2358:
2359: int main() {
2360: connect()
2361: ; return 0; }
2362: EOF
1.1.1.3 ! ohara 2363: if { (eval echo configure:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2364: rm -rf conftest*
2365: eval "ac_cv_lib_$ac_lib_var=yes"
2366: else
2367: echo "configure: failed program was:" >&5
2368: cat conftest.$ac_ext >&5
2369: rm -rf conftest*
2370: eval "ac_cv_lib_$ac_lib_var=no"
2371: fi
2372: rm -f conftest*
2373: LIBS="$ac_save_LIBS"
2374:
2375: fi
2376: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2377: echo "$ac_t""yes" 1>&6
2378: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2379: else
2380: echo "$ac_t""no" 1>&6
2381: fi
2382:
2383: fi
2384:
2385: # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2386: echo $ac_n "checking for remove""... $ac_c" 1>&6
1.1.1.3 ! ohara 2387: echo "configure:2388: checking for remove" >&5
1.1 maekawa 2388: if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2389: echo $ac_n "(cached) $ac_c" 1>&6
2390: else
2391: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2392: #line 2393 "configure"
1.1 maekawa 2393: #include "confdefs.h"
2394: /* System header to define __stub macros and hopefully few prototypes,
2395: which can conflict with char remove(); below. */
2396: #include <assert.h>
2397: /* Override any gcc2 internal prototype to avoid an error. */
2398: /* We use char because int might match the return type of a gcc2
2399: builtin and then its argument prototype would still apply. */
2400: char remove();
2401:
2402: int main() {
2403:
2404: /* The GNU C library defines this for functions which it implements
2405: to always fail with ENOSYS. Some functions are actually named
2406: something starting with __ and the normal name is an alias. */
2407: #if defined (__stub_remove) || defined (__stub___remove)
2408: choke me
2409: #else
2410: remove();
2411: #endif
2412:
2413: ; return 0; }
2414: EOF
1.1.1.3 ! ohara 2415: if { (eval echo configure:2416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2416: rm -rf conftest*
2417: eval "ac_cv_func_remove=yes"
2418: else
2419: echo "configure: failed program was:" >&5
2420: cat conftest.$ac_ext >&5
2421: rm -rf conftest*
2422: eval "ac_cv_func_remove=no"
2423: fi
2424: rm -f conftest*
2425: fi
2426:
2427: if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2428: echo "$ac_t""yes" 1>&6
2429: :
2430: else
2431: echo "$ac_t""no" 1>&6
2432: fi
2433:
2434: if test $ac_cv_func_remove = no; then
2435: echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1.1.1.3 ! ohara 2436: echo "configure:2437: checking for remove in -lposix" >&5
1.1 maekawa 2437: ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2438: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2439: echo $ac_n "(cached) $ac_c" 1>&6
2440: else
2441: ac_save_LIBS="$LIBS"
2442: LIBS="-lposix $LIBS"
2443: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2444: #line 2445 "configure"
1.1 maekawa 2445: #include "confdefs.h"
2446: /* Override any gcc2 internal prototype to avoid an error. */
2447: /* We use char because int might match the return type of a gcc2
2448: builtin and then its argument prototype would still apply. */
2449: char remove();
2450:
2451: int main() {
2452: remove()
2453: ; return 0; }
2454: EOF
1.1.1.3 ! ohara 2455: if { (eval echo configure:2456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2456: rm -rf conftest*
2457: eval "ac_cv_lib_$ac_lib_var=yes"
2458: else
2459: echo "configure: failed program was:" >&5
2460: cat conftest.$ac_ext >&5
2461: rm -rf conftest*
2462: eval "ac_cv_lib_$ac_lib_var=no"
2463: fi
2464: rm -f conftest*
2465: LIBS="$ac_save_LIBS"
2466:
2467: fi
2468: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2469: echo "$ac_t""yes" 1>&6
2470: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2471: else
2472: echo "$ac_t""no" 1>&6
2473: fi
2474:
2475: fi
2476:
2477: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2478: echo $ac_n "checking for shmat""... $ac_c" 1>&6
1.1.1.3 ! ohara 2479: echo "configure:2480: checking for shmat" >&5
1.1 maekawa 2480: if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2481: echo $ac_n "(cached) $ac_c" 1>&6
2482: else
2483: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2484: #line 2485 "configure"
1.1 maekawa 2485: #include "confdefs.h"
2486: /* System header to define __stub macros and hopefully few prototypes,
2487: which can conflict with char shmat(); below. */
2488: #include <assert.h>
2489: /* Override any gcc2 internal prototype to avoid an error. */
2490: /* We use char because int might match the return type of a gcc2
2491: builtin and then its argument prototype would still apply. */
2492: char shmat();
2493:
2494: int main() {
2495:
2496: /* The GNU C library defines this for functions which it implements
2497: to always fail with ENOSYS. Some functions are actually named
2498: something starting with __ and the normal name is an alias. */
2499: #if defined (__stub_shmat) || defined (__stub___shmat)
2500: choke me
2501: #else
2502: shmat();
2503: #endif
2504:
2505: ; return 0; }
2506: EOF
1.1.1.3 ! ohara 2507: if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2508: rm -rf conftest*
2509: eval "ac_cv_func_shmat=yes"
2510: else
2511: echo "configure: failed program was:" >&5
2512: cat conftest.$ac_ext >&5
2513: rm -rf conftest*
2514: eval "ac_cv_func_shmat=no"
2515: fi
2516: rm -f conftest*
2517: fi
2518:
2519: if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2520: echo "$ac_t""yes" 1>&6
2521: :
2522: else
2523: echo "$ac_t""no" 1>&6
2524: fi
2525:
2526: if test $ac_cv_func_shmat = no; then
2527: echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1.1.1.3 ! ohara 2528: echo "configure:2529: checking for shmat in -lipc" >&5
1.1 maekawa 2529: ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2530: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2531: echo $ac_n "(cached) $ac_c" 1>&6
2532: else
2533: ac_save_LIBS="$LIBS"
2534: LIBS="-lipc $LIBS"
2535: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2536: #line 2537 "configure"
1.1 maekawa 2537: #include "confdefs.h"
2538: /* Override any gcc2 internal prototype to avoid an error. */
2539: /* We use char because int might match the return type of a gcc2
2540: builtin and then its argument prototype would still apply. */
2541: char shmat();
2542:
2543: int main() {
2544: shmat()
2545: ; return 0; }
2546: EOF
1.1.1.3 ! ohara 2547: if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2548: rm -rf conftest*
2549: eval "ac_cv_lib_$ac_lib_var=yes"
2550: else
2551: echo "configure: failed program was:" >&5
2552: cat conftest.$ac_ext >&5
2553: rm -rf conftest*
2554: eval "ac_cv_lib_$ac_lib_var=no"
2555: fi
2556: rm -f conftest*
2557: LIBS="$ac_save_LIBS"
2558:
2559: fi
2560: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2561: echo "$ac_t""yes" 1>&6
2562: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2563: else
2564: echo "$ac_t""no" 1>&6
2565: fi
2566:
2567: fi
2568: fi
2569:
2570: # Check for libraries that X11R6 Xt/Xaw programs need.
2571: ac_save_LDFLAGS="$LDFLAGS"
2572: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2573: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2574: # check for ICE first), but we must link in the order -lSM -lICE or
2575: # we get undefined symbols. So assume we have SM if we have ICE.
2576: # These have to be linked with before -lX11, unlike the other
2577: # libraries we check for below, so use a different variable.
2578: # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2579: echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1.1.1.3 ! ohara 2580: echo "configure:2581: checking for IceConnectionNumber in -lICE" >&5
1.1 maekawa 2581: ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2582: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2583: echo $ac_n "(cached) $ac_c" 1>&6
2584: else
2585: ac_save_LIBS="$LIBS"
2586: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2587: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2588: #line 2589 "configure"
1.1 maekawa 2589: #include "confdefs.h"
2590: /* Override any gcc2 internal prototype to avoid an error. */
2591: /* We use char because int might match the return type of a gcc2
2592: builtin and then its argument prototype would still apply. */
2593: char IceConnectionNumber();
2594:
2595: int main() {
2596: IceConnectionNumber()
2597: ; return 0; }
2598: EOF
1.1.1.3 ! ohara 2599: if { (eval echo configure:2600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2600: rm -rf conftest*
2601: eval "ac_cv_lib_$ac_lib_var=yes"
2602: else
2603: echo "configure: failed program was:" >&5
2604: cat conftest.$ac_ext >&5
2605: rm -rf conftest*
2606: eval "ac_cv_lib_$ac_lib_var=no"
2607: fi
2608: rm -f conftest*
2609: LIBS="$ac_save_LIBS"
2610:
2611: fi
2612: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2613: echo "$ac_t""yes" 1>&6
2614: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2615: else
2616: echo "$ac_t""no" 1>&6
2617: fi
2618:
2619: LDFLAGS="$ac_save_LDFLAGS"
2620:
2621: fi
2622:
1.1.1.2 maekawa 2623:
1.1.1.3 ! ohara 2624: if test "$ac_cv_func_gethostbyname" = no; then
! 2625: if test "$ac_cv_lib_nsl_gethostbyname" = no; then
! 2626: echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6
! 2627: echo "configure:2628: checking for gethostbyname in -lbsd" >&5
1.1.1.2 maekawa 2628: ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'`
2629: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2630: echo $ac_n "(cached) $ac_c" 1>&6
2631: else
2632: ac_save_LIBS="$LIBS"
2633: LIBS="-lbsd $LIBS"
2634: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2635: #line 2636 "configure"
1.1.1.2 maekawa 2636: #include "confdefs.h"
2637: /* Override any gcc2 internal prototype to avoid an error. */
2638: /* We use char because int might match the return type of a gcc2
2639: builtin and then its argument prototype would still apply. */
2640: char gethostbyname();
2641:
2642: int main() {
2643: gethostbyname()
2644: ; return 0; }
2645: EOF
1.1.1.3 ! ohara 2646: if { (eval echo configure:2647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 2647: rm -rf conftest*
2648: eval "ac_cv_lib_$ac_lib_var=yes"
2649: else
2650: echo "configure: failed program was:" >&5
2651: cat conftest.$ac_ext >&5
2652: rm -rf conftest*
2653: eval "ac_cv_lib_$ac_lib_var=no"
2654: fi
2655: rm -f conftest*
2656: LIBS="$ac_save_LIBS"
2657:
2658: fi
2659: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2660: echo "$ac_t""yes" 1>&6
2661: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
2662: else
2663: echo "$ac_t""no" 1>&6
2664: fi
2665:
1.1.1.3 ! ohara 2666: fi
1.1.1.2 maekawa 2667: fi
2668:
1.1 maekawa 2669: if test "$no_x" != yes; then
2670: CPPFLAGS="$CPPFLAGS $X_CFLAGS"
1.1.1.3 ! ohara 2671: LIBRARIES_FOR_X="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
1.1 maekawa 2672: GNUPLOT_X11=gnuplot_x11
2673: cat >> confdefs.h <<\EOF
2674: #define X11 1
2675: EOF
2676:
2677: fi
2678:
2679:
2680: echo $ac_n "checking for MS-DOS/djgpp/libGRX""... $ac_c" 1>&6
1.1.1.3 ! ohara 2681: echo "configure:2682: checking for MS-DOS/djgpp/libGRX" >&5
1.1 maekawa 2682: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2683: #line 2684 "configure"
1.1 maekawa 2684: #include "confdefs.h"
2685: #if __DJGPP__ && __DJGPP__ == 2
2686: yes
2687: #endif
2688:
2689: EOF
2690: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2691: egrep "yes" >/dev/null 2>&1; then
2692: rm -rf conftest*
2693: echo "$ac_t""yes" 1>&6
1.1.1.2 maekawa 2694: LIBS="-lpc $LIBS"
2695: cat >> confdefs.h <<\EOF
1.1 maekawa 2696: #define MSDOS 1
2697: EOF
2698:
1.1.1.2 maekawa 2699: cat >> confdefs.h <<\EOF
1.1 maekawa 2700: #define DOS32 1
2701: EOF
2702:
1.1.1.2 maekawa 2703: with_linux_vga=no
2704: echo $ac_n "checking for GrLine in -lgrx20""... $ac_c" 1>&6
1.1.1.3 ! ohara 2705: echo "configure:2706: checking for GrLine in -lgrx20" >&5
1.1 maekawa 2706: ac_lib_var=`echo grx20'_'GrLine | sed 'y%./+-%__p_%'`
2707: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2708: echo $ac_n "(cached) $ac_c" 1>&6
2709: else
2710: ac_save_LIBS="$LIBS"
2711: LIBS="-lgrx20 $LIBS"
2712: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2713: #line 2714 "configure"
1.1 maekawa 2714: #include "confdefs.h"
2715: /* Override any gcc2 internal prototype to avoid an error. */
2716: /* We use char because int might match the return type of a gcc2
2717: builtin and then its argument prototype would still apply. */
2718: char GrLine();
2719:
2720: int main() {
2721: GrLine()
2722: ; return 0; }
2723: EOF
1.1.1.3 ! ohara 2724: if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2725: rm -rf conftest*
2726: eval "ac_cv_lib_$ac_lib_var=yes"
2727: else
2728: echo "configure: failed program was:" >&5
2729: cat conftest.$ac_ext >&5
2730: rm -rf conftest*
2731: eval "ac_cv_lib_$ac_lib_var=no"
2732: fi
2733: rm -f conftest*
2734: LIBS="$ac_save_LIBS"
2735:
2736: fi
2737: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2738: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 2739: LIBS="-lgrx20 $LIBS"
1.1.1.2 maekawa 2740: CFLAGS="$CFLAGS -fno-inline-functions"
2741: cat >> confdefs.h <<\EOF
1.1 maekawa 2742: #define DJSVGA 1
2743: EOF
2744:
1.1.1.2 maekawa 2745: echo $ac_n "checking for GrCustomLine in -lgrx20""... $ac_c" 1>&6
1.1.1.3 ! ohara 2746: echo "configure:2747: checking for GrCustomLine in -lgrx20" >&5
1.1 maekawa 2747: ac_lib_var=`echo grx20'_'GrCustomLine | sed 'y%./+-%__p_%'`
2748: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2749: echo $ac_n "(cached) $ac_c" 1>&6
2750: else
2751: ac_save_LIBS="$LIBS"
2752: LIBS="-lgrx20 $LIBS"
2753: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2754: #line 2755 "configure"
1.1 maekawa 2755: #include "confdefs.h"
2756: /* Override any gcc2 internal prototype to avoid an error. */
2757: /* We use char because int might match the return type of a gcc2
2758: builtin and then its argument prototype would still apply. */
2759: char GrCustomLine();
2760:
2761: int main() {
2762: GrCustomLine()
2763: ; return 0; }
2764: EOF
1.1.1.3 ! ohara 2765: if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 2766: rm -rf conftest*
2767: eval "ac_cv_lib_$ac_lib_var=yes"
2768: else
2769: echo "configure: failed program was:" >&5
2770: cat conftest.$ac_ext >&5
2771: rm -rf conftest*
2772: eval "ac_cv_lib_$ac_lib_var=no"
2773: fi
2774: rm -f conftest*
2775: LIBS="$ac_save_LIBS"
2776:
2777: fi
2778: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2779: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 2780: cat >> confdefs.h <<\EOF
1.1 maekawa 2781: #define GRX21 1
2782: EOF
1.1.1.2 maekawa 2783:
1.1 maekawa 2784: else
2785: echo "$ac_t""no" 1>&6
2786: fi
1.1.1.2 maekawa 2787:
1.1 maekawa 2788: else
2789: echo "$ac_t""no" 1>&6
2790: fi
2791:
2792: else
2793: rm -rf conftest*
1.1.1.3 ! ohara 2794: echo "$ac_t""no" 1>&6
1.1.1.2 maekawa 2795:
1.1 maekawa 2796: fi
2797: rm -f conftest*
2798:
2799: echo $ac_n "checking for NeXT""... $ac_c" 1>&6
1.1.1.3 ! ohara 2800: echo "configure:2801: checking for NeXT" >&5
1.1 maekawa 2801: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2802: #line 2803 "configure"
1.1 maekawa 2803: #include "confdefs.h"
2804: #if __NeXT__
2805: yes
2806: #endif
2807:
2808: EOF
2809: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2810: egrep "yes" >/dev/null 2>&1; then
2811: rm -rf conftest*
2812: echo "$ac_t""yes" 1>&6
2813: LIBS="$LIBS -lsys_s -lNeXT_s"
2814: CFLAGS="$CFLAGS -ObjC"
2815: else
2816: rm -rf conftest*
1.1.1.3 ! ohara 2817: echo "$ac_t""no" 1>&6
! 2818: fi
! 2819: rm -f conftest*
! 2820:
! 2821:
! 2822: echo $ac_n "checking for Apple MacOS X""... $ac_c" 1>&6
! 2823: echo "configure:2824: checking for Apple MacOS X" >&5
! 2824: cat > conftest.$ac_ext <<EOF
! 2825: #line 2826 "configure"
! 2826: #include "confdefs.h"
! 2827: #if defined(__APPLE__) && defined(__MACH__)
! 2828: yes
! 2829: #endif
! 2830:
! 2831: EOF
! 2832: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 2833: egrep "yes" >/dev/null 2>&1; then
! 2834: rm -rf conftest*
! 2835: echo "$ac_t""yes" 1>&6
! 2836: LIBS="$LIBS -framework Foundation -framework AppKit"
! 2837: CFLAGS="$CFLAGS -ObjC"
! 2838: else
! 2839: rm -rf conftest*
! 2840: echo "$ac_t""no" 1>&6
! 2841: fi
! 2842: rm -f conftest*
! 2843:
! 2844:
! 2845: echo $ac_n "checking for BeOS""... $ac_c" 1>&6
! 2846: echo "configure:2847: checking for BeOS" >&5
! 2847: cat > conftest.$ac_ext <<EOF
! 2848: #line 2849 "configure"
! 2849: #include "confdefs.h"
! 2850: #if __BEOS__
! 2851: yes
! 2852: #endif
! 2853:
! 2854: EOF
! 2855: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 2856: egrep "yes" >/dev/null 2>&1; then
! 2857: rm -rf conftest*
! 2858: echo "$ac_t""yes" 1>&6
! 2859: build_src_beos_subdir=yes
! 2860: else
! 2861: rm -rf conftest*
! 2862: build_src_beos_subdir=no
! 2863: echo "$ac_t""no" 1>&6
1.1.1.2 maekawa 2864: fi
2865: rm -f conftest*
2866:
2867:
2868:
2869: echo $ac_n "checking for sin""... $ac_c" 1>&6
1.1.1.3 ! ohara 2870: echo "configure:2871: checking for sin" >&5
1.1.1.2 maekawa 2871: if eval "test \"`echo '$''{'ac_cv_func_sin'+set}'`\" = set"; then
2872: echo $ac_n "(cached) $ac_c" 1>&6
2873: else
2874: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2875: #line 2876 "configure"
1.1.1.2 maekawa 2876: #include "confdefs.h"
2877: /* System header to define __stub macros and hopefully few prototypes,
2878: which can conflict with char sin(); below. */
2879: #include <assert.h>
2880: /* Override any gcc2 internal prototype to avoid an error. */
2881: /* We use char because int might match the return type of a gcc2
2882: builtin and then its argument prototype would still apply. */
2883: char sin();
2884:
2885: int main() {
2886:
2887: /* The GNU C library defines this for functions which it implements
2888: to always fail with ENOSYS. Some functions are actually named
2889: something starting with __ and the normal name is an alias. */
2890: #if defined (__stub_sin) || defined (__stub___sin)
2891: choke me
2892: #else
2893: sin();
2894: #endif
2895:
2896: ; return 0; }
2897: EOF
1.1.1.3 ! ohara 2898: if { (eval echo configure:2899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 2899: rm -rf conftest*
2900: eval "ac_cv_func_sin=yes"
2901: else
2902: echo "configure: failed program was:" >&5
2903: cat conftest.$ac_ext >&5
2904: rm -rf conftest*
2905: eval "ac_cv_func_sin=no"
2906: fi
2907: rm -f conftest*
2908: fi
2909:
2910: if eval "test \"`echo '$ac_cv_func_'sin`\" = yes"; then
2911: echo "$ac_t""yes" 1>&6
2912: :
2913: else
2914: echo "$ac_t""no" 1>&6
2915: fi
2916:
2917: if test "$ac_cv_func_sin" = no ; then
2918: echo $ac_n "checking for sin in -lm""... $ac_c" 1>&6
1.1.1.3 ! ohara 2919: echo "configure:2920: checking for sin in -lm" >&5
1.1.1.2 maekawa 2920: ac_lib_var=`echo m'_'sin | sed 'y%./+-%__p_%'`
2921: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2922: echo $ac_n "(cached) $ac_c" 1>&6
2923: else
2924: ac_save_LIBS="$LIBS"
2925: LIBS="-lm $LIBS"
2926: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2927: #line 2928 "configure"
1.1.1.2 maekawa 2928: #include "confdefs.h"
2929: /* Override any gcc2 internal prototype to avoid an error. */
2930: /* We use char because int might match the return type of a gcc2
2931: builtin and then its argument prototype would still apply. */
2932: char sin();
2933:
2934: int main() {
2935: sin()
2936: ; return 0; }
2937: EOF
1.1.1.3 ! ohara 2938: if { (eval echo configure:2939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 2939: rm -rf conftest*
2940: eval "ac_cv_lib_$ac_lib_var=yes"
2941: else
2942: echo "configure: failed program was:" >&5
2943: cat conftest.$ac_ext >&5
2944: rm -rf conftest*
2945: eval "ac_cv_lib_$ac_lib_var=no"
1.1 maekawa 2946: fi
2947: rm -f conftest*
1.1.1.2 maekawa 2948: LIBS="$ac_save_LIBS"
2949:
2950: fi
2951: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2952: echo "$ac_t""yes" 1>&6
2953: ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2954: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2955: cat >> confdefs.h <<EOF
2956: #define $ac_tr_lib 1
2957: EOF
1.1 maekawa 2958:
1.1.1.2 maekawa 2959: LIBS="-lm $LIBS"
1.1 maekawa 2960:
1.1.1.2 maekawa 2961: else
2962: echo "$ac_t""no" 1>&6
2963: fi
1.1 maekawa 2964:
1.1.1.2 maekawa 2965: fi
2966: dnlLIBS="$LIBS -lm"
1.1 maekawa 2967:
2968:
2969: echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1.1.1.3 ! ohara 2970: echo "configure:2971: checking for ANSI C header files" >&5
1.1 maekawa 2971: if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2972: echo $ac_n "(cached) $ac_c" 1>&6
2973: else
2974: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 2975: #line 2976 "configure"
1.1 maekawa 2976: #include "confdefs.h"
2977: #include <stdlib.h>
2978: #include <stdarg.h>
2979: #include <string.h>
2980: #include <float.h>
2981: EOF
2982: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 2983: { (eval echo configure:2984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 2984: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2985: if test -z "$ac_err"; then
2986: rm -rf conftest*
2987: ac_cv_header_stdc=yes
2988: else
2989: echo "$ac_err" >&5
2990: echo "configure: failed program was:" >&5
2991: cat conftest.$ac_ext >&5
2992: rm -rf conftest*
2993: ac_cv_header_stdc=no
2994: fi
2995: rm -f conftest*
2996:
2997: if test $ac_cv_header_stdc = yes; then
2998: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2999: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3000: #line 3001 "configure"
1.1 maekawa 3001: #include "confdefs.h"
3002: #include <string.h>
3003: EOF
3004: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3005: egrep "memchr" >/dev/null 2>&1; then
3006: :
3007: else
3008: rm -rf conftest*
3009: ac_cv_header_stdc=no
3010: fi
3011: rm -f conftest*
3012:
3013: fi
3014:
3015: if test $ac_cv_header_stdc = yes; then
3016: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3017: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3018: #line 3019 "configure"
1.1 maekawa 3019: #include "confdefs.h"
3020: #include <stdlib.h>
3021: EOF
3022: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3023: egrep "free" >/dev/null 2>&1; then
3024: :
3025: else
3026: rm -rf conftest*
3027: ac_cv_header_stdc=no
3028: fi
3029: rm -f conftest*
3030:
3031: fi
3032:
3033: if test $ac_cv_header_stdc = yes; then
3034: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3035: if test "$cross_compiling" = yes; then
3036: :
3037: else
3038: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3039: #line 3040 "configure"
1.1 maekawa 3040: #include "confdefs.h"
3041: #include <ctype.h>
3042: #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3043: #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3044: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3045: int main () { int i; for (i = 0; i < 256; i++)
3046: if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3047: exit (0); }
3048:
3049: EOF
1.1.1.3 ! ohara 3050: if { (eval echo configure:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1.1 maekawa 3051: then
3052: :
3053: else
3054: echo "configure: failed program was:" >&5
3055: cat conftest.$ac_ext >&5
3056: rm -fr conftest*
3057: ac_cv_header_stdc=no
3058: fi
3059: rm -fr conftest*
3060: fi
3061:
3062: fi
3063: fi
3064:
3065: echo "$ac_t""$ac_cv_header_stdc" 1>&6
3066: if test $ac_cv_header_stdc = yes; then
3067: cat >> confdefs.h <<\EOF
3068: #define STDC_HEADERS 1
3069: EOF
3070:
3071: fi
3072:
3073:
3074: for ac_hdr in errno.h float.h limits.h locale.h math.h stdlib.h string.h \
1.1.1.3 ! ohara 3075: time.h sys/time.h sys/timeb.h sys/types.h \
! 3076: sys/bsdtypes.h sys/select.h sys/socket.h sys/stat.h \
! 3077: sys/systeminfo.h sys/utsname.h libc.h malloc.h sgtty.h termios.h values.h
! 3078:
1.1 maekawa 3079: do
3080: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3081: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.3 ! ohara 3082: echo "configure:3083: checking for $ac_hdr" >&5
1.1 maekawa 3083: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3084: echo $ac_n "(cached) $ac_c" 1>&6
3085: else
3086: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3087: #line 3088 "configure"
1.1 maekawa 3088: #include "confdefs.h"
3089: #include <$ac_hdr>
3090: EOF
3091: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 3092: { (eval echo configure:3093: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 3093: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3094: if test -z "$ac_err"; then
3095: rm -rf conftest*
3096: eval "ac_cv_header_$ac_safe=yes"
3097: else
3098: echo "$ac_err" >&5
3099: echo "configure: failed program was:" >&5
3100: cat conftest.$ac_ext >&5
3101: rm -rf conftest*
3102: eval "ac_cv_header_$ac_safe=no"
3103: fi
3104: rm -f conftest*
3105: fi
3106: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3107: echo "$ac_t""yes" 1>&6
3108: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3109: cat >> confdefs.h <<EOF
3110: #define $ac_tr_hdr 1
3111: EOF
3112:
3113: else
3114: echo "$ac_t""no" 1>&6
3115: fi
3116: done
3117:
1.1.1.3 ! ohara 3118:
! 3119: test "$ac_cv_header_sys_stat_h" = yes && echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
! 3120: echo "configure:3121: checking whether stat file-mode macros are broken" >&5
! 3121: if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1.1 maekawa 3122: echo $ac_n "(cached) $ac_c" 1>&6
3123: else
3124: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3125: #line 3126 "configure"
1.1 maekawa 3126: #include "confdefs.h"
3127: #include <sys/types.h>
3128: #include <sys/stat.h>
3129:
3130: #if defined(S_ISBLK) && defined(S_IFDIR)
3131: # if S_ISBLK (S_IFDIR)
3132: You lose.
3133: # endif
3134: #endif
3135:
3136: #if defined(S_ISBLK) && defined(S_IFCHR)
3137: # if S_ISBLK (S_IFCHR)
3138: You lose.
3139: # endif
3140: #endif
3141:
3142: #if defined(S_ISLNK) && defined(S_IFREG)
3143: # if S_ISLNK (S_IFREG)
3144: You lose.
3145: # endif
3146: #endif
3147:
3148: #if defined(S_ISSOCK) && defined(S_IFREG)
3149: # if S_ISSOCK (S_IFREG)
3150: You lose.
3151: # endif
3152: #endif
3153:
3154: EOF
3155: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3156: egrep "You lose" >/dev/null 2>&1; then
3157: rm -rf conftest*
3158: ac_cv_header_stat_broken=yes
3159: else
3160: rm -rf conftest*
3161: ac_cv_header_stat_broken=no
3162: fi
3163: rm -f conftest*
3164:
3165: fi
3166:
3167: echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3168: if test $ac_cv_header_stat_broken = yes; then
3169: cat >> confdefs.h <<\EOF
3170: #define STAT_MACROS_BROKEN 1
3171: EOF
3172:
3173: fi
3174:
3175:
3176: echo $ac_n "checking for unistd.h""... $ac_c" 1>&6
1.1.1.3 ! ohara 3177: echo "configure:3178: checking for unistd.h" >&5
1.1 maekawa 3178: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3179: #line 3180 "configure"
1.1 maekawa 3180: #include "confdefs.h"
3181: #include <unistd.h>
3182: EOF
3183: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184: egrep "execv" >/dev/null 2>&1; then
3185: rm -rf conftest*
3186: cat >> confdefs.h <<\EOF
3187: #define HAVE_UNISTD_H 1
3188: EOF
3189: echo "$ac_t""yes" 1>&6
3190: else
3191: rm -rf conftest*
3192: echo "$ac_t""no" 1>&6
3193: fi
3194: rm -f conftest*
3195:
3196:
3197: echo $ac_n "checking if errno variable is declared""... $ac_c" 1>&6
1.1.1.3 ! ohara 3198: echo "configure:3199: checking if errno variable is declared" >&5
1.1 maekawa 3199: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3200: #line 3201 "configure"
1.1 maekawa 3201: #include "confdefs.h"
3202: #include <stdio.h>
3203: #ifdef HAVE_ERRNO_H
3204: #include <errno.h>
3205: #endif
3206: int main() {
3207: errno=0
3208: ; return 0; }
3209: EOF
1.1.1.3 ! ohara 3210: if { (eval echo configure:3211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 maekawa 3211: rm -rf conftest*
3212: echo "$ac_t""yes" 1>&6
3213: else
3214: echo "configure: failed program was:" >&5
3215: cat conftest.$ac_ext >&5
3216: rm -rf conftest*
1.1.1.3 ! ohara 3217: cat >> confdefs.h <<\EOF
1.1 maekawa 3218: #define EXTERN_ERRNO 1
3219: EOF
1.1.1.2 maekawa 3220:
3221: echo "$ac_t""no" 1>&6
3222:
1.1 maekawa 3223: fi
3224: rm -f conftest*
3225:
3226: echo $ac_n "checking for size_t""... $ac_c" 1>&6
1.1.1.3 ! ohara 3227: echo "configure:3228: checking for size_t" >&5
1.1 maekawa 3228: if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3229: echo $ac_n "(cached) $ac_c" 1>&6
3230: else
3231: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3232: #line 3233 "configure"
1.1 maekawa 3233: #include "confdefs.h"
3234: #include <sys/types.h>
3235: #if STDC_HEADERS
3236: #include <stdlib.h>
3237: #include <stddef.h>
3238: #endif
3239: EOF
3240: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3241: egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3242: rm -rf conftest*
3243: ac_cv_type_size_t=yes
3244: else
3245: rm -rf conftest*
3246: ac_cv_type_size_t=no
3247: fi
3248: rm -f conftest*
3249:
3250: fi
3251: echo "$ac_t""$ac_cv_type_size_t" 1>&6
3252: if test $ac_cv_type_size_t = no; then
3253: cat >> confdefs.h <<\EOF
3254: #define size_t unsigned
3255: EOF
3256:
3257: fi
3258:
3259: echo $ac_n "checking for time_t in time.h""... $ac_c" 1>&6
1.1.1.3 ! ohara 3260: echo "configure:3261: checking for time_t in time.h" >&5
1.1 maekawa 3261: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3262: #line 3263 "configure"
1.1 maekawa 3263: #include "confdefs.h"
3264: #include <time.h>
3265: EOF
3266: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3267: egrep "time_t" >/dev/null 2>&1; then
3268: rm -rf conftest*
1.1.1.3 ! ohara 3269: echo "$ac_t""yes" 1>&6
! 3270: cat >> confdefs.h <<\EOF
! 3271: #define HAVE_TIME_T_IN_TIME_H 1
1.1 maekawa 3272: EOF
3273:
3274: fi
3275: rm -f conftest*
3276:
3277: echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1.1.1.3 ! ohara 3278: echo "configure:3279: checking return type of signal handlers" >&5
1.1 maekawa 3279: if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3280: echo $ac_n "(cached) $ac_c" 1>&6
3281: else
3282: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3283: #line 3284 "configure"
1.1 maekawa 3284: #include "confdefs.h"
3285: #include <sys/types.h>
3286: #include <signal.h>
3287: #ifdef signal
3288: #undef signal
3289: #endif
3290: #ifdef __cplusplus
3291: extern "C" void (*signal (int, void (*)(int)))(int);
3292: #else
3293: void (*signal ()) ();
3294: #endif
3295:
3296: int main() {
3297: int i;
3298: ; return 0; }
3299: EOF
1.1.1.3 ! ohara 3300: if { (eval echo configure:3301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 maekawa 3301: rm -rf conftest*
3302: ac_cv_type_signal=void
3303: else
3304: echo "configure: failed program was:" >&5
3305: cat conftest.$ac_ext >&5
3306: rm -rf conftest*
3307: ac_cv_type_signal=int
3308: fi
3309: rm -f conftest*
3310: fi
3311:
3312: echo "$ac_t""$ac_cv_type_signal" 1>&6
3313: cat >> confdefs.h <<EOF
3314: #define RETSIGTYPE $ac_cv_type_signal
3315: EOF
3316:
3317:
3318:
3319:
3320:
1.1.1.3 ! ohara 3321: for ac_func in atexit memcpy memmove memset \
! 3322: on_exit bcopy bzero \
! 3323: setvbuf strerror strchr strrchr strstr \
! 3324: index rindex \
! 3325: erf erfc gamma lgamma \
! 3326: getcwd poll pclose popen select sleep snprintf stpcpy \
! 3327: strcspn strdup strcasecmp stricmp strncasecmp strnicmp \
! 3328: sysinfo tcgetattr vfprintf doprnt
! 3329:
1.1 maekawa 3330: do
3331: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.3 ! ohara 3332: echo "configure:3333: checking for $ac_func" >&5
1.1 maekawa 3333: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3334: echo $ac_n "(cached) $ac_c" 1>&6
3335: else
3336: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3337: #line 3338 "configure"
1.1 maekawa 3338: #include "confdefs.h"
3339: /* System header to define __stub macros and hopefully few prototypes,
3340: which can conflict with char $ac_func(); below. */
3341: #include <assert.h>
3342: /* Override any gcc2 internal prototype to avoid an error. */
3343: /* We use char because int might match the return type of a gcc2
3344: builtin and then its argument prototype would still apply. */
3345: char $ac_func();
3346:
3347: int main() {
3348:
3349: /* The GNU C library defines this for functions which it implements
3350: to always fail with ENOSYS. Some functions are actually named
3351: something starting with __ and the normal name is an alias. */
3352: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3353: choke me
3354: #else
3355: $ac_func();
3356: #endif
3357:
3358: ; return 0; }
3359: EOF
1.1.1.3 ! ohara 3360: if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 3361: rm -rf conftest*
3362: eval "ac_cv_func_$ac_func=yes"
3363: else
3364: echo "configure: failed program was:" >&5
3365: cat conftest.$ac_ext >&5
3366: rm -rf conftest*
3367: eval "ac_cv_func_$ac_func=no"
3368: fi
3369: rm -f conftest*
3370: fi
3371:
3372: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3373: echo "$ac_t""yes" 1>&6
3374: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3375: cat >> confdefs.h <<EOF
3376: #define $ac_tr_func 1
3377: EOF
3378:
3379: else
3380: echo "$ac_t""no" 1>&6
3381: fi
3382: done
3383:
3384:
1.1.1.3 ! ohara 3385: echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
! 3386: echo "configure:3387: checking for sigsetjmp" >&5
! 3387: cat > conftest.$ac_ext <<EOF
! 3388: #line 3389 "configure"
1.1 maekawa 3389: #include "confdefs.h"
1.1.1.3 ! ohara 3390: #include <setjmp.h>
1.1 maekawa 3391: int main() {
1.1.1.3 ! ohara 3392: jmp_buf env; sigsetjmp(env, 1);
1.1 maekawa 3393: ; return 0; }
3394: EOF
1.1.1.3 ! ohara 3395: if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 3396: rm -rf conftest*
1.1.1.3 ! ohara 3397: echo "$ac_t""yes" 1>&6
! 3398: cat >> confdefs.h <<\EOF
! 3399: #define HAVE_SIGSETJMP 1
! 3400: EOF
! 3401:
1.1 maekawa 3402: else
3403: echo "configure: failed program was:" >&5
3404: cat conftest.$ac_ext >&5
3405: rm -rf conftest*
3406: echo "$ac_t""no" 1>&6
1.1.1.3 ! ohara 3407:
1.1 maekawa 3408: fi
1.1.1.3 ! ohara 3409: rm -f conftest*
1.1 maekawa 3410:
3411: if test "$ac_cv_func_pclose" = yes && test "$ac_cv_func_popen" = yes ; then
3412: cat >> confdefs.h <<\EOF
3413: #define PIPES 1
3414: EOF
3415:
3416: fi
3417:
1.1.1.2 maekawa 3418: for ac_func in select
3419: do
3420: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1.1.1.3 ! ohara 3421: echo "configure:3422: checking for $ac_func" >&5
1.1.1.2 maekawa 3422: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3423: echo $ac_n "(cached) $ac_c" 1>&6
3424: else
3425: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3426: #line 3427 "configure"
1.1.1.2 maekawa 3427: #include "confdefs.h"
3428: /* System header to define __stub macros and hopefully few prototypes,
3429: which can conflict with char $ac_func(); below. */
3430: #include <assert.h>
3431: /* Override any gcc2 internal prototype to avoid an error. */
3432: /* We use char because int might match the return type of a gcc2
3433: builtin and then its argument prototype would still apply. */
3434: char $ac_func();
3435:
3436: int main() {
3437:
3438: /* The GNU C library defines this for functions which it implements
3439: to always fail with ENOSYS. Some functions are actually named
3440: something starting with __ and the normal name is an alias. */
3441: #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3442: choke me
3443: #else
3444: $ac_func();
3445: #endif
3446:
3447: ; return 0; }
3448: EOF
1.1.1.3 ! ohara 3449: if { (eval echo configure:3450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 3450: rm -rf conftest*
3451: eval "ac_cv_func_$ac_func=yes"
3452: else
3453: echo "configure: failed program was:" >&5
3454: cat conftest.$ac_ext >&5
3455: rm -rf conftest*
3456: eval "ac_cv_func_$ac_func=no"
3457: fi
3458: rm -f conftest*
3459: fi
3460:
3461: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3462: echo "$ac_t""yes" 1>&6
3463: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3464: cat >> confdefs.h <<EOF
3465: #define $ac_tr_func 1
3466: EOF
3467:
3468: else
3469: echo "$ac_t""no" 1>&6
3470: fi
3471: done
3472:
3473: if test "$ac_cv_func_select" = yes; then
3474: for ac_hdr in unistd.h sys/types.h sys/time.h sys/select.h sys/socket.h
1.1 maekawa 3475: do
3476: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3477: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1.1.1.3 ! ohara 3478: echo "configure:3479: checking for $ac_hdr" >&5
1.1 maekawa 3479: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3480: echo $ac_n "(cached) $ac_c" 1>&6
3481: else
3482: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3483: #line 3484 "configure"
1.1 maekawa 3484: #include "confdefs.h"
3485: #include <$ac_hdr>
3486: EOF
3487: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 3488: { (eval echo configure:3489: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 3489: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3490: if test -z "$ac_err"; then
3491: rm -rf conftest*
3492: eval "ac_cv_header_$ac_safe=yes"
3493: else
3494: echo "$ac_err" >&5
3495: echo "configure: failed program was:" >&5
3496: cat conftest.$ac_ext >&5
3497: rm -rf conftest*
3498: eval "ac_cv_header_$ac_safe=no"
3499: fi
3500: rm -f conftest*
3501: fi
3502: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3503: echo "$ac_t""yes" 1>&6
3504: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3505: cat >> confdefs.h <<EOF
3506: #define $ac_tr_hdr 1
3507: EOF
3508:
3509: else
3510: echo "$ac_t""no" 1>&6
3511: fi
3512: done
3513:
1.1.1.2 maekawa 3514: echo $ac_n "checking argument types of select()""... $ac_c" 1>&6
1.1.1.3 ! ohara 3515: echo "configure:3516: checking argument types of select()" >&5
1.1.1.2 maekawa 3516: if eval "test \"`echo '$''{'ac_cv_type_fd_set_size_t'+set}'`\" = set"; then
1.1 maekawa 3517: echo $ac_n "(cached) $ac_c" 1>&6
3518: else
1.1.1.3 ! ohara 3519: if eval "test \"`echo '$''{'ac_cv_type_fd_set'+set}'`\" = set"; then
1.1 maekawa 3520: echo $ac_n "(cached) $ac_c" 1>&6
3521: else
1.1.1.3 ! ohara 3522: for ac_cv_type_fd_set in 'fd_set' 'int' 'void'; do
1.1.1.2 maekawa 3523: for ac_cv_type_fd_set_size_t in 'int' 'size_t' 'unsigned long' 'unsigned'; do
3524: for ac_type_timeval in 'struct timeval' 'const struct timeval'; do
3525: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3526: #line 3527 "configure"
1.1 maekawa 3527: #include "confdefs.h"
1.1.1.2 maekawa 3528: #ifdef HAVE_SYS_TIME_H
1.1.1.3 ! ohara 3529: # include <sys/time.h>
1.1.1.2 maekawa 3530: #endif
1.1 maekawa 3531: #ifdef HAVE_SYS_TYPES_H
1.1.1.3 ! ohara 3532: # include <sys/types.h>
1.1 maekawa 3533: #endif
1.1.1.2 maekawa 3534: #ifdef HAVE_UNISTD_H
1.1.1.3 ! ohara 3535: # include <unistd.h>
1.1 maekawa 3536: #endif
3537: #ifdef HAVE_SYS_SELECT_H
1.1.1.3 ! ohara 3538: # include <sys/select.h>
1.1 maekawa 3539: #endif
3540: #ifdef HAVE_SYS_SOCKET_H
1.1.1.3 ! ohara 3541: # include <sys/socket.h>
1.1 maekawa 3542: #endif
1.1.1.3 ! ohara 3543:
1.1 maekawa 3544: int main() {
1.1.1.2 maekawa 3545: #ifdef __STDC__
3546: extern int select ($ac_cv_type_fd_set_size_t,
3547: $ac_cv_type_fd_set *, $ac_cv_type_fd_set *, $ac_cv_type_fd_set *,
3548: $ac_type_timeval *);
3549: #else
3550: extern int select ();
3551: $ac_cv_type_fd_set_size_t s;
3552: $ac_cv_type_fd_set *p;
3553: $ac_type_timeval *t;
3554: #endif
1.1.1.3 ! ohara 3555:
1.1 maekawa 3556: ; return 0; }
3557: EOF
1.1.1.3 ! ohara 3558: if { (eval echo configure:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1.1 maekawa 3559: rm -rf conftest*
1.1.1.2 maekawa 3560: ac_found=yes ; break 3
1.1 maekawa 3561: else
3562: echo "configure: failed program was:" >&5
3563: cat conftest.$ac_ext >&5
3564: rm -rf conftest*
1.1.1.2 maekawa 3565: ac_found=no
1.1 maekawa 3566: fi
3567: rm -f conftest*
1.1.1.2 maekawa 3568: done
3569: done
1.1 maekawa 3570: done
1.1.1.2 maekawa 3571:
1.1 maekawa 3572: fi
3573:
3574: fi
1.1.1.2 maekawa 3575: if test "$ac_found" = no; then
3576: { echo "configure: error: can't determine argument types" 1>&2; exit 1; }
3577: fi
3578:
3579: echo "$ac_t""select($ac_cv_type_fd_set_size_t,$ac_cv_type_fd_set *,...)" 1>&6
3580: cat >> confdefs.h <<EOF
3581: #define fd_set_size_t $ac_cv_type_fd_set_size_t
1.1 maekawa 3582: EOF
3583:
1.1.1.2 maekawa 3584: ac_cast=
3585: if test "$ac_cv_type_fd_set" != fd_set; then
3586: # Arguments 2-4 are not fd_set. Some weirdo systems use fd_set type for
3587: # FD_SET macros, but insist that you cast the argument to select. I don't
3588: # understand why that might be, but it means we cannot define fd_set.
3589: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3590: #line 3591 "configure"
1.1.1.2 maekawa 3591: #include "confdefs.h"
3592: #ifdef HAVE_SYS_TIME_H
1.1.1.3 ! ohara 3593: # include <sys/time.h>
1.1.1.2 maekawa 3594: #endif
3595: #ifdef HAVE_SYS_TYPES_H
1.1.1.3 ! ohara 3596: # include <sys/types.h>
1.1.1.2 maekawa 3597: #endif
3598: #ifdef HAVE_UNISTD_H
1.1.1.3 ! ohara 3599: # include <unistd.h>
1.1.1.2 maekawa 3600: #endif
3601: #ifdef HAVE_SYS_SELECT_H
1.1.1.3 ! ohara 3602: # include <sys/select.h>
1.1.1.2 maekawa 3603: #endif
3604: #ifdef HAVE_SYS_SOCKET_H
1.1.1.3 ! ohara 3605: # include <sys/socket.h>
1.1.1.2 maekawa 3606: #endif
1.1.1.3 ! ohara 3607:
1.1.1.2 maekawa 3608: EOF
3609: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3610: egrep "(^|[^a-zA-Z_0-9])fd_set[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3611: rm -rf conftest*
1.1.1.3 ! ohara 3612: # We found fd_set type in a header, need special cast
1.1.1.2 maekawa 3613: ac_cast="($ac_cv_type_fd_set *)"
3614: else
3615: rm -rf conftest*
3616: # No fd_set type; it is safe to define it
3617: cat >> confdefs.h <<EOF
3618: #define fd_set $ac_cv_type_fd_set
1.1 maekawa 3619: EOF
3620:
1.1.1.2 maekawa 3621: fi
3622: rm -f conftest*
3623:
3624: fi
3625: cat >> confdefs.h <<EOF
3626: #define SELECT_FD_SET_CAST $ac_cast
1.1 maekawa 3627: EOF
3628:
1.1.1.2 maekawa 3629: fi
1.1 maekawa 3630:
3631:
3632:
1.1.1.3 ! ohara 3633: LASERGNU=lasergnu_noinstall
! 3634: # Check whether --with-lasergnu or --without-lasergnu was given.
! 3635: if test "${with_lasergnu+set}" = set; then
! 3636: withval="$with_lasergnu"
! 3637: test "$withval" = yes && LASERGNU=lasergnu_install
! 3638: fi
! 3639:
! 3640:
! 3641: # Check whether --with-linux-vga or --without-linux-vga was given.
! 3642: if test "${with_linux_vga+set}" = set; then
! 3643: withval="$with_linux_vga"
! 3644: :
! 3645: else
! 3646: test -z "$with_linux_vga" && with_linux_vga=no
! 3647: fi
! 3648:
! 3649:
1.1 maekawa 3650: if test "$with_linux_vga" = yes; then
3651: echo $ac_n "checking for linux vga library""... $ac_c" 1>&6
1.1.1.3 ! ohara 3652: echo "configure:3653: checking for linux vga library" >&5
1.1 maekawa 3653: echo $ac_n "checking for vga_init in -lvga""... $ac_c" 1>&6
1.1.1.3 ! ohara 3654: echo "configure:3655: checking for vga_init in -lvga" >&5
1.1 maekawa 3655: ac_lib_var=`echo vga'_'vga_init | sed 'y%./+-%__p_%'`
3656: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3657: echo $ac_n "(cached) $ac_c" 1>&6
3658: else
3659: ac_save_LIBS="$LIBS"
3660: LIBS="-lvga $LIBS"
3661: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3662: #line 3663 "configure"
1.1 maekawa 3663: #include "confdefs.h"
3664: /* Override any gcc2 internal prototype to avoid an error. */
3665: /* We use char because int might match the return type of a gcc2
3666: builtin and then its argument prototype would still apply. */
3667: char vga_init();
3668:
3669: int main() {
3670: vga_init()
3671: ; return 0; }
3672: EOF
1.1.1.3 ! ohara 3673: if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 3674: rm -rf conftest*
3675: eval "ac_cv_lib_$ac_lib_var=yes"
3676: else
3677: echo "configure: failed program was:" >&5
3678: cat conftest.$ac_ext >&5
3679: rm -rf conftest*
3680: eval "ac_cv_lib_$ac_lib_var=no"
3681: fi
3682: rm -f conftest*
3683: LIBS="$ac_save_LIBS"
3684:
3685: fi
3686: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3687: echo "$ac_t""yes" 1>&6
3688: cat >> confdefs.h <<\EOF
3689: #define LINUXVGA 1
3690: EOF
3691:
3692: LINUXSUID='chown root $(bindir)/gnuplot; chmod u+s $(bindir)/gnuplot'
1.1.1.3 ! ohara 3693: TERMLIBS="-lvga $TERMLIBS"
1.1 maekawa 3694: else
3695: echo "$ac_t""no" 1>&6
1.1.1.3 ! ohara 3696: with_linux_vga=no
1.1 maekawa 3697: fi
3698:
3699: fi
3700:
1.1.1.3 ! ohara 3701: # Check whether --with-readline or --without-readline was given.
! 3702: if test "${with_readline+set}" = set; then
! 3703: withval="$with_readline"
! 3704: :
! 3705: else
! 3706: test -z "$with_readline" && with_readline=yes
! 3707: fi
! 3708:
! 3709:
1.1.1.2 maekawa 3710: if test "$with_readline" != no; then
3711: if test "$with_readline" != yes; then
3712: gp_tcap=""
3713: for termlib in ncurses curses termcap terminfo termlib; do
3714: echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
1.1.1.3 ! ohara 3715: echo "configure:3716: checking for tputs in -l${termlib}" >&5
1.1 maekawa 3716: ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
3717: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3718: echo $ac_n "(cached) $ac_c" 1>&6
3719: else
3720: ac_save_LIBS="$LIBS"
3721: LIBS="-l${termlib} $LIBS"
3722: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3723: #line 3724 "configure"
1.1 maekawa 3724: #include "confdefs.h"
3725: /* Override any gcc2 internal prototype to avoid an error. */
3726: /* We use char because int might match the return type of a gcc2
3727: builtin and then its argument prototype would still apply. */
3728: char tputs();
3729:
3730: int main() {
3731: tputs()
3732: ; return 0; }
3733: EOF
1.1.1.3 ! ohara 3734: if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 3735: rm -rf conftest*
3736: eval "ac_cv_lib_$ac_lib_var=yes"
3737: else
3738: echo "configure: failed program was:" >&5
3739: cat conftest.$ac_ext >&5
3740: rm -rf conftest*
3741: eval "ac_cv_lib_$ac_lib_var=no"
3742: fi
3743: rm -f conftest*
3744: LIBS="$ac_save_LIBS"
3745:
3746: fi
3747: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3748: echo "$ac_t""yes" 1>&6
1.1.1.2 maekawa 3749: gp_tcap="$gp_tcap -l$termlib"
1.1 maekawa 3750: else
3751: echo "$ac_t""no" 1>&6
3752: fi
3753:
1.1.1.2 maekawa 3754: case "$gp_tcap" in
3755: *-l${termlib}*)
3756: break
3757: ;;
3758: esac
3759: done
1.1 maekawa 3760:
1.1.1.2 maekawa 3761: if test "$with_readline" = gnu; then
3762: echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1.1.1.3 ! ohara 3763: echo "configure:3764: checking for readline in -lreadline" >&5
1.1 maekawa 3764: ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
3765: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3766: echo $ac_n "(cached) $ac_c" 1>&6
3767: else
3768: ac_save_LIBS="$LIBS"
1.1.1.2 maekawa 3769: LIBS="-lreadline ${gp_tcap} $LIBS"
1.1 maekawa 3770: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3771: #line 3772 "configure"
1.1 maekawa 3772: #include "confdefs.h"
3773: /* Override any gcc2 internal prototype to avoid an error. */
3774: /* We use char because int might match the return type of a gcc2
3775: builtin and then its argument prototype would still apply. */
3776: char readline();
3777:
3778: int main() {
3779: readline()
3780: ; return 0; }
3781: EOF
1.1.1.3 ! ohara 3782: if { (eval echo configure:3783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 3783: rm -rf conftest*
3784: eval "ac_cv_lib_$ac_lib_var=yes"
3785: else
3786: echo "configure: failed program was:" >&5
3787: cat conftest.$ac_ext >&5
3788: rm -rf conftest*
3789: eval "ac_cv_lib_$ac_lib_var=no"
3790: fi
3791: rm -f conftest*
3792: LIBS="$ac_save_LIBS"
3793:
3794: fi
3795: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3796: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 3797: TERMLIBS="-lreadline $gp_tcap $TERMLIBS"
1.1.1.2 maekawa 3798: else
3799: echo "$ac_t""no" 1>&6
3800: fi
3801:
3802: else
1.1.1.3 ! ohara 3803: if test -d $with_readline/include; then
! 3804: CPPFLAGS="$CPPFLAGS -I$with_readline/include"
! 3805: fi
! 3806: if test -d $with_readline/lib; then
! 3807: LDFLAGS="$LDFLAGS -L$with_readline/lib"
! 3808: fi
! 3809:
! 3810: echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
! 3811: echo "configure:3812: checking for readline in -lreadline" >&5
! 3812: ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1.1.1.2 maekawa 3813: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3814: echo $ac_n "(cached) $ac_c" 1>&6
3815: else
1.1.1.3 ! ohara 3816: ac_save_LIBS="$LIBS"
! 3817: LIBS="-lreadline ${gp_tcap} $LIBS"
1.1.1.2 maekawa 3818: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3819: #line 3820 "configure"
1.1.1.2 maekawa 3820: #include "confdefs.h"
3821: /* Override any gcc2 internal prototype to avoid an error. */
3822: /* We use char because int might match the return type of a gcc2
3823: builtin and then its argument prototype would still apply. */
3824: char readline();
3825:
3826: int main() {
3827: readline()
3828: ; return 0; }
1.1 maekawa 3829: EOF
1.1.1.3 ! ohara 3830: if { (eval echo configure:3831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1.1.2 maekawa 3831: rm -rf conftest*
3832: eval "ac_cv_lib_$ac_lib_var=yes"
3833: else
3834: echo "configure: failed program was:" >&5
3835: cat conftest.$ac_ext >&5
3836: rm -rf conftest*
3837: eval "ac_cv_lib_$ac_lib_var=no"
3838: fi
3839: rm -f conftest*
3840: LIBS="$ac_save_LIBS"
3841:
3842: fi
1.1.1.3 ! ohara 3843: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1.1.2 maekawa 3844: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 3845: TERMLIBS="-lreadline $gp_tcap $TERMLIBS"
1.1 maekawa 3846: else
3847: echo "$ac_t""no" 1>&6
3848: fi
1.1.1.2 maekawa 3849:
1.1.1.3 ! ohara 3850:
1.1 maekawa 3851: fi
3852:
1.1.1.2 maekawa 3853: if test "$ac_cv_lib_readline_readline" = no; then
3854: echo "configure: warning: GNU readline not found - falling back to builtin readline" 1>&2
3855: with_readline=yes
3856: else
3857: cat >> confdefs.h <<\EOF
3858: #define HAVE_LIBREADLINE 1
1.1 maekawa 3859: EOF
3860:
1.1.1.2 maekawa 3861: fi # ! ac_cv_lib_readline_readline = no
1.1 maekawa 3862:
1.1.1.3 ! ohara 3863: fi # with_readline" != yes
1.1.1.2 maekawa 3864:
3865: if test "$with_readline" = yes; then
3866: cat >> confdefs.h <<\EOF
1.1 maekawa 3867: #define READLINE 1
3868: EOF
3869:
1.1.1.2 maekawa 3870: fi
3871:
3872: fi
1.1 maekawa 3873:
1.1.1.3 ! ohara 3874: # Check whether --with-gd or --without-gd was given.
! 3875: if test "${with_gd+set}" = set; then
! 3876: withval="$with_gd"
! 3877: if test "$withval" != no; then
! 3878: if test -d $withval/include; then
! 3879: CPPFLAGS="$CPPFLAGS -I$withval/include"
! 3880: fi
! 3881: if test -d $withval/lib; then
! 3882: LDFLAGS="$LDFLAGS -L$withval/lib"
! 3883: fi
! 3884: echo $ac_n "checking for gdImageGif in -lgd""... $ac_c" 1>&6
! 3885: echo "configure:3886: checking for gdImageGif in -lgd" >&5
! 3886: ac_lib_var=`echo gd'_'gdImageGif | sed 'y%./+-%__p_%'`
1.1 maekawa 3887: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3888: echo $ac_n "(cached) $ac_c" 1>&6
3889: else
3890: ac_save_LIBS="$LIBS"
1.1.1.3 ! ohara 3891: LIBS="-lgd $LIBS"
1.1 maekawa 3892: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3893: #line 3894 "configure"
1.1 maekawa 3894: #include "confdefs.h"
3895: /* Override any gcc2 internal prototype to avoid an error. */
3896: /* We use char because int might match the return type of a gcc2
3897: builtin and then its argument prototype would still apply. */
1.1.1.3 ! ohara 3898: char gdImageGif();
1.1 maekawa 3899:
3900: int main() {
1.1.1.3 ! ohara 3901: gdImageGif()
1.1 maekawa 3902: ; return 0; }
3903: EOF
1.1.1.3 ! ohara 3904: if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 3905: rm -rf conftest*
3906: eval "ac_cv_lib_$ac_lib_var=yes"
3907: else
3908: echo "configure: failed program was:" >&5
3909: cat conftest.$ac_ext >&5
3910: rm -rf conftest*
3911: eval "ac_cv_lib_$ac_lib_var=no"
3912: fi
3913: rm -f conftest*
3914: LIBS="$ac_save_LIBS"
3915:
3916: fi
3917: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3918: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 3919: TERMLIBS="-lgd $TERMLIBS"
! 3920: for ac_hdr in gd.h
! 3921: do
! 3922: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 3923: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 3924: echo "configure:3925: checking for $ac_hdr" >&5
! 3925: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
! 3926: echo $ac_n "(cached) $ac_c" 1>&6
! 3927: else
! 3928: cat > conftest.$ac_ext <<EOF
! 3929: #line 3930 "configure"
! 3930: #include "confdefs.h"
! 3931: #include <$ac_hdr>
! 3932: EOF
! 3933: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 3934: { (eval echo configure:3935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 3935: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 3936: if test -z "$ac_err"; then
! 3937: rm -rf conftest*
! 3938: eval "ac_cv_header_$ac_safe=yes"
! 3939: else
! 3940: echo "$ac_err" >&5
! 3941: echo "configure: failed program was:" >&5
! 3942: cat conftest.$ac_ext >&5
! 3943: rm -rf conftest*
! 3944: eval "ac_cv_header_$ac_safe=no"
! 3945: fi
! 3946: rm -f conftest*
! 3947: fi
! 3948: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 3949: echo "$ac_t""yes" 1>&6
! 3950: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 3951: cat >> confdefs.h <<EOF
! 3952: #define $ac_tr_hdr 1
! 3953: EOF
! 3954: cat >> confdefs.h <<\EOF
! 3955: #define HAVE_LIBGD 1
1.1 maekawa 3956: EOF
3957:
3958: else
3959: echo "$ac_t""no" 1>&6
1.1.1.3 ! ohara 3960: echo "configure: warning: found gd library but not gd.h
! 3961: please add path to gd.h to CPPFLAGS in Makefile" 1>&2
! 3962:
1.1 maekawa 3963: fi
1.1.1.3 ! ohara 3964: done
1.1 maekawa 3965:
1.1.1.3 ! ohara 3966: else
! 3967: echo "$ac_t""no" 1>&6
! 3968: echo "$ac_t"" GD library not found or cannot create gif images.
! 3969: See term/gif.trm for download details" 1>&6
! 3970: fi
! 3971:
! 3972: fi
! 3973: fi
! 3974:
! 3975:
! 3976: # Check whether --with-plot or --without-plot was given.
! 3977: if test "${with_plot+set}" = set; then
! 3978: withval="$with_plot"
! 3979: if test "$withval" = yes; then
! 3980: echo $ac_n "checking for openpl in -lplot""... $ac_c" 1>&6
! 3981: echo "configure:3982: checking for openpl in -lplot" >&5
! 3982: ac_lib_var=`echo plot'_'openpl | sed 'y%./+-%__p_%'`
1.1.1.2 maekawa 3983: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3984: echo $ac_n "(cached) $ac_c" 1>&6
3985: else
1.1.1.3 ! ohara 3986: ac_save_LIBS="$LIBS"
! 3987: LIBS="-lplot $LIBS"
1.1 maekawa 3988: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 3989: #line 3990 "configure"
1.1 maekawa 3990: #include "confdefs.h"
3991: /* Override any gcc2 internal prototype to avoid an error. */
3992: /* We use char because int might match the return type of a gcc2
3993: builtin and then its argument prototype would still apply. */
1.1.1.3 ! ohara 3994: char openpl();
1.1 maekawa 3995:
3996: int main() {
1.1.1.3 ! ohara 3997: openpl()
1.1 maekawa 3998: ; return 0; }
3999: EOF
1.1.1.3 ! ohara 4000: if { (eval echo configure:4001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 4001: rm -rf conftest*
4002: eval "ac_cv_lib_$ac_lib_var=yes"
4003: else
4004: echo "configure: failed program was:" >&5
4005: cat conftest.$ac_ext >&5
4006: rm -rf conftest*
4007: eval "ac_cv_lib_$ac_lib_var=no"
4008: fi
4009: rm -f conftest*
4010: LIBS="$ac_save_LIBS"
1.1.1.2 maekawa 4011:
4012: fi
1.1.1.3 ! ohara 4013: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1 maekawa 4014: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 4015: cat >> confdefs.h <<\EOF
! 4016: #define UNIXPLOT 1
! 4017: EOF
! 4018:
! 4019: TERMLIBS="-lplot $TERMLIBS"
1.1 maekawa 4020: else
4021: echo "$ac_t""no" 1>&6
1.1.1.3 ! ohara 4022: with_plot=no
1.1 maekawa 4023: fi
4024:
1.1.1.3 ! ohara 4025: elif test "$withval" != no; then
! 4026: if test -d $withval/include; then
! 4027: CPPFLAGS="$CPPFLAGS -I$withval/include"
! 4028: fi
! 4029: if test -d $withval/lib; then
! 4030: LDFLAGS="$LDFLAGS -L$withval/lib"
! 4031: fi
! 4032: TERMXLIBS="$X_LIBS -lXaw -lXmu -lXt -lXext -lX11"
! 4033: echo $ac_n "checking for pl_textangle in -lplot""... $ac_c" 1>&6
! 4034: echo "configure:4035: checking for pl_textangle in -lplot" >&5
! 4035: ac_lib_var=`echo plot'_'pl_textangle | sed 'y%./+-%__p_%'`
1.1.1.2 maekawa 4036: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4037: echo $ac_n "(cached) $ac_c" 1>&6
4038: else
1.1.1.3 ! ohara 4039: ac_save_LIBS="$LIBS"
! 4040: LIBS="-lplot $TERMXLIBS $LIBS"
1.1 maekawa 4041: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4042: #line 4043 "configure"
1.1 maekawa 4043: #include "confdefs.h"
4044: /* Override any gcc2 internal prototype to avoid an error. */
4045: /* We use char because int might match the return type of a gcc2
4046: builtin and then its argument prototype would still apply. */
1.1.1.3 ! ohara 4047: char pl_textangle();
1.1 maekawa 4048:
4049: int main() {
1.1.1.3 ! ohara 4050: pl_textangle()
1.1 maekawa 4051: ; return 0; }
4052: EOF
1.1.1.3 ! ohara 4053: if { (eval echo configure:4054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 4054: rm -rf conftest*
4055: eval "ac_cv_lib_$ac_lib_var=yes"
4056: else
4057: echo "configure: failed program was:" >&5
4058: cat conftest.$ac_ext >&5
4059: rm -rf conftest*
4060: eval "ac_cv_lib_$ac_lib_var=no"
4061: fi
4062: rm -f conftest*
4063: LIBS="$ac_save_LIBS"
1.1.1.3 ! ohara 4064:
1.1 maekawa 4065: fi
1.1.1.3 ! ohara 4066: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 4067: echo "$ac_t""yes" 1>&6
! 4068: TERMLIBS="-lplot $TERMLIBS"
! 4069: cat >> confdefs.h <<\EOF
! 4070: #define GNUGRAPH 1
! 4071: EOF
1.1 maekawa 4072:
1.1.1.3 ! ohara 4073: else
! 4074: echo "$ac_t""no" 1>&6
! 4075: echo "configure: warning: GNU plotutils v2.2 or newer required -- disabling gnugraph terminal" 1>&2
! 4076: TERMXLIBS=
! 4077: with_plot=no
! 4078: fi
1.1 maekawa 4079:
1.1.1.3 ! ohara 4080: fi
1.1.1.2 maekawa 4081: fi
1.1 maekawa 4082:
1.1.1.3 ! ohara 4083:
! 4084: # Check whether --with-png or --without-png was given.
! 4085: if test "${with_png+set}" = set; then
! 4086: withval="$with_png"
! 4087: if test "$withval" != no; then
! 4088: if test -d $withval/include; then
! 4089: CPPFLAGS="$CPPFLAGS -I$withval/include"
! 4090: fi
! 4091: if test -d $withval/lib; then
! 4092: LDFLAGS="$LDFLAGS -L$withval/lib"
! 4093: fi
! 4094: with_png=yes
! 4095: fi
1.1.1.2 maekawa 4096: else
1.1.1.3 ! ohara 4097: with_png=yes
1.1 maekawa 4098: fi
4099:
1.1.1.3 ! ohara 4100:
! 4101: if test "$with_png" = yes; then
! 4102: echo $ac_n "checking for png_init_io in -lpng""... $ac_c" 1>&6
! 4103: echo "configure:4104: checking for png_init_io in -lpng" >&5
! 4104: ac_lib_var=`echo png'_'png_init_io | sed 'y%./+-%__p_%'`
1.1.1.2 maekawa 4105: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4106: echo $ac_n "(cached) $ac_c" 1>&6
4107: else
1.1.1.3 ! ohara 4108: ac_save_LIBS="$LIBS"
! 4109: LIBS="-lpng -lz $LIBS"
1.1 maekawa 4110: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4111: #line 4112 "configure"
1.1 maekawa 4112: #include "confdefs.h"
4113: /* Override any gcc2 internal prototype to avoid an error. */
4114: /* We use char because int might match the return type of a gcc2
4115: builtin and then its argument prototype would still apply. */
1.1.1.3 ! ohara 4116: char png_init_io();
1.1 maekawa 4117:
4118: int main() {
1.1.1.3 ! ohara 4119: png_init_io()
1.1 maekawa 4120: ; return 0; }
4121: EOF
1.1.1.3 ! ohara 4122: if { (eval echo configure:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 4123: rm -rf conftest*
4124: eval "ac_cv_lib_$ac_lib_var=yes"
4125: else
4126: echo "configure: failed program was:" >&5
4127: cat conftest.$ac_ext >&5
4128: rm -rf conftest*
4129: eval "ac_cv_lib_$ac_lib_var=no"
4130: fi
4131: rm -f conftest*
4132: LIBS="$ac_save_LIBS"
1.1.1.2 maekawa 4133:
4134: fi
1.1.1.3 ! ohara 4135: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1 maekawa 4136: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 4137: TERMLIBS="-lpng -lz $TERMLIBS"
! 4138: for ac_hdr in png.h
! 4139: do
! 4140: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 4141: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 4142: echo "configure:4143: checking for $ac_hdr" >&5
1.1.1.2 maekawa 4143: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4144: echo $ac_n "(cached) $ac_c" 1>&6
4145: else
1.1 maekawa 4146: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4147: #line 4148 "configure"
1.1 maekawa 4148: #include "confdefs.h"
1.1.1.3 ! ohara 4149: #include <$ac_hdr>
1.1 maekawa 4150: EOF
4151: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 4152: { (eval echo configure:4153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 4153: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4154: if test -z "$ac_err"; then
4155: rm -rf conftest*
1.1.1.3 ! ohara 4156: eval "ac_cv_header_$ac_safe=yes"
1.1 maekawa 4157: else
4158: echo "$ac_err" >&5
4159: echo "configure: failed program was:" >&5
4160: cat conftest.$ac_ext >&5
4161: rm -rf conftest*
4162: eval "ac_cv_header_$ac_safe=no"
4163: fi
4164: rm -f conftest*
1.1.1.2 maekawa 4165: fi
1.1.1.3 ! ohara 4166: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 4167: echo "$ac_t""yes" 1>&6
! 4168: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1.1.2 maekawa 4169: cat >> confdefs.h <<EOF
4170: #define $ac_tr_hdr 1
4171: EOF
1.1.1.3 ! ohara 4172: for ac_hdr in zlib.h
! 4173: do
! 4174: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 4175: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 4176: echo "configure:4177: checking for $ac_hdr" >&5
! 4177: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1.1.1.2 maekawa 4178: echo $ac_n "(cached) $ac_c" 1>&6
4179: else
1.1.1.3 ! ohara 4180: cat > conftest.$ac_ext <<EOF
! 4181: #line 4182 "configure"
1.1.1.2 maekawa 4182: #include "confdefs.h"
1.1.1.3 ! ohara 4183: #include <$ac_hdr>
1.1.1.2 maekawa 4184: EOF
1.1.1.3 ! ohara 4185: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
! 4186: { (eval echo configure:4187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
! 4187: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
! 4188: if test -z "$ac_err"; then
1.1.1.2 maekawa 4189: rm -rf conftest*
1.1.1.3 ! ohara 4190: eval "ac_cv_header_$ac_safe=yes"
1.1.1.2 maekawa 4191: else
1.1.1.3 ! ohara 4192: echo "$ac_err" >&5
1.1.1.2 maekawa 4193: echo "configure: failed program was:" >&5
4194: cat conftest.$ac_ext >&5
4195: rm -rf conftest*
1.1.1.3 ! ohara 4196: eval "ac_cv_header_$ac_safe=no"
1.1.1.2 maekawa 4197: fi
4198: rm -f conftest*
4199: fi
1.1.1.3 ! ohara 4200: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1.1.1.2 maekawa 4201: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 4202: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
! 4203: cat >> confdefs.h <<EOF
! 4204: #define $ac_tr_hdr 1
! 4205: EOF
! 4206:
1.1.1.2 maekawa 4207: else
4208: echo "$ac_t""no" 1>&6
1.1.1.3 ! ohara 4209: echo "configure: warning: found z library but not zlib.h
! 4210: please add path to zlib.h to CPPFLAGS in Makefile" 1>&2
1.1.1.2 maekawa 4211: fi
1.1.1.3 ! ohara 4212: done
1.1.1.2 maekawa 4213:
1.1.1.3 ! ohara 4214: cat > conftest.$ac_ext <<EOF
! 4215: #line 4216 "configure"
1.1.1.2 maekawa 4216: #include "confdefs.h"
1.1.1.3 ! ohara 4217: #include "png.h"
! 4218: #if PNG_LIBPNG_VER < 89
! 4219: You lose.
! 4220: #endif
! 4221:
1.1.1.2 maekawa 4222: EOF
1.1.1.3 ! ohara 4223: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
! 4224: egrep "You lose" >/dev/null 2>&1; then
1.1.1.2 maekawa 4225: rm -rf conftest*
1.1.1.3 ! ohara 4226: echo "configure: warning: - libpng too old - not including png driver" 1>&2
! 4227: ac_cv_header_png_h=no
1.1.1.2 maekawa 4228: fi
4229: rm -f conftest*
1.1.1.3 ! ohara 4230:
! 4231: else
! 4232: echo "$ac_t""no" 1>&6
! 4233: echo "configure: warning: found png library but not png.h
! 4234: please add path to png.h to CPPFLAGS in Makefile" 1>&2
! 4235: fi
1.1.1.2 maekawa 4236: done
4237:
1.1.1.3 ! ohara 4238: else
! 4239: echo "$ac_t""no" 1>&6
! 4240: echo "$ac_t"" PNG library not found.
! 4241: See term/png.trm for download details" 1>&6
1.1.1.2 maekawa 4242: fi
4243:
4244:
1.1.1.3 ! ohara 4245: if test "$ac_cv_header_png_h" = yes; then
! 4246: cat >> confdefs.h <<\EOF
! 4247: #define HAVE_LIBPNG 1
1.1 maekawa 4248: EOF
4249:
1.1.1.3 ! ohara 4250: fi
1.1.1.2 maekawa 4251: fi
4252:
1.1.1.3 ! ohara 4253: # Check whether --with-pdf or --without-pdf was given.
! 4254: if test "${with_pdf+set}" = set; then
! 4255: withval="$with_pdf"
! 4256: if test "$withval" != no; then
! 4257: if test -d $withval/include; then
! 4258: CPPFLAGS="$CPPFLAGS -I$withval/include"
! 4259: fi
! 4260: if test -d $withval/lib; then
! 4261: LDFLAGS="$LDFLAGS -L$withval/lib"
! 4262: fi
! 4263: with_pdf=yes
! 4264: fi
! 4265: else
! 4266: with_pdf=no
1.1 maekawa 4267: fi
4268:
1.1.1.3 ! ohara 4269:
! 4270: if test "$with_pdf" = yes; then
! 4271: echo $ac_n "checking for PDF_get_majorversion in -lpdf""... $ac_c" 1>&6
! 4272: echo "configure:4273: checking for PDF_get_majorversion in -lpdf" >&5
! 4273: ac_lib_var=`echo pdf'_'PDF_get_majorversion | sed 'y%./+-%__p_%'`
1.1.1.2 maekawa 4274: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4275: echo $ac_n "(cached) $ac_c" 1>&6
4276: else
1.1.1.3 ! ohara 4277: ac_save_LIBS="$LIBS"
! 4278: LIBS="-lpdf $LIBS"
1.1 maekawa 4279: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4280: #line 4281 "configure"
1.1 maekawa 4281: #include "confdefs.h"
4282: /* Override any gcc2 internal prototype to avoid an error. */
4283: /* We use char because int might match the return type of a gcc2
4284: builtin and then its argument prototype would still apply. */
1.1.1.3 ! ohara 4285: char PDF_get_majorversion();
1.1 maekawa 4286:
4287: int main() {
1.1.1.3 ! ohara 4288: PDF_get_majorversion()
1.1 maekawa 4289: ; return 0; }
4290: EOF
1.1.1.3 ! ohara 4291: if { (eval echo configure:4292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 4292: rm -rf conftest*
4293: eval "ac_cv_lib_$ac_lib_var=yes"
4294: else
4295: echo "configure: failed program was:" >&5
4296: cat conftest.$ac_ext >&5
4297: rm -rf conftest*
4298: eval "ac_cv_lib_$ac_lib_var=no"
4299: fi
4300: rm -f conftest*
4301: LIBS="$ac_save_LIBS"
1.1.1.2 maekawa 4302:
4303: fi
1.1.1.3 ! ohara 4304: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1.1 maekawa 4305: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 4306: TERMLIBS="-lpdf $TERMLIBS"
! 4307: cat >> confdefs.h <<\EOF
! 4308: #define HAVE_LIBPDF 1
! 4309: EOF
1.1 maekawa 4310:
1.1.1.3 ! ohara 4311: for ac_hdr in pdflib.h
! 4312: do
! 4313: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 4314: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 4315: echo "configure:4316: checking for $ac_hdr" >&5
1.1.1.2 maekawa 4316: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4317: echo $ac_n "(cached) $ac_c" 1>&6
4318: else
1.1 maekawa 4319: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4320: #line 4321 "configure"
1.1 maekawa 4321: #include "confdefs.h"
1.1.1.3 ! ohara 4322: #include <$ac_hdr>
1.1 maekawa 4323: EOF
4324: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 4325: { (eval echo configure:4326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 4326: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4327: if test -z "$ac_err"; then
4328: rm -rf conftest*
1.1.1.3 ! ohara 4329: eval "ac_cv_header_$ac_safe=yes"
1.1 maekawa 4330: else
4331: echo "$ac_err" >&5
4332: echo "configure: failed program was:" >&5
4333: cat conftest.$ac_ext >&5
4334: rm -rf conftest*
4335: eval "ac_cv_header_$ac_safe=no"
4336: fi
4337: rm -f conftest*
1.1.1.2 maekawa 4338: fi
1.1.1.3 ! ohara 4339: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 4340: echo "$ac_t""yes" 1>&6
! 4341: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1.1.2 maekawa 4342: cat >> confdefs.h <<EOF
4343: #define $ac_tr_hdr 1
4344: EOF
1.1.1.3 ! ohara 4345:
1.1 maekawa 4346: else
4347: echo "$ac_t""no" 1>&6
1.1.1.3 ! ohara 4348: echo "configure: warning: found pdf library but not pdflib.h
! 4349: please add path to pdflib.h to CPPFLAGS in Makefile" 1>&2
1.1 maekawa 4350: fi
1.1.1.3 ! ohara 4351: done
1.1.1.2 maekawa 4352:
1.1.1.3 ! ohara 4353: for ac_hdr in zlib.h
! 4354: do
! 4355: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
! 4356: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
! 4357: echo "configure:4358: checking for $ac_hdr" >&5
1.1.1.2 maekawa 4358: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4359: echo $ac_n "(cached) $ac_c" 1>&6
4360: else
1.1 maekawa 4361: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4362: #line 4363 "configure"
1.1 maekawa 4363: #include "confdefs.h"
1.1.1.3 ! ohara 4364: #include <$ac_hdr>
1.1 maekawa 4365: EOF
4366: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 4367: { (eval echo configure:4368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 maekawa 4368: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4369: if test -z "$ac_err"; then
4370: rm -rf conftest*
1.1.1.3 ! ohara 4371: eval "ac_cv_header_$ac_safe=yes"
1.1 maekawa 4372: else
4373: echo "$ac_err" >&5
4374: echo "configure: failed program was:" >&5
4375: cat conftest.$ac_ext >&5
4376: rm -rf conftest*
4377: eval "ac_cv_header_$ac_safe=no"
4378: fi
4379: rm -f conftest*
1.1.1.2 maekawa 4380: fi
1.1.1.3 ! ohara 4381: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
! 4382: echo "$ac_t""yes" 1>&6
! 4383: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1.1.1.2 maekawa 4384: cat >> confdefs.h <<EOF
4385: #define $ac_tr_hdr 1
4386: EOF
1.1.1.3 ! ohara 4387:
1.1 maekawa 4388: else
4389: echo "$ac_t""no" 1>&6
1.1.1.3 ! ohara 4390: echo "configure: warning: found z library but not zlib.h
! 4391: please add path to zlib.h to CPPFLAGS in Makefile" 1>&2
1.1 maekawa 4392: fi
1.1.1.3 ! ohara 4393: done
1.1.1.2 maekawa 4394:
1.1.1.3 ! ohara 4395: else
! 4396: echo "$ac_t""no" 1>&6
! 4397: echo "$ac_t"" PDF library not found.
! 4398: See term/pdf.trm for download details" 1>&6
1.1 maekawa 4399: fi
4400:
1.1.1.2 maekawa 4401:
1.1.1.3 ! ohara 4402: if test "$ac_cv_header_pdflib_h" = yes; then
1.1.1.2 maekawa 4403: cat >> confdefs.h <<\EOF
1.1.1.3 ! ohara 4404: #define HAVE_LIBPDF 1
1.1 maekawa 4405: EOF
4406:
1.1.1.2 maekawa 4407: fi
1.1 maekawa 4408: fi
4409:
4410:
4411:
1.1.1.2 maekawa 4412: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4413: #line 4414 "configure"
1.1 maekawa 4414: #include "confdefs.h"
4415: #ifdef SCO
1.1.1.2 maekawa 4416: yes
4417: #endif
4418:
1.1 maekawa 4419: EOF
4420: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4421: egrep "yes" >/dev/null 2>&1; then
4422: rm -rf conftest*
4423: echo $ac_n "checking for v_opnwk in -lccgi""... $ac_c" 1>&6
1.1.1.3 ! ohara 4424: echo "configure:4425: checking for v_opnwk in -lccgi" >&5
1.1 maekawa 4425: ac_lib_var=`echo ccgi'_'v_opnwk | sed 'y%./+-%__p_%'`
4426: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4427: echo $ac_n "(cached) $ac_c" 1>&6
4428: else
4429: ac_save_LIBS="$LIBS"
4430: LIBS="-lccgi $LIBS"
4431: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4432: #line 4433 "configure"
1.1 maekawa 4433: #include "confdefs.h"
4434: /* Override any gcc2 internal prototype to avoid an error. */
4435: /* We use char because int might match the return type of a gcc2
4436: builtin and then its argument prototype would still apply. */
4437: char v_opnwk();
4438:
4439: int main() {
4440: v_opnwk()
4441: ; return 0; }
4442: EOF
1.1.1.3 ! ohara 4443: if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 4444: rm -rf conftest*
4445: eval "ac_cv_lib_$ac_lib_var=yes"
4446: else
4447: echo "configure: failed program was:" >&5
4448: cat conftest.$ac_ext >&5
4449: rm -rf conftest*
4450: eval "ac_cv_lib_$ac_lib_var=no"
4451: fi
4452: rm -f conftest*
4453: LIBS="$ac_save_LIBS"
4454:
4455: fi
4456: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4457: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 4458: cat >> confdefs.h <<\EOF
1.1 maekawa 4459: #define CGI 1
4460: EOF
1.1.1.3 ! ohara 4461:
! 4462: TERMLIBS="-lccgi $TERMLIBS"
1.1 maekawa 4463: else
4464: echo "$ac_t""no" 1>&6
4465: fi
4466:
4467: fi
4468: rm -f conftest*
4469:
4470:
1.1.1.2 maekawa 4471: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4472: #line 4473 "configure"
1.1.1.2 maekawa 4473: #include "confdefs.h"
4474: #ifdef sun
4475: yes
4476: #endif
4477:
4478: EOF
4479: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4480: egrep "yes" >/dev/null 2>&1; then
4481: rm -rf conftest*
4482: echo $ac_n "checking for window_create in -lsuntool""... $ac_c" 1>&6
1.1.1.3 ! ohara 4483: echo "configure:4484: checking for window_create in -lsuntool" >&5
1.1.1.2 maekawa 4484: ac_lib_var=`echo suntool'_'window_create | sed 'y%./+-%__p_%'`
1.1 maekawa 4485: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4486: echo $ac_n "(cached) $ac_c" 1>&6
4487: else
4488: ac_save_LIBS="$LIBS"
1.1.1.3 ! ohara 4489: LIBS="-lsuntool -lsunwindow -lpixrect $LIBS"
1.1 maekawa 4490: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4491: #line 4492 "configure"
1.1 maekawa 4492: #include "confdefs.h"
4493: /* Override any gcc2 internal prototype to avoid an error. */
4494: /* We use char because int might match the return type of a gcc2
4495: builtin and then its argument prototype would still apply. */
1.1.1.2 maekawa 4496: char window_create();
1.1 maekawa 4497:
4498: int main() {
1.1.1.2 maekawa 4499: window_create()
1.1 maekawa 4500: ; return 0; }
4501: EOF
1.1.1.3 ! ohara 4502: if { (eval echo configure:4503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 4503: rm -rf conftest*
4504: eval "ac_cv_lib_$ac_lib_var=yes"
4505: else
4506: echo "configure: failed program was:" >&5
4507: cat conftest.$ac_ext >&5
4508: rm -rf conftest*
4509: eval "ac_cv_lib_$ac_lib_var=no"
4510: fi
4511: rm -f conftest*
4512: LIBS="$ac_save_LIBS"
4513:
4514: fi
4515: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4516: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 4517: ac_safe=`echo "suntool/sunview.h" | sed 'y%./+-%__p_%'`
1.1.1.2 maekawa 4518: echo $ac_n "checking for suntool/sunview.h""... $ac_c" 1>&6
1.1.1.3 ! ohara 4519: echo "configure:4520: checking for suntool/sunview.h" >&5
1.1.1.2 maekawa 4520: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4521: echo $ac_n "(cached) $ac_c" 1>&6
4522: else
4523: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4524: #line 4525 "configure"
1.1.1.2 maekawa 4525: #include "confdefs.h"
4526: #include <suntool/sunview.h>
4527: EOF
4528: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.1.1.3 ! ohara 4529: { (eval echo configure:4530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1.1.2 maekawa 4530: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4531: if test -z "$ac_err"; then
4532: rm -rf conftest*
4533: eval "ac_cv_header_$ac_safe=yes"
4534: else
4535: echo "$ac_err" >&5
4536: echo "configure: failed program was:" >&5
4537: cat conftest.$ac_ext >&5
4538: rm -rf conftest*
4539: eval "ac_cv_header_$ac_safe=no"
4540: fi
4541: rm -f conftest*
4542: fi
4543: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4544: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 4545: cat >> confdefs.h <<\EOF
1.1.1.2 maekawa 4546: #define SUN 1
1.1 maekawa 4547: EOF
1.1.1.3 ! ohara 4548:
! 4549: TERMLIBS="-lsuntool -lsunwindow -lpixrect $TERMLIBS"
1.1.1.2 maekawa 4550: else
4551: echo "$ac_t""no" 1>&6
4552: fi
1.1 maekawa 4553:
4554: else
4555: echo "$ac_t""no" 1>&6
4556: fi
4557:
4558: fi
1.1.1.2 maekawa 4559: rm -f conftest*
1.1 maekawa 4560:
1.1.1.2 maekawa 4561:
4562:
1.1.1.3 ! ohara 4563: # Check whether --with-cwdrc or --without-cwdrc was given.
! 4564: if test "${with_cwdrc+set}" = set; then
! 4565: withval="$with_cwdrc"
! 4566: :
! 4567: else
! 4568: if test "$withval" = yes; then
! 4569: cat >> confdefs.h <<\EOF
1.1.1.2 maekawa 4570: #define NOCWDRC 1
4571: EOF
4572:
1.1.1.3 ! ohara 4573: fi
1.1.1.2 maekawa 4574: fi
4575:
1.1.1.3 ! ohara 4576:
! 4577: # Check whether --enable-ggi or --disable-ggi was given.
! 4578: if test "${enable_ggi+set}" = set; then
! 4579: enableval="$enable_ggi"
! 4580: echo $ac_n "checking for ggiInit in -lggi""... $ac_c" 1>&6
! 4581: echo "configure:4582: checking for ggiInit in -lggi" >&5
! 4582: ac_lib_var=`echo ggi'_'ggiInit | sed 'y%./+-%__p_%'`
! 4583: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 4584: echo $ac_n "(cached) $ac_c" 1>&6
! 4585: else
! 4586: ac_save_LIBS="$LIBS"
! 4587: LIBS="-lggi $LIBS"
! 4588: cat > conftest.$ac_ext <<EOF
! 4589: #line 4590 "configure"
! 4590: #include "confdefs.h"
! 4591: /* Override any gcc2 internal prototype to avoid an error. */
! 4592: /* We use char because int might match the return type of a gcc2
! 4593: builtin and then its argument prototype would still apply. */
! 4594: char ggiInit();
! 4595:
! 4596: int main() {
! 4597: ggiInit()
! 4598: ; return 0; }
! 4599: EOF
! 4600: if { (eval echo configure:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 4601: rm -rf conftest*
! 4602: eval "ac_cv_lib_$ac_lib_var=yes"
! 4603: else
! 4604: echo "configure: failed program was:" >&5
! 4605: cat conftest.$ac_ext >&5
! 4606: rm -rf conftest*
! 4607: eval "ac_cv_lib_$ac_lib_var=no"
! 4608: fi
! 4609: rm -f conftest*
! 4610: LIBS="$ac_save_LIBS"
! 4611:
! 4612: fi
! 4613: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 4614: echo "$ac_t""yes" 1>&6
! 4615: echo $ac_n "checking for ggiWmhInit in -lggiwmh""... $ac_c" 1>&6
! 4616: echo "configure:4617: checking for ggiWmhInit in -lggiwmh" >&5
! 4617: ac_lib_var=`echo ggiwmh'_'ggiWmhInit | sed 'y%./+-%__p_%'`
! 4618: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
! 4619: echo $ac_n "(cached) $ac_c" 1>&6
! 4620: else
! 4621: ac_save_LIBS="$LIBS"
! 4622: LIBS="-lggiwmh $LIBS"
! 4623: cat > conftest.$ac_ext <<EOF
! 4624: #line 4625 "configure"
! 4625: #include "confdefs.h"
! 4626: /* Override any gcc2 internal prototype to avoid an error. */
! 4627: /* We use char because int might match the return type of a gcc2
! 4628: builtin and then its argument prototype would still apply. */
! 4629: char ggiWmhInit();
! 4630:
! 4631: int main() {
! 4632: ggiWmhInit()
! 4633: ; return 0; }
! 4634: EOF
! 4635: if { (eval echo configure:4636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
! 4636: rm -rf conftest*
! 4637: eval "ac_cv_lib_$ac_lib_var=yes"
! 4638: else
! 4639: echo "configure: failed program was:" >&5
! 4640: cat conftest.$ac_ext >&5
! 4641: rm -rf conftest*
! 4642: eval "ac_cv_lib_$ac_lib_var=no"
! 4643: fi
! 4644: rm -f conftest*
! 4645: LIBS="$ac_save_LIBS"
! 4646:
! 4647: fi
! 4648: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
! 4649: echo "$ac_t""yes" 1>&6
! 4650: cat >> confdefs.h <<\EOF
! 4651: #define HAVE_GGI 1
! 4652: EOF
! 4653:
! 4654: else
! 4655: echo "$ac_t""no" 1>&6
! 4656: enable_ggi=no
! 4657: fi
! 4658:
! 4659: else
! 4660: echo "$ac_t""no" 1>&6
! 4661: enable_ggi=no
! 4662: fi
! 4663:
! 4664:
! 4665:
! 4666: fi
! 4667:
! 4668: # Check whether --enable-iris or --disable-iris was given.
! 4669: if test "${enable_iris+set}" = set; then
! 4670: enableval="$enable_iris"
! 4671: if test "$enableval" = yes; then
! 4672: echo $ac_n "checking for winopen in -lgl_s""... $ac_c" 1>&6
! 4673: echo "configure:4674: checking for winopen in -lgl_s" >&5
1.1.1.2 maekawa 4674: ac_lib_var=`echo gl_s'_'winopen | sed 'y%./+-%__p_%'`
1.1 maekawa 4675: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4676: echo $ac_n "(cached) $ac_c" 1>&6
4677: else
4678: ac_save_LIBS="$LIBS"
1.1.1.2 maekawa 4679: LIBS="-lgl_s $LIBS"
1.1 maekawa 4680: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4681: #line 4682 "configure"
1.1 maekawa 4682: #include "confdefs.h"
4683: /* Override any gcc2 internal prototype to avoid an error. */
4684: /* We use char because int might match the return type of a gcc2
4685: builtin and then its argument prototype would still apply. */
1.1.1.2 maekawa 4686: char winopen();
1.1 maekawa 4687:
4688: int main() {
1.1.1.2 maekawa 4689: winopen()
1.1 maekawa 4690: ; return 0; }
4691: EOF
1.1.1.3 ! ohara 4692: if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 4693: rm -rf conftest*
4694: eval "ac_cv_lib_$ac_lib_var=yes"
4695: else
4696: echo "configure: failed program was:" >&5
4697: cat conftest.$ac_ext >&5
4698: rm -rf conftest*
4699: eval "ac_cv_lib_$ac_lib_var=no"
4700: fi
4701: rm -f conftest*
4702: LIBS="$ac_save_LIBS"
4703:
4704: fi
4705: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4706: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 4707: cat >> confdefs.h <<\EOF
1.1.1.2 maekawa 4708: #define IRIS 1
1.1 maekawa 4709: EOF
1.1.1.2 maekawa 4710:
1.1.1.3 ! ohara 4711: TERMLIBS="-lgl_s $TERMLIBS"
1.1 maekawa 4712: else
4713: echo "$ac_t""no" 1>&6
1.1.1.3 ! ohara 4714: enable_iris=no
1.1 maekawa 4715: fi
4716:
1.1.1.3 ! ohara 4717: fi
1.1 maekawa 4718: fi
4719:
1.1.1.3 ! ohara 4720:
! 4721: # Check whether --enable-mgr or --disable-mgr was given.
! 4722: if test "${enable_mgr+set}" = set; then
! 4723: enableval="$enable_mgr"
! 4724: if test "$enableval" = yes; then
! 4725: echo $ac_n "checking for m_getinfo in -lmgr""... $ac_c" 1>&6
! 4726: echo "configure:4727: checking for m_getinfo in -lmgr" >&5
1.1.1.2 maekawa 4727: ac_lib_var=`echo mgr'_'m_getinfo | sed 'y%./+-%__p_%'`
1.1 maekawa 4728: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4729: echo $ac_n "(cached) $ac_c" 1>&6
4730: else
4731: ac_save_LIBS="$LIBS"
1.1.1.2 maekawa 4732: LIBS="-lmgr -lpixrect $LIBS"
1.1 maekawa 4733: cat > conftest.$ac_ext <<EOF
1.1.1.3 ! ohara 4734: #line 4735 "configure"
1.1 maekawa 4735: #include "confdefs.h"
4736: /* Override any gcc2 internal prototype to avoid an error. */
4737: /* We use char because int might match the return type of a gcc2
4738: builtin and then its argument prototype would still apply. */
1.1.1.2 maekawa 4739: char m_getinfo();
1.1 maekawa 4740:
4741: int main() {
1.1.1.2 maekawa 4742: m_getinfo()
1.1 maekawa 4743: ; return 0; }
4744: EOF
1.1.1.3 ! ohara 4745: if { (eval echo configure:4746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 maekawa 4746: rm -rf conftest*
4747: eval "ac_cv_lib_$ac_lib_var=yes"
4748: else
4749: echo "configure: failed program was:" >&5
4750: cat conftest.$ac_ext >&5
4751: rm -rf conftest*
4752: eval "ac_cv_lib_$ac_lib_var=no"
4753: fi
4754: rm -f conftest*
4755: LIBS="$ac_save_LIBS"
4756:
4757: fi
4758: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4759: echo "$ac_t""yes" 1>&6
1.1.1.3 ! ohara 4760: cat >> confdefs.h <<\EOF
1.1.1.2 maekawa 4761: #define MGR 1
1.1 maekawa 4762: EOF
4763:
1.1.1.3 ! ohara 4764: TERMLIBS="-lmgr -lpixrect $TERMLIBS"
1.1 maekawa 4765: else
1.1.1.2 maekawa 4766: echo "$ac_t""no" 1>&6
1.1.1.3 ! ohara 4767: enable_mgr=no
1.1 maekawa 4768: fi
4769:
1.1.1.3 ! ohara 4770: fi
1.1 maekawa 4771: fi
4772:
1.1.1.3 ! ohara 4773:
! 4774: # Check whether --enable-rgip or --disable-rgip was given.
! 4775: if test "${enable_rgip+set}" = set; then
! 4776: enableval="$enable_rgip"
! 4777: if test "$enableval" = yes; then
! 4778: cat >> confdefs.h <<\EOF
1.1.1.2 maekawa 4779: #define RGIP 1
1.1 maekawa 4780: EOF
4781:
1.1.1.3 ! ohara 4782: fi
1.1 maekawa 4783: fi
4784:
4785:
4786:
4787:
4788:
4789:
4790:
4791:
4792:
1.1.1.3 ! ohara 4793:
1.1 maekawa 4794: eval gp_datadir=$datadir
4795: test $gp_datadir = NONE/share && gp_datadir=/usr/local/share
4796: echo "$ac_t""
4797: ** Configuration summary for $PACKAGE $VERSION:
4798:
4799: Where is the help file? $gp_datadir/gnuplot.gih
4800: " 1>&6
1.1.1.3 ! ohara 4801: if test "$ac_cv_header_gd_h" = yes; then
1.1.1.2 maekawa 4802: echo "$ac_t"" Enable generation of GIF files" 1>&6
1.1.1.3 ! ohara 4803: fi
1.1 maekawa 4804:
1.1.1.3 ! ohara 4805: if test "$ac_cv_header_pdflib_h" = yes; then
! 4806: echo "$ac_t"" Enable generation of PDF files" 1>&6
! 4807: fi
! 4808:
! 4809: if test "$ac_cv_header_png_h" = yes; then
1.1.1.2 maekawa 4810: echo "$ac_t"" Enable generation of PNG files" 1>&6
1.1.1.3 ! ohara 4811: fi
1.1 maekawa 4812:
1.1.1.3 ! ohara 4813: if test "$with_cwdrc" = yes; then
1.1.1.2 maekawa 4814: echo "$ac_t"" Check current directory for .gnuplot file" 1>&6
1.1.1.3 ! ohara 4815: fi
1.1 maekawa 4816:
1.1.1.2 maekawa 4817: if test "$with_readline" != no; then
4818: if test "$with_readline" != yes; then
4819: echo "$ac_t"" Use GNU readline library" 1>&6
4820: test -n "$gp_tcap" && echo "$ac_t"" with ${gp_tcap}" 1>&6
4821: else
4822: echo "$ac_t"" Use builtin minimal readline" 1>&6
4823: fi
1.1 maekawa 4824: fi
4825:
1.1.1.3 ! ohara 4826: if test x"$with_plot" != x; then
! 4827: if test "$with_plot" = yes; then
! 4828: echo "$ac_t"" Use the Unix plot library" 1>&6
1.1.1.2 maekawa 4829: else
1.1.1.3 ! ohara 4830: echo "$ac_t"" Use the GNU plot library v2.2 or better" 1>&6
1.1.1.2 maekawa 4831: fi
1.1 maekawa 4832: fi
4833:
1.1.1.3 ! ohara 4834: if test "$with_lasergnu" = yes; then
1.1.1.2 maekawa 4835: echo "$ac_t"" Install lasergnu printer script" 1>&6
1.1.1.3 ! ohara 4836: fi
1.1 maekawa 4837:
1.1.1.2 maekawa 4838: if test "$with_linux_vga" = yes; then
4839: echo "$ac_t"" Use the Linux SVGA console driver" 1>&6
4840: echo "$ac_t"" SECURITY NOTICE: SVGAlib requires that" 1>&6
4841: echo "$ac_t"" gnuplot is installed suid root!" 1>&6
4842: fi
1.1 maekawa 4843:
1.1.1.3 ! ohara 4844: if test "$enable_ggi" = yes; then
! 4845: echo "$ac_t"" Enable ggi terminal (EXPERIMENTAL)" 1>&6
! 4846: fi
! 4847:
! 4848: if test "$enable_iris" = yes; then
1.1.1.2 maekawa 4849: echo "$ac_t"" Enable IRIS terminal" 1>&6
1.1.1.3 ! ohara 4850: fi
1.1 maekawa 4851:
1.1.1.3 ! ohara 4852: if test "$enable_mgr" = yes; then
1.1.1.2 maekawa 4853: echo "$ac_t"" Enable MGR terminal" 1>&6
1.1.1.3 ! ohara 4854: fi
1.1 maekawa 4855:
1.1.1.3 ! ohara 4856: if test "$enable_rgip" = yes; then
1.1.1.2 maekawa 4857: echo "$ac_t"" Enable RGIP terminal" 1>&6
1.1.1.3 ! ohara 4858: fi
1.1 maekawa 4859:
1.1.1.3 ! ohara 4860: if test "$no_x" != yes; then
1.1.1.2 maekawa 4861: echo "$ac_t"" Use the X Window System
1.1 maekawa 4862: " 1>&6
1.1.1.3 ! ohara 4863: fi
1.1 maekawa 4864:
4865: trap '' 1 2 15
4866: cat > confcache <<\EOF
4867: # This file is a shell script that caches the results of configure
4868: # tests run on this system so they can be shared between configure
4869: # scripts and configure runs. It is not useful on other systems.
4870: # If it contains results you don't want to keep, you may remove or edit it.
4871: #
4872: # By default, configure uses ./config.cache as the cache file,
4873: # creating it if it does not exist already. You can give configure
4874: # the --cache-file=FILE option to use a different cache file; that is
4875: # what configure does when it calls configure scripts in
4876: # subdirectories, so they share the cache.
4877: # Giving --cache-file=/dev/null disables caching, for debugging configure.
4878: # config.status only pays attention to the cache file if you give it the
4879: # --recheck option to rerun configure.
4880: #
4881: EOF
4882: # The following way of writing the cache mishandles newlines in values,
4883: # but we know of no workaround that is simple, portable, and efficient.
4884: # So, don't put newlines in cache variables' values.
4885: # Ultrix sh set writes to stderr and can't be redirected directly,
4886: # and sets the high bit in the cache file unless we assign to the vars.
4887: (set) 2>&1 |
4888: case `(ac_space=' '; set | grep ac_space) 2>&1` in
4889: *ac_space=\ *)
4890: # `set' does not quote correctly, so add quotes (double-quote substitution
4891: # turns \\\\ into \\, and sed turns \\ into \).
4892: sed -n \
4893: -e "s/'/'\\\\''/g" \
4894: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4895: ;;
4896: *)
4897: # `set' quotes correctly as required by POSIX, so do not add quotes.
4898: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4899: ;;
4900: esac >> confcache
4901: if cmp -s $cache_file confcache; then
4902: :
4903: else
4904: if test -w $cache_file; then
4905: echo "updating cache $cache_file"
4906: cat confcache > $cache_file
4907: else
4908: echo "not updating unwritable cache $cache_file"
4909: fi
4910: fi
4911: rm -f confcache
4912:
4913: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4914:
4915: test "x$prefix" = xNONE && prefix=$ac_default_prefix
4916: # Let make expand exec_prefix.
4917: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4918:
4919: # Any assignment to VPATH causes Sun make to only execute
4920: # the first set of double-colon rules, so remove it if not needed.
4921: # If there is a colon in the path, we need to keep it.
4922: if test "x$srcdir" = x.; then
4923: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4924: fi
4925:
4926: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4927:
4928: DEFS=-DHAVE_CONFIG_H
4929:
4930: # Without the "./", some shells look in PATH for config.status.
4931: : ${CONFIG_STATUS=./config.status}
4932:
4933: echo creating $CONFIG_STATUS
4934: rm -f $CONFIG_STATUS
4935: cat > $CONFIG_STATUS <<EOF
4936: #! /bin/sh
4937: # Generated automatically by configure.
4938: # Run this file to recreate the current configuration.
4939: # This directory was configured as follows,
4940: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4941: #
4942: # $0 $ac_configure_args
4943: #
4944: # Compiler output produced by configure, useful for debugging
4945: # configure, is in ./config.log if it exists.
4946:
4947: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4948: for ac_option
4949: do
4950: case "\$ac_option" in
4951: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4952: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4953: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4954: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4955: echo "$CONFIG_STATUS generated by autoconf version 2.13"
4956: exit 0 ;;
4957: -help | --help | --hel | --he | --h)
4958: echo "\$ac_cs_usage"; exit 0 ;;
4959: *) echo "\$ac_cs_usage"; exit 1 ;;
4960: esac
4961: done
4962:
4963: ac_given_srcdir=$srcdir
4964: ac_given_INSTALL="$INSTALL"
4965:
4966: trap 'rm -fr `echo "Makefile docs/Makefile docs/latextut/Makefile config.h:config.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4967: EOF
4968: cat >> $CONFIG_STATUS <<EOF
4969:
4970: # Protect against being on the right side of a sed subst in config.status.
4971: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4972: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4973: $ac_vpsub
4974: $extrasub
4975: s%@SHELL@%$SHELL%g
4976: s%@CFLAGS@%$CFLAGS%g
4977: s%@CPPFLAGS@%$CPPFLAGS%g
4978: s%@CXXFLAGS@%$CXXFLAGS%g
4979: s%@FFLAGS@%$FFLAGS%g
4980: s%@DEFS@%$DEFS%g
4981: s%@LDFLAGS@%$LDFLAGS%g
4982: s%@LIBS@%$LIBS%g
4983: s%@exec_prefix@%$exec_prefix%g
4984: s%@prefix@%$prefix%g
4985: s%@program_transform_name@%$program_transform_name%g
4986: s%@bindir@%$bindir%g
4987: s%@sbindir@%$sbindir%g
4988: s%@libexecdir@%$libexecdir%g
4989: s%@datadir@%$datadir%g
4990: s%@sysconfdir@%$sysconfdir%g
4991: s%@sharedstatedir@%$sharedstatedir%g
4992: s%@localstatedir@%$localstatedir%g
4993: s%@libdir@%$libdir%g
4994: s%@includedir@%$includedir%g
4995: s%@oldincludedir@%$oldincludedir%g
4996: s%@infodir@%$infodir%g
4997: s%@mandir@%$mandir%g
4998: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4999: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5000: s%@INSTALL_DATA@%$INSTALL_DATA%g
5001: s%@PACKAGE@%$PACKAGE%g
5002: s%@VERSION@%$VERSION%g
1.1.1.3 ! ohara 5003: s%@EXEEXT@%$EXEEXT%g
! 5004: s%@OBJEXT@%$OBJEXT%g
1.1 maekawa 5005: s%@ACLOCAL@%$ACLOCAL%g
5006: s%@AUTOCONF@%$AUTOCONF%g
5007: s%@AUTOMAKE@%$AUTOMAKE%g
5008: s%@AUTOHEADER@%$AUTOHEADER%g
5009: s%@MAKEINFO@%$MAKEINFO%g
1.1.1.2 maekawa 5010: s%@AMTAR@%$AMTAR%g
1.1.1.3 ! ohara 5011: s%@install_sh@%$install_sh%g
! 5012: s%@INSTALL_STRIP_PROGRAM@%$INSTALL_STRIP_PROGRAM%g
! 5013: s%@AWK@%$AWK%g
1.1 maekawa 5014: s%@SET_MAKE@%$SET_MAKE%g
1.1.1.3 ! ohara 5015: s%@AMDEP_TRUE@%$AMDEP_TRUE%g
! 5016: s%@AMDEP_FALSE@%$AMDEP_FALSE%g
! 5017: s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%g
! 5018: s%@DEPDIR@%$DEPDIR%g
1.1 maekawa 5019: s%@CC@%$CC%g
1.1.1.3 ! ohara 5020: s%@am__include@%$am__include%g
! 5021: s%@am__quote@%$am__quote%g
! 5022: s%@CCDEPMODE@%$CCDEPMODE%g
1.1 maekawa 5023: s%@CPP@%$CPP%g
5024: s%@U@%$U%g
5025: s%@ANSI2KNR@%$ANSI2KNR%g
5026: s%@ERRORFIX@%$ERRORFIX%g
1.1.1.3 ! ohara 5027: s%@LIBRARIES_FOR_X@%$LIBRARIES_FOR_X%g
1.1 maekawa 5028: s%@GNUPLOT_X11@%$GNUPLOT_X11%g
5029: s%@X_CFLAGS@%$X_CFLAGS%g
5030: s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5031: s%@X_LIBS@%$X_LIBS%g
5032: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5033: s%@LASERGNU@%$LASERGNU%g
5034: s%@LINUXSUID@%$LINUXSUID%g
5035: s%@TERMLIBS@%$TERMLIBS%g
5036: s%@TERMXLIBS@%$TERMXLIBS%g
5037:
5038: CEOF
5039: EOF
5040:
5041: cat >> $CONFIG_STATUS <<\EOF
5042:
5043: # Split the substitutions into bite-sized pieces for seds with
5044: # small command number limits, like on Digital OSF/1 and HP-UX.
5045: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5046: ac_file=1 # Number of current file.
5047: ac_beg=1 # First line for current file.
5048: ac_end=$ac_max_sed_cmds # Line after last line for current file.
5049: ac_more_lines=:
5050: ac_sed_cmds=""
5051: while $ac_more_lines; do
5052: if test $ac_beg -gt 1; then
5053: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5054: else
5055: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5056: fi
5057: if test ! -s conftest.s$ac_file; then
5058: ac_more_lines=false
5059: rm -f conftest.s$ac_file
5060: else
5061: if test -z "$ac_sed_cmds"; then
5062: ac_sed_cmds="sed -f conftest.s$ac_file"
5063: else
5064: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5065: fi
5066: ac_file=`expr $ac_file + 1`
5067: ac_beg=$ac_end
5068: ac_end=`expr $ac_end + $ac_max_sed_cmds`
5069: fi
5070: done
5071: if test -z "$ac_sed_cmds"; then
5072: ac_sed_cmds=cat
5073: fi
5074: EOF
5075:
5076: cat >> $CONFIG_STATUS <<EOF
5077:
5078: CONFIG_FILES=\${CONFIG_FILES-"Makefile docs/Makefile docs/latextut/Makefile"}
5079: EOF
5080: cat >> $CONFIG_STATUS <<\EOF
5081: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5082: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5083: case "$ac_file" in
5084: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5085: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5086: *) ac_file_in="${ac_file}.in" ;;
5087: esac
5088:
5089: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5090:
5091: # Remove last slash and all that follows it. Not all systems have dirname.
5092: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5093: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5094: # The file is in a subdirectory.
5095: test ! -d "$ac_dir" && mkdir "$ac_dir"
5096: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5097: # A "../" for each directory in $ac_dir_suffix.
5098: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5099: else
5100: ac_dir_suffix= ac_dots=
5101: fi
5102:
5103: case "$ac_given_srcdir" in
5104: .) srcdir=.
5105: if test -z "$ac_dots"; then top_srcdir=.
5106: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5107: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5108: *) # Relative path.
5109: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5110: top_srcdir="$ac_dots$ac_given_srcdir" ;;
5111: esac
5112:
5113: case "$ac_given_INSTALL" in
5114: [/$]*) INSTALL="$ac_given_INSTALL" ;;
5115: *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5116: esac
5117:
5118: echo creating "$ac_file"
5119: rm -f "$ac_file"
5120: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5121: case "$ac_file" in
5122: *Makefile*) ac_comsub="1i\\
5123: # $configure_input" ;;
5124: *) ac_comsub= ;;
5125: esac
5126:
5127: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5128: sed -e "$ac_comsub
5129: s%@configure_input@%$configure_input%g
5130: s%@srcdir@%$srcdir%g
5131: s%@top_srcdir@%$top_srcdir%g
5132: s%@INSTALL@%$INSTALL%g
5133: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5134: fi; done
5135: rm -f conftest.s*
5136:
5137: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5138: # NAME is the cpp macro being defined and VALUE is the value it is being given.
5139: #
5140: # ac_d sets the value in "#define NAME VALUE" lines.
5141: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5142: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5143: ac_dC='\3'
5144: ac_dD='%g'
5145: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5146: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5147: ac_uB='\([ ]\)%\1#\2define\3'
5148: ac_uC=' '
5149: ac_uD='\4%g'
5150: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5151: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5152: ac_eB='$%\1#\2define\3'
5153: ac_eC=' '
5154: ac_eD='%g'
5155:
5156: if test "${CONFIG_HEADERS+set}" != set; then
5157: EOF
5158: cat >> $CONFIG_STATUS <<EOF
5159: CONFIG_HEADERS="config.h:config.hin"
5160: EOF
5161: cat >> $CONFIG_STATUS <<\EOF
5162: fi
5163: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5164: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5165: case "$ac_file" in
5166: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5167: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5168: *) ac_file_in="${ac_file}.in" ;;
5169: esac
5170:
5171: echo creating $ac_file
5172:
5173: rm -f conftest.frag conftest.in conftest.out
5174: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5175: cat $ac_file_inputs > conftest.in
5176:
5177: EOF
5178:
5179: # Transform confdefs.h into a sed script conftest.vals that substitutes
5180: # the proper values into config.h.in to produce config.h. And first:
5181: # Protect against being on the right side of a sed subst in config.status.
5182: # Protect against being in an unquoted here document in config.status.
5183: rm -f conftest.vals
5184: cat > conftest.hdr <<\EOF
5185: s/[\\&%]/\\&/g
5186: s%[\\$`]%\\&%g
5187: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5188: s%ac_d%ac_u%gp
5189: s%ac_u%ac_e%gp
5190: EOF
5191: sed -n -f conftest.hdr confdefs.h > conftest.vals
5192: rm -f conftest.hdr
5193:
5194: # This sed command replaces #undef with comments. This is necessary, for
5195: # example, in the case of _POSIX_SOURCE, which is predefined and required
5196: # on some systems where configure will not decide to define it.
5197: cat >> conftest.vals <<\EOF
5198: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5199: EOF
5200:
5201: # Break up conftest.vals because some shells have a limit on
5202: # the size of here documents, and old seds have small limits too.
5203:
5204: rm -f conftest.tail
5205: while :
5206: do
5207: ac_lines=`grep -c . conftest.vals`
5208: # grep -c gives empty output for an empty file on some AIX systems.
5209: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5210: # Write a limited-size here document to conftest.frag.
5211: echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5212: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5213: echo 'CEOF
5214: sed -f conftest.frag conftest.in > conftest.out
5215: rm -f conftest.in
5216: mv conftest.out conftest.in
5217: ' >> $CONFIG_STATUS
5218: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5219: rm -f conftest.vals
5220: mv conftest.tail conftest.vals
5221: done
5222: rm -f conftest.vals
5223:
5224: cat >> $CONFIG_STATUS <<\EOF
5225: rm -f conftest.frag conftest.h
5226: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5227: cat conftest.in >> conftest.h
5228: rm -f conftest.in
5229: if cmp -s $ac_file conftest.h 2>/dev/null; then
5230: echo "$ac_file is unchanged"
5231: rm -f conftest.h
5232: else
5233: # Remove last slash and all that follows it. Not all systems have dirname.
5234: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5235: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5236: # The file is in a subdirectory.
5237: test ! -d "$ac_dir" && mkdir "$ac_dir"
5238: fi
5239: rm -f $ac_file
5240: mv conftest.h $ac_file
5241: fi
5242: fi; done
5243:
5244: EOF
5245: cat >> $CONFIG_STATUS <<EOF
1.1.1.3 ! ohara 5246: am_indx=1
! 5247: for am_file in config.h:config.hin; do
! 5248: case " \$CONFIG_HEADERS " in
! 5249: *" \$am_file "*)
! 5250: am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\`
! 5251: if test -n "\$am_dir"; then
! 5252: am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\`
! 5253: for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do
! 5254: am_tmpdir=\$am_tmpdir\$am_subdir/
! 5255: if test ! -d \$am_tmpdir; then
! 5256: mkdir \$am_tmpdir
! 5257: fi
! 5258: done
! 5259: fi
! 5260: echo timestamp > "\$am_dir"stamp-h\$am_indx
! 5261: ;;
! 5262: esac
! 5263: am_indx=\`expr \$am_indx + 1\`
! 5264: done
! 5265: AMDEP_TRUE="$AMDEP_TRUE"
! 5266: ac_aux_dir="$ac_aux_dir"
1.1 maekawa 5267:
5268: EOF
5269: cat >> $CONFIG_STATUS <<\EOF
1.1.1.3 ! ohara 5270: test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
! 5271:
! 5272: test x"$AMDEP_TRUE" != x"" ||
! 5273: for mf in $CONFIG_FILES; do
! 5274: case "$mf" in
! 5275: Makefile) dirpart=.;;
! 5276: */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
! 5277: *) continue;;
! 5278: esac
! 5279: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
! 5280: # Extract the definition of DEP_FILES from the Makefile without
! 5281: # running `make'.
! 5282: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
! 5283: test -z "$DEPDIR" && continue
! 5284: # When using ansi2knr, U may be empty or an underscore; expand it
! 5285: U=`sed -n -e '/^U = / s///p' < "$mf"`
! 5286: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
! 5287: # We invoke sed twice because it is the simplest approach to
! 5288: # changing $(DEPDIR) to its actual value in the expansion.
! 5289: for file in `sed -n -e '
! 5290: /^DEP_FILES = .*\\\\$/ {
! 5291: s/^DEP_FILES = //
! 5292: :loop
! 5293: s/\\\\$//
! 5294: p
! 5295: n
! 5296: /\\\\$/ b loop
! 5297: p
! 5298: }
! 5299: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
! 5300: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
! 5301: # Make sure the directory exists.
! 5302: test -f "$dirpart/$file" && continue
! 5303: fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
! 5304: $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
! 5305: # echo "creating $dirpart/$file"
! 5306: echo '# dummy' > "$dirpart/$file"
! 5307: done
! 5308: done
! 5309:
1.1 maekawa 5310: \
1.1.1.2 maekawa 5311: test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h
1.1 maekawa 5312: exit 0
5313: EOF
5314: chmod +x $CONFIG_STATUS
5315: rm -fr confdefs* $ac_clean_files
5316: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5317:
5318:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>