Annotation of OpenXM/src/ox_toolkit/configure, Revision 1.3
1.1 ohara 1: #! /bin/sh
2:
3: # Guess values for system-dependent variables and create Makefiles.
4: # Generated automatically using autoconf version 2.13
5: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6: #
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
9:
10: # Defaults:
11: ac_help=
12: ac_default_prefix=/usr/local
13: # Any additions from configure.in:
14: ac_help="$ac_help
15: --with-x use the X Window System"
1.2 ohara 16: ac_help="$ac_help
17: --with-gmp with the GNU MP library [[no]]"
1.1 ohara 18:
19: # Initialize some variables set by options.
20: # The variables have the same names as the options, with
21: # dashes changed to underlines.
22: build=NONE
23: cache_file=./config.cache
24: exec_prefix=NONE
25: host=NONE
26: no_create=
27: nonopt=NONE
28: no_recursion=
29: prefix=NONE
30: program_prefix=NONE
31: program_suffix=NONE
32: program_transform_name=s,x,x,
33: silent=
34: site=
1.2 ohara 35: sitefile=
1.1 ohara 36: srcdir=
37: target=NONE
38: verbose=
39: x_includes=NONE
40: x_libraries=NONE
41: bindir='${exec_prefix}/bin'
42: sbindir='${exec_prefix}/sbin'
43: libexecdir='${exec_prefix}/libexec'
44: datadir='${prefix}/share'
45: sysconfdir='${prefix}/etc'
46: sharedstatedir='${prefix}/com'
47: localstatedir='${prefix}/var'
48: libdir='${exec_prefix}/lib'
49: includedir='${prefix}/include'
50: oldincludedir='/usr/include'
51: infodir='${prefix}/info'
52: mandir='${prefix}/man'
53:
54: # Initialize some other variables.
55: subdirs=
56: MFLAGS= MAKEFLAGS=
57: SHELL=${CONFIG_SHELL-/bin/sh}
58: # Maximum number of lines to put in a shell here document.
59: ac_max_here_lines=12
60:
61: ac_prev=
62: for ac_option
63: do
64:
65: # If the previous option needs an argument, assign it.
66: if test -n "$ac_prev"; then
67: eval "$ac_prev=\$ac_option"
68: ac_prev=
69: continue
70: fi
71:
72: case "$ac_option" in
73: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
74: *) ac_optarg= ;;
75: esac
76:
77: # Accept the important Cygnus configure options, so we can diagnose typos.
78:
79: case "$ac_option" in
80:
81: -bindir | --bindir | --bindi | --bind | --bin | --bi)
82: ac_prev=bindir ;;
83: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
84: bindir="$ac_optarg" ;;
85:
86: -build | --build | --buil | --bui | --bu)
87: ac_prev=build ;;
88: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
89: build="$ac_optarg" ;;
90:
91: -cache-file | --cache-file | --cache-fil | --cache-fi \
92: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
93: ac_prev=cache_file ;;
94: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
95: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
96: cache_file="$ac_optarg" ;;
97:
98: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
99: ac_prev=datadir ;;
100: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
101: | --da=*)
102: datadir="$ac_optarg" ;;
103:
104: -disable-* | --disable-*)
105: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
106: # Reject names that are not valid shell variable names.
107: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
108: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
109: fi
110: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
111: eval "enable_${ac_feature}=no" ;;
112:
113: -enable-* | --enable-*)
114: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
115: # Reject names that are not valid shell variable names.
116: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
117: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
118: fi
119: ac_feature=`echo $ac_feature| sed 's/-/_/g'`
120: case "$ac_option" in
121: *=*) ;;
122: *) ac_optarg=yes ;;
123: esac
124: eval "enable_${ac_feature}='$ac_optarg'" ;;
125:
126: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
127: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
128: | --exec | --exe | --ex)
129: ac_prev=exec_prefix ;;
130: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
131: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
132: | --exec=* | --exe=* | --ex=*)
133: exec_prefix="$ac_optarg" ;;
134:
135: -gas | --gas | --ga | --g)
136: # Obsolete; use --with-gas.
137: with_gas=yes ;;
138:
139: -help | --help | --hel | --he)
140: # Omit some internal or obsolete options to make the list less imposing.
141: # This message is too long to be a string in the A/UX 3.1 sh.
142: cat << EOF
143: Usage: configure [options] [host]
144: Options: [defaults in brackets after descriptions]
145: Configuration:
146: --cache-file=FILE cache test results in FILE
147: --help print this message
148: --no-create do not create output files
149: --quiet, --silent do not print \`checking...' messages
1.2 ohara 150: --site-file=FILE use FILE as the site file
1.1 ohara 151: --version print the version of autoconf that created configure
152: Directory and file names:
153: --prefix=PREFIX install architecture-independent files in PREFIX
154: [$ac_default_prefix]
155: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156: [same as prefix]
157: --bindir=DIR user executables in DIR [EPREFIX/bin]
158: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159: --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160: --datadir=DIR read-only architecture-independent data in DIR
161: [PREFIX/share]
162: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163: --sharedstatedir=DIR modifiable architecture-independent data in DIR
164: [PREFIX/com]
165: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166: --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167: --includedir=DIR C header files in DIR [PREFIX/include]
168: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169: --infodir=DIR info documentation in DIR [PREFIX/info]
170: --mandir=DIR man documentation in DIR [PREFIX/man]
171: --srcdir=DIR find the sources in DIR [configure dir or ..]
172: --program-prefix=PREFIX prepend PREFIX to installed program names
173: --program-suffix=SUFFIX append SUFFIX to installed program names
174: --program-transform-name=PROGRAM
175: run sed PROGRAM on installed program names
176: EOF
177: cat << EOF
178: Host type:
179: --build=BUILD configure for building on BUILD [BUILD=HOST]
180: --host=HOST configure for HOST [guessed]
181: --target=TARGET configure for TARGET [TARGET=HOST]
182: Features and packages:
183: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187: --x-includes=DIR X include files are in DIR
188: --x-libraries=DIR X library files are in DIR
189: EOF
190: if test -n "$ac_help"; then
191: echo "--enable and --with options recognized:$ac_help"
192: fi
193: exit 0 ;;
194:
195: -host | --host | --hos | --ho)
196: ac_prev=host ;;
197: -host=* | --host=* | --hos=* | --ho=*)
198: host="$ac_optarg" ;;
199:
200: -includedir | --includedir | --includedi | --included | --include \
201: | --includ | --inclu | --incl | --inc)
202: ac_prev=includedir ;;
203: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204: | --includ=* | --inclu=* | --incl=* | --inc=*)
205: includedir="$ac_optarg" ;;
206:
207: -infodir | --infodir | --infodi | --infod | --info | --inf)
208: ac_prev=infodir ;;
209: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210: infodir="$ac_optarg" ;;
211:
212: -libdir | --libdir | --libdi | --libd)
213: ac_prev=libdir ;;
214: -libdir=* | --libdir=* | --libdi=* | --libd=*)
215: libdir="$ac_optarg" ;;
216:
217: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218: | --libexe | --libex | --libe)
219: ac_prev=libexecdir ;;
220: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221: | --libexe=* | --libex=* | --libe=*)
222: libexecdir="$ac_optarg" ;;
223:
224: -localstatedir | --localstatedir | --localstatedi | --localstated \
225: | --localstate | --localstat | --localsta | --localst \
226: | --locals | --local | --loca | --loc | --lo)
227: ac_prev=localstatedir ;;
228: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231: localstatedir="$ac_optarg" ;;
232:
233: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234: ac_prev=mandir ;;
235: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236: mandir="$ac_optarg" ;;
237:
238: -nfp | --nfp | --nf)
239: # Obsolete; use --without-fp.
240: with_fp=no ;;
241:
242: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243: | --no-cr | --no-c)
244: no_create=yes ;;
245:
246: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248: no_recursion=yes ;;
249:
250: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252: | --oldin | --oldi | --old | --ol | --o)
253: ac_prev=oldincludedir ;;
254: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257: oldincludedir="$ac_optarg" ;;
258:
259: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260: ac_prev=prefix ;;
261: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262: prefix="$ac_optarg" ;;
263:
264: -program-prefix | --program-prefix | --program-prefi | --program-pref \
265: | --program-pre | --program-pr | --program-p)
266: ac_prev=program_prefix ;;
267: -program-prefix=* | --program-prefix=* | --program-prefi=* \
268: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269: program_prefix="$ac_optarg" ;;
270:
271: -program-suffix | --program-suffix | --program-suffi | --program-suff \
272: | --program-suf | --program-su | --program-s)
273: ac_prev=program_suffix ;;
274: -program-suffix=* | --program-suffix=* | --program-suffi=* \
275: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276: program_suffix="$ac_optarg" ;;
277:
278: -program-transform-name | --program-transform-name \
279: | --program-transform-nam | --program-transform-na \
280: | --program-transform-n | --program-transform- \
281: | --program-transform | --program-transfor \
282: | --program-transfo | --program-transf \
283: | --program-trans | --program-tran \
284: | --progr-tra | --program-tr | --program-t)
285: ac_prev=program_transform_name ;;
286: -program-transform-name=* | --program-transform-name=* \
287: | --program-transform-nam=* | --program-transform-na=* \
288: | --program-transform-n=* | --program-transform-=* \
289: | --program-transform=* | --program-transfor=* \
290: | --program-transfo=* | --program-transf=* \
291: | --program-trans=* | --program-tran=* \
292: | --progr-tra=* | --program-tr=* | --program-t=*)
293: program_transform_name="$ac_optarg" ;;
294:
295: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296: | -silent | --silent | --silen | --sile | --sil)
297: silent=yes ;;
298:
299: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300: ac_prev=sbindir ;;
301: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302: | --sbi=* | --sb=*)
303: sbindir="$ac_optarg" ;;
304:
305: -sharedstatedir | --sharedstatedir | --sharedstatedi \
306: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307: | --sharedst | --shareds | --shared | --share | --shar \
308: | --sha | --sh)
309: ac_prev=sharedstatedir ;;
310: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313: | --sha=* | --sh=*)
314: sharedstatedir="$ac_optarg" ;;
315:
316: -site | --site | --sit)
317: ac_prev=site ;;
318: -site=* | --site=* | --sit=*)
319: site="$ac_optarg" ;;
320:
1.2 ohara 321: -site-file | --site-file | --site-fil | --site-fi | --site-f)
322: ac_prev=sitefile ;;
323: -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
324: sitefile="$ac_optarg" ;;
325:
1.1 ohara 326: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
327: ac_prev=srcdir ;;
328: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
329: srcdir="$ac_optarg" ;;
330:
331: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
332: | --syscon | --sysco | --sysc | --sys | --sy)
333: ac_prev=sysconfdir ;;
334: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
335: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
336: sysconfdir="$ac_optarg" ;;
337:
338: -target | --target | --targe | --targ | --tar | --ta | --t)
339: ac_prev=target ;;
340: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
341: target="$ac_optarg" ;;
342:
343: -v | -verbose | --verbose | --verbos | --verbo | --verb)
344: verbose=yes ;;
345:
346: -version | --version | --versio | --versi | --vers)
347: echo "configure generated by autoconf version 2.13"
348: exit 0 ;;
349:
350: -with-* | --with-*)
351: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
352: # Reject names that are not valid shell variable names.
353: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
354: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355: fi
356: ac_package=`echo $ac_package| sed 's/-/_/g'`
357: case "$ac_option" in
358: *=*) ;;
359: *) ac_optarg=yes ;;
360: esac
361: eval "with_${ac_package}='$ac_optarg'" ;;
362:
363: -without-* | --without-*)
364: ac_package=`echo $ac_option|sed -e 's/-*without-//'`
365: # Reject names that are not valid shell variable names.
366: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
367: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368: fi
369: ac_package=`echo $ac_package| sed 's/-/_/g'`
370: eval "with_${ac_package}=no" ;;
371:
372: --x)
373: # Obsolete; use --with-x.
374: with_x=yes ;;
375:
376: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
377: | --x-incl | --x-inc | --x-in | --x-i)
378: ac_prev=x_includes ;;
379: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
380: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
381: x_includes="$ac_optarg" ;;
382:
383: -x-libraries | --x-libraries | --x-librarie | --x-librari \
384: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
385: ac_prev=x_libraries ;;
386: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
387: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
388: x_libraries="$ac_optarg" ;;
389:
390: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
391: ;;
392:
393: *)
394: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
395: echo "configure: warning: $ac_option: invalid host type" 1>&2
396: fi
397: if test "x$nonopt" != xNONE; then
398: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
399: fi
400: nonopt="$ac_option"
401: ;;
402:
403: esac
404: done
405:
406: if test -n "$ac_prev"; then
407: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
408: fi
409:
410: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411:
412: # File descriptor usage:
413: # 0 standard input
414: # 1 file creation
415: # 2 errors and warnings
416: # 3 some systems may open it to /dev/tty
417: # 4 used on the Kubota Titan
418: # 6 checking for... messages and results
419: # 5 compiler messages saved in config.log
420: if test "$silent" = yes; then
421: exec 6>/dev/null
422: else
423: exec 6>&1
424: fi
425: exec 5>./config.log
426:
427: echo "\
428: This file contains any messages produced by compilers while
429: running configure, to aid debugging if configure makes a mistake.
430: " 1>&5
431:
432: # Strip out --no-create and --no-recursion so they do not pile up.
433: # Also quote any args containing shell metacharacters.
434: ac_configure_args=
435: for ac_arg
436: do
437: case "$ac_arg" in
438: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
439: | --no-cr | --no-c) ;;
440: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
441: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
442: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
443: ac_configure_args="$ac_configure_args '$ac_arg'" ;;
444: *) ac_configure_args="$ac_configure_args $ac_arg" ;;
445: esac
446: done
447:
448: # NLS nuisances.
449: # Only set these to C if already set. These must not be set unconditionally
450: # because not all systems understand e.g. LANG=C (notably SCO).
451: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
452: # Non-C LC_CTYPE values break the ctype check.
453: if test "${LANG+set}" = set; then LANG=C; export LANG; fi
454: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
455: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
456: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
457:
458: # confdefs.h avoids OS command line length limits that DEFS can exceed.
459: rm -rf conftest* confdefs.h
460: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
461: echo > confdefs.h
462:
463: # A filename unique to this package, relative to the directory that
464: # configure is in, which we can look for to find out if srcdir is correct.
465: ac_unique_file=mysocket.c
466:
467: # Find the source files, if location was not specified.
468: if test -z "$srcdir"; then
469: ac_srcdir_defaulted=yes
470: # Try the directory containing this script, then its parent.
471: ac_prog=$0
472: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
473: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
474: srcdir=$ac_confdir
475: if test ! -r $srcdir/$ac_unique_file; then
476: srcdir=..
477: fi
478: else
479: ac_srcdir_defaulted=no
480: fi
481: if test ! -r $srcdir/$ac_unique_file; then
482: if test "$ac_srcdir_defaulted" = yes; then
483: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484: else
485: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
486: fi
487: fi
488: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489:
490: # Prefer explicitly selected file to automatically selected ones.
1.2 ohara 491: if test -z "$sitefile"; then
492: if test -z "$CONFIG_SITE"; then
493: if test "x$prefix" != xNONE; then
494: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
495: else
496: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497: fi
1.1 ohara 498: fi
1.2 ohara 499: else
500: CONFIG_SITE="$sitefile"
1.1 ohara 501: fi
502: for ac_site_file in $CONFIG_SITE; do
503: if test -r "$ac_site_file"; then
504: echo "loading site script $ac_site_file"
505: . "$ac_site_file"
506: fi
507: done
508:
509: if test -r "$cache_file"; then
510: echo "loading cache $cache_file"
511: . $cache_file
512: else
513: echo "creating cache $cache_file"
514: > $cache_file
515: fi
516:
517: ac_ext=c
518: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
519: ac_cpp='$CPP $CPPFLAGS'
520: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
521: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
522: cross_compiling=$ac_cv_prog_cc_cross
523:
524: ac_exeext=
525: ac_objext=o
526: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
527: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
528: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
529: ac_n= ac_c='
530: ' ac_t=' '
531: else
532: ac_n=-n ac_c= ac_t=
533: fi
534: else
535: ac_n= ac_c='\c' ac_t=
536: fi
537:
538:
539: # Extract the first word of "gcc", so it can be a program name with args.
540: set dummy gcc; ac_word=$2
541: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.2 ohara 542: echo "configure:543: checking for $ac_word" >&5
1.1 ohara 543: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
544: echo $ac_n "(cached) $ac_c" 1>&6
545: else
546: if test -n "$CC"; then
547: ac_cv_prog_CC="$CC" # Let the user override the test.
548: else
549: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
550: ac_dummy="$PATH"
551: for ac_dir in $ac_dummy; do
552: test -z "$ac_dir" && ac_dir=.
553: if test -f $ac_dir/$ac_word; then
554: ac_cv_prog_CC="gcc"
555: break
556: fi
557: done
558: IFS="$ac_save_ifs"
559: fi
560: fi
561: CC="$ac_cv_prog_CC"
562: if test -n "$CC"; then
563: echo "$ac_t""$CC" 1>&6
564: else
565: echo "$ac_t""no" 1>&6
566: fi
567:
568: if test -z "$CC"; then
569: # Extract the first word of "cc", so it can be a program name with args.
570: set dummy cc; ac_word=$2
571: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.2 ohara 572: echo "configure:573: checking for $ac_word" >&5
1.1 ohara 573: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
574: echo $ac_n "(cached) $ac_c" 1>&6
575: else
576: if test -n "$CC"; then
577: ac_cv_prog_CC="$CC" # Let the user override the test.
578: else
579: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
580: ac_prog_rejected=no
581: ac_dummy="$PATH"
582: for ac_dir in $ac_dummy; do
583: test -z "$ac_dir" && ac_dir=.
584: if test -f $ac_dir/$ac_word; then
585: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
586: ac_prog_rejected=yes
587: continue
588: fi
589: ac_cv_prog_CC="cc"
590: break
591: fi
592: done
593: IFS="$ac_save_ifs"
594: if test $ac_prog_rejected = yes; then
595: # We found a bogon in the path, so make sure we never use it.
596: set dummy $ac_cv_prog_CC
597: shift
598: if test $# -gt 0; then
599: # We chose a different compiler from the bogus one.
600: # However, it has the same basename, so the bogon will be chosen
601: # first if we set CC to just the basename; use the full file name.
602: shift
603: set dummy "$ac_dir/$ac_word" "$@"
604: shift
605: ac_cv_prog_CC="$@"
606: fi
607: fi
608: fi
609: fi
610: CC="$ac_cv_prog_CC"
611: if test -n "$CC"; then
612: echo "$ac_t""$CC" 1>&6
613: else
614: echo "$ac_t""no" 1>&6
615: fi
616:
617: if test -z "$CC"; then
618: case "`uname -s`" in
619: *win32* | *WIN32*)
620: # Extract the first word of "cl", so it can be a program name with args.
621: set dummy cl; ac_word=$2
622: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.2 ohara 623: echo "configure:624: checking for $ac_word" >&5
1.1 ohara 624: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
625: echo $ac_n "(cached) $ac_c" 1>&6
626: else
627: if test -n "$CC"; then
628: ac_cv_prog_CC="$CC" # Let the user override the test.
629: else
630: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
631: ac_dummy="$PATH"
632: for ac_dir in $ac_dummy; do
633: test -z "$ac_dir" && ac_dir=.
634: if test -f $ac_dir/$ac_word; then
635: ac_cv_prog_CC="cl"
636: break
637: fi
638: done
639: IFS="$ac_save_ifs"
640: fi
641: fi
642: CC="$ac_cv_prog_CC"
643: if test -n "$CC"; then
644: echo "$ac_t""$CC" 1>&6
645: else
646: echo "$ac_t""no" 1>&6
647: fi
648: ;;
649: esac
650: fi
651: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
652: fi
653:
654: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1.2 ohara 655: echo "configure:656: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1.1 ohara 656:
657: ac_ext=c
658: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
659: ac_cpp='$CPP $CPPFLAGS'
660: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
661: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
662: cross_compiling=$ac_cv_prog_cc_cross
663:
664: cat > conftest.$ac_ext << EOF
665:
1.2 ohara 666: #line 667 "configure"
1.1 ohara 667: #include "confdefs.h"
668:
669: main(){return(0);}
670: EOF
1.2 ohara 671: if { (eval echo configure:672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 672: ac_cv_prog_cc_works=yes
673: # If we can't run a trivial program, we are probably using a cross compiler.
674: if (./conftest; exit) 2>/dev/null; then
675: ac_cv_prog_cc_cross=no
676: else
677: ac_cv_prog_cc_cross=yes
678: fi
679: else
680: echo "configure: failed program was:" >&5
681: cat conftest.$ac_ext >&5
682: ac_cv_prog_cc_works=no
683: fi
684: rm -fr conftest*
685: ac_ext=c
686: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
687: ac_cpp='$CPP $CPPFLAGS'
688: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
689: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
690: cross_compiling=$ac_cv_prog_cc_cross
691:
692: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
693: if test $ac_cv_prog_cc_works = no; then
694: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
695: fi
696: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1.2 ohara 697: echo "configure:698: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1.1 ohara 698: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
699: cross_compiling=$ac_cv_prog_cc_cross
700:
701: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1.2 ohara 702: echo "configure:703: checking whether we are using GNU C" >&5
1.1 ohara 703: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
704: echo $ac_n "(cached) $ac_c" 1>&6
705: else
706: cat > conftest.c <<EOF
707: #ifdef __GNUC__
708: yes;
709: #endif
710: EOF
1.2 ohara 711: if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1.1 ohara 712: ac_cv_prog_gcc=yes
713: else
714: ac_cv_prog_gcc=no
715: fi
716: fi
717:
718: echo "$ac_t""$ac_cv_prog_gcc" 1>&6
719:
720: if test $ac_cv_prog_gcc = yes; then
721: GCC=yes
722: else
723: GCC=
724: fi
725:
726: ac_test_CFLAGS="${CFLAGS+set}"
727: ac_save_CFLAGS="$CFLAGS"
728: CFLAGS=
729: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1.2 ohara 730: echo "configure:731: checking whether ${CC-cc} accepts -g" >&5
1.1 ohara 731: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
732: echo $ac_n "(cached) $ac_c" 1>&6
733: else
734: echo 'void f(){}' > conftest.c
735: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
736: ac_cv_prog_cc_g=yes
737: else
738: ac_cv_prog_cc_g=no
739: fi
740: rm -f conftest*
741:
742: fi
743:
744: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
745: if test "$ac_test_CFLAGS" = set; then
746: CFLAGS="$ac_save_CFLAGS"
747: elif test $ac_cv_prog_cc_g = yes; then
748: if test "$GCC" = yes; then
749: CFLAGS="-g -O2"
750: else
751: CFLAGS="-g"
752: fi
753: else
754: if test "$GCC" = yes; then
755: CFLAGS="-O2"
756: else
757: CFLAGS=
758: fi
759: fi
760:
761: # Extract the first word of "ranlib", so it can be a program name with args.
762: set dummy ranlib; ac_word=$2
763: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1.2 ohara 764: echo "configure:765: checking for $ac_word" >&5
1.1 ohara 765: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
766: echo $ac_n "(cached) $ac_c" 1>&6
767: else
768: if test -n "$RANLIB"; then
769: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
770: else
771: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
772: ac_dummy="$PATH"
773: for ac_dir in $ac_dummy; do
774: test -z "$ac_dir" && ac_dir=.
775: if test -f $ac_dir/$ac_word; then
776: ac_cv_prog_RANLIB="ranlib"
777: break
778: fi
779: done
780: IFS="$ac_save_ifs"
781: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
782: fi
783: fi
784: RANLIB="$ac_cv_prog_RANLIB"
785: if test -n "$RANLIB"; then
786: echo "$ac_t""$RANLIB" 1>&6
787: else
788: echo "$ac_t""no" 1>&6
789: fi
790:
791: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1.2 ohara 792: echo "configure:793: checking how to run the C preprocessor" >&5
1.1 ohara 793: # On Suns, sometimes $CPP names a directory.
794: if test -n "$CPP" && test -d "$CPP"; then
795: CPP=
796: fi
797: if test -z "$CPP"; then
798: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
799: echo $ac_n "(cached) $ac_c" 1>&6
800: else
801: # This must be in double quotes, not single quotes, because CPP may get
802: # substituted into the Makefile and "${CC-cc}" will confuse make.
803: CPP="${CC-cc} -E"
804: # On the NeXT, cc -E runs the code through the compiler's parser,
805: # not just through cpp.
806: cat > conftest.$ac_ext <<EOF
1.2 ohara 807: #line 808 "configure"
1.1 ohara 808: #include "confdefs.h"
809: #include <assert.h>
810: Syntax Error
811: EOF
812: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.2 ohara 813: { (eval echo configure:814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 ohara 814: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
815: if test -z "$ac_err"; then
816: :
817: else
818: echo "$ac_err" >&5
819: echo "configure: failed program was:" >&5
820: cat conftest.$ac_ext >&5
821: rm -rf conftest*
822: CPP="${CC-cc} -E -traditional-cpp"
823: cat > conftest.$ac_ext <<EOF
1.2 ohara 824: #line 825 "configure"
1.1 ohara 825: #include "confdefs.h"
826: #include <assert.h>
827: Syntax Error
828: EOF
829: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.2 ohara 830: { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 ohara 831: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
832: if test -z "$ac_err"; then
833: :
834: else
835: echo "$ac_err" >&5
836: echo "configure: failed program was:" >&5
837: cat conftest.$ac_ext >&5
838: rm -rf conftest*
839: CPP="${CC-cc} -nologo -E"
840: cat > conftest.$ac_ext <<EOF
1.2 ohara 841: #line 842 "configure"
1.1 ohara 842: #include "confdefs.h"
843: #include <assert.h>
844: Syntax Error
845: EOF
846: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.2 ohara 847: { (eval echo configure:848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 ohara 848: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
849: if test -z "$ac_err"; then
850: :
851: else
852: echo "$ac_err" >&5
853: echo "configure: failed program was:" >&5
854: cat conftest.$ac_ext >&5
855: rm -rf conftest*
856: CPP=/lib/cpp
857: fi
858: rm -f conftest*
859: fi
860: rm -f conftest*
861: fi
862: rm -f conftest*
863: ac_cv_prog_CPP="$CPP"
864: fi
865: CPP="$ac_cv_prog_CPP"
866: else
867: ac_cv_prog_CPP="$CPP"
868: fi
869: echo "$ac_t""$CPP" 1>&6
870:
871: # If we find X, set shell vars x_includes and x_libraries to the
872: # paths, otherwise set no_x=yes.
873: # Uses ac_ vars as temps to allow command line to override cache and checks.
874: # --without-x overrides everything else, but does not touch the cache.
875: echo $ac_n "checking for X""... $ac_c" 1>&6
1.2 ohara 876: echo "configure:877: checking for X" >&5
1.1 ohara 877:
878: # Check whether --with-x or --without-x was given.
879: if test "${with_x+set}" = set; then
880: withval="$with_x"
881: :
882: fi
883:
884: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
885: if test "x$with_x" = xno; then
886: # The user explicitly disabled X.
887: have_x=disabled
888: else
889: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
890: # Both variables are already set.
891: have_x=yes
892: else
893: if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
894: echo $ac_n "(cached) $ac_c" 1>&6
895: else
896: # One or both of the vars are not set, and there is no cached value.
897: ac_x_includes=NO ac_x_libraries=NO
898: rm -fr conftestdir
899: if mkdir conftestdir; then
900: cd conftestdir
901: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
902: cat > Imakefile <<'EOF'
903: acfindx:
904: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
905: EOF
906: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
907: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
908: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
909: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
910: for ac_extension in a so sl; do
911: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
912: test -f $ac_im_libdir/libX11.$ac_extension; then
913: ac_im_usrlibdir=$ac_im_libdir; break
914: fi
915: done
916: # Screen out bogus values from the imake configuration. They are
917: # bogus both because they are the default anyway, and because
918: # using them would break gcc on systems where it needs fixed includes.
919: case "$ac_im_incroot" in
920: /usr/include) ;;
921: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
922: esac
923: case "$ac_im_usrlibdir" in
924: /usr/lib | /lib) ;;
925: *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
926: esac
927: fi
928: cd ..
929: rm -fr conftestdir
930: fi
931:
932: if test "$ac_x_includes" = NO; then
933: # Guess where to find include files, by looking for this one X11 .h file.
934: test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
935:
936: # First, try using that file with no special directory specified.
937: cat > conftest.$ac_ext <<EOF
1.2 ohara 938: #line 939 "configure"
1.1 ohara 939: #include "confdefs.h"
940: #include <$x_direct_test_include>
941: EOF
942: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1.2 ohara 943: { (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1.1 ohara 944: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
945: if test -z "$ac_err"; then
946: rm -rf conftest*
947: # We can compile using X headers with no special include directory.
948: ac_x_includes=
949: else
950: echo "$ac_err" >&5
951: echo "configure: failed program was:" >&5
952: cat conftest.$ac_ext >&5
953: rm -rf conftest*
954: # Look for the header file in a standard set of common directories.
955: # Check X11 before X11Rn because it is often a symlink to the current release.
956: for ac_dir in \
957: /usr/X11/include \
958: /usr/X11R6/include \
959: /usr/X11R5/include \
960: /usr/X11R4/include \
961: \
962: /usr/include/X11 \
963: /usr/include/X11R6 \
964: /usr/include/X11R5 \
965: /usr/include/X11R4 \
966: \
967: /usr/local/X11/include \
968: /usr/local/X11R6/include \
969: /usr/local/X11R5/include \
970: /usr/local/X11R4/include \
971: \
972: /usr/local/include/X11 \
973: /usr/local/include/X11R6 \
974: /usr/local/include/X11R5 \
975: /usr/local/include/X11R4 \
976: \
977: /usr/X386/include \
978: /usr/x386/include \
979: /usr/XFree86/include/X11 \
980: \
981: /usr/include \
982: /usr/local/include \
983: /usr/unsupported/include \
984: /usr/athena/include \
985: /usr/local/x11r5/include \
986: /usr/lpp/Xamples/include \
987: \
988: /usr/openwin/include \
989: /usr/openwin/share/include \
990: ; \
991: do
992: if test -r "$ac_dir/$x_direct_test_include"; then
993: ac_x_includes=$ac_dir
994: break
995: fi
996: done
997: fi
998: rm -f conftest*
999: fi # $ac_x_includes = NO
1000:
1001: if test "$ac_x_libraries" = NO; then
1002: # Check for the libraries.
1003:
1004: test -z "$x_direct_test_library" && x_direct_test_library=Xt
1005: test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1006:
1007: # See if we find them without any special options.
1008: # Don't add to $LIBS permanently.
1009: ac_save_LIBS="$LIBS"
1010: LIBS="-l$x_direct_test_library $LIBS"
1011: cat > conftest.$ac_ext <<EOF
1.2 ohara 1012: #line 1013 "configure"
1.1 ohara 1013: #include "confdefs.h"
1014:
1015: int main() {
1016: ${x_direct_test_function}()
1017: ; return 0; }
1018: EOF
1.2 ohara 1019: if { (eval echo configure:1020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1020: rm -rf conftest*
1021: LIBS="$ac_save_LIBS"
1022: # We can link X programs with no special library path.
1023: ac_x_libraries=
1024: else
1025: echo "configure: failed program was:" >&5
1026: cat conftest.$ac_ext >&5
1027: rm -rf conftest*
1028: LIBS="$ac_save_LIBS"
1029: # First see if replacing the include by lib works.
1030: # Check X11 before X11Rn because it is often a symlink to the current release.
1031: for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1032: /usr/X11/lib \
1033: /usr/X11R6/lib \
1034: /usr/X11R5/lib \
1035: /usr/X11R4/lib \
1036: \
1037: /usr/lib/X11 \
1038: /usr/lib/X11R6 \
1039: /usr/lib/X11R5 \
1040: /usr/lib/X11R4 \
1041: \
1042: /usr/local/X11/lib \
1043: /usr/local/X11R6/lib \
1044: /usr/local/X11R5/lib \
1045: /usr/local/X11R4/lib \
1046: \
1047: /usr/local/lib/X11 \
1048: /usr/local/lib/X11R6 \
1049: /usr/local/lib/X11R5 \
1050: /usr/local/lib/X11R4 \
1051: \
1052: /usr/X386/lib \
1053: /usr/x386/lib \
1054: /usr/XFree86/lib/X11 \
1055: \
1056: /usr/lib \
1057: /usr/local/lib \
1058: /usr/unsupported/lib \
1059: /usr/athena/lib \
1060: /usr/local/x11r5/lib \
1061: /usr/lpp/Xamples/lib \
1062: /lib/usr/lib/X11 \
1063: \
1064: /usr/openwin/lib \
1065: /usr/openwin/share/lib \
1066: ; \
1067: do
1068: for ac_extension in a so sl; do
1069: if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1070: ac_x_libraries=$ac_dir
1071: break 2
1072: fi
1073: done
1074: done
1075: fi
1076: rm -f conftest*
1077: fi # $ac_x_libraries = NO
1078:
1079: if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1080: # Didn't find X anywhere. Cache the known absence of X.
1081: ac_cv_have_x="have_x=no"
1082: else
1083: # Record where we found X for the cache.
1084: ac_cv_have_x="have_x=yes \
1085: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1086: fi
1087: fi
1088: fi
1089: eval "$ac_cv_have_x"
1090: fi # $with_x != no
1091:
1092: if test "$have_x" != yes; then
1093: echo "$ac_t""$have_x" 1>&6
1094: no_x=yes
1095: else
1096: # If each of the values was on the command line, it overrides each guess.
1097: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1098: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1099: # Update the cache value to reflect the command line values.
1100: ac_cv_have_x="have_x=yes \
1101: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1102: echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1103: fi
1104:
1105: if test "$no_x" = yes; then
1106: # Not all programs may use this symbol, but it does not hurt to define it.
1107: cat >> confdefs.h <<\EOF
1108: #define X_DISPLAY_MISSING 1
1109: EOF
1110:
1111: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1112: else
1113: if test -n "$x_includes"; then
1114: X_CFLAGS="$X_CFLAGS -I$x_includes"
1115: fi
1116:
1117: # It would also be nice to do this for all -L options, not just this one.
1118: if test -n "$x_libraries"; then
1119: X_LIBS="$X_LIBS -L$x_libraries"
1120: # For Solaris; some versions of Sun CC require a space after -R and
1121: # others require no space. Words are not sufficient . . . .
1122: case "`(uname -sr) 2>/dev/null`" in
1123: "SunOS 5"*)
1124: echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1.2 ohara 1125: echo "configure:1126: checking whether -R must be followed by a space" >&5
1.1 ohara 1126: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1127: cat > conftest.$ac_ext <<EOF
1.2 ohara 1128: #line 1129 "configure"
1.1 ohara 1129: #include "confdefs.h"
1130:
1131: int main() {
1132:
1133: ; return 0; }
1134: EOF
1.2 ohara 1135: if { (eval echo configure:1136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1136: rm -rf conftest*
1137: ac_R_nospace=yes
1138: else
1139: echo "configure: failed program was:" >&5
1140: cat conftest.$ac_ext >&5
1141: rm -rf conftest*
1142: ac_R_nospace=no
1143: fi
1144: rm -f conftest*
1145: if test $ac_R_nospace = yes; then
1146: echo "$ac_t""no" 1>&6
1147: X_LIBS="$X_LIBS -R$x_libraries"
1148: else
1149: LIBS="$ac_xsave_LIBS -R $x_libraries"
1150: cat > conftest.$ac_ext <<EOF
1.2 ohara 1151: #line 1152 "configure"
1.1 ohara 1152: #include "confdefs.h"
1153:
1154: int main() {
1155:
1156: ; return 0; }
1157: EOF
1.2 ohara 1158: if { (eval echo configure:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1159: rm -rf conftest*
1160: ac_R_space=yes
1161: else
1162: echo "configure: failed program was:" >&5
1163: cat conftest.$ac_ext >&5
1164: rm -rf conftest*
1165: ac_R_space=no
1166: fi
1167: rm -f conftest*
1168: if test $ac_R_space = yes; then
1169: echo "$ac_t""yes" 1>&6
1170: X_LIBS="$X_LIBS -R $x_libraries"
1171: else
1172: echo "$ac_t""neither works" 1>&6
1173: fi
1174: fi
1175: LIBS="$ac_xsave_LIBS"
1176: esac
1177: fi
1178:
1179: # Check for system-dependent libraries X programs must link with.
1180: # Do this before checking for the system-independent R6 libraries
1181: # (-lICE), since we may need -lsocket or whatever for X linking.
1182:
1183: if test "$ISC" = yes; then
1184: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1185: else
1186: # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1187: # libraries were built with DECnet support. And karl@cs.umb.edu says
1188: # the Alpha needs dnet_stub (dnet does not exist).
1189: echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1.2 ohara 1190: echo "configure:1191: checking for dnet_ntoa in -ldnet" >&5
1.1 ohara 1191: ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1192: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1193: echo $ac_n "(cached) $ac_c" 1>&6
1194: else
1195: ac_save_LIBS="$LIBS"
1196: LIBS="-ldnet $LIBS"
1197: cat > conftest.$ac_ext <<EOF
1.2 ohara 1198: #line 1199 "configure"
1.1 ohara 1199: #include "confdefs.h"
1200: /* Override any gcc2 internal prototype to avoid an error. */
1201: /* We use char because int might match the return type of a gcc2
1202: builtin and then its argument prototype would still apply. */
1203: char dnet_ntoa();
1204:
1205: int main() {
1206: dnet_ntoa()
1207: ; return 0; }
1208: EOF
1.2 ohara 1209: if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1210: rm -rf conftest*
1211: eval "ac_cv_lib_$ac_lib_var=yes"
1212: else
1213: echo "configure: failed program was:" >&5
1214: cat conftest.$ac_ext >&5
1215: rm -rf conftest*
1216: eval "ac_cv_lib_$ac_lib_var=no"
1217: fi
1218: rm -f conftest*
1219: LIBS="$ac_save_LIBS"
1220:
1221: fi
1222: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1223: echo "$ac_t""yes" 1>&6
1224: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1225: else
1226: echo "$ac_t""no" 1>&6
1227: fi
1228:
1229: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1230: echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1.2 ohara 1231: echo "configure:1232: checking for dnet_ntoa in -ldnet_stub" >&5
1.1 ohara 1232: ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1233: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1234: echo $ac_n "(cached) $ac_c" 1>&6
1235: else
1236: ac_save_LIBS="$LIBS"
1237: LIBS="-ldnet_stub $LIBS"
1238: cat > conftest.$ac_ext <<EOF
1.2 ohara 1239: #line 1240 "configure"
1.1 ohara 1240: #include "confdefs.h"
1241: /* Override any gcc2 internal prototype to avoid an error. */
1242: /* We use char because int might match the return type of a gcc2
1243: builtin and then its argument prototype would still apply. */
1244: char dnet_ntoa();
1245:
1246: int main() {
1247: dnet_ntoa()
1248: ; return 0; }
1249: EOF
1.2 ohara 1250: if { (eval echo configure:1251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1251: rm -rf conftest*
1252: eval "ac_cv_lib_$ac_lib_var=yes"
1253: else
1254: echo "configure: failed program was:" >&5
1255: cat conftest.$ac_ext >&5
1256: rm -rf conftest*
1257: eval "ac_cv_lib_$ac_lib_var=no"
1258: fi
1259: rm -f conftest*
1260: LIBS="$ac_save_LIBS"
1261:
1262: fi
1263: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1264: echo "$ac_t""yes" 1>&6
1265: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1266: else
1267: echo "$ac_t""no" 1>&6
1268: fi
1269:
1270: fi
1271:
1272: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1273: # to get the SysV transport functions.
1274: # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1275: # needs -lnsl.
1276: # The nsl library prevents programs from opening the X display
1277: # on Irix 5.2, according to dickey@clark.net.
1278: echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1.2 ohara 1279: echo "configure:1280: checking for gethostbyname" >&5
1.1 ohara 1280: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1281: echo $ac_n "(cached) $ac_c" 1>&6
1282: else
1283: cat > conftest.$ac_ext <<EOF
1.2 ohara 1284: #line 1285 "configure"
1.1 ohara 1285: #include "confdefs.h"
1286: /* System header to define __stub macros and hopefully few prototypes,
1287: which can conflict with char gethostbyname(); below. */
1288: #include <assert.h>
1289: /* Override any gcc2 internal prototype to avoid an error. */
1290: /* We use char because int might match the return type of a gcc2
1291: builtin and then its argument prototype would still apply. */
1292: char gethostbyname();
1293:
1294: int main() {
1295:
1296: /* The GNU C library defines this for functions which it implements
1297: to always fail with ENOSYS. Some functions are actually named
1298: something starting with __ and the normal name is an alias. */
1299: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1300: choke me
1301: #else
1302: gethostbyname();
1303: #endif
1304:
1305: ; return 0; }
1306: EOF
1.2 ohara 1307: if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1308: rm -rf conftest*
1309: eval "ac_cv_func_gethostbyname=yes"
1310: else
1311: echo "configure: failed program was:" >&5
1312: cat conftest.$ac_ext >&5
1313: rm -rf conftest*
1314: eval "ac_cv_func_gethostbyname=no"
1315: fi
1316: rm -f conftest*
1317: fi
1318:
1319: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1320: echo "$ac_t""yes" 1>&6
1321: :
1322: else
1323: echo "$ac_t""no" 1>&6
1324: fi
1325:
1326: if test $ac_cv_func_gethostbyname = no; then
1327: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.2 ohara 1328: echo "configure:1329: checking for gethostbyname in -lnsl" >&5
1.1 ohara 1329: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1330: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1331: echo $ac_n "(cached) $ac_c" 1>&6
1332: else
1333: ac_save_LIBS="$LIBS"
1334: LIBS="-lnsl $LIBS"
1335: cat > conftest.$ac_ext <<EOF
1.2 ohara 1336: #line 1337 "configure"
1.1 ohara 1337: #include "confdefs.h"
1338: /* Override any gcc2 internal prototype to avoid an error. */
1339: /* We use char because int might match the return type of a gcc2
1340: builtin and then its argument prototype would still apply. */
1341: char gethostbyname();
1342:
1343: int main() {
1344: gethostbyname()
1345: ; return 0; }
1346: EOF
1.2 ohara 1347: if { (eval echo configure:1348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1348: rm -rf conftest*
1349: eval "ac_cv_lib_$ac_lib_var=yes"
1350: else
1351: echo "configure: failed program was:" >&5
1352: cat conftest.$ac_ext >&5
1353: rm -rf conftest*
1354: eval "ac_cv_lib_$ac_lib_var=no"
1355: fi
1356: rm -f conftest*
1357: LIBS="$ac_save_LIBS"
1358:
1359: fi
1360: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1361: echo "$ac_t""yes" 1>&6
1362: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1363: else
1364: echo "$ac_t""no" 1>&6
1365: fi
1366:
1367: fi
1368:
1369: # lieder@skyler.mavd.honeywell.com says without -lsocket,
1370: # socket/setsockopt and other routines are undefined under SCO ODT
1371: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1372: # on later versions), says simon@lia.di.epfl.ch: it contains
1373: # gethostby* variants that don't use the nameserver (or something).
1374: # -lsocket must be given before -lnsl if both are needed.
1375: # We assume that if connect needs -lnsl, so does gethostbyname.
1376: echo $ac_n "checking for connect""... $ac_c" 1>&6
1.2 ohara 1377: echo "configure:1378: checking for connect" >&5
1.1 ohara 1378: if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1379: echo $ac_n "(cached) $ac_c" 1>&6
1380: else
1381: cat > conftest.$ac_ext <<EOF
1.2 ohara 1382: #line 1383 "configure"
1.1 ohara 1383: #include "confdefs.h"
1384: /* System header to define __stub macros and hopefully few prototypes,
1385: which can conflict with char connect(); below. */
1386: #include <assert.h>
1387: /* Override any gcc2 internal prototype to avoid an error. */
1388: /* We use char because int might match the return type of a gcc2
1389: builtin and then its argument prototype would still apply. */
1390: char connect();
1391:
1392: int main() {
1393:
1394: /* The GNU C library defines this for functions which it implements
1395: to always fail with ENOSYS. Some functions are actually named
1396: something starting with __ and the normal name is an alias. */
1397: #if defined (__stub_connect) || defined (__stub___connect)
1398: choke me
1399: #else
1400: connect();
1401: #endif
1402:
1403: ; return 0; }
1404: EOF
1.2 ohara 1405: if { (eval echo configure:1406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1406: rm -rf conftest*
1407: eval "ac_cv_func_connect=yes"
1408: else
1409: echo "configure: failed program was:" >&5
1410: cat conftest.$ac_ext >&5
1411: rm -rf conftest*
1412: eval "ac_cv_func_connect=no"
1413: fi
1414: rm -f conftest*
1415: fi
1416:
1417: if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1418: echo "$ac_t""yes" 1>&6
1419: :
1420: else
1421: echo "$ac_t""no" 1>&6
1422: fi
1423:
1424: if test $ac_cv_func_connect = no; then
1425: echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1.2 ohara 1426: echo "configure:1427: checking for connect in -lsocket" >&5
1.1 ohara 1427: ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1428: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1429: echo $ac_n "(cached) $ac_c" 1>&6
1430: else
1431: ac_save_LIBS="$LIBS"
1432: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1433: cat > conftest.$ac_ext <<EOF
1.2 ohara 1434: #line 1435 "configure"
1.1 ohara 1435: #include "confdefs.h"
1436: /* Override any gcc2 internal prototype to avoid an error. */
1437: /* We use char because int might match the return type of a gcc2
1438: builtin and then its argument prototype would still apply. */
1439: char connect();
1440:
1441: int main() {
1442: connect()
1443: ; return 0; }
1444: EOF
1.2 ohara 1445: if { (eval echo configure:1446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1446: rm -rf conftest*
1447: eval "ac_cv_lib_$ac_lib_var=yes"
1448: else
1449: echo "configure: failed program was:" >&5
1450: cat conftest.$ac_ext >&5
1451: rm -rf conftest*
1452: eval "ac_cv_lib_$ac_lib_var=no"
1453: fi
1454: rm -f conftest*
1455: LIBS="$ac_save_LIBS"
1456:
1457: fi
1458: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1459: echo "$ac_t""yes" 1>&6
1460: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1461: else
1462: echo "$ac_t""no" 1>&6
1463: fi
1464:
1465: fi
1466:
1467: # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1468: echo $ac_n "checking for remove""... $ac_c" 1>&6
1.2 ohara 1469: echo "configure:1470: checking for remove" >&5
1.1 ohara 1470: if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1471: echo $ac_n "(cached) $ac_c" 1>&6
1472: else
1473: cat > conftest.$ac_ext <<EOF
1.2 ohara 1474: #line 1475 "configure"
1.1 ohara 1475: #include "confdefs.h"
1476: /* System header to define __stub macros and hopefully few prototypes,
1477: which can conflict with char remove(); below. */
1478: #include <assert.h>
1479: /* Override any gcc2 internal prototype to avoid an error. */
1480: /* We use char because int might match the return type of a gcc2
1481: builtin and then its argument prototype would still apply. */
1482: char remove();
1483:
1484: int main() {
1485:
1486: /* The GNU C library defines this for functions which it implements
1487: to always fail with ENOSYS. Some functions are actually named
1488: something starting with __ and the normal name is an alias. */
1489: #if defined (__stub_remove) || defined (__stub___remove)
1490: choke me
1491: #else
1492: remove();
1493: #endif
1494:
1495: ; return 0; }
1496: EOF
1.2 ohara 1497: if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1498: rm -rf conftest*
1499: eval "ac_cv_func_remove=yes"
1500: else
1501: echo "configure: failed program was:" >&5
1502: cat conftest.$ac_ext >&5
1503: rm -rf conftest*
1504: eval "ac_cv_func_remove=no"
1505: fi
1506: rm -f conftest*
1507: fi
1508:
1509: if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1510: echo "$ac_t""yes" 1>&6
1511: :
1512: else
1513: echo "$ac_t""no" 1>&6
1514: fi
1515:
1516: if test $ac_cv_func_remove = no; then
1517: echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1.2 ohara 1518: echo "configure:1519: checking for remove in -lposix" >&5
1.1 ohara 1519: ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1520: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1521: echo $ac_n "(cached) $ac_c" 1>&6
1522: else
1523: ac_save_LIBS="$LIBS"
1524: LIBS="-lposix $LIBS"
1525: cat > conftest.$ac_ext <<EOF
1.2 ohara 1526: #line 1527 "configure"
1.1 ohara 1527: #include "confdefs.h"
1528: /* Override any gcc2 internal prototype to avoid an error. */
1529: /* We use char because int might match the return type of a gcc2
1530: builtin and then its argument prototype would still apply. */
1531: char remove();
1532:
1533: int main() {
1534: remove()
1535: ; return 0; }
1536: EOF
1.2 ohara 1537: if { (eval echo configure:1538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1538: rm -rf conftest*
1539: eval "ac_cv_lib_$ac_lib_var=yes"
1540: else
1541: echo "configure: failed program was:" >&5
1542: cat conftest.$ac_ext >&5
1543: rm -rf conftest*
1544: eval "ac_cv_lib_$ac_lib_var=no"
1545: fi
1546: rm -f conftest*
1547: LIBS="$ac_save_LIBS"
1548:
1549: fi
1550: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1551: echo "$ac_t""yes" 1>&6
1552: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1553: else
1554: echo "$ac_t""no" 1>&6
1555: fi
1556:
1557: fi
1558:
1559: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1560: echo $ac_n "checking for shmat""... $ac_c" 1>&6
1.2 ohara 1561: echo "configure:1562: checking for shmat" >&5
1.1 ohara 1562: if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1563: echo $ac_n "(cached) $ac_c" 1>&6
1564: else
1565: cat > conftest.$ac_ext <<EOF
1.2 ohara 1566: #line 1567 "configure"
1.1 ohara 1567: #include "confdefs.h"
1568: /* System header to define __stub macros and hopefully few prototypes,
1569: which can conflict with char shmat(); below. */
1570: #include <assert.h>
1571: /* Override any gcc2 internal prototype to avoid an error. */
1572: /* We use char because int might match the return type of a gcc2
1573: builtin and then its argument prototype would still apply. */
1574: char shmat();
1575:
1576: int main() {
1577:
1578: /* The GNU C library defines this for functions which it implements
1579: to always fail with ENOSYS. Some functions are actually named
1580: something starting with __ and the normal name is an alias. */
1581: #if defined (__stub_shmat) || defined (__stub___shmat)
1582: choke me
1583: #else
1584: shmat();
1585: #endif
1586:
1587: ; return 0; }
1588: EOF
1.2 ohara 1589: if { (eval echo configure:1590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1590: rm -rf conftest*
1591: eval "ac_cv_func_shmat=yes"
1592: else
1593: echo "configure: failed program was:" >&5
1594: cat conftest.$ac_ext >&5
1595: rm -rf conftest*
1596: eval "ac_cv_func_shmat=no"
1597: fi
1598: rm -f conftest*
1599: fi
1600:
1601: if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1602: echo "$ac_t""yes" 1>&6
1603: :
1604: else
1605: echo "$ac_t""no" 1>&6
1606: fi
1607:
1608: if test $ac_cv_func_shmat = no; then
1609: echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1.2 ohara 1610: echo "configure:1611: checking for shmat in -lipc" >&5
1.1 ohara 1611: ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1612: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1613: echo $ac_n "(cached) $ac_c" 1>&6
1614: else
1615: ac_save_LIBS="$LIBS"
1616: LIBS="-lipc $LIBS"
1617: cat > conftest.$ac_ext <<EOF
1.2 ohara 1618: #line 1619 "configure"
1.1 ohara 1619: #include "confdefs.h"
1620: /* Override any gcc2 internal prototype to avoid an error. */
1621: /* We use char because int might match the return type of a gcc2
1622: builtin and then its argument prototype would still apply. */
1623: char shmat();
1624:
1625: int main() {
1626: shmat()
1627: ; return 0; }
1628: EOF
1.2 ohara 1629: if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1630: rm -rf conftest*
1631: eval "ac_cv_lib_$ac_lib_var=yes"
1632: else
1633: echo "configure: failed program was:" >&5
1634: cat conftest.$ac_ext >&5
1635: rm -rf conftest*
1636: eval "ac_cv_lib_$ac_lib_var=no"
1637: fi
1638: rm -f conftest*
1639: LIBS="$ac_save_LIBS"
1640:
1641: fi
1642: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1643: echo "$ac_t""yes" 1>&6
1644: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1645: else
1646: echo "$ac_t""no" 1>&6
1647: fi
1648:
1649: fi
1650: fi
1651:
1652: # Check for libraries that X11R6 Xt/Xaw programs need.
1653: ac_save_LDFLAGS="$LDFLAGS"
1654: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1655: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1656: # check for ICE first), but we must link in the order -lSM -lICE or
1657: # we get undefined symbols. So assume we have SM if we have ICE.
1658: # These have to be linked with before -lX11, unlike the other
1659: # libraries we check for below, so use a different variable.
1660: # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1661: echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1.2 ohara 1662: echo "configure:1663: checking for IceConnectionNumber in -lICE" >&5
1.1 ohara 1663: ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1664: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1665: echo $ac_n "(cached) $ac_c" 1>&6
1666: else
1667: ac_save_LIBS="$LIBS"
1668: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
1669: cat > conftest.$ac_ext <<EOF
1.2 ohara 1670: #line 1671 "configure"
1.1 ohara 1671: #include "confdefs.h"
1672: /* Override any gcc2 internal prototype to avoid an error. */
1673: /* We use char because int might match the return type of a gcc2
1674: builtin and then its argument prototype would still apply. */
1675: char IceConnectionNumber();
1676:
1677: int main() {
1678: IceConnectionNumber()
1679: ; return 0; }
1680: EOF
1.2 ohara 1681: if { (eval echo configure:1682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1682: rm -rf conftest*
1683: eval "ac_cv_lib_$ac_lib_var=yes"
1684: else
1685: echo "configure: failed program was:" >&5
1686: cat conftest.$ac_ext >&5
1687: rm -rf conftest*
1688: eval "ac_cv_lib_$ac_lib_var=no"
1689: fi
1690: rm -f conftest*
1691: LIBS="$ac_save_LIBS"
1692:
1693: fi
1694: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1695: echo "$ac_t""yes" 1>&6
1696: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1697: else
1698: echo "$ac_t""no" 1>&6
1699: fi
1700:
1701: LDFLAGS="$ac_save_LDFLAGS"
1702:
1703: fi
1704:
1705:
1.2 ohara 1706: # Check whether --with-gmp or --without-gmp was given.
1707: if test "${with_gmp+set}" = set; then
1708: withval="$with_gmp"
1709: with_gmp=yes
1710: else
1711: with_gmp=no
1712: fi
1713:
1714:
1715: if test ${with_gmp:=no} != no ; then
1716: cat >> confdefs.h <<\EOF
1717: #define WITH_GMP 1
1718: EOF
1719:
1720: GMPLIB="-lgmp"
1.3 ! ohara 1721: USE_GMP='#'
1.2 ohara 1722: fi
1723:
1724:
1.3 ! ohara 1725:
1.1 ohara 1726: echo $ac_n "checking for socket""... $ac_c" 1>&6
1.3 ! ohara 1727: echo "configure:1728: checking for socket" >&5
1.1 ohara 1728: if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1729: echo $ac_n "(cached) $ac_c" 1>&6
1730: else
1731: cat > conftest.$ac_ext <<EOF
1.3 ! ohara 1732: #line 1733 "configure"
1.1 ohara 1733: #include "confdefs.h"
1734: /* System header to define __stub macros and hopefully few prototypes,
1735: which can conflict with char socket(); below. */
1736: #include <assert.h>
1737: /* Override any gcc2 internal prototype to avoid an error. */
1738: /* We use char because int might match the return type of a gcc2
1739: builtin and then its argument prototype would still apply. */
1740: char socket();
1741:
1742: int main() {
1743:
1744: /* The GNU C library defines this for functions which it implements
1745: to always fail with ENOSYS. Some functions are actually named
1746: something starting with __ and the normal name is an alias. */
1747: #if defined (__stub_socket) || defined (__stub___socket)
1748: choke me
1749: #else
1750: socket();
1751: #endif
1752:
1753: ; return 0; }
1754: EOF
1.3 ! ohara 1755: if { (eval echo configure:1756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1756: rm -rf conftest*
1757: eval "ac_cv_func_socket=yes"
1758: else
1759: echo "configure: failed program was:" >&5
1760: cat conftest.$ac_ext >&5
1761: rm -rf conftest*
1762: eval "ac_cv_func_socket=no"
1763: fi
1764: rm -f conftest*
1765: fi
1766:
1767: if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1768: echo "$ac_t""yes" 1>&6
1769: :
1770: else
1771: echo "$ac_t""no" 1>&6
1.2 ohara 1772: echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1.3 ! ohara 1773: echo "configure:1774: checking for socket in -lsocket" >&5
1.1 ohara 1774: ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1775: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1776: echo $ac_n "(cached) $ac_c" 1>&6
1777: else
1778: ac_save_LIBS="$LIBS"
1779: LIBS="-lsocket $LIBS"
1780: cat > conftest.$ac_ext <<EOF
1.3 ! ohara 1781: #line 1782 "configure"
1.1 ohara 1782: #include "confdefs.h"
1783: /* Override any gcc2 internal prototype to avoid an error. */
1784: /* We use char because int might match the return type of a gcc2
1785: builtin and then its argument prototype would still apply. */
1786: char socket();
1787:
1788: int main() {
1789: socket()
1790: ; return 0; }
1791: EOF
1.3 ! ohara 1792: if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1793: rm -rf conftest*
1794: eval "ac_cv_lib_$ac_lib_var=yes"
1795: else
1796: echo "configure: failed program was:" >&5
1797: cat conftest.$ac_ext >&5
1798: rm -rf conftest*
1799: eval "ac_cv_lib_$ac_lib_var=no"
1800: fi
1801: rm -f conftest*
1802: LIBS="$ac_save_LIBS"
1803:
1804: fi
1805: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1806: echo "$ac_t""yes" 1>&6
1807: ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1808: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1809: cat >> confdefs.h <<EOF
1810: #define $ac_tr_lib 1
1811: EOF
1812:
1813: LIBS="-lsocket $LIBS"
1814:
1815: else
1816: echo "$ac_t""no" 1>&6
1817: fi
1818:
1819: fi
1.2 ohara 1820:
1.1 ohara 1821: echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1.3 ! ohara 1822: echo "configure:1823: checking for gethostbyname" >&5
1.1 ohara 1823: if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1824: echo $ac_n "(cached) $ac_c" 1>&6
1825: else
1826: cat > conftest.$ac_ext <<EOF
1.3 ! ohara 1827: #line 1828 "configure"
1.1 ohara 1828: #include "confdefs.h"
1829: /* System header to define __stub macros and hopefully few prototypes,
1830: which can conflict with char gethostbyname(); below. */
1831: #include <assert.h>
1832: /* Override any gcc2 internal prototype to avoid an error. */
1833: /* We use char because int might match the return type of a gcc2
1834: builtin and then its argument prototype would still apply. */
1835: char gethostbyname();
1836:
1837: int main() {
1838:
1839: /* The GNU C library defines this for functions which it implements
1840: to always fail with ENOSYS. Some functions are actually named
1841: something starting with __ and the normal name is an alias. */
1842: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1843: choke me
1844: #else
1845: gethostbyname();
1846: #endif
1847:
1848: ; return 0; }
1849: EOF
1.3 ! ohara 1850: if { (eval echo configure:1851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1851: rm -rf conftest*
1852: eval "ac_cv_func_gethostbyname=yes"
1853: else
1854: echo "configure: failed program was:" >&5
1855: cat conftest.$ac_ext >&5
1856: rm -rf conftest*
1857: eval "ac_cv_func_gethostbyname=no"
1858: fi
1859: rm -f conftest*
1860: fi
1861:
1862: if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1863: echo "$ac_t""yes" 1>&6
1864: :
1865: else
1866: echo "$ac_t""no" 1>&6
1.2 ohara 1867: echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1.3 ! ohara 1868: echo "configure:1869: checking for gethostbyname in -lnsl" >&5
1.1 ohara 1869: ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1870: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1871: echo $ac_n "(cached) $ac_c" 1>&6
1872: else
1873: ac_save_LIBS="$LIBS"
1874: LIBS="-lnsl $LIBS"
1875: cat > conftest.$ac_ext <<EOF
1.3 ! ohara 1876: #line 1877 "configure"
1.1 ohara 1877: #include "confdefs.h"
1878: /* Override any gcc2 internal prototype to avoid an error. */
1879: /* We use char because int might match the return type of a gcc2
1880: builtin and then its argument prototype would still apply. */
1881: char gethostbyname();
1882:
1883: int main() {
1884: gethostbyname()
1885: ; return 0; }
1886: EOF
1.3 ! ohara 1887: if { (eval echo configure:1888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1.1 ohara 1888: rm -rf conftest*
1889: eval "ac_cv_lib_$ac_lib_var=yes"
1890: else
1891: echo "configure: failed program was:" >&5
1892: cat conftest.$ac_ext >&5
1893: rm -rf conftest*
1894: eval "ac_cv_lib_$ac_lib_var=no"
1895: fi
1896: rm -f conftest*
1897: LIBS="$ac_save_LIBS"
1898:
1899: fi
1900: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1901: echo "$ac_t""yes" 1>&6
1902: ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1903: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1904: cat >> confdefs.h <<EOF
1905: #define $ac_tr_lib 1
1906: EOF
1907:
1908: LIBS="-lnsl $LIBS"
1909:
1910: else
1911: echo "$ac_t""no" 1>&6
1912: fi
1913:
1914: fi
1915:
1.2 ohara 1916:
1.1 ohara 1917: trap '' 1 2 15
1918: cat > confcache <<\EOF
1919: # This file is a shell script that caches the results of configure
1920: # tests run on this system so they can be shared between configure
1921: # scripts and configure runs. It is not useful on other systems.
1922: # If it contains results you don't want to keep, you may remove or edit it.
1923: #
1924: # By default, configure uses ./config.cache as the cache file,
1925: # creating it if it does not exist already. You can give configure
1926: # the --cache-file=FILE option to use a different cache file; that is
1927: # what configure does when it calls configure scripts in
1928: # subdirectories, so they share the cache.
1929: # Giving --cache-file=/dev/null disables caching, for debugging configure.
1930: # config.status only pays attention to the cache file if you give it the
1931: # --recheck option to rerun configure.
1932: #
1933: EOF
1934: # The following way of writing the cache mishandles newlines in values,
1935: # but we know of no workaround that is simple, portable, and efficient.
1936: # So, don't put newlines in cache variables' values.
1937: # Ultrix sh set writes to stderr and can't be redirected directly,
1938: # and sets the high bit in the cache file unless we assign to the vars.
1939: (set) 2>&1 |
1940: case `(ac_space=' '; set | grep ac_space) 2>&1` in
1941: *ac_space=\ *)
1942: # `set' does not quote correctly, so add quotes (double-quote substitution
1943: # turns \\\\ into \\, and sed turns \\ into \).
1944: sed -n \
1945: -e "s/'/'\\\\''/g" \
1946: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1947: ;;
1948: *)
1949: # `set' quotes correctly as required by POSIX, so do not add quotes.
1950: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1951: ;;
1952: esac >> confcache
1953: if cmp -s $cache_file confcache; then
1954: :
1955: else
1956: if test -w $cache_file; then
1957: echo "updating cache $cache_file"
1958: cat confcache > $cache_file
1959: else
1960: echo "not updating unwritable cache $cache_file"
1961: fi
1962: fi
1963: rm -f confcache
1964:
1965: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1966:
1967: test "x$prefix" = xNONE && prefix=$ac_default_prefix
1968: # Let make expand exec_prefix.
1969: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1970:
1971: # Any assignment to VPATH causes Sun make to only execute
1972: # the first set of double-colon rules, so remove it if not needed.
1973: # If there is a colon in the path, we need to keep it.
1974: if test "x$srcdir" = x.; then
1975: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1976: fi
1977:
1978: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1979:
1980: # Transform confdefs.h into DEFS.
1981: # Protect against shell expansion while executing Makefile rules.
1982: # Protect against Makefile macro expansion.
1983: cat > conftest.defs <<\EOF
1984: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1985: s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1986: s%\[%\\&%g
1987: s%\]%\\&%g
1988: s%\$%$$%g
1989: EOF
1990: DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1991: rm -f conftest.defs
1992:
1993:
1994: # Without the "./", some shells look in PATH for config.status.
1995: : ${CONFIG_STATUS=./config.status}
1996:
1997: echo creating $CONFIG_STATUS
1998: rm -f $CONFIG_STATUS
1999: cat > $CONFIG_STATUS <<EOF
2000: #! /bin/sh
2001: # Generated automatically by configure.
2002: # Run this file to recreate the current configuration.
2003: # This directory was configured as follows,
2004: # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2005: #
2006: # $0 $ac_configure_args
2007: #
2008: # Compiler output produced by configure, useful for debugging
2009: # configure, is in ./config.log if it exists.
2010:
2011: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2012: for ac_option
2013: do
2014: case "\$ac_option" in
2015: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2016: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2017: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2018: -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2019: echo "$CONFIG_STATUS generated by autoconf version 2.13"
2020: exit 0 ;;
2021: -help | --help | --hel | --he | --h)
2022: echo "\$ac_cs_usage"; exit 0 ;;
2023: *) echo "\$ac_cs_usage"; exit 1 ;;
2024: esac
2025: done
2026:
2027: ac_given_srcdir=$srcdir
2028:
2029: trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2030: EOF
2031: cat >> $CONFIG_STATUS <<EOF
2032:
2033: # Protect against being on the right side of a sed subst in config.status.
2034: sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2035: s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2036: $ac_vpsub
2037: $extrasub
2038: s%@SHELL@%$SHELL%g
2039: s%@CFLAGS@%$CFLAGS%g
2040: s%@CPPFLAGS@%$CPPFLAGS%g
2041: s%@CXXFLAGS@%$CXXFLAGS%g
2042: s%@FFLAGS@%$FFLAGS%g
2043: s%@DEFS@%$DEFS%g
2044: s%@LDFLAGS@%$LDFLAGS%g
2045: s%@LIBS@%$LIBS%g
2046: s%@exec_prefix@%$exec_prefix%g
2047: s%@prefix@%$prefix%g
2048: s%@program_transform_name@%$program_transform_name%g
2049: s%@bindir@%$bindir%g
2050: s%@sbindir@%$sbindir%g
2051: s%@libexecdir@%$libexecdir%g
2052: s%@datadir@%$datadir%g
2053: s%@sysconfdir@%$sysconfdir%g
2054: s%@sharedstatedir@%$sharedstatedir%g
2055: s%@localstatedir@%$localstatedir%g
2056: s%@libdir@%$libdir%g
2057: s%@includedir@%$includedir%g
2058: s%@oldincludedir@%$oldincludedir%g
2059: s%@infodir@%$infodir%g
2060: s%@mandir@%$mandir%g
2061: s%@CC@%$CC%g
2062: s%@RANLIB@%$RANLIB%g
2063: s%@CPP@%$CPP%g
2064: s%@X_CFLAGS@%$X_CFLAGS%g
2065: s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2066: s%@X_LIBS@%$X_LIBS%g
2067: s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
1.2 ohara 2068: s%@GMPLIB@%$GMPLIB%g
1.3 ! ohara 2069: s%@USE_GMP@%$USE_GMP%g
1.1 ohara 2070:
2071: CEOF
2072: EOF
2073:
2074: cat >> $CONFIG_STATUS <<\EOF
2075:
2076: # Split the substitutions into bite-sized pieces for seds with
2077: # small command number limits, like on Digital OSF/1 and HP-UX.
2078: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2079: ac_file=1 # Number of current file.
2080: ac_beg=1 # First line for current file.
2081: ac_end=$ac_max_sed_cmds # Line after last line for current file.
2082: ac_more_lines=:
2083: ac_sed_cmds=""
2084: while $ac_more_lines; do
2085: if test $ac_beg -gt 1; then
2086: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2087: else
2088: sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2089: fi
2090: if test ! -s conftest.s$ac_file; then
2091: ac_more_lines=false
2092: rm -f conftest.s$ac_file
2093: else
2094: if test -z "$ac_sed_cmds"; then
2095: ac_sed_cmds="sed -f conftest.s$ac_file"
2096: else
2097: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2098: fi
2099: ac_file=`expr $ac_file + 1`
2100: ac_beg=$ac_end
2101: ac_end=`expr $ac_end + $ac_max_sed_cmds`
2102: fi
2103: done
2104: if test -z "$ac_sed_cmds"; then
2105: ac_sed_cmds=cat
2106: fi
2107: EOF
2108:
2109: cat >> $CONFIG_STATUS <<EOF
2110:
2111: CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2112: EOF
2113: cat >> $CONFIG_STATUS <<\EOF
2114: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2115: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2116: case "$ac_file" in
2117: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2118: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2119: *) ac_file_in="${ac_file}.in" ;;
2120: esac
2121:
2122: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2123:
2124: # Remove last slash and all that follows it. Not all systems have dirname.
2125: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2126: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2127: # The file is in a subdirectory.
2128: test ! -d "$ac_dir" && mkdir "$ac_dir"
2129: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2130: # A "../" for each directory in $ac_dir_suffix.
2131: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2132: else
2133: ac_dir_suffix= ac_dots=
2134: fi
2135:
2136: case "$ac_given_srcdir" in
2137: .) srcdir=.
2138: if test -z "$ac_dots"; then top_srcdir=.
2139: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2140: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2141: *) # Relative path.
2142: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2143: top_srcdir="$ac_dots$ac_given_srcdir" ;;
2144: esac
2145:
2146:
2147: echo creating "$ac_file"
2148: rm -f "$ac_file"
2149: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2150: case "$ac_file" in
2151: *Makefile*) ac_comsub="1i\\
2152: # $configure_input" ;;
2153: *) ac_comsub= ;;
2154: esac
2155:
2156: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2157: sed -e "$ac_comsub
2158: s%@configure_input@%$configure_input%g
2159: s%@srcdir@%$srcdir%g
2160: s%@top_srcdir@%$top_srcdir%g
2161: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2162: fi; done
2163: rm -f conftest.s*
2164:
2165: EOF
2166: cat >> $CONFIG_STATUS <<EOF
2167:
2168: EOF
2169: cat >> $CONFIG_STATUS <<\EOF
2170:
2171: exit 0
2172: EOF
2173: chmod +x $CONFIG_STATUS
2174: rm -fr confdefs* $ac_clean_files
2175: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1.2 ohara 2176:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>