Annotation of OpenXM_contrib2/asir2000/configure, Revision 1.29
1.14 noro 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.17 ohara 3: # Generated by GNU Autoconf 2.53.
1.14 noro 4: #
5: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6: # Free Software Foundation, Inc.
7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.17 ohara 9:
10: if expr a : '\(a\)' >/dev/null 2>&1; then
11: as_expr=expr
12: else
13: as_expr=false
14: fi
15:
16:
1.14 noro 17: ## --------------------- ##
18: ## M4sh Initialization. ##
19: ## --------------------- ##
20:
21: # Be Bourne compatible
22: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23: emulate sh
24: NULLCMD=:
25: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26: set -o posix
27: fi
28:
1.17 ohara 29: # NLS nuisances.
1.14 noro 30: # Support unset when possible.
31: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32: as_unset=unset
33: else
34: as_unset=false
35: fi
36:
1.17 ohara 37: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38: { $as_unset LANG || test "${LANG+set}" != set; } ||
39: { LANG=C; export LANG; }
40: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42: { LC_ALL=C; export LC_ALL; }
43: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45: { LC_TIME=C; export LC_TIME; }
46: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48: { LC_CTYPE=C; export LC_CTYPE; }
49: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51: { LANGUAGE=C; export LANGUAGE; }
52: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54: { LC_COLLATE=C; export LC_COLLATE; }
55: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57: { LC_NUMERIC=C; export LC_NUMERIC; }
58: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60: { LC_MESSAGES=C; export LC_MESSAGES; }
1.14 noro 61:
62:
63: # Name of the executable.
1.17 ohara 64: as_me=`(basename "$0") 2>/dev/null ||
1.14 noro 65: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66: X"$0" : 'X\(//\)$' \| \
67: X"$0" : 'X\(/\)$' \| \
68: . : '\(.\)' 2>/dev/null ||
69: echo X/"$0" |
70: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71: /^X\/\(\/\/\)$/{ s//\1/; q; }
72: /^X\/\(\/\).*/{ s//\1/; q; }
73: s/.*/./; q'`
74:
75: # PATH needs CR, and LINENO needs CR and PATH.
76: # Avoid depending upon Character Ranges.
77: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80: as_cr_digits='0123456789'
81: as_cr_alnum=$as_cr_Letters$as_cr_digits
82:
83: # The user is always right.
84: if test "${PATH_SEPARATOR+set}" != set; then
1.17 ohara 85: echo "#! /bin/sh" >conftest.sh
86: echo "exit 0" >>conftest.sh
87: chmod +x conftest.sh
88: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
1.14 noro 89: PATH_SEPARATOR=';'
90: else
91: PATH_SEPARATOR=:
92: fi
1.17 ohara 93: rm -f conftest.sh
1.14 noro 94: fi
95:
96:
97: as_lineno_1=$LINENO
98: as_lineno_2=$LINENO
99: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100: test "x$as_lineno_1" != "x$as_lineno_2" &&
101: test "x$as_lineno_3" = "x$as_lineno_2" || {
102: # Find who we are. Look in the path if we contain no path at all
103: # relative or not.
104: case $0 in
105: *[\\/]* ) as_myself=$0 ;;
106: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
107: for as_dir in $PATH
108: do
109: IFS=$as_save_IFS
110: test -z "$as_dir" && as_dir=.
111: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
112: done
113:
114: ;;
115: esac
116: # We did not find ourselves, most probably we were run as `sh COMMAND'
117: # in which case we are not to be found in the path.
118: if test "x$as_myself" = x; then
119: as_myself=$0
120: fi
121: if test ! -f "$as_myself"; then
122: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123: { (exit 1); exit 1; }; }
124: fi
125: case $CONFIG_SHELL in
126: '')
127: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
129: do
130: IFS=$as_save_IFS
131: test -z "$as_dir" && as_dir=.
132: for as_base in sh bash ksh sh5; do
133: case $as_dir in
134: /*)
135: if ("$as_dir/$as_base" -c '
136: as_lineno_1=$LINENO
137: as_lineno_2=$LINENO
138: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139: test "x$as_lineno_1" != "x$as_lineno_2" &&
140: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141: CONFIG_SHELL=$as_dir/$as_base
142: export CONFIG_SHELL
143: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
144: fi;;
145: esac
146: done
147: done
148: ;;
149: esac
150:
151: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152: # uniformly replaced by the line number. The first 'sed' inserts a
153: # line-number line before each line; the second 'sed' does the real
154: # work. The second script uses 'N' to pair each line-number line
155: # with the numbered line, and appends trailing '-' during
156: # substitution so that $LINENO is not a special case at line end.
157: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159: sed '=' <$as_myself |
160: sed '
161: N
162: s,$,-,
163: : loop
164: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
165: t loop
166: s,-$,,
167: s,^['$as_cr_digits']*\n,,
168: ' >$as_me.lineno &&
169: chmod +x $as_me.lineno ||
170: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171: { (exit 1); exit 1; }; }
172:
173: # Don't try to exec as it changes $[0], causing all sort of problems
174: # (the dirname of $[0] is not the place where we might find the
175: # original and so on. Autoconf is especially sensible to this).
176: . ./$as_me.lineno
177: # Exit status is that of the last command.
178: exit
179: }
180:
181:
182: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183: *c*,-n*) ECHO_N= ECHO_C='
184: ' ECHO_T=' ' ;;
185: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
187: esac
188:
189: if expr a : '\(a\)' >/dev/null 2>&1; then
190: as_expr=expr
191: else
192: as_expr=false
193: fi
194:
195: rm -f conf$$ conf$$.exe conf$$.file
196: echo >conf$$.file
197: if ln -s conf$$.file conf$$ 2>/dev/null; then
198: # We could just check for DJGPP; but this test a) works b) is more generic
199: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200: if test -f conf$$.exe; then
201: # Don't use ln at all; we don't have any links
202: as_ln_s='cp -p'
203: else
204: as_ln_s='ln -s'
205: fi
206: elif ln conf$$.file conf$$ 2>/dev/null; then
207: as_ln_s=ln
208: else
209: as_ln_s='cp -p'
210: fi
211: rm -f conf$$ conf$$.exe conf$$.file
212:
213: as_executable_p="test -f"
214:
215: # Sed expression to map a string onto a valid CPP name.
216: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
217:
218: # Sed expression to map a string onto a valid variable name.
219: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
220:
221:
222: # IFS
223: # We need space, tab and new line, in precisely that order.
224: as_nl='
225: '
226: IFS=" $as_nl"
227:
228: # CDPATH.
1.17 ohara 229: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
1.14 noro 230:
231:
232: # Name of the host.
233: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234: # so uname gets run too.
235: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
236:
237: exec 6>&1
238:
239: #
240: # Initializations.
241: #
242: ac_default_prefix=/usr/local
243: cross_compiling=no
244: subdirs=
245: MFLAGS=
246: MAKEFLAGS=
247: SHELL=${CONFIG_SHELL-/bin/sh}
248:
249: # Maximum number of lines to put in a shell here document.
250: # This variable seems obsolete. It should probably be removed, and
251: # only ac_max_sed_lines should be used.
252: : ${ac_max_here_lines=38}
253:
254: # Identity of this package.
255: PACKAGE_NAME=
256: PACKAGE_TARNAME=
257: PACKAGE_VERSION=
258: PACKAGE_STRING=
259: PACKAGE_BUGREPORT=
260:
261: ac_unique_file="LICENSE"
262: # Factoring default headers for most tests.
263: ac_includes_default="\
264: #include <stdio.h>
265: #if HAVE_SYS_TYPES_H
266: # include <sys/types.h>
267: #endif
268: #if HAVE_SYS_STAT_H
269: # include <sys/stat.h>
270: #endif
271: #if STDC_HEADERS
272: # include <stdlib.h>
273: # include <stddef.h>
274: #else
275: # if HAVE_STDLIB_H
276: # include <stdlib.h>
277: # endif
278: #endif
279: #if HAVE_STRING_H
280: # if !STDC_HEADERS && HAVE_MEMORY_H
281: # include <memory.h>
282: # endif
283: # include <string.h>
284: #endif
285: #if HAVE_STRINGS_H
286: # include <strings.h>
287: #endif
288: #if HAVE_INTTYPES_H
289: # include <inttypes.h>
290: #else
291: # if HAVE_STDINT_H
292: # include <stdint.h>
293: # endif
294: #endif
295: #if HAVE_UNISTD_H
296: # include <unistd.h>
297: #endif"
298:
299:
300: # Initialize some variables set by options.
301: ac_init_help=
302: ac_init_version=false
303: # The variables have the same names as the options, with
304: # dashes changed to underlines.
305: cache_file=/dev/null
306: exec_prefix=NONE
307: no_create=
308: no_recursion=
309: prefix=NONE
310: program_prefix=NONE
311: program_suffix=NONE
312: program_transform_name=s,x,x,
313: silent=
314: site=
315: srcdir=
316: verbose=
317: x_includes=NONE
318: x_libraries=NONE
319:
320: # Installation directory options.
321: # These are left unexpanded so users can "make install exec_prefix=/foo"
322: # and all the variables that are supposed to be based on exec_prefix
323: # by default will actually change.
324: # Use braces instead of parens because sh, perl, etc. also accept them.
325: bindir='${exec_prefix}/bin'
326: sbindir='${exec_prefix}/sbin'
327: libexecdir='${exec_prefix}/libexec'
328: datadir='${prefix}/share'
329: sysconfdir='${prefix}/etc'
330: sharedstatedir='${prefix}/com'
331: localstatedir='${prefix}/var'
332: libdir='${exec_prefix}/lib'
333: includedir='${prefix}/include'
334: oldincludedir='/usr/include'
335: infodir='${prefix}/info'
336: mandir='${prefix}/man'
337:
338: ac_prev=
339: for ac_option
340: do
341: # If the previous option needs an argument, assign it.
342: if test -n "$ac_prev"; then
343: eval "$ac_prev=\$ac_option"
344: ac_prev=
345: continue
346: fi
347:
348: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
349:
350: # Accept the important Cygnus configure options, so we can diagnose typos.
351:
352: case $ac_option in
353:
354: -bindir | --bindir | --bindi | --bind | --bin | --bi)
355: ac_prev=bindir ;;
356: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
357: bindir=$ac_optarg ;;
358:
359: -build | --build | --buil | --bui | --bu)
360: ac_prev=build_alias ;;
361: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
362: build_alias=$ac_optarg ;;
363:
364: -cache-file | --cache-file | --cache-fil | --cache-fi \
365: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366: ac_prev=cache_file ;;
367: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369: cache_file=$ac_optarg ;;
370:
371: --config-cache | -C)
372: cache_file=config.cache ;;
373:
374: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
375: ac_prev=datadir ;;
376: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
377: | --da=*)
378: datadir=$ac_optarg ;;
379:
380: -disable-* | --disable-*)
381: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382: # Reject names that are not valid shell variable names.
383: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385: { (exit 1); exit 1; }; }
386: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387: eval "enable_$ac_feature=no" ;;
388:
389: -enable-* | --enable-*)
390: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391: # Reject names that are not valid shell variable names.
392: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394: { (exit 1); exit 1; }; }
395: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
396: case $ac_option in
397: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
398: *) ac_optarg=yes ;;
399: esac
400: eval "enable_$ac_feature='$ac_optarg'" ;;
401:
402: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404: | --exec | --exe | --ex)
405: ac_prev=exec_prefix ;;
406: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408: | --exec=* | --exe=* | --ex=*)
409: exec_prefix=$ac_optarg ;;
410:
411: -gas | --gas | --ga | --g)
412: # Obsolete; use --with-gas.
413: with_gas=yes ;;
414:
415: -help | --help | --hel | --he | -h)
416: ac_init_help=long ;;
417: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418: ac_init_help=recursive ;;
419: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420: ac_init_help=short ;;
421:
422: -host | --host | --hos | --ho)
423: ac_prev=host_alias ;;
424: -host=* | --host=* | --hos=* | --ho=*)
425: host_alias=$ac_optarg ;;
426:
427: -includedir | --includedir | --includedi | --included | --include \
428: | --includ | --inclu | --incl | --inc)
429: ac_prev=includedir ;;
430: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431: | --includ=* | --inclu=* | --incl=* | --inc=*)
432: includedir=$ac_optarg ;;
433:
434: -infodir | --infodir | --infodi | --infod | --info | --inf)
435: ac_prev=infodir ;;
436: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437: infodir=$ac_optarg ;;
438:
439: -libdir | --libdir | --libdi | --libd)
440: ac_prev=libdir ;;
441: -libdir=* | --libdir=* | --libdi=* | --libd=*)
442: libdir=$ac_optarg ;;
443:
444: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445: | --libexe | --libex | --libe)
446: ac_prev=libexecdir ;;
447: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448: | --libexe=* | --libex=* | --libe=*)
449: libexecdir=$ac_optarg ;;
450:
451: -localstatedir | --localstatedir | --localstatedi | --localstated \
452: | --localstate | --localstat | --localsta | --localst \
453: | --locals | --local | --loca | --loc | --lo)
454: ac_prev=localstatedir ;;
455: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
457: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458: localstatedir=$ac_optarg ;;
459:
460: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
461: ac_prev=mandir ;;
462: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
463: mandir=$ac_optarg ;;
464:
465: -nfp | --nfp | --nf)
466: # Obsolete; use --without-fp.
467: with_fp=no ;;
468:
469: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
470: | --no-cr | --no-c | -n)
471: no_create=yes ;;
472:
473: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
475: no_recursion=yes ;;
476:
477: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479: | --oldin | --oldi | --old | --ol | --o)
480: ac_prev=oldincludedir ;;
481: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484: oldincludedir=$ac_optarg ;;
485:
486: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
487: ac_prev=prefix ;;
488: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
489: prefix=$ac_optarg ;;
490:
491: -program-prefix | --program-prefix | --program-prefi | --program-pref \
492: | --program-pre | --program-pr | --program-p)
493: ac_prev=program_prefix ;;
494: -program-prefix=* | --program-prefix=* | --program-prefi=* \
495: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496: program_prefix=$ac_optarg ;;
497:
498: -program-suffix | --program-suffix | --program-suffi | --program-suff \
499: | --program-suf | --program-su | --program-s)
500: ac_prev=program_suffix ;;
501: -program-suffix=* | --program-suffix=* | --program-suffi=* \
502: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503: program_suffix=$ac_optarg ;;
504:
505: -program-transform-name | --program-transform-name \
506: | --program-transform-nam | --program-transform-na \
507: | --program-transform-n | --program-transform- \
508: | --program-transform | --program-transfor \
509: | --program-transfo | --program-transf \
510: | --program-trans | --program-tran \
511: | --progr-tra | --program-tr | --program-t)
512: ac_prev=program_transform_name ;;
513: -program-transform-name=* | --program-transform-name=* \
514: | --program-transform-nam=* | --program-transform-na=* \
515: | --program-transform-n=* | --program-transform-=* \
516: | --program-transform=* | --program-transfor=* \
517: | --program-transfo=* | --program-transf=* \
518: | --program-trans=* | --program-tran=* \
519: | --progr-tra=* | --program-tr=* | --program-t=*)
520: program_transform_name=$ac_optarg ;;
521:
522: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
523: | -silent | --silent | --silen | --sile | --sil)
524: silent=yes ;;
525:
526: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
527: ac_prev=sbindir ;;
528: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
529: | --sbi=* | --sb=*)
530: sbindir=$ac_optarg ;;
531:
532: -sharedstatedir | --sharedstatedir | --sharedstatedi \
533: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534: | --sharedst | --shareds | --shared | --share | --shar \
535: | --sha | --sh)
536: ac_prev=sharedstatedir ;;
537: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
540: | --sha=* | --sh=*)
541: sharedstatedir=$ac_optarg ;;
542:
543: -site | --site | --sit)
544: ac_prev=site ;;
545: -site=* | --site=* | --sit=*)
546: site=$ac_optarg ;;
547:
548: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
549: ac_prev=srcdir ;;
550: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
551: srcdir=$ac_optarg ;;
552:
553: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554: | --syscon | --sysco | --sysc | --sys | --sy)
555: ac_prev=sysconfdir ;;
556: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558: sysconfdir=$ac_optarg ;;
559:
560: -target | --target | --targe | --targ | --tar | --ta | --t)
561: ac_prev=target_alias ;;
562: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563: target_alias=$ac_optarg ;;
564:
565: -v | -verbose | --verbose | --verbos | --verbo | --verb)
566: verbose=yes ;;
567:
568: -version | --version | --versio | --versi | --vers | -V)
569: ac_init_version=: ;;
570:
571: -with-* | --with-*)
572: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573: # Reject names that are not valid shell variable names.
574: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575: { echo "$as_me: error: invalid package name: $ac_package" >&2
576: { (exit 1); exit 1; }; }
577: ac_package=`echo $ac_package| sed 's/-/_/g'`
578: case $ac_option in
579: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580: *) ac_optarg=yes ;;
581: esac
582: eval "with_$ac_package='$ac_optarg'" ;;
583:
584: -without-* | --without-*)
585: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586: # Reject names that are not valid shell variable names.
587: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588: { echo "$as_me: error: invalid package name: $ac_package" >&2
589: { (exit 1); exit 1; }; }
590: ac_package=`echo $ac_package | sed 's/-/_/g'`
591: eval "with_$ac_package=no" ;;
592:
593: --x)
594: # Obsolete; use --with-x.
595: with_x=yes ;;
596:
597: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598: | --x-incl | --x-inc | --x-in | --x-i)
599: ac_prev=x_includes ;;
600: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602: x_includes=$ac_optarg ;;
603:
604: -x-libraries | --x-libraries | --x-librarie | --x-librari \
605: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606: ac_prev=x_libraries ;;
607: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609: x_libraries=$ac_optarg ;;
610:
611: -*) { echo "$as_me: error: unrecognized option: $ac_option
612: Try \`$0 --help' for more information." >&2
613: { (exit 1); exit 1; }; }
614: ;;
615:
616: *=*)
617: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618: # Reject names that are not valid shell variable names.
619: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621: { (exit 1); exit 1; }; }
622: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623: eval "$ac_envvar='$ac_optarg'"
624: export $ac_envvar ;;
625:
626: *)
627: # FIXME: should be removed in autoconf 3.0.
628: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
632: ;;
633:
634: esac
635: done
636:
637: if test -n "$ac_prev"; then
638: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639: { echo "$as_me: error: missing argument to $ac_option" >&2
640: { (exit 1); exit 1; }; }
641: fi
642:
643: # Be sure to have absolute paths.
644: for ac_var in exec_prefix prefix
645: do
646: eval ac_val=$`echo $ac_var`
647: case $ac_val in
648: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650: { (exit 1); exit 1; }; };;
651: esac
652: done
653:
654: # Be sure to have absolute paths.
655: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656: localstatedir libdir includedir oldincludedir infodir mandir
657: do
658: eval ac_val=$`echo $ac_var`
659: case $ac_val in
660: [\\/$]* | ?:[\\/]* ) ;;
661: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662: { (exit 1); exit 1; }; };;
663: esac
664: done
665:
666: # There might be people who depend on the old broken behavior: `$host'
667: # used to hold the argument of --host etc.
668: # FIXME: To remove some day.
669: build=$build_alias
670: host=$host_alias
671: target=$target_alias
672:
673: # FIXME: To remove some day.
674: if test "x$host_alias" != x; then
675: if test "x$build_alias" = x; then
676: cross_compiling=maybe
677: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678: If a cross compiler is detected then cross compile mode will be used." >&2
679: elif test "x$build_alias" != "x$host_alias"; then
680: cross_compiling=yes
681: fi
682: fi
683:
684: ac_tool_prefix=
685: test -n "$host_alias" && ac_tool_prefix=$host_alias-
686:
687: test "$silent" = yes && exec 6>/dev/null
688:
689:
690: # Find the source files, if location was not specified.
691: if test -z "$srcdir"; then
692: ac_srcdir_defaulted=yes
693: # Try the directory containing this script, then its parent.
694: ac_confdir=`(dirname "$0") 2>/dev/null ||
695: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696: X"$0" : 'X\(//\)[^/]' \| \
697: X"$0" : 'X\(//\)$' \| \
698: X"$0" : 'X\(/\)' \| \
699: . : '\(.\)' 2>/dev/null ||
700: echo X"$0" |
701: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703: /^X\(\/\/\)$/{ s//\1/; q; }
704: /^X\(\/\).*/{ s//\1/; q; }
705: s/.*/./; q'`
706: srcdir=$ac_confdir
707: if test ! -r $srcdir/$ac_unique_file; then
708: srcdir=..
709: fi
710: else
711: ac_srcdir_defaulted=no
712: fi
713: if test ! -r $srcdir/$ac_unique_file; then
714: if test "$ac_srcdir_defaulted" = yes; then
715: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716: { (exit 1); exit 1; }; }
717: else
718: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719: { (exit 1); exit 1; }; }
720: fi
721: fi
722: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723: ac_env_build_alias_set=${build_alias+set}
724: ac_env_build_alias_value=$build_alias
725: ac_cv_env_build_alias_set=${build_alias+set}
726: ac_cv_env_build_alias_value=$build_alias
727: ac_env_host_alias_set=${host_alias+set}
728: ac_env_host_alias_value=$host_alias
729: ac_cv_env_host_alias_set=${host_alias+set}
730: ac_cv_env_host_alias_value=$host_alias
731: ac_env_target_alias_set=${target_alias+set}
732: ac_env_target_alias_value=$target_alias
733: ac_cv_env_target_alias_set=${target_alias+set}
734: ac_cv_env_target_alias_value=$target_alias
735: ac_env_CC_set=${CC+set}
736: ac_env_CC_value=$CC
737: ac_cv_env_CC_set=${CC+set}
738: ac_cv_env_CC_value=$CC
739: ac_env_CFLAGS_set=${CFLAGS+set}
740: ac_env_CFLAGS_value=$CFLAGS
741: ac_cv_env_CFLAGS_set=${CFLAGS+set}
742: ac_cv_env_CFLAGS_value=$CFLAGS
743: ac_env_LDFLAGS_set=${LDFLAGS+set}
744: ac_env_LDFLAGS_value=$LDFLAGS
745: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746: ac_cv_env_LDFLAGS_value=$LDFLAGS
747: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748: ac_env_CPPFLAGS_value=$CPPFLAGS
749: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751: ac_env_CPP_set=${CPP+set}
752: ac_env_CPP_value=$CPP
753: ac_cv_env_CPP_set=${CPP+set}
754: ac_cv_env_CPP_value=$CPP
755:
756: #
757: # Report the --help message.
758: #
759: if test "$ac_init_help" = "long"; then
760: # Omit some internal or obsolete options to make the list less imposing.
761: # This message is too long to be a string in the A/UX 3.1 sh.
762: cat <<_ACEOF
763: \`configure' configures this package to adapt to many kinds of systems.
764:
765: Usage: $0 [OPTION]... [VAR=VALUE]...
766:
767: To assign environment variables (e.g., CC, CFLAGS...), specify them as
768: VAR=VALUE. See below for descriptions of some of the useful variables.
769:
770: Defaults for the options are specified in brackets.
771:
772: Configuration:
773: -h, --help display this help and exit
774: --help=short display options specific to this package
775: --help=recursive display the short help of all the included packages
776: -V, --version display version information and exit
777: -q, --quiet, --silent do not print \`checking...' messages
778: --cache-file=FILE cache test results in FILE [disabled]
779: -C, --config-cache alias for \`--cache-file=config.cache'
780: -n, --no-create do not create output files
781: --srcdir=DIR find the sources in DIR [configure dir or \`..']
782:
783: _ACEOF
784:
785: cat <<_ACEOF
786: Installation directories:
787: --prefix=PREFIX install architecture-independent files in PREFIX
788: [$ac_default_prefix]
789: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
790: [PREFIX]
791:
792: By default, \`make install' will install all the files in
793: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795: for instance \`--prefix=\$HOME'.
796:
797: For better control, use the options below.
798:
799: Fine tuning of the installation directories:
800: --bindir=DIR user executables [EPREFIX/bin]
801: --sbindir=DIR system admin executables [EPREFIX/sbin]
802: --libexecdir=DIR program executables [EPREFIX/libexec]
803: --datadir=DIR read-only architecture-independent data [PREFIX/share]
804: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807: --libdir=DIR object code libraries [EPREFIX/lib]
808: --includedir=DIR C header files [PREFIX/include]
809: --oldincludedir=DIR C header files for non-gcc [/usr/include]
810: --infodir=DIR info documentation [PREFIX/info]
811: --mandir=DIR man documentation [PREFIX/man]
812: _ACEOF
813:
814: cat <<\_ACEOF
815:
816: Program names:
817: --program-prefix=PREFIX prepend PREFIX to installed program names
818: --program-suffix=SUFFIX append SUFFIX to installed program names
819: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
820:
821: X features:
822: --x-includes=DIR X include files are in DIR
823: --x-libraries=DIR X library files are in DIR
824:
825: System types:
826: --build=BUILD configure for building on BUILD [guessed]
827: --host=HOST cross-compile to build programs to run on HOST [BUILD]
828: --target=TARGET configure for building compilers for TARGET [HOST]
829: _ACEOF
830: fi
831:
832: if test -n "$ac_init_help"; then
833:
834: cat <<\_ACEOF
835:
836: Optional Features:
837: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
838: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
839: --disable-dependency-tracking Speeds up one-time builds
840: --enable-dependency-tracking Do not reject slow dependency extractors
1.22 ohara 841: --enable-maintainer-mode enable make rules and dependencies not useful
842: (and sometimes confusing) to the casual installer
1.14 noro 843: --enable-shared enable linking shared libraries. [no]
1.23 ohara 844: --enable-gc-zeropage enable to avoid the kernel zeropage bug. [no]
1.14 noro 845: --enable-plot enable plot feature. [no]
846: --enable-interval enable interval feature. [no]
847: --enable-fft-float enable FFT-FLOAT feature. [no]
848:
849: Optional Packages:
850: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
851: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
852: --with-x use the X Window System
853: --with-pari use the PARI library. [no]
854:
855: Some influential environment variables:
856: CC C compiler command
857: CFLAGS C compiler flags
858: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
859: nonstandard directory <lib dir>
860: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
861: headers in a nonstandard directory <include dir>
862: CPP C preprocessor
863:
864: Use these variables to override the choices made by `configure' or to help
865: it to find libraries and programs with nonstandard names/locations.
866:
867: _ACEOF
868: fi
869:
870: if test "$ac_init_help" = "recursive"; then
871: # If there are subdirs, report their specific --help.
872: ac_popdir=`pwd`
873: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874: test -d $ac_dir || continue
875: ac_builddir=.
876:
877: if test "$ac_dir" != .; then
878: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879: # A "../" for each directory in $ac_dir_suffix.
880: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
881: else
882: ac_dir_suffix= ac_top_builddir=
883: fi
884:
885: case $srcdir in
886: .) # No --srcdir option. We are building in place.
887: ac_srcdir=.
888: if test -z "$ac_top_builddir"; then
889: ac_top_srcdir=.
890: else
891: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
892: fi ;;
893: [\\/]* | ?:[\\/]* ) # Absolute path.
894: ac_srcdir=$srcdir$ac_dir_suffix;
895: ac_top_srcdir=$srcdir ;;
896: *) # Relative path.
897: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898: ac_top_srcdir=$ac_top_builddir$srcdir ;;
899: esac
900: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
901: # absolute.
902: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1.17 ohara 903: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1.14 noro 904: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
905: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
906:
907: cd $ac_dir
908: # Check for guested configure; otherwise get Cygnus style configure.
909: if test -f $ac_srcdir/configure.gnu; then
910: echo
911: $SHELL $ac_srcdir/configure.gnu --help=recursive
912: elif test -f $ac_srcdir/configure; then
913: echo
914: $SHELL $ac_srcdir/configure --help=recursive
915: elif test -f $ac_srcdir/configure.ac ||
916: test -f $ac_srcdir/configure.in; then
917: echo
918: $ac_configure --help
919: else
920: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
921: fi
922: cd $ac_popdir
923: done
924: fi
925:
926: test -n "$ac_init_help" && exit 0
927: if $ac_init_version; then
928: cat <<\_ACEOF
929:
930: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
931: Free Software Foundation, Inc.
932: This configure script is free software; the Free Software Foundation
933: gives unlimited permission to copy, distribute and modify it.
934: _ACEOF
935: exit 0
936: fi
937: exec 5>config.log
938: cat >&5 <<_ACEOF
939: This file contains any messages produced by compilers while
940: running configure, to aid debugging if configure makes a mistake.
941:
942: It was created by $as_me, which was
1.17 ohara 943: generated by GNU Autoconf 2.53. Invocation command line was
1.14 noro 944:
945: $ $0 $@
946:
947: _ACEOF
948: {
949: cat <<_ASUNAME
950: ## --------- ##
951: ## Platform. ##
952: ## --------- ##
953:
954: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
955: uname -m = `(uname -m) 2>/dev/null || echo unknown`
956: uname -r = `(uname -r) 2>/dev/null || echo unknown`
957: uname -s = `(uname -s) 2>/dev/null || echo unknown`
958: uname -v = `(uname -v) 2>/dev/null || echo unknown`
959:
960: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
961: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
962:
963: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
964: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
965: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
966: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
967: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
968: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
969: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
970:
971: _ASUNAME
972:
973: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974: for as_dir in $PATH
975: do
976: IFS=$as_save_IFS
977: test -z "$as_dir" && as_dir=.
978: echo "PATH: $as_dir"
979: done
980:
981: } >&5
982:
983: cat >&5 <<_ACEOF
984:
985:
986: ## ----------- ##
987: ## Core tests. ##
988: ## ----------- ##
989:
990: _ACEOF
991:
992:
993: # Keep a trace of the command line.
994: # Strip out --no-create and --no-recursion so they do not pile up.
995: # Also quote any args containing shell meta-characters.
996: ac_configure_args=
997: ac_sep=
1.17 ohara 998: for ac_arg
1.14 noro 999: do
1.17 ohara 1000: case $ac_arg in
1001: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002: | --no-cr | --no-c | -n ) continue ;;
1003: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005: continue ;;
1006: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1007: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1008: esac
1009: case " $ac_configure_args " in
1010: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1011: *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1012: ac_sep=" " ;;
1013: esac
1014: # Get rid of the leading space.
1.14 noro 1015: done
1016:
1017: # When interrupted or exit'd, cleanup temporary files, and complete
1018: # config.log. We remove comments because anyway the quotes in there
1019: # would cause problems or look ugly.
1020: # WARNING: Be sure not to use single quotes in there, as some shells,
1021: # such as our DU 5.0 friend, will then `close' the trap.
1022: trap 'exit_status=$?
1023: # Save into config.log some information that might help in debugging.
1024: {
1025: echo
1026: cat <<\_ASBOX
1027: ## ---------------- ##
1028: ## Cache variables. ##
1029: ## ---------------- ##
1030: _ASBOX
1031: echo
1032: # The following way of writing the cache mishandles newlines in values,
1033: {
1034: (set) 2>&1 |
1035: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1036: *ac_space=\ *)
1037: sed -n \
1038: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1039: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1040: ;;
1041: *)
1042: sed -n \
1043: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1044: ;;
1045: esac;
1046: }
1047: echo
1048: if test -s confdefs.h; then
1049: cat <<\_ASBOX
1050: ## ----------- ##
1051: ## confdefs.h. ##
1052: ## ----------- ##
1053: _ASBOX
1054: echo
1.17 ohara 1055: sed "/^$/d" confdefs.h
1.14 noro 1056: echo
1057: fi
1058: test "$ac_signal" != 0 &&
1059: echo "$as_me: caught signal $ac_signal"
1060: echo "$as_me: exit $exit_status"
1061: } >&5
1062: rm -f core core.* *.core &&
1063: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1064: exit $exit_status
1065: ' 0
1066: for ac_signal in 1 2 13 15; do
1067: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1068: done
1069: ac_signal=0
1070:
1071: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1072: rm -rf conftest* confdefs.h
1073: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1074: echo >confdefs.h
1075:
1076: # Predefined preprocessor variables.
1077:
1078: cat >>confdefs.h <<_ACEOF
1079: #define PACKAGE_NAME "$PACKAGE_NAME"
1080: _ACEOF
1081:
1082:
1083: cat >>confdefs.h <<_ACEOF
1084: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1085: _ACEOF
1086:
1087:
1088: cat >>confdefs.h <<_ACEOF
1089: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1090: _ACEOF
1091:
1092:
1093: cat >>confdefs.h <<_ACEOF
1094: #define PACKAGE_STRING "$PACKAGE_STRING"
1095: _ACEOF
1096:
1097:
1098: cat >>confdefs.h <<_ACEOF
1099: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1100: _ACEOF
1101:
1102:
1103: # Let the site file select an alternate cache file if it wants to.
1104: # Prefer explicitly selected file to automatically selected ones.
1105: if test -z "$CONFIG_SITE"; then
1106: if test "x$prefix" != xNONE; then
1107: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1108: else
1109: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1110: fi
1111: fi
1112: for ac_site_file in $CONFIG_SITE; do
1113: if test -r "$ac_site_file"; then
1114: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1115: echo "$as_me: loading site script $ac_site_file" >&6;}
1116: sed 's/^/| /' "$ac_site_file" >&5
1117: . "$ac_site_file"
1118: fi
1119: done
1120:
1121: if test -r "$cache_file"; then
1122: # Some versions of bash will fail to source /dev/null (special
1123: # files actually), so we avoid doing that.
1124: if test -f "$cache_file"; then
1125: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1126: echo "$as_me: loading cache $cache_file" >&6;}
1127: case $cache_file in
1128: [\\/]* | ?:[\\/]* ) . $cache_file;;
1129: *) . ./$cache_file;;
1130: esac
1131: fi
1132: else
1133: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1134: echo "$as_me: creating cache $cache_file" >&6;}
1135: >$cache_file
1136: fi
1137:
1138: # Check that the precious variables saved in the cache have kept the same
1139: # value.
1140: ac_cache_corrupted=false
1141: for ac_var in `(set) 2>&1 |
1142: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1143: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1144: eval ac_new_set=\$ac_env_${ac_var}_set
1145: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1146: eval ac_new_val="\$ac_env_${ac_var}_value"
1147: case $ac_old_set,$ac_new_set in
1148: set,)
1149: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1150: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1151: ac_cache_corrupted=: ;;
1152: ,set)
1153: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1154: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1155: ac_cache_corrupted=: ;;
1156: ,);;
1157: *)
1158: if test "x$ac_old_val" != "x$ac_new_val"; then
1159: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1160: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1161: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1162: echo "$as_me: former value: $ac_old_val" >&2;}
1163: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1164: echo "$as_me: current value: $ac_new_val" >&2;}
1165: ac_cache_corrupted=:
1166: fi;;
1167: esac
1168: # Pass precious variables to config.status.
1169: if test "$ac_new_set" = set; then
1170: case $ac_new_val in
1171: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1172: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1173: *) ac_arg=$ac_var=$ac_new_val ;;
1174: esac
1175: case " $ac_configure_args " in
1176: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1177: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1178: esac
1179: fi
1180: done
1181: if $ac_cache_corrupted; then
1182: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1183: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1184: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1185: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1186: { (exit 1); exit 1; }; }
1187: fi
1188:
1189: ac_ext=c
1190: ac_cpp='$CPP $CPPFLAGS'
1191: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1192: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1193: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1194:
1195:
1196:
1197:
1198:
1199:
1200:
1201:
1202:
1203:
1204:
1205:
1206:
1207:
1208:
1209:
1210:
1211:
1212:
1213: ac_aux_dir=
1214: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1215: if test -f $ac_dir/install-sh; then
1216: ac_aux_dir=$ac_dir
1217: ac_install_sh="$ac_aux_dir/install-sh -c"
1218: break
1219: elif test -f $ac_dir/install.sh; then
1220: ac_aux_dir=$ac_dir
1221: ac_install_sh="$ac_aux_dir/install.sh -c"
1222: break
1223: elif test -f $ac_dir/shtool; then
1224: ac_aux_dir=$ac_dir
1225: ac_install_sh="$ac_aux_dir/shtool install -c"
1226: break
1227: fi
1228: done
1229: if test -z "$ac_aux_dir"; then
1230: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1231: echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1232: { (exit 1); exit 1; }; }
1233: fi
1234: ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1235: ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1236: ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1237:
1238: # Find a good install program. We prefer a C program (faster),
1239: # so one script is as good as another. But avoid the broken or
1240: # incompatible versions:
1241: # SysV /etc/install, /usr/sbin/install
1242: # SunOS /usr/etc/install
1243: # IRIX /sbin/install
1244: # AIX /bin/install
1245: # AmigaOS /C/install, which installs bootblocks on floppy discs
1246: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1247: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1248: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1249: # ./install, which can be erroneously created by make from ./install.sh.
1250: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1251: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1252: if test -z "$INSTALL"; then
1253: if test "${ac_cv_path_install+set}" = set; then
1254: echo $ECHO_N "(cached) $ECHO_C" >&6
1255: else
1256: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1257: for as_dir in $PATH
1258: do
1259: IFS=$as_save_IFS
1260: test -z "$as_dir" && as_dir=.
1261: # Account for people who put trailing slashes in PATH elements.
1262: case $as_dir/ in
1263: ./ | .// | /cC/* | \
1264: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1265: /usr/ucb/* ) ;;
1266: *)
1267: # OSF1 and SCO ODT 3.0 have their own names for install.
1268: # Don't use installbsd from OSF since it installs stuff as root
1269: # by default.
1270: for ac_prog in ginstall scoinst install; do
1271: for ac_exec_ext in '' $ac_executable_extensions; do
1272: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1273: if test $ac_prog = install &&
1274: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1275: # AIX install. It has an incompatible calling convention.
1276: :
1277: elif test $ac_prog = install &&
1278: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1279: # program-specific install script used by HP pwplus--don't use.
1280: :
1281: else
1282: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1283: break 3
1284: fi
1285: fi
1286: done
1287: done
1288: ;;
1289: esac
1290: done
1291:
1292:
1293: fi
1294: if test "${ac_cv_path_install+set}" = set; then
1295: INSTALL=$ac_cv_path_install
1296: else
1297: # As a last resort, use the slow shell script. We don't cache a
1298: # path for INSTALL within a source directory, because that will
1299: # break other packages using the cache if that directory is
1300: # removed, or if the path is relative.
1301: INSTALL=$ac_install_sh
1302: fi
1303: fi
1304: echo "$as_me:$LINENO: result: $INSTALL" >&5
1305: echo "${ECHO_T}$INSTALL" >&6
1306:
1307: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1308: # It thinks the first close brace ends the variable substitution.
1309: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1310:
1311: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1312:
1313: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1314:
1315: echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1316: echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1317: # Just in case
1318: sleep 1
1319: echo timestamp > conftest.file
1320: # Do `set' in a subshell so we don't clobber the current shell's
1321: # arguments. Must try -L first in case configure is actually a
1322: # symlink; some systems play weird games with the mod time of symlinks
1323: # (eg FreeBSD returns the mod time of the symlink's containing
1324: # directory).
1325: if (
1326: set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1327: if test "$*" = "X"; then
1328: # -L didn't work.
1329: set X `ls -t $srcdir/configure conftest.file`
1330: fi
1331: rm -f conftest.file
1332: if test "$*" != "X $srcdir/configure conftest.file" \
1333: && test "$*" != "X conftest.file $srcdir/configure"; then
1334:
1335: # If neither matched, then we have a broken ls. This can happen
1336: # if, for instance, CONFIG_SHELL is bash and it inherits a
1337: # broken ls alias from the environment. This has actually
1338: # happened. Such a system could not be considered "sane".
1339: { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1340: alias in your environment" >&5
1341: echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1342: alias in your environment" >&2;}
1343: { (exit 1); exit 1; }; }
1344: fi
1345:
1346: test "$2" = conftest.file
1347: )
1348: then
1349: # Ok.
1350: :
1351: else
1352: { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1353: Check your system clock" >&5
1354: echo "$as_me: error: newly created file is older than distributed files!
1355: Check your system clock" >&2;}
1356: { (exit 1); exit 1; }; }
1357: fi
1358: echo "$as_me:$LINENO: result: yes" >&5
1359: echo "${ECHO_T}yes" >&6
1360: test "$program_prefix" != NONE &&
1361: program_transform_name="s,^,$program_prefix,;$program_transform_name"
1362: # Use a double $ so make ignores it.
1363: test "$program_suffix" != NONE &&
1364: program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1365: # Double any \ or $. echo might interpret backslashes.
1366: # By default was `s,x,x', remove it if useless.
1367: cat <<\_ACEOF >conftest.sed
1368: s/[\\$]/&&/g;s/;s,x,x,$//
1369: _ACEOF
1370: program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1371: rm conftest.sed
1372:
1373:
1374: # expand $ac_aux_dir to an absolute path
1375: am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1376:
1377: test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1378: # Use eval to expand $SHELL
1379: if eval "$MISSING --run true"; then
1380: am_missing_run="$MISSING --run "
1381: else
1382: am_missing_run=
1383: am_backtick='`'
1384: { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1385: echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1386: fi
1387:
1388: for ac_prog in gawk mawk nawk awk
1389: do
1390: # Extract the first word of "$ac_prog", so it can be a program name with args.
1391: set dummy $ac_prog; ac_word=$2
1392: echo "$as_me:$LINENO: checking for $ac_word" >&5
1393: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1394: if test "${ac_cv_prog_AWK+set}" = set; then
1395: echo $ECHO_N "(cached) $ECHO_C" >&6
1396: else
1397: if test -n "$AWK"; then
1398: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1399: else
1400: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1401: for as_dir in $PATH
1402: do
1403: IFS=$as_save_IFS
1404: test -z "$as_dir" && as_dir=.
1405: for ac_exec_ext in '' $ac_executable_extensions; do
1406: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1407: ac_cv_prog_AWK="$ac_prog"
1408: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1409: break 2
1410: fi
1411: done
1412: done
1413:
1414: fi
1415: fi
1416: AWK=$ac_cv_prog_AWK
1417: if test -n "$AWK"; then
1418: echo "$as_me:$LINENO: result: $AWK" >&5
1419: echo "${ECHO_T}$AWK" >&6
1420: else
1421: echo "$as_me:$LINENO: result: no" >&5
1422: echo "${ECHO_T}no" >&6
1423: fi
1424:
1425: test -n "$AWK" && break
1426: done
1427:
1.17 ohara 1428: echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1429: echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1.14 noro 1430: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1431: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1432: echo $ECHO_N "(cached) $ECHO_C" >&6
1433: else
1434: cat >conftest.make <<\_ACEOF
1435: all:
1.17 ohara 1436: @echo 'ac_maketemp="${MAKE}"'
1.14 noro 1437: _ACEOF
1438: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1439: eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1440: if test -n "$ac_maketemp"; then
1441: eval ac_cv_prog_make_${ac_make}_set=yes
1442: else
1443: eval ac_cv_prog_make_${ac_make}_set=no
1444: fi
1445: rm -f conftest.make
1446: fi
1447: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1448: echo "$as_me:$LINENO: result: yes" >&5
1449: echo "${ECHO_T}yes" >&6
1450: SET_MAKE=
1451: else
1452: echo "$as_me:$LINENO: result: no" >&5
1453: echo "${ECHO_T}no" >&6
1454: SET_MAKE="MAKE=${MAKE-make}"
1455: fi
1456:
1457: # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1458: if test "${enable_dependency_tracking+set}" = set; then
1459: enableval="$enable_dependency_tracking"
1460:
1461: fi;
1462: if test "x$enable_dependency_tracking" != xno; then
1463: am_depcomp="$ac_aux_dir/depcomp"
1464: AMDEPBACKSLASH='\'
1465: fi
1466:
1467:
1468: if test "x$enable_dependency_tracking" != xno; then
1469: AMDEP_TRUE=
1470: AMDEP_FALSE='#'
1471: else
1472: AMDEP_TRUE='#'
1473: AMDEP_FALSE=
1474: fi
1475:
1476:
1477:
1478:
1479: rm -f .deps 2>/dev/null
1480: mkdir .deps 2>/dev/null
1481: if test -d .deps; then
1482: DEPDIR=.deps
1483: else
1484: # MS-DOS does not allow filenames that begin with a dot.
1485: DEPDIR=_deps
1486: fi
1487: rmdir .deps 2>/dev/null
1488:
1489:
1490: # test to see if srcdir already configured
1491: if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1492: test -f $srcdir/config.status; then
1493: { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1494: echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1495: { (exit 1); exit 1; }; }
1496: fi
1497:
1498: # Define the identity of the package.
1499: PACKAGE=asir
1.16 noro 1500: VERSION=20030307
1.14 noro 1501:
1502: cat >>confdefs.h <<_ACEOF
1503: #define PACKAGE "$PACKAGE"
1504: _ACEOF
1505:
1506:
1507: cat >>confdefs.h <<_ACEOF
1508: #define VERSION "$VERSION"
1509: _ACEOF
1510:
1511:
1512: # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1513: # the ones we care about.
1514:
1515: # Autoconf 2.50 always computes EXEEXT. However we need to be
1516: # compatible with 2.13, for now. So we always define EXEEXT, but we
1517: # don't compute it.
1518:
1519: # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1520: # requests that it be used. This is a bit dumb.
1521: : ${OBJEXT=o}
1522:
1523:
1524: # Some tools Automake needs.
1525:
1526: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1527:
1528:
1529: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1530:
1531:
1532: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1533:
1534:
1535: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1536:
1537:
1538: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1539:
1540:
1541: AMTAR=${AMTAR-"${am_missing_run}tar"}
1542:
1543: install_sh=${install_sh-"$am_aux_dir/install-sh"}
1544:
1545: INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1546:
1547: # We need awk for the "check" target. The system "awk" is bad on
1548: # some platforms.
1549:
1.22 ohara 1550: echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1551: echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1552: # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1553: if test "${enable_maintainer_mode+set}" = set; then
1554: enableval="$enable_maintainer_mode"
1555: USE_MAINTAINER_MODE=$enableval
1556: else
1557: USE_MAINTAINER_MODE=no
1558: fi;
1559: echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1560: echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1561:
1562:
1563: if test $USE_MAINTAINER_MODE = yes; then
1564: MAINTAINER_MODE_TRUE=
1565: MAINTAINER_MODE_FALSE='#'
1566: else
1567: MAINTAINER_MODE_TRUE='#'
1568: MAINTAINER_MODE_FALSE=
1569: fi
1570: MAINT=$MAINTAINER_MODE_TRUE
1571:
1572:
1573:
1.14 noro 1574: # Make sure we can run config.sub.
1575: $ac_config_sub sun4 >/dev/null 2>&1 ||
1576: { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1577: echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1578: { (exit 1); exit 1; }; }
1579:
1580: echo "$as_me:$LINENO: checking build system type" >&5
1581: echo $ECHO_N "checking build system type... $ECHO_C" >&6
1582: if test "${ac_cv_build+set}" = set; then
1583: echo $ECHO_N "(cached) $ECHO_C" >&6
1584: else
1585: ac_cv_build_alias=$build_alias
1586: test -z "$ac_cv_build_alias" &&
1587: ac_cv_build_alias=`$ac_config_guess`
1588: test -z "$ac_cv_build_alias" &&
1589: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1590: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1591: { (exit 1); exit 1; }; }
1592: ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1593: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1594: echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1595: { (exit 1); exit 1; }; }
1596:
1597: fi
1598: echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1599: echo "${ECHO_T}$ac_cv_build" >&6
1600: build=$ac_cv_build
1601: build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602: build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603: build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604:
1605:
1606: echo "$as_me:$LINENO: checking host system type" >&5
1607: echo $ECHO_N "checking host system type... $ECHO_C" >&6
1608: if test "${ac_cv_host+set}" = set; then
1609: echo $ECHO_N "(cached) $ECHO_C" >&6
1610: else
1611: ac_cv_host_alias=$host_alias
1612: test -z "$ac_cv_host_alias" &&
1613: ac_cv_host_alias=$ac_cv_build_alias
1614: ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1615: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1616: echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1617: { (exit 1); exit 1; }; }
1618:
1619: fi
1620: echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1621: echo "${ECHO_T}$ac_cv_host" >&6
1622: host=$ac_cv_host
1623: host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1624: host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1625: host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1626:
1627:
1628: echo "$as_me:$LINENO: checking target system type" >&5
1629: echo $ECHO_N "checking target system type... $ECHO_C" >&6
1630: if test "${ac_cv_target+set}" = set; then
1631: echo $ECHO_N "(cached) $ECHO_C" >&6
1632: else
1633: ac_cv_target_alias=$target_alias
1634: test "x$ac_cv_target_alias" = "x" &&
1635: ac_cv_target_alias=$ac_cv_host_alias
1636: ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1637: { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1638: echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1639: { (exit 1); exit 1; }; }
1640:
1641: fi
1642: echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1643: echo "${ECHO_T}$ac_cv_target" >&6
1644: target=$ac_cv_target
1645: target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1646: target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1647: target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648:
1649:
1650: # The aliases save the names the user supplied, while $host etc.
1651: # will get canonicalized.
1652: test -n "$target_alias" &&
1653: test "$program_prefix$program_suffix$program_transform_name" = \
1654: NONENONEs,x,x, &&
1655: program_prefix=${target_alias}-
1656:
1657: ac_ext=c
1658: ac_cpp='$CPP $CPPFLAGS'
1659: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1660: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1661: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1662: if test -n "$ac_tool_prefix"; then
1663: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1664: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1665: echo "$as_me:$LINENO: checking for $ac_word" >&5
1666: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667: if test "${ac_cv_prog_CC+set}" = set; then
1668: echo $ECHO_N "(cached) $ECHO_C" >&6
1669: else
1670: if test -n "$CC"; then
1671: ac_cv_prog_CC="$CC" # Let the user override the test.
1672: else
1673: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674: for as_dir in $PATH
1675: do
1676: IFS=$as_save_IFS
1677: test -z "$as_dir" && as_dir=.
1678: for ac_exec_ext in '' $ac_executable_extensions; do
1679: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1681: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682: break 2
1683: fi
1684: done
1685: done
1686:
1687: fi
1688: fi
1689: CC=$ac_cv_prog_CC
1690: if test -n "$CC"; then
1691: echo "$as_me:$LINENO: result: $CC" >&5
1692: echo "${ECHO_T}$CC" >&6
1693: else
1694: echo "$as_me:$LINENO: result: no" >&5
1695: echo "${ECHO_T}no" >&6
1696: fi
1697:
1698: fi
1699: if test -z "$ac_cv_prog_CC"; then
1700: ac_ct_CC=$CC
1701: # Extract the first word of "gcc", so it can be a program name with args.
1702: set dummy gcc; ac_word=$2
1703: echo "$as_me:$LINENO: checking for $ac_word" >&5
1704: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1706: echo $ECHO_N "(cached) $ECHO_C" >&6
1707: else
1708: if test -n "$ac_ct_CC"; then
1709: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1710: else
1711: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712: for as_dir in $PATH
1713: do
1714: IFS=$as_save_IFS
1715: test -z "$as_dir" && as_dir=.
1716: for ac_exec_ext in '' $ac_executable_extensions; do
1717: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718: ac_cv_prog_ac_ct_CC="gcc"
1719: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720: break 2
1721: fi
1722: done
1723: done
1724:
1725: fi
1726: fi
1727: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1728: if test -n "$ac_ct_CC"; then
1729: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1730: echo "${ECHO_T}$ac_ct_CC" >&6
1731: else
1732: echo "$as_me:$LINENO: result: no" >&5
1733: echo "${ECHO_T}no" >&6
1734: fi
1735:
1736: CC=$ac_ct_CC
1737: else
1738: CC="$ac_cv_prog_CC"
1739: fi
1740:
1741: if test -z "$CC"; then
1742: if test -n "$ac_tool_prefix"; then
1743: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1744: set dummy ${ac_tool_prefix}cc; ac_word=$2
1745: echo "$as_me:$LINENO: checking for $ac_word" >&5
1746: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747: if test "${ac_cv_prog_CC+set}" = set; then
1748: echo $ECHO_N "(cached) $ECHO_C" >&6
1749: else
1750: if test -n "$CC"; then
1751: ac_cv_prog_CC="$CC" # Let the user override the test.
1752: else
1753: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754: for as_dir in $PATH
1755: do
1756: IFS=$as_save_IFS
1757: test -z "$as_dir" && as_dir=.
1758: for ac_exec_ext in '' $ac_executable_extensions; do
1759: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760: ac_cv_prog_CC="${ac_tool_prefix}cc"
1761: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762: break 2
1763: fi
1764: done
1765: done
1766:
1767: fi
1768: fi
1769: CC=$ac_cv_prog_CC
1770: if test -n "$CC"; then
1771: echo "$as_me:$LINENO: result: $CC" >&5
1772: echo "${ECHO_T}$CC" >&6
1773: else
1774: echo "$as_me:$LINENO: result: no" >&5
1775: echo "${ECHO_T}no" >&6
1776: fi
1777:
1778: fi
1779: if test -z "$ac_cv_prog_CC"; then
1780: ac_ct_CC=$CC
1781: # Extract the first word of "cc", so it can be a program name with args.
1782: set dummy cc; ac_word=$2
1783: echo "$as_me:$LINENO: checking for $ac_word" >&5
1784: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1785: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1786: echo $ECHO_N "(cached) $ECHO_C" >&6
1787: else
1788: if test -n "$ac_ct_CC"; then
1789: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1790: else
1791: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792: for as_dir in $PATH
1793: do
1794: IFS=$as_save_IFS
1795: test -z "$as_dir" && as_dir=.
1796: for ac_exec_ext in '' $ac_executable_extensions; do
1797: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1798: ac_cv_prog_ac_ct_CC="cc"
1799: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800: break 2
1801: fi
1802: done
1803: done
1804:
1805: fi
1806: fi
1807: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1808: if test -n "$ac_ct_CC"; then
1809: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1810: echo "${ECHO_T}$ac_ct_CC" >&6
1811: else
1812: echo "$as_me:$LINENO: result: no" >&5
1813: echo "${ECHO_T}no" >&6
1814: fi
1815:
1816: CC=$ac_ct_CC
1817: else
1818: CC="$ac_cv_prog_CC"
1819: fi
1820:
1821: fi
1822: if test -z "$CC"; then
1823: # Extract the first word of "cc", so it can be a program name with args.
1824: set dummy cc; ac_word=$2
1825: echo "$as_me:$LINENO: checking for $ac_word" >&5
1826: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1827: if test "${ac_cv_prog_CC+set}" = set; then
1828: echo $ECHO_N "(cached) $ECHO_C" >&6
1829: else
1830: if test -n "$CC"; then
1831: ac_cv_prog_CC="$CC" # Let the user override the test.
1832: else
1833: ac_prog_rejected=no
1834: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835: for as_dir in $PATH
1836: do
1837: IFS=$as_save_IFS
1838: test -z "$as_dir" && as_dir=.
1839: for ac_exec_ext in '' $ac_executable_extensions; do
1840: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1841: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1842: ac_prog_rejected=yes
1843: continue
1844: fi
1845: ac_cv_prog_CC="cc"
1846: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847: break 2
1848: fi
1849: done
1850: done
1851:
1852: if test $ac_prog_rejected = yes; then
1853: # We found a bogon in the path, so make sure we never use it.
1854: set dummy $ac_cv_prog_CC
1855: shift
1856: if test $# != 0; then
1857: # We chose a different compiler from the bogus one.
1858: # However, it has the same basename, so the bogon will be chosen
1859: # first if we set CC to just the basename; use the full file name.
1860: shift
1.17 ohara 1861: set dummy "$as_dir/$ac_word" ${1+"$@"}
1862: shift
1863: ac_cv_prog_CC="$@"
1.14 noro 1864: fi
1865: fi
1866: fi
1867: fi
1868: CC=$ac_cv_prog_CC
1869: if test -n "$CC"; then
1870: echo "$as_me:$LINENO: result: $CC" >&5
1871: echo "${ECHO_T}$CC" >&6
1872: else
1873: echo "$as_me:$LINENO: result: no" >&5
1874: echo "${ECHO_T}no" >&6
1875: fi
1876:
1877: fi
1878: if test -z "$CC"; then
1879: if test -n "$ac_tool_prefix"; then
1880: for ac_prog in cl
1881: do
1882: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1883: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1884: echo "$as_me:$LINENO: checking for $ac_word" >&5
1885: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886: if test "${ac_cv_prog_CC+set}" = set; then
1887: echo $ECHO_N "(cached) $ECHO_C" >&6
1888: else
1889: if test -n "$CC"; then
1890: ac_cv_prog_CC="$CC" # Let the user override the test.
1891: else
1892: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1893: for as_dir in $PATH
1894: do
1895: IFS=$as_save_IFS
1896: test -z "$as_dir" && as_dir=.
1897: for ac_exec_ext in '' $ac_executable_extensions; do
1898: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1900: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901: break 2
1902: fi
1903: done
1904: done
1905:
1906: fi
1907: fi
1908: CC=$ac_cv_prog_CC
1909: if test -n "$CC"; then
1910: echo "$as_me:$LINENO: result: $CC" >&5
1911: echo "${ECHO_T}$CC" >&6
1912: else
1913: echo "$as_me:$LINENO: result: no" >&5
1914: echo "${ECHO_T}no" >&6
1915: fi
1916:
1917: test -n "$CC" && break
1918: done
1919: fi
1920: if test -z "$CC"; then
1921: ac_ct_CC=$CC
1922: for ac_prog in cl
1923: do
1924: # Extract the first word of "$ac_prog", so it can be a program name with args.
1925: set dummy $ac_prog; ac_word=$2
1926: echo "$as_me:$LINENO: checking for $ac_word" >&5
1927: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1929: echo $ECHO_N "(cached) $ECHO_C" >&6
1930: else
1931: if test -n "$ac_ct_CC"; then
1932: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1933: else
1934: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935: for as_dir in $PATH
1936: do
1937: IFS=$as_save_IFS
1938: test -z "$as_dir" && as_dir=.
1939: for ac_exec_ext in '' $ac_executable_extensions; do
1940: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941: ac_cv_prog_ac_ct_CC="$ac_prog"
1942: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943: break 2
1944: fi
1945: done
1946: done
1947:
1948: fi
1949: fi
1950: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1951: if test -n "$ac_ct_CC"; then
1952: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1953: echo "${ECHO_T}$ac_ct_CC" >&6
1954: else
1955: echo "$as_me:$LINENO: result: no" >&5
1956: echo "${ECHO_T}no" >&6
1957: fi
1958:
1959: test -n "$ac_ct_CC" && break
1960: done
1961:
1962: CC=$ac_ct_CC
1963: fi
1964:
1965: fi
1966:
1967:
1.17 ohara 1968: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1969: echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1.14 noro 1970: { (exit 1); exit 1; }; }
1971:
1972: # Provide some information about the compiler.
1973: echo "$as_me:$LINENO:" \
1974: "checking for C compiler version" >&5
1975: ac_compiler=`set X $ac_compile; echo $2`
1976: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1977: (eval $ac_compiler --version </dev/null >&5) 2>&5
1978: ac_status=$?
1979: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1980: (exit $ac_status); }
1981: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1982: (eval $ac_compiler -v </dev/null >&5) 2>&5
1983: ac_status=$?
1984: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985: (exit $ac_status); }
1986: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1987: (eval $ac_compiler -V </dev/null >&5) 2>&5
1988: ac_status=$?
1989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990: (exit $ac_status); }
1991:
1992: cat >conftest.$ac_ext <<_ACEOF
1993: #line $LINENO "configure"
1.17 ohara 1994: #include "confdefs.h"
1.14 noro 1995:
1.17 ohara 1996: #ifdef F77_DUMMY_MAIN
1997: # ifdef __cplusplus
1998: extern "C"
1999: # endif
2000: int F77_DUMMY_MAIN() { return 1; }
2001: #endif
1.14 noro 2002: int
2003: main ()
2004: {
2005:
2006: ;
2007: return 0;
2008: }
2009: _ACEOF
2010: ac_clean_files_save=$ac_clean_files
1.17 ohara 2011: ac_clean_files="$ac_clean_files a.out a.exe"
1.14 noro 2012: # Try to create an executable without -o first, disregard a.out.
2013: # It will help us diagnose broken compilers, and finding out an intuition
2014: # of exeext.
2015: echo "$as_me:$LINENO: checking for C compiler default output" >&5
2016: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2017: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019: (eval $ac_link_default) 2>&5
2020: ac_status=$?
2021: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022: (exit $ac_status); }; then
2023: # Find the output, starting from the most likely. This scheme is
2024: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2025: # resort.
2026:
2027: # Be careful to initialize this variable, since it used to be cached.
2028: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2029: ac_cv_exeext=
1.17 ohara 2030: for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2031: ls a.out conftest 2>/dev/null;
2032: ls a.* conftest.* 2>/dev/null`; do
1.14 noro 2033: case $ac_file in
1.17 ohara 2034: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2035: a.out ) # We found the default executable, but exeext='' is most
2036: # certainly right.
2037: break;;
2038: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2039: # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2040: export ac_cv_exeext
2041: break;;
2042: * ) break;;
1.14 noro 2043: esac
2044: done
2045: else
2046: echo "$as_me: failed program was:" >&5
1.17 ohara 2047: cat conftest.$ac_ext >&5
2048: { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2049: echo "$as_me: error: C compiler cannot create executables" >&2;}
1.14 noro 2050: { (exit 77); exit 77; }; }
2051: fi
2052:
2053: ac_exeext=$ac_cv_exeext
2054: echo "$as_me:$LINENO: result: $ac_file" >&5
2055: echo "${ECHO_T}$ac_file" >&6
2056:
2057: # Check the compiler produces executables we can run. If not, either
2058: # the compiler is broken, or we cross compile.
2059: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2060: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2061: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2062: # If not cross compiling, check that we can run a simple program.
2063: if test "$cross_compiling" != yes; then
2064: if { ac_try='./$ac_file'
2065: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066: (eval $ac_try) 2>&5
2067: ac_status=$?
2068: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069: (exit $ac_status); }; }; then
2070: cross_compiling=no
2071: else
2072: if test "$cross_compiling" = maybe; then
2073: cross_compiling=yes
2074: else
2075: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1.17 ohara 2076: If you meant to cross compile, use \`--host'." >&5
1.14 noro 2077: echo "$as_me: error: cannot run C compiled programs.
1.17 ohara 2078: If you meant to cross compile, use \`--host'." >&2;}
1.14 noro 2079: { (exit 1); exit 1; }; }
2080: fi
2081: fi
2082: fi
2083: echo "$as_me:$LINENO: result: yes" >&5
2084: echo "${ECHO_T}yes" >&6
2085:
1.17 ohara 2086: rm -f a.out a.exe conftest$ac_cv_exeext
1.14 noro 2087: ac_clean_files=$ac_clean_files_save
2088: # Check the compiler produces executables we can run. If not, either
2089: # the compiler is broken, or we cross compile.
2090: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2091: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2092: echo "$as_me:$LINENO: result: $cross_compiling" >&5
2093: echo "${ECHO_T}$cross_compiling" >&6
2094:
2095: echo "$as_me:$LINENO: checking for suffix of executables" >&5
2096: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2097: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2098: (eval $ac_link) 2>&5
2099: ac_status=$?
2100: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101: (exit $ac_status); }; then
2102: # If both `conftest.exe' and `conftest' are `present' (well, observable)
2103: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2104: # work properly (i.e., refer to `conftest.exe'), while it won't with
2105: # `rm'.
1.17 ohara 2106: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1.14 noro 2107: case $ac_file in
1.17 ohara 2108: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1.14 noro 2109: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110: export ac_cv_exeext
2111: break;;
2112: * ) break;;
2113: esac
2114: done
2115: else
1.17 ohara 2116: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2117: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1.14 noro 2118: { (exit 1); exit 1; }; }
2119: fi
2120:
2121: rm -f conftest$ac_cv_exeext
2122: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2123: echo "${ECHO_T}$ac_cv_exeext" >&6
2124:
2125: rm -f conftest.$ac_ext
2126: EXEEXT=$ac_cv_exeext
2127: ac_exeext=$EXEEXT
2128: echo "$as_me:$LINENO: checking for suffix of object files" >&5
2129: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2130: if test "${ac_cv_objext+set}" = set; then
2131: echo $ECHO_N "(cached) $ECHO_C" >&6
2132: else
2133: cat >conftest.$ac_ext <<_ACEOF
2134: #line $LINENO "configure"
1.17 ohara 2135: #include "confdefs.h"
1.14 noro 2136:
1.17 ohara 2137: #ifdef F77_DUMMY_MAIN
2138: # ifdef __cplusplus
2139: extern "C"
2140: # endif
2141: int F77_DUMMY_MAIN() { return 1; }
2142: #endif
1.14 noro 2143: int
2144: main ()
2145: {
2146:
2147: ;
2148: return 0;
2149: }
2150: _ACEOF
2151: rm -f conftest.o conftest.obj
2152: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2153: (eval $ac_compile) 2>&5
2154: ac_status=$?
2155: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156: (exit $ac_status); }; then
2157: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2158: case $ac_file in
1.17 ohara 2159: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1.14 noro 2160: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2161: break;;
2162: esac
2163: done
2164: else
2165: echo "$as_me: failed program was:" >&5
1.17 ohara 2166: cat conftest.$ac_ext >&5
2167: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2168: echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1.14 noro 2169: { (exit 1); exit 1; }; }
2170: fi
2171:
2172: rm -f conftest.$ac_cv_objext conftest.$ac_ext
2173: fi
2174: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2175: echo "${ECHO_T}$ac_cv_objext" >&6
2176: OBJEXT=$ac_cv_objext
2177: ac_objext=$OBJEXT
2178: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2179: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2180: if test "${ac_cv_c_compiler_gnu+set}" = set; then
2181: echo $ECHO_N "(cached) $ECHO_C" >&6
2182: else
2183: cat >conftest.$ac_ext <<_ACEOF
2184: #line $LINENO "configure"
1.17 ohara 2185: #include "confdefs.h"
1.14 noro 2186:
1.17 ohara 2187: #ifdef F77_DUMMY_MAIN
2188: # ifdef __cplusplus
2189: extern "C"
2190: # endif
2191: int F77_DUMMY_MAIN() { return 1; }
2192: #endif
1.14 noro 2193: int
2194: main ()
2195: {
2196: #ifndef __GNUC__
2197: choke me
2198: #endif
2199:
2200: ;
2201: return 0;
2202: }
2203: _ACEOF
2204: rm -f conftest.$ac_objext
2205: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206: (eval $ac_compile) 2>&5
2207: ac_status=$?
2208: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209: (exit $ac_status); } &&
2210: { ac_try='test -s conftest.$ac_objext'
2211: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212: (eval $ac_try) 2>&5
2213: ac_status=$?
2214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215: (exit $ac_status); }; }; then
2216: ac_compiler_gnu=yes
2217: else
2218: echo "$as_me: failed program was:" >&5
1.17 ohara 2219: cat conftest.$ac_ext >&5
1.14 noro 2220: ac_compiler_gnu=no
2221: fi
2222: rm -f conftest.$ac_objext conftest.$ac_ext
2223: ac_cv_c_compiler_gnu=$ac_compiler_gnu
2224:
2225: fi
2226: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2227: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2228: GCC=`test $ac_compiler_gnu = yes && echo yes`
2229: ac_test_CFLAGS=${CFLAGS+set}
2230: ac_save_CFLAGS=$CFLAGS
2231: CFLAGS="-g"
2232: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2233: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2234: if test "${ac_cv_prog_cc_g+set}" = set; then
2235: echo $ECHO_N "(cached) $ECHO_C" >&6
2236: else
2237: cat >conftest.$ac_ext <<_ACEOF
2238: #line $LINENO "configure"
1.17 ohara 2239: #include "confdefs.h"
1.14 noro 2240:
1.17 ohara 2241: #ifdef F77_DUMMY_MAIN
2242: # ifdef __cplusplus
2243: extern "C"
2244: # endif
2245: int F77_DUMMY_MAIN() { return 1; }
2246: #endif
1.14 noro 2247: int
2248: main ()
2249: {
2250:
2251: ;
2252: return 0;
2253: }
2254: _ACEOF
2255: rm -f conftest.$ac_objext
2256: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2257: (eval $ac_compile) 2>&5
2258: ac_status=$?
2259: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260: (exit $ac_status); } &&
2261: { ac_try='test -s conftest.$ac_objext'
2262: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263: (eval $ac_try) 2>&5
2264: ac_status=$?
2265: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266: (exit $ac_status); }; }; then
2267: ac_cv_prog_cc_g=yes
2268: else
2269: echo "$as_me: failed program was:" >&5
1.17 ohara 2270: cat conftest.$ac_ext >&5
1.14 noro 2271: ac_cv_prog_cc_g=no
2272: fi
2273: rm -f conftest.$ac_objext conftest.$ac_ext
2274: fi
2275: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2276: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2277: if test "$ac_test_CFLAGS" = set; then
2278: CFLAGS=$ac_save_CFLAGS
2279: elif test $ac_cv_prog_cc_g = yes; then
2280: if test "$GCC" = yes; then
2281: CFLAGS="-g -O2"
2282: else
2283: CFLAGS="-g"
2284: fi
2285: else
2286: if test "$GCC" = yes; then
2287: CFLAGS="-O2"
2288: else
2289: CFLAGS=
2290: fi
2291: fi
2292: # Some people use a C++ compiler to compile C. Since we use `exit',
2293: # in C++ we need to declare it. In case someone uses the same compiler
2294: # for both compiling C and C++ we need to have the C++ compiler decide
2295: # the declaration of exit, since it's the most demanding environment.
2296: cat >conftest.$ac_ext <<_ACEOF
2297: #ifndef __cplusplus
2298: choke me
2299: #endif
2300: _ACEOF
2301: rm -f conftest.$ac_objext
2302: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303: (eval $ac_compile) 2>&5
2304: ac_status=$?
2305: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306: (exit $ac_status); } &&
2307: { ac_try='test -s conftest.$ac_objext'
2308: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2309: (eval $ac_try) 2>&5
2310: ac_status=$?
2311: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312: (exit $ac_status); }; }; then
2313: for ac_declaration in \
2314: ''\
2315: '#include <stdlib.h>' \
2316: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2317: 'extern "C" void std::exit (int); using std::exit;' \
2318: 'extern "C" void exit (int) throw ();' \
2319: 'extern "C" void exit (int);' \
2320: 'void exit (int);'
2321: do
2322: cat >conftest.$ac_ext <<_ACEOF
2323: #line $LINENO "configure"
1.17 ohara 2324: #include "confdefs.h"
1.14 noro 2325: #include <stdlib.h>
2326: $ac_declaration
1.17 ohara 2327: #ifdef F77_DUMMY_MAIN
2328: # ifdef __cplusplus
2329: extern "C"
2330: # endif
2331: int F77_DUMMY_MAIN() { return 1; }
2332: #endif
1.14 noro 2333: int
2334: main ()
2335: {
2336: exit (42);
2337: ;
2338: return 0;
2339: }
2340: _ACEOF
2341: rm -f conftest.$ac_objext
2342: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343: (eval $ac_compile) 2>&5
2344: ac_status=$?
2345: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346: (exit $ac_status); } &&
2347: { ac_try='test -s conftest.$ac_objext'
2348: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349: (eval $ac_try) 2>&5
2350: ac_status=$?
2351: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352: (exit $ac_status); }; }; then
2353: :
2354: else
2355: echo "$as_me: failed program was:" >&5
1.17 ohara 2356: cat conftest.$ac_ext >&5
1.14 noro 2357: continue
2358: fi
2359: rm -f conftest.$ac_objext conftest.$ac_ext
2360: cat >conftest.$ac_ext <<_ACEOF
2361: #line $LINENO "configure"
1.17 ohara 2362: #include "confdefs.h"
1.14 noro 2363: $ac_declaration
1.17 ohara 2364: #ifdef F77_DUMMY_MAIN
2365: # ifdef __cplusplus
2366: extern "C"
2367: # endif
2368: int F77_DUMMY_MAIN() { return 1; }
2369: #endif
1.14 noro 2370: int
2371: main ()
2372: {
2373: exit (42);
2374: ;
2375: return 0;
2376: }
2377: _ACEOF
2378: rm -f conftest.$ac_objext
2379: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2380: (eval $ac_compile) 2>&5
2381: ac_status=$?
2382: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383: (exit $ac_status); } &&
2384: { ac_try='test -s conftest.$ac_objext'
2385: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386: (eval $ac_try) 2>&5
2387: ac_status=$?
2388: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389: (exit $ac_status); }; }; then
2390: break
2391: else
2392: echo "$as_me: failed program was:" >&5
1.17 ohara 2393: cat conftest.$ac_ext >&5
1.14 noro 2394: fi
2395: rm -f conftest.$ac_objext conftest.$ac_ext
2396: done
2397: rm -f conftest*
2398: if test -n "$ac_declaration"; then
2399: echo '#ifdef __cplusplus' >>confdefs.h
2400: echo $ac_declaration >>confdefs.h
2401: echo '#endif' >>confdefs.h
2402: fi
2403:
2404: else
2405: echo "$as_me: failed program was:" >&5
1.17 ohara 2406: cat conftest.$ac_ext >&5
1.14 noro 2407: fi
2408: rm -f conftest.$ac_objext conftest.$ac_ext
2409: ac_ext=c
2410: ac_cpp='$CPP $CPPFLAGS'
2411: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414:
1.17 ohara 2415: ac_config_commands="$ac_config_commands default-1"
1.14 noro 2416:
2417: am_make=${MAKE-make}
2418: cat > confinc << 'END'
2419: doit:
2420: @echo done
2421: END
2422: # If we don't find an include directive, just comment out the code.
2423: echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2424: echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2425: am__include='#'
2426: am__quote=
2427: _am_result=none
2428: # First try GNU make style include.
2429: echo "include confinc" > confmf
2430: # We grep out `Entering directory' and `Leaving directory'
2431: # messages which can occur if `w' ends up in MAKEFLAGS.
2432: # In particular we don't look at `^make:' because GNU make might
2433: # be invoked under some other name (usually "gmake"), in which
2434: # case it prints its new name instead of `make'.
2435: if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2436: am__include=include
2437: am__quote=
2438: _am_result=GNU
2439: fi
2440: # Now try BSD make style include.
2441: if test "$am__include" = "#"; then
2442: echo '.include "confinc"' > confmf
2443: if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2444: am__include=.include
2445: am__quote='"'
2446: _am_result=BSD
2447: fi
2448: fi
2449:
2450:
2451: echo "$as_me:$LINENO: result: $_am_result" >&5
2452: echo "${ECHO_T}$_am_result" >&6
2453: rm -f confinc confmf
2454:
2455:
2456: depcc="$CC" am_compiler_list=
2457:
2458: echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2459: echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2460: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2461: echo $ECHO_N "(cached) $ECHO_C" >&6
2462: else
2463: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2464: # We make a subdir and do the tests there. Otherwise we can end up
2465: # making bogus files that we don't know about and never remove. For
2466: # instance it was reported that on HP-UX the gcc test will end up
2467: # making a dummy file named `D' -- because `-MD' means `put the output
2468: # in D'.
2469: mkdir conftest.dir
2470: # Copy depcomp to subdir because otherwise we won't find it if we're
2471: # using a relative directory.
2472: cp "$am_depcomp" conftest.dir
2473: cd conftest.dir
2474:
2475: am_cv_CC_dependencies_compiler_type=none
2476: if test "$am_compiler_list" = ""; then
2477: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2478: fi
2479: for depmode in $am_compiler_list; do
2480: # We need to recreate these files for each test, as the compiler may
2481: # overwrite some of them when testing with obscure command lines.
2482: # This happens at least with the AIX C compiler.
2483: echo '#include "conftest.h"' > conftest.c
2484: echo 'int i;' > conftest.h
2485: echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2486:
2487: case $depmode in
2488: nosideeffect)
2489: # after this tag, mechanisms are not by side-effect, so they'll
2490: # only be used when explicitly requested
2491: if test "x$enable_dependency_tracking" = xyes; then
2492: continue
2493: else
2494: break
2495: fi
2496: ;;
2497: none) break ;;
2498: esac
2499: # We check with `-c' and `-o' for the sake of the "dashmstdout"
2500: # mode. It turns out that the SunPro C++ compiler does not properly
2501: # handle `-M -o', and we need to detect this.
2502: if depmode=$depmode \
2503: source=conftest.c object=conftest.o \
2504: depfile=conftest.Po tmpdepfile=conftest.TPo \
2505: $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2506: grep conftest.h conftest.Po > /dev/null 2>&1 &&
2507: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2508: am_cv_CC_dependencies_compiler_type=$depmode
2509: break
2510: fi
2511: done
2512:
2513: cd ..
2514: rm -rf conftest.dir
2515: else
2516: am_cv_CC_dependencies_compiler_type=none
2517: fi
2518:
2519: fi
2520: echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2521: echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2522: CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2523:
2524:
2525: # Find a good install program. We prefer a C program (faster),
2526: # so one script is as good as another. But avoid the broken or
2527: # incompatible versions:
2528: # SysV /etc/install, /usr/sbin/install
2529: # SunOS /usr/etc/install
2530: # IRIX /sbin/install
2531: # AIX /bin/install
2532: # AmigaOS /C/install, which installs bootblocks on floppy discs
2533: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536: # ./install, which can be erroneously created by make from ./install.sh.
2537: echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2538: echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2539: if test -z "$INSTALL"; then
2540: if test "${ac_cv_path_install+set}" = set; then
2541: echo $ECHO_N "(cached) $ECHO_C" >&6
2542: else
2543: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544: for as_dir in $PATH
2545: do
2546: IFS=$as_save_IFS
2547: test -z "$as_dir" && as_dir=.
2548: # Account for people who put trailing slashes in PATH elements.
2549: case $as_dir/ in
2550: ./ | .// | /cC/* | \
2551: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2552: /usr/ucb/* ) ;;
2553: *)
2554: # OSF1 and SCO ODT 3.0 have their own names for install.
2555: # Don't use installbsd from OSF since it installs stuff as root
2556: # by default.
2557: for ac_prog in ginstall scoinst install; do
2558: for ac_exec_ext in '' $ac_executable_extensions; do
2559: if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2560: if test $ac_prog = install &&
2561: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2562: # AIX install. It has an incompatible calling convention.
2563: :
2564: elif test $ac_prog = install &&
2565: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2566: # program-specific install script used by HP pwplus--don't use.
2567: :
2568: else
2569: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2570: break 3
2571: fi
2572: fi
2573: done
2574: done
2575: ;;
2576: esac
2577: done
2578:
2579:
2580: fi
2581: if test "${ac_cv_path_install+set}" = set; then
2582: INSTALL=$ac_cv_path_install
2583: else
2584: # As a last resort, use the slow shell script. We don't cache a
2585: # path for INSTALL within a source directory, because that will
2586: # break other packages using the cache if that directory is
2587: # removed, or if the path is relative.
2588: INSTALL=$ac_install_sh
2589: fi
2590: fi
2591: echo "$as_me:$LINENO: result: $INSTALL" >&5
2592: echo "${ECHO_T}$INSTALL" >&6
2593:
2594: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2595: # It thinks the first close brace ends the variable substitution.
2596: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2597:
2598: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2599:
2600: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2601:
2602: echo "$as_me:$LINENO: checking whether ln -s works" >&5
2603: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2604: LN_S=$as_ln_s
2605: if test "$LN_S" = "ln -s"; then
2606: echo "$as_me:$LINENO: result: yes" >&5
2607: echo "${ECHO_T}yes" >&6
2608: else
2609: echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2610: echo "${ECHO_T}no, using $LN_S" >&6
2611: fi
2612:
2613: if test -n "$ac_tool_prefix"; then
2614: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2615: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2616: echo "$as_me:$LINENO: checking for $ac_word" >&5
2617: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2618: if test "${ac_cv_prog_RANLIB+set}" = set; then
2619: echo $ECHO_N "(cached) $ECHO_C" >&6
2620: else
2621: if test -n "$RANLIB"; then
2622: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2623: else
2624: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625: for as_dir in $PATH
2626: do
2627: IFS=$as_save_IFS
2628: test -z "$as_dir" && as_dir=.
2629: for ac_exec_ext in '' $ac_executable_extensions; do
2630: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2631: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2632: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2633: break 2
2634: fi
2635: done
2636: done
2637:
2638: fi
2639: fi
2640: RANLIB=$ac_cv_prog_RANLIB
2641: if test -n "$RANLIB"; then
2642: echo "$as_me:$LINENO: result: $RANLIB" >&5
2643: echo "${ECHO_T}$RANLIB" >&6
2644: else
2645: echo "$as_me:$LINENO: result: no" >&5
2646: echo "${ECHO_T}no" >&6
2647: fi
2648:
2649: fi
2650: if test -z "$ac_cv_prog_RANLIB"; then
2651: ac_ct_RANLIB=$RANLIB
2652: # Extract the first word of "ranlib", so it can be a program name with args.
2653: set dummy ranlib; ac_word=$2
2654: echo "$as_me:$LINENO: checking for $ac_word" >&5
2655: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2656: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2657: echo $ECHO_N "(cached) $ECHO_C" >&6
2658: else
2659: if test -n "$ac_ct_RANLIB"; then
2660: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2661: else
2662: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663: for as_dir in $PATH
2664: do
2665: IFS=$as_save_IFS
2666: test -z "$as_dir" && as_dir=.
2667: for ac_exec_ext in '' $ac_executable_extensions; do
2668: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669: ac_cv_prog_ac_ct_RANLIB="ranlib"
2670: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671: break 2
2672: fi
2673: done
2674: done
2675:
2676: test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2677: fi
2678: fi
2679: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2680: if test -n "$ac_ct_RANLIB"; then
2681: echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2682: echo "${ECHO_T}$ac_ct_RANLIB" >&6
2683: else
2684: echo "$as_me:$LINENO: result: no" >&5
2685: echo "${ECHO_T}no" >&6
2686: fi
2687:
2688: RANLIB=$ac_ct_RANLIB
2689: else
2690: RANLIB="$ac_cv_prog_RANLIB"
2691: fi
2692:
2693: for ac_prog in 'bison -y' byacc
2694: do
2695: # Extract the first word of "$ac_prog", so it can be a program name with args.
2696: set dummy $ac_prog; ac_word=$2
2697: echo "$as_me:$LINENO: checking for $ac_word" >&5
2698: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2699: if test "${ac_cv_prog_YACC+set}" = set; then
2700: echo $ECHO_N "(cached) $ECHO_C" >&6
2701: else
2702: if test -n "$YACC"; then
2703: ac_cv_prog_YACC="$YACC" # Let the user override the test.
2704: else
2705: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706: for as_dir in $PATH
2707: do
2708: IFS=$as_save_IFS
2709: test -z "$as_dir" && as_dir=.
2710: for ac_exec_ext in '' $ac_executable_extensions; do
2711: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2712: ac_cv_prog_YACC="$ac_prog"
2713: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714: break 2
2715: fi
2716: done
2717: done
2718:
2719: fi
2720: fi
2721: YACC=$ac_cv_prog_YACC
2722: if test -n "$YACC"; then
2723: echo "$as_me:$LINENO: result: $YACC" >&5
2724: echo "${ECHO_T}$YACC" >&6
2725: else
2726: echo "$as_me:$LINENO: result: no" >&5
2727: echo "${ECHO_T}no" >&6
2728: fi
2729:
2730: test -n "$YACC" && break
2731: done
2732: test -n "$YACC" || YACC="yacc"
2733:
2734:
2735:
2736: ac_ext=c
2737: ac_cpp='$CPP $CPPFLAGS'
2738: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2742: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2743: # On Suns, sometimes $CPP names a directory.
2744: if test -n "$CPP" && test -d "$CPP"; then
2745: CPP=
2746: fi
2747: if test -z "$CPP"; then
2748: if test "${ac_cv_prog_CPP+set}" = set; then
2749: echo $ECHO_N "(cached) $ECHO_C" >&6
2750: else
2751: # Double quotes because CPP needs to be expanded
2752: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2753: do
2754: ac_preproc_ok=false
2755: for ac_c_preproc_warn_flag in '' yes
2756: do
2757: # Use a header file that comes with gcc, so configuring glibc
2758: # with a fresh cross-compiler works.
2759: # On the NeXT, cc -E runs the code through the compiler's parser,
2760: # not just through cpp. "Syntax error" is here to catch this case.
2761: cat >conftest.$ac_ext <<_ACEOF
2762: #line $LINENO "configure"
1.17 ohara 2763: #include "confdefs.h"
2764: #include <assert.h>
1.14 noro 2765: Syntax error
2766: _ACEOF
2767: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2768: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2769: ac_status=$?
1.17 ohara 2770: egrep -v '^ *\+' conftest.er1 >conftest.err
1.14 noro 2771: rm -f conftest.er1
2772: cat conftest.err >&5
2773: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774: (exit $ac_status); } >/dev/null; then
2775: if test -s conftest.err; then
2776: ac_cpp_err=$ac_c_preproc_warn_flag
2777: else
2778: ac_cpp_err=
2779: fi
2780: else
2781: ac_cpp_err=yes
2782: fi
2783: if test -z "$ac_cpp_err"; then
2784: :
2785: else
2786: echo "$as_me: failed program was:" >&5
1.17 ohara 2787: cat conftest.$ac_ext >&5
1.14 noro 2788: # Broken: fails on valid input.
2789: continue
2790: fi
2791: rm -f conftest.err conftest.$ac_ext
2792:
2793: # OK, works on sane cases. Now check whether non-existent headers
2794: # can be detected and how.
2795: cat >conftest.$ac_ext <<_ACEOF
2796: #line $LINENO "configure"
1.17 ohara 2797: #include "confdefs.h"
1.14 noro 2798: #include <ac_nonexistent.h>
2799: _ACEOF
2800: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2801: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2802: ac_status=$?
1.17 ohara 2803: egrep -v '^ *\+' conftest.er1 >conftest.err
1.14 noro 2804: rm -f conftest.er1
2805: cat conftest.err >&5
2806: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807: (exit $ac_status); } >/dev/null; then
2808: if test -s conftest.err; then
2809: ac_cpp_err=$ac_c_preproc_warn_flag
2810: else
2811: ac_cpp_err=
2812: fi
2813: else
2814: ac_cpp_err=yes
2815: fi
2816: if test -z "$ac_cpp_err"; then
2817: # Broken: success on invalid input.
2818: continue
2819: else
2820: echo "$as_me: failed program was:" >&5
1.17 ohara 2821: cat conftest.$ac_ext >&5
1.14 noro 2822: # Passes both tests.
2823: ac_preproc_ok=:
2824: break
2825: fi
2826: rm -f conftest.err conftest.$ac_ext
2827:
2828: done
2829: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2830: rm -f conftest.err conftest.$ac_ext
2831: if $ac_preproc_ok; then
2832: break
2833: fi
2834:
2835: done
2836: ac_cv_prog_CPP=$CPP
2837:
2838: fi
2839: CPP=$ac_cv_prog_CPP
2840: else
2841: ac_cv_prog_CPP=$CPP
2842: fi
2843: echo "$as_me:$LINENO: result: $CPP" >&5
2844: echo "${ECHO_T}$CPP" >&6
2845: ac_preproc_ok=false
2846: for ac_c_preproc_warn_flag in '' yes
2847: do
2848: # Use a header file that comes with gcc, so configuring glibc
2849: # with a fresh cross-compiler works.
2850: # On the NeXT, cc -E runs the code through the compiler's parser,
2851: # not just through cpp. "Syntax error" is here to catch this case.
2852: cat >conftest.$ac_ext <<_ACEOF
2853: #line $LINENO "configure"
1.17 ohara 2854: #include "confdefs.h"
2855: #include <assert.h>
1.14 noro 2856: Syntax error
2857: _ACEOF
2858: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2859: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2860: ac_status=$?
1.17 ohara 2861: egrep -v '^ *\+' conftest.er1 >conftest.err
1.14 noro 2862: rm -f conftest.er1
2863: cat conftest.err >&5
2864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865: (exit $ac_status); } >/dev/null; then
2866: if test -s conftest.err; then
2867: ac_cpp_err=$ac_c_preproc_warn_flag
2868: else
2869: ac_cpp_err=
2870: fi
2871: else
2872: ac_cpp_err=yes
2873: fi
2874: if test -z "$ac_cpp_err"; then
2875: :
2876: else
2877: echo "$as_me: failed program was:" >&5
1.17 ohara 2878: cat conftest.$ac_ext >&5
1.14 noro 2879: # Broken: fails on valid input.
2880: continue
2881: fi
2882: rm -f conftest.err conftest.$ac_ext
2883:
2884: # OK, works on sane cases. Now check whether non-existent headers
2885: # can be detected and how.
2886: cat >conftest.$ac_ext <<_ACEOF
2887: #line $LINENO "configure"
1.17 ohara 2888: #include "confdefs.h"
1.14 noro 2889: #include <ac_nonexistent.h>
2890: _ACEOF
2891: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2892: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2893: ac_status=$?
1.17 ohara 2894: egrep -v '^ *\+' conftest.er1 >conftest.err
1.14 noro 2895: rm -f conftest.er1
2896: cat conftest.err >&5
2897: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898: (exit $ac_status); } >/dev/null; then
2899: if test -s conftest.err; then
2900: ac_cpp_err=$ac_c_preproc_warn_flag
2901: else
2902: ac_cpp_err=
2903: fi
2904: else
2905: ac_cpp_err=yes
2906: fi
2907: if test -z "$ac_cpp_err"; then
2908: # Broken: success on invalid input.
2909: continue
2910: else
2911: echo "$as_me: failed program was:" >&5
1.17 ohara 2912: cat conftest.$ac_ext >&5
1.14 noro 2913: # Passes both tests.
2914: ac_preproc_ok=:
2915: break
2916: fi
2917: rm -f conftest.err conftest.$ac_ext
2918:
2919: done
2920: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2921: rm -f conftest.err conftest.$ac_ext
2922: if $ac_preproc_ok; then
2923: :
2924: else
1.17 ohara 2925: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2926: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
1.14 noro 2927: { (exit 1); exit 1; }; }
2928: fi
2929:
2930: ac_ext=c
2931: ac_cpp='$CPP $CPPFLAGS'
2932: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935:
2936:
2937: echo "$as_me:$LINENO: checking for X" >&5
2938: echo $ECHO_N "checking for X... $ECHO_C" >&6
2939:
2940:
2941: # Check whether --with-x or --without-x was given.
2942: if test "${with_x+set}" = set; then
2943: withval="$with_x"
2944:
2945: fi;
2946: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2947: if test "x$with_x" = xno; then
2948: # The user explicitly disabled X.
2949: have_x=disabled
2950: else
2951: if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2952: # Both variables are already set.
2953: have_x=yes
2954: else
2955: if test "${ac_cv_have_x+set}" = set; then
2956: echo $ECHO_N "(cached) $ECHO_C" >&6
2957: else
2958: # One or both of the vars are not set, and there is no cached value.
2959: ac_x_includes=no ac_x_libraries=no
2960: rm -fr conftest.dir
2961: if mkdir conftest.dir; then
2962: cd conftest.dir
2963: # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2964: cat >Imakefile <<'_ACEOF'
2965: acfindx:
2966: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2967: _ACEOF
2968: if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2969: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2970: eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2971: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2972: for ac_extension in a so sl; do
2973: if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2974: test -f $ac_im_libdir/libX11.$ac_extension; then
2975: ac_im_usrlibdir=$ac_im_libdir; break
2976: fi
2977: done
2978: # Screen out bogus values from the imake configuration. They are
2979: # bogus both because they are the default anyway, and because
2980: # using them would break gcc on systems where it needs fixed includes.
2981: case $ac_im_incroot in
2982: /usr/include) ;;
2983: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2984: esac
2985: case $ac_im_usrlibdir in
2986: /usr/lib | /lib) ;;
2987: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2988: esac
2989: fi
2990: cd ..
2991: rm -fr conftest.dir
2992: fi
2993:
2994: # Standard set of common directories for X headers.
2995: # Check X11 before X11Rn because it is often a symlink to the current release.
2996: ac_x_header_dirs='
2997: /usr/X11/include
2998: /usr/X11R6/include
2999: /usr/X11R5/include
3000: /usr/X11R4/include
3001:
3002: /usr/include/X11
3003: /usr/include/X11R6
3004: /usr/include/X11R5
3005: /usr/include/X11R4
3006:
3007: /usr/local/X11/include
3008: /usr/local/X11R6/include
3009: /usr/local/X11R5/include
3010: /usr/local/X11R4/include
3011:
3012: /usr/local/include/X11
3013: /usr/local/include/X11R6
3014: /usr/local/include/X11R5
3015: /usr/local/include/X11R4
3016:
3017: /usr/X386/include
3018: /usr/x386/include
3019: /usr/XFree86/include/X11
3020:
3021: /usr/include
3022: /usr/local/include
3023: /usr/unsupported/include
3024: /usr/athena/include
3025: /usr/local/x11r5/include
3026: /usr/lpp/Xamples/include
3027:
3028: /usr/openwin/include
3029: /usr/openwin/share/include'
3030:
3031: if test "$ac_x_includes" = no; then
3032: # Guess where to find include files, by looking for Intrinsic.h.
3033: # First, try using that file with no special directory specified.
3034: cat >conftest.$ac_ext <<_ACEOF
3035: #line $LINENO "configure"
1.17 ohara 3036: #include "confdefs.h"
1.14 noro 3037: #include <X11/Intrinsic.h>
3038: _ACEOF
3039: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3040: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3041: ac_status=$?
1.17 ohara 3042: egrep -v '^ *\+' conftest.er1 >conftest.err
1.14 noro 3043: rm -f conftest.er1
3044: cat conftest.err >&5
3045: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046: (exit $ac_status); } >/dev/null; then
3047: if test -s conftest.err; then
3048: ac_cpp_err=$ac_c_preproc_warn_flag
3049: else
3050: ac_cpp_err=
3051: fi
3052: else
3053: ac_cpp_err=yes
3054: fi
3055: if test -z "$ac_cpp_err"; then
3056: # We can compile using X headers with no special include directory.
3057: ac_x_includes=
3058: else
3059: echo "$as_me: failed program was:" >&5
1.17 ohara 3060: cat conftest.$ac_ext >&5
1.14 noro 3061: for ac_dir in $ac_x_header_dirs; do
3062: if test -r "$ac_dir/X11/Intrinsic.h"; then
3063: ac_x_includes=$ac_dir
3064: break
3065: fi
3066: done
3067: fi
3068: rm -f conftest.err conftest.$ac_ext
3069: fi # $ac_x_includes = no
3070:
3071: if test "$ac_x_libraries" = no; then
3072: # Check for the libraries.
3073: # See if we find them without any special options.
3074: # Don't add to $LIBS permanently.
3075: ac_save_LIBS=$LIBS
3076: LIBS="-lXt $LIBS"
3077: cat >conftest.$ac_ext <<_ACEOF
3078: #line $LINENO "configure"
1.17 ohara 3079: #include "confdefs.h"
1.14 noro 3080: #include <X11/Intrinsic.h>
1.17 ohara 3081: #ifdef F77_DUMMY_MAIN
3082: # ifdef __cplusplus
3083: extern "C"
3084: # endif
3085: int F77_DUMMY_MAIN() { return 1; }
3086: #endif
1.14 noro 3087: int
3088: main ()
3089: {
3090: XtMalloc (0)
3091: ;
3092: return 0;
3093: }
3094: _ACEOF
3095: rm -f conftest.$ac_objext conftest$ac_exeext
3096: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3097: (eval $ac_link) 2>&5
3098: ac_status=$?
3099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100: (exit $ac_status); } &&
3101: { ac_try='test -s conftest$ac_exeext'
3102: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103: (eval $ac_try) 2>&5
3104: ac_status=$?
3105: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106: (exit $ac_status); }; }; then
3107: LIBS=$ac_save_LIBS
3108: # We can link X programs with no special library path.
3109: ac_x_libraries=
3110: else
3111: echo "$as_me: failed program was:" >&5
1.17 ohara 3112: cat conftest.$ac_ext >&5
1.14 noro 3113: LIBS=$ac_save_LIBS
3114: for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3115: do
3116: # Don't even attempt the hair of trying to link an X program!
3117: for ac_extension in a so sl; do
3118: if test -r $ac_dir/libXt.$ac_extension; then
3119: ac_x_libraries=$ac_dir
3120: break 2
3121: fi
3122: done
3123: done
3124: fi
3125: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3126: fi # $ac_x_libraries = no
3127:
3128: if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3129: # Didn't find X anywhere. Cache the known absence of X.
3130: ac_cv_have_x="have_x=no"
3131: else
3132: # Record where we found X for the cache.
3133: ac_cv_have_x="have_x=yes \
3134: ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3135: fi
3136: fi
3137:
3138: fi
3139: eval "$ac_cv_have_x"
3140: fi # $with_x != no
3141:
3142: if test "$have_x" != yes; then
3143: echo "$as_me:$LINENO: result: $have_x" >&5
3144: echo "${ECHO_T}$have_x" >&6
3145: no_x=yes
3146: else
3147: # If each of the values was on the command line, it overrides each guess.
3148: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3149: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3150: # Update the cache value to reflect the command line values.
3151: ac_cv_have_x="have_x=yes \
3152: ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3153: echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3154: echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3155: fi
3156:
3157: if test "$no_x" = yes; then
3158: # Not all programs may use this symbol, but it does not hurt to define it.
3159:
3160: cat >>confdefs.h <<\_ACEOF
3161: #define X_DISPLAY_MISSING 1
3162: _ACEOF
3163:
3164: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3165: else
3166: if test -n "$x_includes"; then
3167: X_CFLAGS="$X_CFLAGS -I$x_includes"
3168: fi
3169:
3170: # It would also be nice to do this for all -L options, not just this one.
3171: if test -n "$x_libraries"; then
3172: X_LIBS="$X_LIBS -L$x_libraries"
3173: # For Solaris; some versions of Sun CC require a space after -R and
3174: # others require no space. Words are not sufficient . . . .
3175: case `(uname -sr) 2>/dev/null` in
3176: "SunOS 5"*)
3177: echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3178: echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3179: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3180: cat >conftest.$ac_ext <<_ACEOF
3181: #line $LINENO "configure"
1.17 ohara 3182: #include "confdefs.h"
1.14 noro 3183:
1.17 ohara 3184: #ifdef F77_DUMMY_MAIN
3185: # ifdef __cplusplus
3186: extern "C"
3187: # endif
3188: int F77_DUMMY_MAIN() { return 1; }
3189: #endif
1.14 noro 3190: int
3191: main ()
3192: {
3193:
3194: ;
3195: return 0;
3196: }
3197: _ACEOF
3198: rm -f conftest.$ac_objext conftest$ac_exeext
3199: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3200: (eval $ac_link) 2>&5
3201: ac_status=$?
3202: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203: (exit $ac_status); } &&
3204: { ac_try='test -s conftest$ac_exeext'
3205: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3206: (eval $ac_try) 2>&5
3207: ac_status=$?
3208: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209: (exit $ac_status); }; }; then
3210: ac_R_nospace=yes
3211: else
3212: echo "$as_me: failed program was:" >&5
1.17 ohara 3213: cat conftest.$ac_ext >&5
1.14 noro 3214: ac_R_nospace=no
3215: fi
3216: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3217: if test $ac_R_nospace = yes; then
3218: echo "$as_me:$LINENO: result: no" >&5
3219: echo "${ECHO_T}no" >&6
3220: X_LIBS="$X_LIBS -R$x_libraries"
3221: else
3222: LIBS="$ac_xsave_LIBS -R $x_libraries"
3223: cat >conftest.$ac_ext <<_ACEOF
3224: #line $LINENO "configure"
1.17 ohara 3225: #include "confdefs.h"
1.14 noro 3226:
1.17 ohara 3227: #ifdef F77_DUMMY_MAIN
3228: # ifdef __cplusplus
3229: extern "C"
3230: # endif
3231: int F77_DUMMY_MAIN() { return 1; }
3232: #endif
1.14 noro 3233: int
3234: main ()
3235: {
3236:
3237: ;
3238: return 0;
3239: }
3240: _ACEOF
3241: rm -f conftest.$ac_objext conftest$ac_exeext
3242: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3243: (eval $ac_link) 2>&5
3244: ac_status=$?
3245: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246: (exit $ac_status); } &&
3247: { ac_try='test -s conftest$ac_exeext'
3248: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249: (eval $ac_try) 2>&5
3250: ac_status=$?
3251: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252: (exit $ac_status); }; }; then
3253: ac_R_space=yes
3254: else
3255: echo "$as_me: failed program was:" >&5
1.17 ohara 3256: cat conftest.$ac_ext >&5
1.14 noro 3257: ac_R_space=no
3258: fi
3259: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3260: if test $ac_R_space = yes; then
3261: echo "$as_me:$LINENO: result: yes" >&5
3262: echo "${ECHO_T}yes" >&6
3263: X_LIBS="$X_LIBS -R $x_libraries"
3264: else
3265: echo "$as_me:$LINENO: result: neither works" >&5
3266: echo "${ECHO_T}neither works" >&6
3267: fi
3268: fi
3269: LIBS=$ac_xsave_LIBS
3270: esac
3271: fi
3272:
3273: # Check for system-dependent libraries X programs must link with.
3274: # Do this before checking for the system-independent R6 libraries
3275: # (-lICE), since we may need -lsocket or whatever for X linking.
3276:
3277: if test "$ISC" = yes; then
3278: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3279: else
3280: # Martyn Johnson says this is needed for Ultrix, if the X
3281: # libraries were built with DECnet support. And Karl Berry says
3282: # the Alpha needs dnet_stub (dnet does not exist).
3283: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3284: cat >conftest.$ac_ext <<_ACEOF
3285: #line $LINENO "configure"
1.17 ohara 3286: #include "confdefs.h"
1.14 noro 3287:
3288: /* Override any gcc2 internal prototype to avoid an error. */
3289: #ifdef __cplusplus
3290: extern "C"
3291: #endif
3292: /* We use char because int might match the return type of a gcc2
3293: builtin and then its argument prototype would still apply. */
3294: char XOpenDisplay ();
1.17 ohara 3295: #ifdef F77_DUMMY_MAIN
3296: # ifdef __cplusplus
3297: extern "C"
3298: # endif
3299: int F77_DUMMY_MAIN() { return 1; }
3300: #endif
1.14 noro 3301: int
3302: main ()
3303: {
3304: XOpenDisplay ();
3305: ;
3306: return 0;
3307: }
3308: _ACEOF
3309: rm -f conftest.$ac_objext conftest$ac_exeext
3310: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3311: (eval $ac_link) 2>&5
3312: ac_status=$?
3313: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314: (exit $ac_status); } &&
3315: { ac_try='test -s conftest$ac_exeext'
3316: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317: (eval $ac_try) 2>&5
3318: ac_status=$?
3319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320: (exit $ac_status); }; }; then
3321: :
3322: else
3323: echo "$as_me: failed program was:" >&5
1.17 ohara 3324: cat conftest.$ac_ext >&5
1.14 noro 3325: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3326: echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3327: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3328: echo $ECHO_N "(cached) $ECHO_C" >&6
3329: else
3330: ac_check_lib_save_LIBS=$LIBS
3331: LIBS="-ldnet $LIBS"
3332: cat >conftest.$ac_ext <<_ACEOF
3333: #line $LINENO "configure"
1.17 ohara 3334: #include "confdefs.h"
1.14 noro 3335:
3336: /* Override any gcc2 internal prototype to avoid an error. */
3337: #ifdef __cplusplus
3338: extern "C"
3339: #endif
3340: /* We use char because int might match the return type of a gcc2
3341: builtin and then its argument prototype would still apply. */
3342: char dnet_ntoa ();
1.17 ohara 3343: #ifdef F77_DUMMY_MAIN
3344: # ifdef __cplusplus
3345: extern "C"
3346: # endif
3347: int F77_DUMMY_MAIN() { return 1; }
3348: #endif
1.14 noro 3349: int
3350: main ()
3351: {
3352: dnet_ntoa ();
3353: ;
3354: return 0;
3355: }
3356: _ACEOF
3357: rm -f conftest.$ac_objext conftest$ac_exeext
3358: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3359: (eval $ac_link) 2>&5
3360: ac_status=$?
3361: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362: (exit $ac_status); } &&
3363: { ac_try='test -s conftest$ac_exeext'
3364: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3365: (eval $ac_try) 2>&5
3366: ac_status=$?
3367: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368: (exit $ac_status); }; }; then
3369: ac_cv_lib_dnet_dnet_ntoa=yes
3370: else
3371: echo "$as_me: failed program was:" >&5
1.17 ohara 3372: cat conftest.$ac_ext >&5
1.14 noro 3373: ac_cv_lib_dnet_dnet_ntoa=no
3374: fi
3375: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3376: LIBS=$ac_check_lib_save_LIBS
3377: fi
3378: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3379: echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3380: if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3381: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3382: fi
3383:
3384: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3385: echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3386: echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3387: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3388: echo $ECHO_N "(cached) $ECHO_C" >&6
3389: else
3390: ac_check_lib_save_LIBS=$LIBS
3391: LIBS="-ldnet_stub $LIBS"
3392: cat >conftest.$ac_ext <<_ACEOF
3393: #line $LINENO "configure"
1.17 ohara 3394: #include "confdefs.h"
1.14 noro 3395:
3396: /* Override any gcc2 internal prototype to avoid an error. */
3397: #ifdef __cplusplus
3398: extern "C"
3399: #endif
3400: /* We use char because int might match the return type of a gcc2
3401: builtin and then its argument prototype would still apply. */
3402: char dnet_ntoa ();
1.17 ohara 3403: #ifdef F77_DUMMY_MAIN
3404: # ifdef __cplusplus
3405: extern "C"
3406: # endif
3407: int F77_DUMMY_MAIN() { return 1; }
3408: #endif
1.14 noro 3409: int
3410: main ()
3411: {
3412: dnet_ntoa ();
3413: ;
3414: return 0;
3415: }
3416: _ACEOF
3417: rm -f conftest.$ac_objext conftest$ac_exeext
3418: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3419: (eval $ac_link) 2>&5
3420: ac_status=$?
3421: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422: (exit $ac_status); } &&
3423: { ac_try='test -s conftest$ac_exeext'
3424: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425: (eval $ac_try) 2>&5
3426: ac_status=$?
3427: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428: (exit $ac_status); }; }; then
3429: ac_cv_lib_dnet_stub_dnet_ntoa=yes
3430: else
3431: echo "$as_me: failed program was:" >&5
1.17 ohara 3432: cat conftest.$ac_ext >&5
1.14 noro 3433: ac_cv_lib_dnet_stub_dnet_ntoa=no
3434: fi
3435: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3436: LIBS=$ac_check_lib_save_LIBS
3437: fi
3438: echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3439: echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3440: if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3441: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3442: fi
3443:
3444: fi
3445: fi
3446: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3447: LIBS="$ac_xsave_LIBS"
3448:
3449: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3450: # to get the SysV transport functions.
3451: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3452: # needs -lnsl.
3453: # The nsl library prevents programs from opening the X display
3454: # on Irix 5.2, according to T.E. Dickey.
3455: # The functions gethostbyname, getservbyname, and inet_addr are
3456: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3457: echo "$as_me:$LINENO: checking for gethostbyname" >&5
3458: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3459: if test "${ac_cv_func_gethostbyname+set}" = set; then
3460: echo $ECHO_N "(cached) $ECHO_C" >&6
3461: else
3462: cat >conftest.$ac_ext <<_ACEOF
3463: #line $LINENO "configure"
1.17 ohara 3464: #include "confdefs.h"
1.14 noro 3465: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 3466: which can conflict with char gethostbyname (); below. */
3467: #include <assert.h>
1.14 noro 3468: /* Override any gcc2 internal prototype to avoid an error. */
3469: #ifdef __cplusplus
3470: extern "C"
3471: #endif
3472: /* We use char because int might match the return type of a gcc2
3473: builtin and then its argument prototype would still apply. */
3474: char gethostbyname ();
1.17 ohara 3475: char (*f) ();
3476:
3477: #ifdef F77_DUMMY_MAIN
3478: # ifdef __cplusplus
3479: extern "C"
3480: # endif
3481: int F77_DUMMY_MAIN() { return 1; }
3482: #endif
3483: int
3484: main ()
3485: {
1.14 noro 3486: /* The GNU C library defines this for functions which it implements
3487: to always fail with ENOSYS. Some functions are actually named
3488: something starting with __ and the normal name is an alias. */
3489: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3490: choke me
3491: #else
1.17 ohara 3492: f = gethostbyname;
1.14 noro 3493: #endif
3494:
3495: ;
3496: return 0;
3497: }
3498: _ACEOF
3499: rm -f conftest.$ac_objext conftest$ac_exeext
3500: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3501: (eval $ac_link) 2>&5
3502: ac_status=$?
3503: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504: (exit $ac_status); } &&
3505: { ac_try='test -s conftest$ac_exeext'
3506: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507: (eval $ac_try) 2>&5
3508: ac_status=$?
3509: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510: (exit $ac_status); }; }; then
3511: ac_cv_func_gethostbyname=yes
3512: else
3513: echo "$as_me: failed program was:" >&5
1.17 ohara 3514: cat conftest.$ac_ext >&5
1.14 noro 3515: ac_cv_func_gethostbyname=no
3516: fi
3517: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3518: fi
3519: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3520: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3521:
3522: if test $ac_cv_func_gethostbyname = no; then
3523: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3524: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3525: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3526: echo $ECHO_N "(cached) $ECHO_C" >&6
3527: else
3528: ac_check_lib_save_LIBS=$LIBS
3529: LIBS="-lnsl $LIBS"
3530: cat >conftest.$ac_ext <<_ACEOF
3531: #line $LINENO "configure"
1.17 ohara 3532: #include "confdefs.h"
1.14 noro 3533:
3534: /* Override any gcc2 internal prototype to avoid an error. */
3535: #ifdef __cplusplus
3536: extern "C"
3537: #endif
3538: /* We use char because int might match the return type of a gcc2
3539: builtin and then its argument prototype would still apply. */
3540: char gethostbyname ();
1.17 ohara 3541: #ifdef F77_DUMMY_MAIN
3542: # ifdef __cplusplus
3543: extern "C"
3544: # endif
3545: int F77_DUMMY_MAIN() { return 1; }
3546: #endif
1.14 noro 3547: int
3548: main ()
3549: {
3550: gethostbyname ();
3551: ;
3552: return 0;
3553: }
3554: _ACEOF
3555: rm -f conftest.$ac_objext conftest$ac_exeext
3556: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3557: (eval $ac_link) 2>&5
3558: ac_status=$?
3559: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560: (exit $ac_status); } &&
3561: { ac_try='test -s conftest$ac_exeext'
3562: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563: (eval $ac_try) 2>&5
3564: ac_status=$?
3565: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566: (exit $ac_status); }; }; then
3567: ac_cv_lib_nsl_gethostbyname=yes
3568: else
3569: echo "$as_me: failed program was:" >&5
1.17 ohara 3570: cat conftest.$ac_ext >&5
1.14 noro 3571: ac_cv_lib_nsl_gethostbyname=no
3572: fi
3573: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3574: LIBS=$ac_check_lib_save_LIBS
3575: fi
3576: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3577: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3578: if test $ac_cv_lib_nsl_gethostbyname = yes; then
3579: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3580: fi
3581:
3582: if test $ac_cv_lib_nsl_gethostbyname = no; then
3583: echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3584: echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3585: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3586: echo $ECHO_N "(cached) $ECHO_C" >&6
3587: else
3588: ac_check_lib_save_LIBS=$LIBS
3589: LIBS="-lbsd $LIBS"
3590: cat >conftest.$ac_ext <<_ACEOF
3591: #line $LINENO "configure"
1.17 ohara 3592: #include "confdefs.h"
1.14 noro 3593:
3594: /* Override any gcc2 internal prototype to avoid an error. */
3595: #ifdef __cplusplus
3596: extern "C"
3597: #endif
3598: /* We use char because int might match the return type of a gcc2
3599: builtin and then its argument prototype would still apply. */
3600: char gethostbyname ();
1.17 ohara 3601: #ifdef F77_DUMMY_MAIN
3602: # ifdef __cplusplus
3603: extern "C"
3604: # endif
3605: int F77_DUMMY_MAIN() { return 1; }
3606: #endif
1.14 noro 3607: int
3608: main ()
3609: {
3610: gethostbyname ();
3611: ;
3612: return 0;
3613: }
3614: _ACEOF
3615: rm -f conftest.$ac_objext conftest$ac_exeext
3616: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617: (eval $ac_link) 2>&5
3618: ac_status=$?
3619: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620: (exit $ac_status); } &&
3621: { ac_try='test -s conftest$ac_exeext'
3622: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3623: (eval $ac_try) 2>&5
3624: ac_status=$?
3625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626: (exit $ac_status); }; }; then
3627: ac_cv_lib_bsd_gethostbyname=yes
3628: else
3629: echo "$as_me: failed program was:" >&5
1.17 ohara 3630: cat conftest.$ac_ext >&5
1.14 noro 3631: ac_cv_lib_bsd_gethostbyname=no
3632: fi
3633: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3634: LIBS=$ac_check_lib_save_LIBS
3635: fi
3636: echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3637: echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3638: if test $ac_cv_lib_bsd_gethostbyname = yes; then
3639: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3640: fi
3641:
3642: fi
3643: fi
3644:
3645: # lieder@skyler.mavd.honeywell.com says without -lsocket,
3646: # socket/setsockopt and other routines are undefined under SCO ODT
3647: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3648: # on later versions), says Simon Leinen: it contains gethostby*
1.17 ohara 3649: # variants that don't use the nameserver (or something). -lsocket
1.14 noro 3650: # must be given before -lnsl if both are needed. We assume that
3651: # if connect needs -lnsl, so does gethostbyname.
3652: echo "$as_me:$LINENO: checking for connect" >&5
3653: echo $ECHO_N "checking for connect... $ECHO_C" >&6
3654: if test "${ac_cv_func_connect+set}" = set; then
3655: echo $ECHO_N "(cached) $ECHO_C" >&6
3656: else
3657: cat >conftest.$ac_ext <<_ACEOF
3658: #line $LINENO "configure"
1.17 ohara 3659: #include "confdefs.h"
1.14 noro 3660: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 3661: which can conflict with char connect (); below. */
3662: #include <assert.h>
1.14 noro 3663: /* Override any gcc2 internal prototype to avoid an error. */
3664: #ifdef __cplusplus
3665: extern "C"
3666: #endif
3667: /* We use char because int might match the return type of a gcc2
3668: builtin and then its argument prototype would still apply. */
3669: char connect ();
1.17 ohara 3670: char (*f) ();
3671:
3672: #ifdef F77_DUMMY_MAIN
3673: # ifdef __cplusplus
3674: extern "C"
3675: # endif
3676: int F77_DUMMY_MAIN() { return 1; }
3677: #endif
3678: int
3679: main ()
3680: {
1.14 noro 3681: /* The GNU C library defines this for functions which it implements
3682: to always fail with ENOSYS. Some functions are actually named
3683: something starting with __ and the normal name is an alias. */
3684: #if defined (__stub_connect) || defined (__stub___connect)
3685: choke me
3686: #else
1.17 ohara 3687: f = connect;
1.14 noro 3688: #endif
3689:
3690: ;
3691: return 0;
3692: }
3693: _ACEOF
3694: rm -f conftest.$ac_objext conftest$ac_exeext
3695: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3696: (eval $ac_link) 2>&5
3697: ac_status=$?
3698: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699: (exit $ac_status); } &&
3700: { ac_try='test -s conftest$ac_exeext'
3701: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3702: (eval $ac_try) 2>&5
3703: ac_status=$?
3704: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705: (exit $ac_status); }; }; then
3706: ac_cv_func_connect=yes
3707: else
3708: echo "$as_me: failed program was:" >&5
1.17 ohara 3709: cat conftest.$ac_ext >&5
1.14 noro 3710: ac_cv_func_connect=no
3711: fi
3712: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3713: fi
3714: echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3715: echo "${ECHO_T}$ac_cv_func_connect" >&6
3716:
3717: if test $ac_cv_func_connect = no; then
3718: echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3719: echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3720: if test "${ac_cv_lib_socket_connect+set}" = set; then
3721: echo $ECHO_N "(cached) $ECHO_C" >&6
3722: else
3723: ac_check_lib_save_LIBS=$LIBS
3724: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3725: cat >conftest.$ac_ext <<_ACEOF
3726: #line $LINENO "configure"
1.17 ohara 3727: #include "confdefs.h"
1.14 noro 3728:
3729: /* Override any gcc2 internal prototype to avoid an error. */
3730: #ifdef __cplusplus
3731: extern "C"
3732: #endif
3733: /* We use char because int might match the return type of a gcc2
3734: builtin and then its argument prototype would still apply. */
3735: char connect ();
1.17 ohara 3736: #ifdef F77_DUMMY_MAIN
3737: # ifdef __cplusplus
3738: extern "C"
3739: # endif
3740: int F77_DUMMY_MAIN() { return 1; }
3741: #endif
1.14 noro 3742: int
3743: main ()
3744: {
3745: connect ();
3746: ;
3747: return 0;
3748: }
3749: _ACEOF
3750: rm -f conftest.$ac_objext conftest$ac_exeext
3751: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3752: (eval $ac_link) 2>&5
3753: ac_status=$?
3754: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755: (exit $ac_status); } &&
3756: { ac_try='test -s conftest$ac_exeext'
3757: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3758: (eval $ac_try) 2>&5
3759: ac_status=$?
3760: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761: (exit $ac_status); }; }; then
3762: ac_cv_lib_socket_connect=yes
3763: else
3764: echo "$as_me: failed program was:" >&5
1.17 ohara 3765: cat conftest.$ac_ext >&5
1.14 noro 3766: ac_cv_lib_socket_connect=no
3767: fi
3768: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3769: LIBS=$ac_check_lib_save_LIBS
3770: fi
3771: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3772: echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3773: if test $ac_cv_lib_socket_connect = yes; then
3774: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3775: fi
3776:
3777: fi
3778:
3779: # Guillermo Gomez says -lposix is necessary on A/UX.
3780: echo "$as_me:$LINENO: checking for remove" >&5
3781: echo $ECHO_N "checking for remove... $ECHO_C" >&6
3782: if test "${ac_cv_func_remove+set}" = set; then
3783: echo $ECHO_N "(cached) $ECHO_C" >&6
3784: else
3785: cat >conftest.$ac_ext <<_ACEOF
3786: #line $LINENO "configure"
1.17 ohara 3787: #include "confdefs.h"
1.14 noro 3788: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 3789: which can conflict with char remove (); below. */
3790: #include <assert.h>
1.14 noro 3791: /* Override any gcc2 internal prototype to avoid an error. */
3792: #ifdef __cplusplus
3793: extern "C"
3794: #endif
3795: /* We use char because int might match the return type of a gcc2
3796: builtin and then its argument prototype would still apply. */
3797: char remove ();
1.17 ohara 3798: char (*f) ();
3799:
3800: #ifdef F77_DUMMY_MAIN
3801: # ifdef __cplusplus
3802: extern "C"
3803: # endif
3804: int F77_DUMMY_MAIN() { return 1; }
3805: #endif
3806: int
3807: main ()
3808: {
1.14 noro 3809: /* The GNU C library defines this for functions which it implements
3810: to always fail with ENOSYS. Some functions are actually named
3811: something starting with __ and the normal name is an alias. */
3812: #if defined (__stub_remove) || defined (__stub___remove)
3813: choke me
3814: #else
1.17 ohara 3815: f = remove;
1.14 noro 3816: #endif
3817:
3818: ;
3819: return 0;
3820: }
3821: _ACEOF
3822: rm -f conftest.$ac_objext conftest$ac_exeext
3823: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3824: (eval $ac_link) 2>&5
3825: ac_status=$?
3826: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827: (exit $ac_status); } &&
3828: { ac_try='test -s conftest$ac_exeext'
3829: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830: (eval $ac_try) 2>&5
3831: ac_status=$?
3832: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833: (exit $ac_status); }; }; then
3834: ac_cv_func_remove=yes
3835: else
3836: echo "$as_me: failed program was:" >&5
1.17 ohara 3837: cat conftest.$ac_ext >&5
1.14 noro 3838: ac_cv_func_remove=no
3839: fi
3840: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3841: fi
3842: echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3843: echo "${ECHO_T}$ac_cv_func_remove" >&6
3844:
3845: if test $ac_cv_func_remove = no; then
3846: echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3847: echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3848: if test "${ac_cv_lib_posix_remove+set}" = set; then
3849: echo $ECHO_N "(cached) $ECHO_C" >&6
3850: else
3851: ac_check_lib_save_LIBS=$LIBS
3852: LIBS="-lposix $LIBS"
3853: cat >conftest.$ac_ext <<_ACEOF
3854: #line $LINENO "configure"
1.17 ohara 3855: #include "confdefs.h"
1.14 noro 3856:
3857: /* Override any gcc2 internal prototype to avoid an error. */
3858: #ifdef __cplusplus
3859: extern "C"
3860: #endif
3861: /* We use char because int might match the return type of a gcc2
3862: builtin and then its argument prototype would still apply. */
3863: char remove ();
1.17 ohara 3864: #ifdef F77_DUMMY_MAIN
3865: # ifdef __cplusplus
3866: extern "C"
3867: # endif
3868: int F77_DUMMY_MAIN() { return 1; }
3869: #endif
1.14 noro 3870: int
3871: main ()
3872: {
3873: remove ();
3874: ;
3875: return 0;
3876: }
3877: _ACEOF
3878: rm -f conftest.$ac_objext conftest$ac_exeext
3879: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3880: (eval $ac_link) 2>&5
3881: ac_status=$?
3882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883: (exit $ac_status); } &&
3884: { ac_try='test -s conftest$ac_exeext'
3885: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3886: (eval $ac_try) 2>&5
3887: ac_status=$?
3888: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889: (exit $ac_status); }; }; then
3890: ac_cv_lib_posix_remove=yes
3891: else
3892: echo "$as_me: failed program was:" >&5
1.17 ohara 3893: cat conftest.$ac_ext >&5
1.14 noro 3894: ac_cv_lib_posix_remove=no
3895: fi
3896: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3897: LIBS=$ac_check_lib_save_LIBS
3898: fi
3899: echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3900: echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3901: if test $ac_cv_lib_posix_remove = yes; then
3902: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3903: fi
3904:
3905: fi
3906:
3907: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3908: echo "$as_me:$LINENO: checking for shmat" >&5
3909: echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3910: if test "${ac_cv_func_shmat+set}" = set; then
3911: echo $ECHO_N "(cached) $ECHO_C" >&6
3912: else
3913: cat >conftest.$ac_ext <<_ACEOF
3914: #line $LINENO "configure"
1.17 ohara 3915: #include "confdefs.h"
1.14 noro 3916: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 3917: which can conflict with char shmat (); below. */
3918: #include <assert.h>
1.14 noro 3919: /* Override any gcc2 internal prototype to avoid an error. */
3920: #ifdef __cplusplus
3921: extern "C"
3922: #endif
3923: /* We use char because int might match the return type of a gcc2
3924: builtin and then its argument prototype would still apply. */
3925: char shmat ();
1.17 ohara 3926: char (*f) ();
3927:
3928: #ifdef F77_DUMMY_MAIN
3929: # ifdef __cplusplus
3930: extern "C"
3931: # endif
3932: int F77_DUMMY_MAIN() { return 1; }
3933: #endif
3934: int
3935: main ()
3936: {
1.14 noro 3937: /* The GNU C library defines this for functions which it implements
3938: to always fail with ENOSYS. Some functions are actually named
3939: something starting with __ and the normal name is an alias. */
3940: #if defined (__stub_shmat) || defined (__stub___shmat)
3941: choke me
3942: #else
1.17 ohara 3943: f = shmat;
1.14 noro 3944: #endif
3945:
3946: ;
3947: return 0;
3948: }
3949: _ACEOF
3950: rm -f conftest.$ac_objext conftest$ac_exeext
3951: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3952: (eval $ac_link) 2>&5
3953: ac_status=$?
3954: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955: (exit $ac_status); } &&
3956: { ac_try='test -s conftest$ac_exeext'
3957: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958: (eval $ac_try) 2>&5
3959: ac_status=$?
3960: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961: (exit $ac_status); }; }; then
3962: ac_cv_func_shmat=yes
3963: else
3964: echo "$as_me: failed program was:" >&5
1.17 ohara 3965: cat conftest.$ac_ext >&5
1.14 noro 3966: ac_cv_func_shmat=no
3967: fi
3968: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3969: fi
3970: echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3971: echo "${ECHO_T}$ac_cv_func_shmat" >&6
3972:
3973: if test $ac_cv_func_shmat = no; then
3974: echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3975: echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3976: if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3977: echo $ECHO_N "(cached) $ECHO_C" >&6
3978: else
3979: ac_check_lib_save_LIBS=$LIBS
3980: LIBS="-lipc $LIBS"
3981: cat >conftest.$ac_ext <<_ACEOF
3982: #line $LINENO "configure"
1.17 ohara 3983: #include "confdefs.h"
1.14 noro 3984:
3985: /* Override any gcc2 internal prototype to avoid an error. */
3986: #ifdef __cplusplus
3987: extern "C"
3988: #endif
3989: /* We use char because int might match the return type of a gcc2
3990: builtin and then its argument prototype would still apply. */
3991: char shmat ();
1.17 ohara 3992: #ifdef F77_DUMMY_MAIN
3993: # ifdef __cplusplus
3994: extern "C"
3995: # endif
3996: int F77_DUMMY_MAIN() { return 1; }
3997: #endif
1.14 noro 3998: int
3999: main ()
4000: {
4001: shmat ();
4002: ;
4003: return 0;
4004: }
4005: _ACEOF
4006: rm -f conftest.$ac_objext conftest$ac_exeext
4007: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4008: (eval $ac_link) 2>&5
4009: ac_status=$?
4010: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011: (exit $ac_status); } &&
4012: { ac_try='test -s conftest$ac_exeext'
4013: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014: (eval $ac_try) 2>&5
4015: ac_status=$?
4016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017: (exit $ac_status); }; }; then
4018: ac_cv_lib_ipc_shmat=yes
4019: else
4020: echo "$as_me: failed program was:" >&5
1.17 ohara 4021: cat conftest.$ac_ext >&5
1.14 noro 4022: ac_cv_lib_ipc_shmat=no
4023: fi
4024: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4025: LIBS=$ac_check_lib_save_LIBS
4026: fi
4027: echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4028: echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4029: if test $ac_cv_lib_ipc_shmat = yes; then
4030: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4031: fi
4032:
4033: fi
4034: fi
4035:
4036: # Check for libraries that X11R6 Xt/Xaw programs need.
4037: ac_save_LDFLAGS=$LDFLAGS
4038: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4039: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4040: # check for ICE first), but we must link in the order -lSM -lICE or
4041: # we get undefined symbols. So assume we have SM if we have ICE.
4042: # These have to be linked with before -lX11, unlike the other
4043: # libraries we check for below, so use a different variable.
4044: # John Interrante, Karl Berry
4045: echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4046: echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4047: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4048: echo $ECHO_N "(cached) $ECHO_C" >&6
4049: else
4050: ac_check_lib_save_LIBS=$LIBS
4051: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4052: cat >conftest.$ac_ext <<_ACEOF
4053: #line $LINENO "configure"
1.17 ohara 4054: #include "confdefs.h"
1.14 noro 4055:
4056: /* Override any gcc2 internal prototype to avoid an error. */
4057: #ifdef __cplusplus
4058: extern "C"
4059: #endif
4060: /* We use char because int might match the return type of a gcc2
4061: builtin and then its argument prototype would still apply. */
4062: char IceConnectionNumber ();
1.17 ohara 4063: #ifdef F77_DUMMY_MAIN
4064: # ifdef __cplusplus
4065: extern "C"
4066: # endif
4067: int F77_DUMMY_MAIN() { return 1; }
4068: #endif
1.14 noro 4069: int
4070: main ()
4071: {
4072: IceConnectionNumber ();
4073: ;
4074: return 0;
4075: }
4076: _ACEOF
4077: rm -f conftest.$ac_objext conftest$ac_exeext
4078: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4079: (eval $ac_link) 2>&5
4080: ac_status=$?
4081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082: (exit $ac_status); } &&
4083: { ac_try='test -s conftest$ac_exeext'
4084: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4085: (eval $ac_try) 2>&5
4086: ac_status=$?
4087: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088: (exit $ac_status); }; }; then
4089: ac_cv_lib_ICE_IceConnectionNumber=yes
4090: else
4091: echo "$as_me: failed program was:" >&5
1.17 ohara 4092: cat conftest.$ac_ext >&5
1.14 noro 4093: ac_cv_lib_ICE_IceConnectionNumber=no
4094: fi
4095: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4096: LIBS=$ac_check_lib_save_LIBS
4097: fi
4098: echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4099: echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4100: if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4101: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4102: fi
4103:
4104: LDFLAGS=$ac_save_LDFLAGS
4105:
4106: fi
4107:
4108:
4109: cat >>confdefs.h <<\_ACEOF
4110: #define HMEXT 1
4111: _ACEOF
4112:
4113:
4114: # Check whether --enable-shared or --disable-shared was given.
4115: if test "${enable_shared+set}" = set; then
4116: enableval="$enable_shared"
4117: enable_shared=yes
4118: else
4119: enable_shared=no
4120: fi;
4121:
4122: if test "${enable_shared:=no}" != no ; then
4123: true
4124: fi
4125:
1.17 ohara 4126: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
4127: if test "${ac_cv_prog_cc_g}" = yes; then
4128: CFLAGS="-g -O"
4129: else
4130: CFLAGS="-O"
4131: fi
1.29 ! ohara 4132: elif test `basename ./"${CC}"` = "icc" ; then
! 4133: CFLAGS="-g -O"
1.17 ohara 4134: fi
1.15 noro 4135:
1.23 ohara 4136: # Check whether --enable-gc-zeropage or --disable-gc-zeropage was given.
4137: if test "${enable_gc_zeropage+set}" = set; then
4138: enableval="$enable_gc_zeropage"
4139: enable_gc_zeropage=yes
4140: else
4141: enable_gc_zeropage=no
4142: fi;
4143:
4144: if test "${enable_gc_zeropage:=no}" != no ; then
4145: USE_GC_ZEROPAGE="yes"
4146: fi
4147:
4148:
1.14 noro 4149: libasir_postfix=""
4150:
4151: # Check whether --with-pari or --without-pari was given.
4152: if test "${with_pari+set}" = set; then
4153: withval="$with_pari"
4154: with_pari=${withval}
4155: else
4156: with_pari=no
4157: fi;
4158:
4159: if test ${with_pari:=no} != no ; then
4160: libasir_postfix=${libasir_postfix}_pari
1.16 noro 4161: if test ${with_pari} = new ; then
4162: libpari=pari-2.2
4163: else
1.14 noro 4164: libpari=pari
4165: fi
4166: PARIINC='-I${prefix}/include/pari'
4167: if test "${enable_shared}" != yes ; then
4168: PARILIB='${prefix}'"/lib/lib${libpari}.a"
4169: else
4170: PARILIB='-L${prefix}/lib'" -l${libpari}"
4171: fi
4172: cat >>confdefs.h <<\_ACEOF
4173: #define PARI 1
4174: _ACEOF
4175:
1.16 noro 4176: fi
4177:
4178:
4179:
1.14 noro 4180: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4181: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4182: if test "${ac_cv_header_stdc+set}" = set; then
4183: echo $ECHO_N "(cached) $ECHO_C" >&6
4184: else
4185: cat >conftest.$ac_ext <<_ACEOF
4186: #line $LINENO "configure"
1.17 ohara 4187: #include "confdefs.h"
1.14 noro 4188: #include <stdlib.h>
4189: #include <stdarg.h>
4190: #include <string.h>
4191: #include <float.h>
4192:
4193: _ACEOF
1.17 ohara 4194: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4195: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1.14 noro 4196: ac_status=$?
1.17 ohara 4197: egrep -v '^ *\+' conftest.er1 >conftest.err
4198: rm -f conftest.er1
4199: cat conftest.err >&5
1.14 noro 4200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.17 ohara 4201: (exit $ac_status); } >/dev/null; then
4202: if test -s conftest.err; then
4203: ac_cpp_err=$ac_c_preproc_warn_flag
4204: else
4205: ac_cpp_err=
4206: fi
4207: else
4208: ac_cpp_err=yes
4209: fi
4210: if test -z "$ac_cpp_err"; then
1.14 noro 4211: ac_cv_header_stdc=yes
4212: else
4213: echo "$as_me: failed program was:" >&5
1.17 ohara 4214: cat conftest.$ac_ext >&5
4215: ac_cv_header_stdc=no
1.14 noro 4216: fi
1.17 ohara 4217: rm -f conftest.err conftest.$ac_ext
1.14 noro 4218:
4219: if test $ac_cv_header_stdc = yes; then
4220: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4221: cat >conftest.$ac_ext <<_ACEOF
4222: #line $LINENO "configure"
1.17 ohara 4223: #include "confdefs.h"
1.14 noro 4224: #include <string.h>
4225:
4226: _ACEOF
4227: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.17 ohara 4228: egrep "memchr" >/dev/null 2>&1; then
1.14 noro 4229: :
4230: else
4231: ac_cv_header_stdc=no
4232: fi
4233: rm -f conftest*
4234:
4235: fi
4236:
4237: if test $ac_cv_header_stdc = yes; then
4238: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4239: cat >conftest.$ac_ext <<_ACEOF
4240: #line $LINENO "configure"
1.17 ohara 4241: #include "confdefs.h"
1.14 noro 4242: #include <stdlib.h>
4243:
4244: _ACEOF
4245: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.17 ohara 4246: egrep "free" >/dev/null 2>&1; then
1.14 noro 4247: :
4248: else
4249: ac_cv_header_stdc=no
4250: fi
4251: rm -f conftest*
4252:
4253: fi
4254:
4255: if test $ac_cv_header_stdc = yes; then
4256: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4257: if test "$cross_compiling" = yes; then
4258: :
4259: else
4260: cat >conftest.$ac_ext <<_ACEOF
4261: #line $LINENO "configure"
1.17 ohara 4262: #include "confdefs.h"
1.14 noro 4263: #include <ctype.h>
4264: #if ((' ' & 0x0FF) == 0x020)
4265: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4266: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4267: #else
1.17 ohara 4268: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
1.14 noro 4269: || ('j' <= (c) && (c) <= 'r') \
4270: || ('s' <= (c) && (c) <= 'z'))
4271: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4272: #endif
4273:
4274: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4275: int
4276: main ()
4277: {
4278: int i;
4279: for (i = 0; i < 256; i++)
4280: if (XOR (islower (i), ISLOWER (i))
4281: || toupper (i) != TOUPPER (i))
4282: exit(2);
4283: exit (0);
4284: }
4285: _ACEOF
4286: rm -f conftest$ac_exeext
4287: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4288: (eval $ac_link) 2>&5
4289: ac_status=$?
4290: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4292: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293: (eval $ac_try) 2>&5
4294: ac_status=$?
4295: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296: (exit $ac_status); }; }; then
4297: :
4298: else
4299: echo "$as_me: program exited with status $ac_status" >&5
4300: echo "$as_me: failed program was:" >&5
1.17 ohara 4301: cat conftest.$ac_ext >&5
1.14 noro 4302: ( exit $ac_status )
4303: ac_cv_header_stdc=no
4304: fi
1.17 ohara 4305: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.14 noro 4306: fi
4307: fi
4308: fi
4309: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4310: echo "${ECHO_T}$ac_cv_header_stdc" >&6
4311: if test $ac_cv_header_stdc = yes; then
4312:
4313: cat >>confdefs.h <<\_ACEOF
4314: #define STDC_HEADERS 1
4315: _ACEOF
4316:
4317: fi
4318:
4319: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4320:
1.2 noro 4321:
1.3 noro 4322:
1.14 noro 4323:
4324:
4325:
4326:
4327:
4328:
4329: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4330: inttypes.h stdint.h unistd.h
4331: do
4332: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4333: echo "$as_me:$LINENO: checking for $ac_header" >&5
4334: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4335: if eval "test \"\${$as_ac_Header+set}\" = set"; then
4336: echo $ECHO_N "(cached) $ECHO_C" >&6
4337: else
4338: cat >conftest.$ac_ext <<_ACEOF
4339: #line $LINENO "configure"
1.17 ohara 4340: #include "confdefs.h"
1.14 noro 4341: $ac_includes_default
4342:
4343: #include <$ac_header>
4344: _ACEOF
4345: rm -f conftest.$ac_objext
4346: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4347: (eval $ac_compile) 2>&5
4348: ac_status=$?
4349: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350: (exit $ac_status); } &&
4351: { ac_try='test -s conftest.$ac_objext'
4352: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353: (eval $ac_try) 2>&5
4354: ac_status=$?
4355: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356: (exit $ac_status); }; }; then
4357: eval "$as_ac_Header=yes"
4358: else
4359: echo "$as_me: failed program was:" >&5
1.17 ohara 4360: cat conftest.$ac_ext >&5
1.14 noro 4361: eval "$as_ac_Header=no"
4362: fi
4363: rm -f conftest.$ac_objext conftest.$ac_ext
4364: fi
4365: echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4366: echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4367: if test `eval echo '${'$as_ac_Header'}'` = yes; then
4368: cat >>confdefs.h <<_ACEOF
4369: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4370: _ACEOF
4371:
4372: fi
4373:
4374: done
4375:
4376:
1.18 ohara 4377: echo "$as_me:$LINENO: checking for unsigned long long" >&5
4378: echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
4379: if test "${ac_cv_type_unsigned_long_long+set}" = set; then
4380: echo $ECHO_N "(cached) $ECHO_C" >&6
4381: else
4382: cat >conftest.$ac_ext <<_ACEOF
4383: #line $LINENO "configure"
4384: #include "confdefs.h"
4385: $ac_includes_default
4386: #ifdef F77_DUMMY_MAIN
4387: # ifdef __cplusplus
4388: extern "C"
4389: # endif
4390: int F77_DUMMY_MAIN() { return 1; }
4391: #endif
4392: int
4393: main ()
4394: {
4395: if ((unsigned long long *) 0)
4396: return 0;
4397: if (sizeof (unsigned long long))
4398: return 0;
4399: ;
4400: return 0;
4401: }
4402: _ACEOF
4403: rm -f conftest.$ac_objext
4404: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405: (eval $ac_compile) 2>&5
4406: ac_status=$?
4407: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408: (exit $ac_status); } &&
4409: { ac_try='test -s conftest.$ac_objext'
4410: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411: (eval $ac_try) 2>&5
4412: ac_status=$?
4413: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414: (exit $ac_status); }; }; then
4415: ac_cv_type_unsigned_long_long=yes
4416: else
4417: echo "$as_me: failed program was:" >&5
4418: cat conftest.$ac_ext >&5
4419: ac_cv_type_unsigned_long_long=no
4420: fi
4421: rm -f conftest.$ac_objext conftest.$ac_ext
4422: fi
4423: echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
4424: echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
4425: if test $ac_cv_type_unsigned_long_long = yes; then
4426:
4427: cat >>confdefs.h <<_ACEOF
4428: #define HAVE_UNSIGNED_LONG_LONG 1
4429: _ACEOF
4430:
4431:
4432: fi
4433:
1.14 noro 4434: echo "$as_me:$LINENO: checking for long" >&5
4435: echo $ECHO_N "checking for long... $ECHO_C" >&6
4436: if test "${ac_cv_type_long+set}" = set; then
4437: echo $ECHO_N "(cached) $ECHO_C" >&6
4438: else
4439: cat >conftest.$ac_ext <<_ACEOF
4440: #line $LINENO "configure"
1.17 ohara 4441: #include "confdefs.h"
1.14 noro 4442: $ac_includes_default
1.17 ohara 4443: #ifdef F77_DUMMY_MAIN
4444: # ifdef __cplusplus
4445: extern "C"
4446: # endif
4447: int F77_DUMMY_MAIN() { return 1; }
4448: #endif
1.14 noro 4449: int
4450: main ()
4451: {
4452: if ((long *) 0)
4453: return 0;
4454: if (sizeof (long))
4455: return 0;
4456: ;
4457: return 0;
4458: }
4459: _ACEOF
4460: rm -f conftest.$ac_objext
4461: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462: (eval $ac_compile) 2>&5
4463: ac_status=$?
4464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465: (exit $ac_status); } &&
4466: { ac_try='test -s conftest.$ac_objext'
4467: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468: (eval $ac_try) 2>&5
4469: ac_status=$?
4470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471: (exit $ac_status); }; }; then
4472: ac_cv_type_long=yes
4473: else
4474: echo "$as_me: failed program was:" >&5
1.17 ohara 4475: cat conftest.$ac_ext >&5
1.14 noro 4476: ac_cv_type_long=no
4477: fi
4478: rm -f conftest.$ac_objext conftest.$ac_ext
4479: fi
4480: echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
4481: echo "${ECHO_T}$ac_cv_type_long" >&6
4482:
4483: echo "$as_me:$LINENO: checking size of long" >&5
4484: echo $ECHO_N "checking size of long... $ECHO_C" >&6
4485: if test "${ac_cv_sizeof_long+set}" = set; then
4486: echo $ECHO_N "(cached) $ECHO_C" >&6
4487: else
4488: if test "$ac_cv_type_long" = yes; then
4489: # The cast to unsigned long works around a bug in the HP C Compiler
4490: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4491: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4492: # This bug is HP SR number 8606223364.
4493: if test "$cross_compiling" = yes; then
4494: # Depending upon the size, compute the lo and hi bounds.
4495: cat >conftest.$ac_ext <<_ACEOF
4496: #line $LINENO "configure"
1.17 ohara 4497: #include "confdefs.h"
1.14 noro 4498: $ac_includes_default
1.17 ohara 4499: #ifdef F77_DUMMY_MAIN
4500: # ifdef __cplusplus
4501: extern "C"
4502: # endif
4503: int F77_DUMMY_MAIN() { return 1; }
4504: #endif
1.14 noro 4505: int
4506: main ()
4507: {
4508: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4509: test_array [0] = 0
4510:
4511: ;
4512: return 0;
4513: }
4514: _ACEOF
4515: rm -f conftest.$ac_objext
4516: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4517: (eval $ac_compile) 2>&5
4518: ac_status=$?
4519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520: (exit $ac_status); } &&
4521: { ac_try='test -s conftest.$ac_objext'
4522: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523: (eval $ac_try) 2>&5
4524: ac_status=$?
4525: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526: (exit $ac_status); }; }; then
4527: ac_lo=0 ac_mid=0
4528: while :; do
4529: cat >conftest.$ac_ext <<_ACEOF
4530: #line $LINENO "configure"
1.17 ohara 4531: #include "confdefs.h"
1.14 noro 4532: $ac_includes_default
1.17 ohara 4533: #ifdef F77_DUMMY_MAIN
4534: # ifdef __cplusplus
4535: extern "C"
4536: # endif
4537: int F77_DUMMY_MAIN() { return 1; }
4538: #endif
1.14 noro 4539: int
4540: main ()
4541: {
4542: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4543: test_array [0] = 0
4544:
4545: ;
4546: return 0;
4547: }
4548: _ACEOF
4549: rm -f conftest.$ac_objext
4550: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4551: (eval $ac_compile) 2>&5
4552: ac_status=$?
4553: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554: (exit $ac_status); } &&
4555: { ac_try='test -s conftest.$ac_objext'
4556: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557: (eval $ac_try) 2>&5
4558: ac_status=$?
4559: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560: (exit $ac_status); }; }; then
4561: ac_hi=$ac_mid; break
4562: else
4563: echo "$as_me: failed program was:" >&5
1.17 ohara 4564: cat conftest.$ac_ext >&5
1.14 noro 4565: ac_lo=`expr $ac_mid + 1`
4566: if test $ac_lo -le $ac_mid; then
4567: ac_lo= ac_hi=
4568: break
4569: fi
4570: ac_mid=`expr 2 '*' $ac_mid + 1`
4571: fi
4572: rm -f conftest.$ac_objext conftest.$ac_ext
4573: done
4574: else
4575: echo "$as_me: failed program was:" >&5
1.17 ohara 4576: cat conftest.$ac_ext >&5
1.14 noro 4577: cat >conftest.$ac_ext <<_ACEOF
4578: #line $LINENO "configure"
1.17 ohara 4579: #include "confdefs.h"
1.14 noro 4580: $ac_includes_default
1.17 ohara 4581: #ifdef F77_DUMMY_MAIN
4582: # ifdef __cplusplus
4583: extern "C"
4584: # endif
4585: int F77_DUMMY_MAIN() { return 1; }
4586: #endif
1.14 noro 4587: int
4588: main ()
4589: {
4590: static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4591: test_array [0] = 0
4592:
4593: ;
4594: return 0;
4595: }
4596: _ACEOF
4597: rm -f conftest.$ac_objext
4598: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599: (eval $ac_compile) 2>&5
4600: ac_status=$?
4601: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602: (exit $ac_status); } &&
4603: { ac_try='test -s conftest.$ac_objext'
4604: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4605: (eval $ac_try) 2>&5
4606: ac_status=$?
4607: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608: (exit $ac_status); }; }; then
4609: ac_hi=-1 ac_mid=-1
4610: while :; do
4611: cat >conftest.$ac_ext <<_ACEOF
4612: #line $LINENO "configure"
1.17 ohara 4613: #include "confdefs.h"
1.14 noro 4614: $ac_includes_default
1.17 ohara 4615: #ifdef F77_DUMMY_MAIN
4616: # ifdef __cplusplus
4617: extern "C"
4618: # endif
4619: int F77_DUMMY_MAIN() { return 1; }
4620: #endif
1.14 noro 4621: int
4622: main ()
4623: {
4624: static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4625: test_array [0] = 0
4626:
4627: ;
4628: return 0;
4629: }
4630: _ACEOF
4631: rm -f conftest.$ac_objext
4632: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4633: (eval $ac_compile) 2>&5
4634: ac_status=$?
4635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636: (exit $ac_status); } &&
4637: { ac_try='test -s conftest.$ac_objext'
4638: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4639: (eval $ac_try) 2>&5
4640: ac_status=$?
4641: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642: (exit $ac_status); }; }; then
4643: ac_lo=$ac_mid; break
4644: else
4645: echo "$as_me: failed program was:" >&5
1.17 ohara 4646: cat conftest.$ac_ext >&5
1.14 noro 4647: ac_hi=`expr '(' $ac_mid ')' - 1`
4648: if test $ac_mid -le $ac_hi; then
4649: ac_lo= ac_hi=
4650: break
4651: fi
4652: ac_mid=`expr 2 '*' $ac_mid`
4653: fi
4654: rm -f conftest.$ac_objext conftest.$ac_ext
4655: done
4656: else
4657: echo "$as_me: failed program was:" >&5
1.17 ohara 4658: cat conftest.$ac_ext >&5
1.14 noro 4659: ac_lo= ac_hi=
4660: fi
4661: rm -f conftest.$ac_objext conftest.$ac_ext
4662: fi
4663: rm -f conftest.$ac_objext conftest.$ac_ext
4664: # Binary search between lo and hi bounds.
4665: while test "x$ac_lo" != "x$ac_hi"; do
4666: ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4667: cat >conftest.$ac_ext <<_ACEOF
4668: #line $LINENO "configure"
1.17 ohara 4669: #include "confdefs.h"
1.14 noro 4670: $ac_includes_default
1.17 ohara 4671: #ifdef F77_DUMMY_MAIN
4672: # ifdef __cplusplus
4673: extern "C"
4674: # endif
4675: int F77_DUMMY_MAIN() { return 1; }
4676: #endif
1.14 noro 4677: int
4678: main ()
4679: {
4680: static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4681: test_array [0] = 0
4682:
4683: ;
4684: return 0;
4685: }
4686: _ACEOF
4687: rm -f conftest.$ac_objext
4688: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689: (eval $ac_compile) 2>&5
4690: ac_status=$?
4691: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692: (exit $ac_status); } &&
4693: { ac_try='test -s conftest.$ac_objext'
4694: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695: (eval $ac_try) 2>&5
4696: ac_status=$?
4697: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698: (exit $ac_status); }; }; then
4699: ac_hi=$ac_mid
4700: else
4701: echo "$as_me: failed program was:" >&5
1.17 ohara 4702: cat conftest.$ac_ext >&5
1.14 noro 4703: ac_lo=`expr '(' $ac_mid ')' + 1`
4704: fi
4705: rm -f conftest.$ac_objext conftest.$ac_ext
4706: done
4707: case $ac_lo in
4708: ?*) ac_cv_sizeof_long=$ac_lo;;
1.17 ohara 4709: '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4710: echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
1.14 noro 4711: { (exit 1); exit 1; }; } ;;
4712: esac
4713: else
4714: if test "$cross_compiling" = yes; then
1.17 ohara 4715: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
4716: echo "$as_me: error: cannot run test program while cross compiling" >&2;}
1.14 noro 4717: { (exit 1); exit 1; }; }
4718: else
4719: cat >conftest.$ac_ext <<_ACEOF
4720: #line $LINENO "configure"
1.17 ohara 4721: #include "confdefs.h"
1.14 noro 4722: $ac_includes_default
4723: long longval () { return (long) (sizeof (long)); }
4724: unsigned long ulongval () { return (long) (sizeof (long)); }
4725: #include <stdio.h>
4726: #include <stdlib.h>
1.17 ohara 4727: #ifdef F77_DUMMY_MAIN
4728: # ifdef __cplusplus
4729: extern "C"
4730: # endif
4731: int F77_DUMMY_MAIN() { return 1; }
4732: #endif
1.14 noro 4733: int
4734: main ()
4735: {
4736:
4737: FILE *f = fopen ("conftest.val", "w");
4738: if (! f)
4739: exit (1);
4740: if (((long) (sizeof (long))) < 0)
4741: {
4742: long i = longval ();
4743: if (i != ((long) (sizeof (long))))
4744: exit (1);
4745: fprintf (f, "%ld\n", i);
4746: }
4747: else
4748: {
4749: unsigned long i = ulongval ();
4750: if (i != ((long) (sizeof (long))))
4751: exit (1);
4752: fprintf (f, "%lu\n", i);
4753: }
4754: exit (ferror (f) || fclose (f) != 0);
4755:
4756: ;
4757: return 0;
4758: }
4759: _ACEOF
4760: rm -f conftest$ac_exeext
4761: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4762: (eval $ac_link) 2>&5
4763: ac_status=$?
4764: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4766: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767: (eval $ac_try) 2>&5
4768: ac_status=$?
4769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770: (exit $ac_status); }; }; then
4771: ac_cv_sizeof_long=`cat conftest.val`
4772: else
4773: echo "$as_me: program exited with status $ac_status" >&5
4774: echo "$as_me: failed program was:" >&5
1.17 ohara 4775: cat conftest.$ac_ext >&5
1.14 noro 4776: ( exit $ac_status )
1.17 ohara 4777: { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77" >&5
4778: echo "$as_me: error: cannot compute sizeof (long), 77" >&2;}
1.14 noro 4779: { (exit 1); exit 1; }; }
4780: fi
1.17 ohara 4781: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.14 noro 4782: fi
4783: fi
4784: rm -f conftest.val
4785: else
4786: ac_cv_sizeof_long=0
4787: fi
4788: fi
4789: echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4790: echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4791: cat >>confdefs.h <<_ACEOF
4792: #define SIZEOF_LONG $ac_cv_sizeof_long
4793: _ACEOF
4794:
4795:
1.26 noro 4796: if test "${ac_cv_sizeof_long}" = 8; then
1.16 noro 4797: cat >>confdefs.h <<\_ACEOF
1.14 noro 4798: #define LONG_IS_64BIT 1
4799: _ACEOF
4800:
1.16 noro 4801: else
4802: cat >>confdefs.h <<\_ACEOF
1.14 noro 4803: #define LONG_IS_32BIT 1
4804: _ACEOF
4805:
4806: fi
4807: if test "${no_x}" != yes ; then
1.25 ohara 4808: if test -f "${x_libraries}/libXpm.a" -o -f "${x_libraries}/libXpm.dll.a" ; then
1.21 ohara 4809: XPMLIB="-lXpm"
4810: fi
1.14 noro 4811: # Check whether --enable-plot or --disable-plot was given.
4812: if test "${enable_plot+set}" = set; then
4813: enableval="$enable_plot"
4814: enable_plot=yes
4815: else
4816: enable_plot=no
4817: fi;
4818: fi
4819:
1.21 ohara 4820:
1.14 noro 4821: if test ${enable_plot:=no} != no ; then
4822: libasir_postfix=${libasir_postfix}_X
4823: cat >>confdefs.h <<\_ACEOF
4824: #define DO_PLOT 1
4825: _ACEOF
4826:
4827: fi
4828:
4829:
4830: if test "$enable_plot" = yes; then
4831: USE_PLOT_TRUE=
4832: USE_PLOT_FALSE='#'
4833: else
4834: USE_PLOT_TRUE='#'
4835: USE_PLOT_FALSE=
4836: fi
4837:
4838: # Check whether --enable-interval or --disable-interval was given.
4839: if test "${enable_interval+set}" = set; then
4840: enableval="$enable_interval"
4841: enable_interval=${enableval}
4842: else
4843: enable_interval=no
4844: fi;
4845:
4846: if test ${enable_interval:=no} != no ; then
4847: libasir_postfix=${libasir_postfix}_itv
4848: cat >>confdefs.h <<\_ACEOF
4849: #define INTERVAL 1
4850: _ACEOF
4851:
4852: if test "${enable_interval}" = debug ; then
4853: cat >>confdefs.h <<\_ACEOF
4854: #define ITVDEBUG 1
4855: _ACEOF
4856:
4857: fi
4858: fi
4859:
4860:
4861: if test "${enable_fep:=no}" != no ; then
4862: cat >>confdefs.h <<\_ACEOF
4863: #define FEP 1
4864: _ACEOF
4865:
4866: FEPLIB="-lreadline -ltermcap"
4867: fi
4868:
4869:
4870: # Check whether --enable-fft-float or --disable-fft-float was given.
4871: if test "${enable_fft_float+set}" = set; then
4872: enableval="$enable_fft_float"
4873: enable_fft_float=yes
4874: else
4875: enable_fft_float=no
4876: fi;
4877:
4878: if test "${enable_fft_float:=no}" != no ; then
4879: cat >>confdefs.h <<\_ACEOF
4880: #define USE_FLOAT 1
4881: _ACEOF
4882:
4883: fi
4884:
4885:
4886: if test "${with_mpi:=no}" != no ; then
4887: MPIINC="-I/opt/FJSVmpi2/include"
4888: MPILIB="-L/opt/FJSVmpi2/lib -lmpi -L/opt/FSUNaprun/lib -lmpl -lemi -lthread"
4889: cat >>confdefs.h <<\_ACEOF
4890: #define MPI 1
4891: _ACEOF
4892:
4893: fi
4894:
4895:
4896:
4897:
4898: if test "${with_lapack:=no}" != no ; then
4899: LAPACKLIB="-llapack -lblas -lI77 -lF77"
4900: cat >>confdefs.h <<\_ACEOF
4901: #define LAPACK 1
4902: _ACEOF
4903:
4904: fi
4905:
4906:
4907:
4908:
4909:
4910: i386_elf_obj=asmi_l.o
4911: i386_aout_obj=asmi.o
4912: sparc_v8_obj="sparc-2.o asm4-2.o edr-2.o"
4913: sparc_v9_obj="sparc-2.o asm5-2.o edr-2.o"
4914: generic_obj=asmalpha.o
4915:
4916: case "${host}" in
1.20 ohara 4917: i[3-6]86-*-freebsd[3-9].*)
1.14 noro 4918: asm_obj="${i386_elf_obj}"
1.20 ohara 4919: ;;
4920: i[3-6]86-*-linux*|x86-*-linux*)
4921: asm_obj="${i386_elf_obj}"
4922: cat >>confdefs.h <<\_ACEOF
1.24 ohara 4923: #define _BSD_SOURCE 1
1.20 ohara 4924: _ACEOF
4925:
1.14 noro 4926: ;;
4927: *-*-cygwin*)
4928: asm_obj="${i386_aout_obj}"
4929: ;;
1.27 ohara 4930: i[3-6]86-*-interix*)
1.28 ohara 4931: asm_obj="${i386_aout_obj}"
4932: USE_GC_INTERIX="yes"
4933:
1.27 ohara 4934: cat >>confdefs.h <<\_ACEOF
4935: #define _ALL_SOURCE 1
4936: _ACEOF
4937:
4938: ;;
1.14 noro 4939: sparc-sun-solaris2.*)
4940: case "`uname -m`" in
4941: sun4[dm]) asm_obj="${sparc_v8_obj}" ;;
4942: sun4u*) asm_obj="${sparc_v9_obj}" ;;
4943: *) asm_obj="${generic_obj}" ;;
4944: esac
4945: cat >>confdefs.h <<\_ACEOF
4946: #define SYSV 1
4947: _ACEOF
4948:
4949: ;;
4950: powerpc-apple-darwin*)
4951: asm_obj="${generic_obj}"
4952: cat >>confdefs.h <<\_ACEOF
4953: #define __DARWIN__ 1
4954: _ACEOF
4955:
1.19 ohara 4956: ;;
4957: arm*-*-linux*)
4958: asm_obj="${generic_obj}"
4959: if test "${ac_test_CFLAGS}" != set -a "${GCC}" = yes ; then
4960: CFLAGS="${CFLAGS} -fsigned-char"
4961: fi
1.14 noro 4962: ;;
4963: *)
4964: asm_obj="${generic_obj}"
4965: ;;
4966: esac
4967:
4968:
4969:
4970: echo "$as_me:$LINENO: checking for socket" >&5
4971: echo $ECHO_N "checking for socket... $ECHO_C" >&6
4972: if test "${ac_cv_func_socket+set}" = set; then
4973: echo $ECHO_N "(cached) $ECHO_C" >&6
4974: else
4975: cat >conftest.$ac_ext <<_ACEOF
4976: #line $LINENO "configure"
1.17 ohara 4977: #include "confdefs.h"
1.14 noro 4978: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 4979: which can conflict with char socket (); below. */
4980: #include <assert.h>
1.14 noro 4981: /* Override any gcc2 internal prototype to avoid an error. */
4982: #ifdef __cplusplus
4983: extern "C"
4984: #endif
4985: /* We use char because int might match the return type of a gcc2
4986: builtin and then its argument prototype would still apply. */
4987: char socket ();
1.17 ohara 4988: char (*f) ();
4989:
4990: #ifdef F77_DUMMY_MAIN
4991: # ifdef __cplusplus
4992: extern "C"
4993: # endif
4994: int F77_DUMMY_MAIN() { return 1; }
4995: #endif
4996: int
4997: main ()
4998: {
1.14 noro 4999: /* The GNU C library defines this for functions which it implements
5000: to always fail with ENOSYS. Some functions are actually named
5001: something starting with __ and the normal name is an alias. */
5002: #if defined (__stub_socket) || defined (__stub___socket)
5003: choke me
5004: #else
1.17 ohara 5005: f = socket;
1.14 noro 5006: #endif
5007:
5008: ;
5009: return 0;
5010: }
5011: _ACEOF
5012: rm -f conftest.$ac_objext conftest$ac_exeext
5013: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5014: (eval $ac_link) 2>&5
5015: ac_status=$?
5016: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017: (exit $ac_status); } &&
5018: { ac_try='test -s conftest$ac_exeext'
5019: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020: (eval $ac_try) 2>&5
5021: ac_status=$?
5022: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023: (exit $ac_status); }; }; then
5024: ac_cv_func_socket=yes
5025: else
5026: echo "$as_me: failed program was:" >&5
1.17 ohara 5027: cat conftest.$ac_ext >&5
1.14 noro 5028: ac_cv_func_socket=no
5029: fi
5030: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5031: fi
5032: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
5033: echo "${ECHO_T}$ac_cv_func_socket" >&6
5034: if test $ac_cv_func_socket = yes; then
5035: :
5036: else
5037:
5038: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5039: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5040: if test "${ac_cv_lib_socket_socket+set}" = set; then
5041: echo $ECHO_N "(cached) $ECHO_C" >&6
5042: else
5043: ac_check_lib_save_LIBS=$LIBS
5044: LIBS="-lsocket $LIBS"
5045: cat >conftest.$ac_ext <<_ACEOF
5046: #line $LINENO "configure"
1.17 ohara 5047: #include "confdefs.h"
1.14 noro 5048:
5049: /* Override any gcc2 internal prototype to avoid an error. */
5050: #ifdef __cplusplus
5051: extern "C"
5052: #endif
5053: /* We use char because int might match the return type of a gcc2
5054: builtin and then its argument prototype would still apply. */
5055: char socket ();
1.17 ohara 5056: #ifdef F77_DUMMY_MAIN
5057: # ifdef __cplusplus
5058: extern "C"
5059: # endif
5060: int F77_DUMMY_MAIN() { return 1; }
5061: #endif
1.14 noro 5062: int
5063: main ()
5064: {
5065: socket ();
5066: ;
5067: return 0;
5068: }
5069: _ACEOF
5070: rm -f conftest.$ac_objext conftest$ac_exeext
5071: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5072: (eval $ac_link) 2>&5
5073: ac_status=$?
5074: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075: (exit $ac_status); } &&
5076: { ac_try='test -s conftest$ac_exeext'
5077: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078: (eval $ac_try) 2>&5
5079: ac_status=$?
5080: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081: (exit $ac_status); }; }; then
5082: ac_cv_lib_socket_socket=yes
5083: else
5084: echo "$as_me: failed program was:" >&5
1.17 ohara 5085: cat conftest.$ac_ext >&5
1.14 noro 5086: ac_cv_lib_socket_socket=no
5087: fi
5088: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5089: LIBS=$ac_check_lib_save_LIBS
5090: fi
5091: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5092: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5093: if test $ac_cv_lib_socket_socket = yes; then
5094: cat >>confdefs.h <<_ACEOF
5095: #define HAVE_LIBSOCKET 1
5096: _ACEOF
5097:
5098: LIBS="-lsocket $LIBS"
5099:
5100: fi
5101:
5102: fi
5103:
5104: echo "$as_me:$LINENO: checking for gethostbyname" >&5
5105: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
5106: if test "${ac_cv_func_gethostbyname+set}" = set; then
5107: echo $ECHO_N "(cached) $ECHO_C" >&6
5108: else
5109: cat >conftest.$ac_ext <<_ACEOF
5110: #line $LINENO "configure"
1.17 ohara 5111: #include "confdefs.h"
1.14 noro 5112: /* System header to define __stub macros and hopefully few prototypes,
1.17 ohara 5113: which can conflict with char gethostbyname (); below. */
5114: #include <assert.h>
1.14 noro 5115: /* Override any gcc2 internal prototype to avoid an error. */
5116: #ifdef __cplusplus
5117: extern "C"
5118: #endif
5119: /* We use char because int might match the return type of a gcc2
5120: builtin and then its argument prototype would still apply. */
5121: char gethostbyname ();
1.17 ohara 5122: char (*f) ();
5123:
5124: #ifdef F77_DUMMY_MAIN
5125: # ifdef __cplusplus
5126: extern "C"
5127: # endif
5128: int F77_DUMMY_MAIN() { return 1; }
5129: #endif
5130: int
5131: main ()
5132: {
1.14 noro 5133: /* The GNU C library defines this for functions which it implements
5134: to always fail with ENOSYS. Some functions are actually named
5135: something starting with __ and the normal name is an alias. */
5136: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5137: choke me
5138: #else
1.17 ohara 5139: f = gethostbyname;
1.14 noro 5140: #endif
5141:
5142: ;
5143: return 0;
5144: }
5145: _ACEOF
5146: rm -f conftest.$ac_objext conftest$ac_exeext
5147: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5148: (eval $ac_link) 2>&5
5149: ac_status=$?
5150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151: (exit $ac_status); } &&
5152: { ac_try='test -s conftest$ac_exeext'
5153: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154: (eval $ac_try) 2>&5
5155: ac_status=$?
5156: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157: (exit $ac_status); }; }; then
5158: ac_cv_func_gethostbyname=yes
5159: else
5160: echo "$as_me: failed program was:" >&5
1.17 ohara 5161: cat conftest.$ac_ext >&5
1.14 noro 5162: ac_cv_func_gethostbyname=no
5163: fi
5164: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5165: fi
5166: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5167: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
5168: if test $ac_cv_func_gethostbyname = yes; then
5169: :
5170: else
5171:
5172: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
5173: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5174: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5175: echo $ECHO_N "(cached) $ECHO_C" >&6
5176: else
5177: ac_check_lib_save_LIBS=$LIBS
5178: LIBS="-lnsl $LIBS"
5179: cat >conftest.$ac_ext <<_ACEOF
5180: #line $LINENO "configure"
1.17 ohara 5181: #include "confdefs.h"
1.14 noro 5182:
5183: /* Override any gcc2 internal prototype to avoid an error. */
5184: #ifdef __cplusplus
5185: extern "C"
5186: #endif
5187: /* We use char because int might match the return type of a gcc2
5188: builtin and then its argument prototype would still apply. */
5189: char gethostbyname ();
1.17 ohara 5190: #ifdef F77_DUMMY_MAIN
5191: # ifdef __cplusplus
5192: extern "C"
5193: # endif
5194: int F77_DUMMY_MAIN() { return 1; }
5195: #endif
1.14 noro 5196: int
5197: main ()
5198: {
5199: gethostbyname ();
5200: ;
5201: return 0;
5202: }
5203: _ACEOF
5204: rm -f conftest.$ac_objext conftest$ac_exeext
5205: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206: (eval $ac_link) 2>&5
5207: ac_status=$?
5208: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209: (exit $ac_status); } &&
5210: { ac_try='test -s conftest$ac_exeext'
5211: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5212: (eval $ac_try) 2>&5
5213: ac_status=$?
5214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215: (exit $ac_status); }; }; then
5216: ac_cv_lib_nsl_gethostbyname=yes
5217: else
5218: echo "$as_me: failed program was:" >&5
1.17 ohara 5219: cat conftest.$ac_ext >&5
1.14 noro 5220: ac_cv_lib_nsl_gethostbyname=no
5221: fi
5222: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5223: LIBS=$ac_check_lib_save_LIBS
5224: fi
5225: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5226: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5227: if test $ac_cv_lib_nsl_gethostbyname = yes; then
5228: cat >>confdefs.h <<_ACEOF
5229: #define HAVE_LIBNSL 1
5230: _ACEOF
5231:
5232: LIBS="-lnsl $LIBS"
5233:
5234: fi
5235:
5236: fi
5237:
5238:
1.17 ohara 5239: ac_config_files="$ac_config_files Makefile engine/Makefile asm/Makefile builtin/Makefile fft/Makefile include/Makefile io/Makefile lib/Makefile parse/Makefile plot/Makefile"
1.14 noro 5240: cat >confcache <<\_ACEOF
5241: # This file is a shell script that caches the results of configure
5242: # tests run on this system so they can be shared between configure
5243: # scripts and configure runs, see configure's option --config-cache.
5244: # It is not useful on other systems. If it contains results you don't
5245: # want to keep, you may remove or edit it.
5246: #
5247: # config.status only pays attention to the cache file if you give it
5248: # the --recheck option to rerun configure.
5249: #
1.17 ohara 5250: # `ac_cv_env_foo' variables (set or unset) will be overriden when
1.14 noro 5251: # loading this file, other *unset* `ac_cv_foo' will be assigned the
5252: # following values.
5253:
5254: _ACEOF
5255:
5256: # The following way of writing the cache mishandles newlines in values,
5257: # but we know of no workaround that is simple, portable, and efficient.
5258: # So, don't put newlines in cache variables' values.
5259: # Ultrix sh set writes to stderr and can't be redirected directly,
5260: # and sets the high bit in the cache file unless we assign to the vars.
5261: {
5262: (set) 2>&1 |
5263: case `(ac_space=' '; set | grep ac_space) 2>&1` in
5264: *ac_space=\ *)
5265: # `set' does not quote correctly, so add quotes (double-quote
5266: # substitution turns \\\\ into \\, and sed turns \\ into \).
5267: sed -n \
5268: "s/'/'\\\\''/g;
5269: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5270: ;;
5271: *)
5272: # `set' quotes correctly as required by POSIX, so do not add quotes.
5273: sed -n \
5274: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5275: ;;
5276: esac;
5277: } |
5278: sed '
5279: t clear
5280: : clear
5281: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5282: t end
5283: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5284: : end' >>confcache
1.17 ohara 5285: if cmp -s $cache_file confcache; then :; else
1.14 noro 5286: if test -w $cache_file; then
5287: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5288: cat confcache >$cache_file
5289: else
5290: echo "not updating unwritable cache $cache_file"
5291: fi
5292: fi
5293: rm -f confcache
5294:
5295: test "x$prefix" = xNONE && prefix=$ac_default_prefix
5296: # Let make expand exec_prefix.
5297: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5298:
5299: # VPATH may cause trouble with some makes, so we remove $(srcdir),
5300: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5301: # trailing colons and then remove the whole line if VPATH becomes empty
5302: # (actually we leave an empty line to preserve line numbers).
5303: if test "x$srcdir" = x.; then
5304: ac_vpsub='/^[ ]*VPATH[ ]*=/{
5305: s/:*\$(srcdir):*/:/;
5306: s/:*\${srcdir}:*/:/;
5307: s/:*@srcdir@:*/:/;
5308: s/^\([^=]*=[ ]*\):*/\1/;
5309: s/:*$//;
5310: s/^[^=]*=[ ]*$//;
5311: }'
5312: fi
5313:
5314: # Transform confdefs.h into DEFS.
5315: # Protect against shell expansion while executing Makefile rules.
5316: # Protect against Makefile macro expansion.
5317: #
5318: # If the first sed substitution is executed (which looks for macros that
5319: # take arguments), then we branch to the quote section. Otherwise,
5320: # look for a macro that doesn't take arguments.
5321: cat >confdef2opt.sed <<\_ACEOF
5322: t clear
5323: : clear
5324: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5325: t quote
5326: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5327: t quote
5328: d
5329: : quote
5330: s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5331: s,\[,\\&,g
5332: s,\],\\&,g
5333: s,\$,$$,g
5334: p
5335: _ACEOF
5336: # We use echo to avoid assuming a particular line-breaking character.
5337: # The extra dot is to prevent the shell from consuming trailing
5338: # line-breaks from the sub-command output. A line-break within
5339: # single-quotes doesn't work because, if this script is created in a
5340: # platform that uses two characters for line-breaks (e.g., DOS), tr
5341: # would break.
5342: ac_LF_and_DOT=`echo; echo .`
5343: DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5344: rm -f confdef2opt.sed
5345:
5346:
5347:
5348: : ${CONFIG_STATUS=./config.status}
5349: ac_clean_files_save=$ac_clean_files
5350: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5351: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5352: echo "$as_me: creating $CONFIG_STATUS" >&6;}
5353: cat >$CONFIG_STATUS <<_ACEOF
5354: #! $SHELL
5355: # Generated by $as_me.
5356: # Run this file to recreate the current configuration.
5357: # Compiler output produced by configure, useful for debugging
5358: # configure, is in config.log if it exists.
5359:
5360: debug=false
5361: SHELL=\${CONFIG_SHELL-$SHELL}
5362: _ACEOF
5363:
5364: cat >>$CONFIG_STATUS <<\_ACEOF
1.17 ohara 5365:
1.14 noro 5366: ## --------------------- ##
5367: ## M4sh Initialization. ##
5368: ## --------------------- ##
5369:
5370: # Be Bourne compatible
5371: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5372: emulate sh
5373: NULLCMD=:
5374: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5375: set -o posix
5376: fi
5377:
1.17 ohara 5378: # NLS nuisances.
1.14 noro 5379: # Support unset when possible.
5380: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
5381: as_unset=unset
5382: else
5383: as_unset=false
5384: fi
5385:
1.17 ohara 5386: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
5387: { $as_unset LANG || test "${LANG+set}" != set; } ||
5388: { LANG=C; export LANG; }
5389: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
5390: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
5391: { LC_ALL=C; export LC_ALL; }
5392: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
5393: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
5394: { LC_TIME=C; export LC_TIME; }
5395: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
5396: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
5397: { LC_CTYPE=C; export LC_CTYPE; }
5398: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
5399: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
5400: { LANGUAGE=C; export LANGUAGE; }
5401: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
5402: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
5403: { LC_COLLATE=C; export LC_COLLATE; }
5404: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
5405: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
5406: { LC_NUMERIC=C; export LC_NUMERIC; }
5407: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
5408: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
5409: { LC_MESSAGES=C; export LC_MESSAGES; }
1.14 noro 5410:
5411:
5412: # Name of the executable.
1.17 ohara 5413: as_me=`(basename "$0") 2>/dev/null ||
1.14 noro 5414: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5415: X"$0" : 'X\(//\)$' \| \
5416: X"$0" : 'X\(/\)$' \| \
5417: . : '\(.\)' 2>/dev/null ||
5418: echo X/"$0" |
5419: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5420: /^X\/\(\/\/\)$/{ s//\1/; q; }
5421: /^X\/\(\/\).*/{ s//\1/; q; }
5422: s/.*/./; q'`
5423:
5424: # PATH needs CR, and LINENO needs CR and PATH.
5425: # Avoid depending upon Character Ranges.
5426: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5427: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5428: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5429: as_cr_digits='0123456789'
5430: as_cr_alnum=$as_cr_Letters$as_cr_digits
5431:
5432: # The user is always right.
5433: if test "${PATH_SEPARATOR+set}" != set; then
1.17 ohara 5434: echo "#! /bin/sh" >conftest.sh
5435: echo "exit 0" >>conftest.sh
5436: chmod +x conftest.sh
5437: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
1.14 noro 5438: PATH_SEPARATOR=';'
5439: else
5440: PATH_SEPARATOR=:
5441: fi
1.17 ohara 5442: rm -f conftest.sh
1.14 noro 5443: fi
5444:
5445:
5446: as_lineno_1=$LINENO
5447: as_lineno_2=$LINENO
5448: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5449: test "x$as_lineno_1" != "x$as_lineno_2" &&
5450: test "x$as_lineno_3" = "x$as_lineno_2" || {
5451: # Find who we are. Look in the path if we contain no path at all
5452: # relative or not.
5453: case $0 in
5454: *[\\/]* ) as_myself=$0 ;;
5455: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456: for as_dir in $PATH
5457: do
5458: IFS=$as_save_IFS
5459: test -z "$as_dir" && as_dir=.
5460: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5461: done
5462:
5463: ;;
5464: esac
5465: # We did not find ourselves, most probably we were run as `sh COMMAND'
5466: # in which case we are not to be found in the path.
5467: if test "x$as_myself" = x; then
5468: as_myself=$0
5469: fi
5470: if test ! -f "$as_myself"; then
5471: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5472: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5473: { (exit 1); exit 1; }; }
5474: fi
5475: case $CONFIG_SHELL in
5476: '')
5477: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1.2 noro 5479: do
1.14 noro 5480: IFS=$as_save_IFS
5481: test -z "$as_dir" && as_dir=.
5482: for as_base in sh bash ksh sh5; do
5483: case $as_dir in
5484: /*)
5485: if ("$as_dir/$as_base" -c '
5486: as_lineno_1=$LINENO
5487: as_lineno_2=$LINENO
5488: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5489: test "x$as_lineno_1" != "x$as_lineno_2" &&
5490: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5491: CONFIG_SHELL=$as_dir/$as_base
5492: export CONFIG_SHELL
5493: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5494: fi;;
5495: esac
5496: done
1.2 noro 5497: done
1.14 noro 5498: ;;
5499: esac
1.2 noro 5500:
1.14 noro 5501: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5502: # uniformly replaced by the line number. The first 'sed' inserts a
5503: # line-number line before each line; the second 'sed' does the real
5504: # work. The second script uses 'N' to pair each line-number line
5505: # with the numbered line, and appends trailing '-' during
5506: # substitution so that $LINENO is not a special case at line end.
5507: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5508: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5509: sed '=' <$as_myself |
5510: sed '
5511: N
5512: s,$,-,
5513: : loop
5514: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5515: t loop
5516: s,-$,,
5517: s,^['$as_cr_digits']*\n,,
5518: ' >$as_me.lineno &&
5519: chmod +x $as_me.lineno ||
5520: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5521: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5522: { (exit 1); exit 1; }; }
5523:
5524: # Don't try to exec as it changes $[0], causing all sort of problems
5525: # (the dirname of $[0] is not the place where we might find the
5526: # original and so on. Autoconf is especially sensible to this).
5527: . ./$as_me.lineno
5528: # Exit status is that of the last command.
5529: exit
5530: }
5531:
5532:
5533: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5534: *c*,-n*) ECHO_N= ECHO_C='
5535: ' ECHO_T=' ' ;;
5536: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5537: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5538: esac
1.2 noro 5539:
1.14 noro 5540: if expr a : '\(a\)' >/dev/null 2>&1; then
5541: as_expr=expr
5542: else
5543: as_expr=false
5544: fi
1.2 noro 5545:
1.14 noro 5546: rm -f conf$$ conf$$.exe conf$$.file
5547: echo >conf$$.file
5548: if ln -s conf$$.file conf$$ 2>/dev/null; then
5549: # We could just check for DJGPP; but this test a) works b) is more generic
5550: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5551: if test -f conf$$.exe; then
5552: # Don't use ln at all; we don't have any links
5553: as_ln_s='cp -p'
5554: else
5555: as_ln_s='ln -s'
5556: fi
5557: elif ln conf$$.file conf$$ 2>/dev/null; then
5558: as_ln_s=ln
5559: else
5560: as_ln_s='cp -p'
5561: fi
5562: rm -f conf$$ conf$$.exe conf$$.file
1.2 noro 5563:
1.14 noro 5564: as_executable_p="test -f"
5565:
5566: # Sed expression to map a string onto a valid CPP name.
5567: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5568:
5569: # Sed expression to map a string onto a valid variable name.
5570: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5571:
5572:
5573: # IFS
5574: # We need space, tab and new line, in precisely that order.
5575: as_nl='
5576: '
5577: IFS=" $as_nl"
5578:
5579: # CDPATH.
1.17 ohara 5580: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
1.14 noro 5581:
5582: exec 6>&1
5583:
5584: # Open the log real soon, to keep \$[0] and so on meaningful, and to
5585: # report actual input values of CONFIG_FILES etc. instead of their
5586: # values after options handling. Logging --version etc. is OK.
5587: exec 5>>config.log
5588: {
5589: echo
5590: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5591: ## Running $as_me. ##
5592: _ASBOX
5593: } >&5
5594: cat >&5 <<_CSEOF
5595:
5596: This file was extended by $as_me, which was
1.17 ohara 5597: generated by GNU Autoconf 2.53. Invocation command line was
1.14 noro 5598:
5599: CONFIG_FILES = $CONFIG_FILES
5600: CONFIG_HEADERS = $CONFIG_HEADERS
5601: CONFIG_LINKS = $CONFIG_LINKS
5602: CONFIG_COMMANDS = $CONFIG_COMMANDS
5603: $ $0 $@
5604:
5605: _CSEOF
5606: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5607: echo >&5
5608: _ACEOF
5609:
5610: # Files that config.status was made for.
5611: if test -n "$ac_config_files"; then
5612: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
1.2 noro 5613: fi
5614:
1.14 noro 5615: if test -n "$ac_config_headers"; then
5616: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
1.1 noro 5617: fi
1.2 noro 5618:
1.14 noro 5619: if test -n "$ac_config_links"; then
5620: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
1.4 saito 5621: fi
5622:
1.14 noro 5623: if test -n "$ac_config_commands"; then
5624: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
1.4 saito 5625: fi
5626:
1.14 noro 5627: cat >>$CONFIG_STATUS <<\_ACEOF
5628:
5629: ac_cs_usage="\
5630: \`$as_me' instantiates files from templates according to the
5631: current configuration.
5632:
5633: Usage: $0 [OPTIONS] [FILE]...
5634:
5635: -h, --help print this help, then exit
5636: -V, --version print version number, then exit
5637: -d, --debug don't remove temporary files
5638: --recheck update $as_me by reconfiguring in the same conditions
5639: --file=FILE[:TEMPLATE]
5640: instantiate the configuration file FILE
1.4 saito 5641:
1.14 noro 5642: Configuration files:
5643: $config_files
5644:
5645: Configuration commands:
5646: $config_commands
5647:
5648: Report bugs to <bug-autoconf@gnu.org>."
5649: _ACEOF
5650:
5651: cat >>$CONFIG_STATUS <<_ACEOF
5652: ac_cs_version="\\
5653: config.status
1.17 ohara 5654: configured by $0, generated by GNU Autoconf 2.53,
1.14 noro 5655: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5656:
5657: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5658: Free Software Foundation, Inc.
5659: This config.status script is free software; the Free Software Foundation
5660: gives unlimited permission to copy, distribute and modify it."
5661: srcdir=$srcdir
5662: INSTALL="$INSTALL"
5663: _ACEOF
5664:
5665: cat >>$CONFIG_STATUS <<\_ACEOF
5666: # If no file are specified by the user, then we need to provide default
5667: # value. By we need to know if files were specified by the user.
5668: ac_need_defaults=:
5669: while test $# != 0
5670: do
5671: case $1 in
5672: --*=*)
5673: ac_option=`expr "x$1" : 'x\([^=]*\)='`
5674: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
1.17 ohara 5675: shift
5676: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
5677: shift
1.12 ohara 5678: ;;
1.17 ohara 5679: -*);;
1.14 noro 5680: *) # This is not an option, so the user has probably given explicit
5681: # arguments.
5682: ac_need_defaults=false;;
5683: esac
5684:
1.17 ohara 5685: case $1 in
1.14 noro 5686: # Handling of the options.
5687: _ACEOF
1.17 ohara 5688: cat >>$CONFIG_STATUS <<_ACEOF
5689: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5690: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
5691: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
5692: _ACEOF
1.14 noro 5693: cat >>$CONFIG_STATUS <<\_ACEOF
5694: --version | --vers* | -V )
5695: echo "$ac_cs_version"; exit 0 ;;
5696: --he | --h)
5697: # Conflict between --help and --header
5698: { { echo "$as_me:$LINENO: error: ambiguous option: $1
5699: Try \`$0 --help' for more information." >&5
5700: echo "$as_me: error: ambiguous option: $1
5701: Try \`$0 --help' for more information." >&2;}
5702: { (exit 1); exit 1; }; };;
5703: --help | --hel | -h )
5704: echo "$ac_cs_usage"; exit 0 ;;
5705: --debug | --d* | -d )
5706: debug=: ;;
5707: --file | --fil | --fi | --f )
1.17 ohara 5708: shift
5709: CONFIG_FILES="$CONFIG_FILES $1"
1.14 noro 5710: ac_need_defaults=false;;
5711: --header | --heade | --head | --hea )
1.17 ohara 5712: shift
5713: CONFIG_HEADERS="$CONFIG_HEADERS $1"
1.14 noro 5714: ac_need_defaults=false;;
5715:
5716: # This is an error.
5717: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5718: Try \`$0 --help' for more information." >&5
5719: echo "$as_me: error: unrecognized option: $1
5720: Try \`$0 --help' for more information." >&2;}
5721: { (exit 1); exit 1; }; } ;;
5722:
5723: *) ac_config_targets="$ac_config_targets $1" ;;
5724:
5725: esac
5726: shift
5727: done
5728:
5729: _ACEOF
5730:
5731: cat >>$CONFIG_STATUS <<_ACEOF
5732: #
5733: # INIT-COMMANDS section.
5734: #
5735:
5736: AMDEP_TRUE="$AMDEP_TRUE"
5737: ac_aux_dir="$ac_aux_dir"
5738:
5739: _ACEOF
5740:
5741:
5742:
5743: cat >>$CONFIG_STATUS <<\_ACEOF
5744: for ac_config_target in $ac_config_targets
5745: do
5746: case "$ac_config_target" in
5747: # Handling of arguments.
5748: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5749: "engine/Makefile" ) CONFIG_FILES="$CONFIG_FILES engine/Makefile" ;;
5750: "asm/Makefile" ) CONFIG_FILES="$CONFIG_FILES asm/Makefile" ;;
5751: "builtin/Makefile" ) CONFIG_FILES="$CONFIG_FILES builtin/Makefile" ;;
5752: "fft/Makefile" ) CONFIG_FILES="$CONFIG_FILES fft/Makefile" ;;
5753: "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
5754: "io/Makefile" ) CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
5755: "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
5756: "parse/Makefile" ) CONFIG_FILES="$CONFIG_FILES parse/Makefile" ;;
5757: "plot/Makefile" ) CONFIG_FILES="$CONFIG_FILES plot/Makefile" ;;
5758: "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5759: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5760: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5761: { (exit 1); exit 1; }; };;
5762: esac
5763: done
5764:
5765: # If the user did not use the arguments to specify the items to instantiate,
5766: # then the envvar interface is used. Set only those that are not.
5767: # We use the long form for the default assignment because of an extremely
5768: # bizarre bug on SunOS 4.1.3.
5769: if $ac_need_defaults; then
5770: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5771: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5772: fi
5773:
5774: # Create a temporary directory, and hook for its removal unless debugging.
5775: $debug ||
5776: {
5777: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5778: trap '{ (exit 1); exit 1; }' 1 2 13 15
5779: }
5780:
5781: # Create a (secure) tmp directory for tmp files.
1.17 ohara 5782: : ${TMPDIR=/tmp}
1.14 noro 5783: {
1.17 ohara 5784: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
1.14 noro 5785: test -n "$tmp" && test -d "$tmp"
5786: } ||
5787: {
1.17 ohara 5788: tmp=$TMPDIR/cs$$-$RANDOM
1.14 noro 5789: (umask 077 && mkdir $tmp)
5790: } ||
5791: {
1.17 ohara 5792: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
1.14 noro 5793: { (exit 1); exit 1; }
5794: }
5795:
5796: _ACEOF
5797:
5798: cat >>$CONFIG_STATUS <<_ACEOF
5799:
5800: #
5801: # CONFIG_FILES section.
5802: #
5803:
5804: # No need to generate the scripts if there are no CONFIG_FILES.
5805: # This happens for instance when ./config.status config.h
5806: if test -n "\$CONFIG_FILES"; then
5807: # Protect against being on the right side of a sed subst in config.status.
5808: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5809: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5810: s,@SHELL@,$SHELL,;t t
5811: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5812: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5813: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5814: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5815: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5816: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5817: s,@exec_prefix@,$exec_prefix,;t t
5818: s,@prefix@,$prefix,;t t
5819: s,@program_transform_name@,$program_transform_name,;t t
5820: s,@bindir@,$bindir,;t t
5821: s,@sbindir@,$sbindir,;t t
5822: s,@libexecdir@,$libexecdir,;t t
5823: s,@datadir@,$datadir,;t t
5824: s,@sysconfdir@,$sysconfdir,;t t
5825: s,@sharedstatedir@,$sharedstatedir,;t t
5826: s,@localstatedir@,$localstatedir,;t t
5827: s,@libdir@,$libdir,;t t
5828: s,@includedir@,$includedir,;t t
5829: s,@oldincludedir@,$oldincludedir,;t t
5830: s,@infodir@,$infodir,;t t
5831: s,@mandir@,$mandir,;t t
5832: s,@build_alias@,$build_alias,;t t
5833: s,@host_alias@,$host_alias,;t t
5834: s,@target_alias@,$target_alias,;t t
5835: s,@DEFS@,$DEFS,;t t
5836: s,@ECHO_C@,$ECHO_C,;t t
5837: s,@ECHO_N@,$ECHO_N,;t t
5838: s,@ECHO_T@,$ECHO_T,;t t
5839: s,@LIBS@,$LIBS,;t t
5840: s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5841: s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5842: s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5843: s,@PACKAGE@,$PACKAGE,;t t
5844: s,@VERSION@,$VERSION,;t t
5845: s,@EXEEXT@,$EXEEXT,;t t
5846: s,@OBJEXT@,$OBJEXT,;t t
5847: s,@ACLOCAL@,$ACLOCAL,;t t
5848: s,@AUTOCONF@,$AUTOCONF,;t t
5849: s,@AUTOMAKE@,$AUTOMAKE,;t t
5850: s,@AUTOHEADER@,$AUTOHEADER,;t t
5851: s,@MAKEINFO@,$MAKEINFO,;t t
5852: s,@AMTAR@,$AMTAR,;t t
5853: s,@install_sh@,$install_sh,;t t
5854: s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5855: s,@AWK@,$AWK,;t t
5856: s,@SET_MAKE@,$SET_MAKE,;t t
5857: s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5858: s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5859: s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5860: s,@DEPDIR@,$DEPDIR,;t t
1.22 ohara 5861: s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5862: s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5863: s,@MAINT@,$MAINT,;t t
1.14 noro 5864: s,@build@,$build,;t t
5865: s,@build_cpu@,$build_cpu,;t t
5866: s,@build_vendor@,$build_vendor,;t t
5867: s,@build_os@,$build_os,;t t
5868: s,@host@,$host,;t t
5869: s,@host_cpu@,$host_cpu,;t t
5870: s,@host_vendor@,$host_vendor,;t t
5871: s,@host_os@,$host_os,;t t
5872: s,@target@,$target,;t t
5873: s,@target_cpu@,$target_cpu,;t t
5874: s,@target_vendor@,$target_vendor,;t t
5875: s,@target_os@,$target_os,;t t
5876: s,@CC@,$CC,;t t
5877: s,@CFLAGS@,$CFLAGS,;t t
5878: s,@LDFLAGS@,$LDFLAGS,;t t
5879: s,@CPPFLAGS@,$CPPFLAGS,;t t
5880: s,@ac_ct_CC@,$ac_ct_CC,;t t
5881: s,@am__include@,$am__include,;t t
5882: s,@am__quote@,$am__quote,;t t
5883: s,@CCDEPMODE@,$CCDEPMODE,;t t
5884: s,@LN_S@,$LN_S,;t t
5885: s,@RANLIB@,$RANLIB,;t t
5886: s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5887: s,@YACC@,$YACC,;t t
5888: s,@CPP@,$CPP,;t t
5889: s,@X_CFLAGS@,$X_CFLAGS,;t t
5890: s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
5891: s,@X_LIBS@,$X_LIBS,;t t
5892: s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
1.23 ohara 5893: s,@USE_GC_ZEROPAGE@,$USE_GC_ZEROPAGE,;t t
1.14 noro 5894: s,@PARIINC@,$PARIINC,;t t
5895: s,@PARILIB@,$PARILIB,;t t
1.21 ohara 5896: s,@XPMLIB@,$XPMLIB,;t t
1.14 noro 5897: s,@USE_PLOT_TRUE@,$USE_PLOT_TRUE,;t t
5898: s,@USE_PLOT_FALSE@,$USE_PLOT_FALSE,;t t
5899: s,@FEPLIB@,$FEPLIB,;t t
5900: s,@MPIINC@,$MPIINC,;t t
5901: s,@MPILIB@,$MPILIB,;t t
5902: s,@LAPACKLIB@,$LAPACKLIB,;t t
5903: s,@libasir_postfix@,$libasir_postfix,;t t
1.28 ohara 5904: s,@USE_GC_INTERIX@,$USE_GC_INTERIX,;t t
1.14 noro 5905: s,@asm_obj@,$asm_obj,;t t
5906: CEOF
5907:
5908: _ACEOF
5909:
5910: cat >>$CONFIG_STATUS <<\_ACEOF
5911: # Split the substitutions into bite-sized pieces for seds with
5912: # small command number limits, like on Digital OSF/1 and HP-UX.
5913: ac_max_sed_lines=48
5914: ac_sed_frag=1 # Number of current file.
5915: ac_beg=1 # First line for current file.
5916: ac_end=$ac_max_sed_lines # Line after last line for current file.
5917: ac_more_lines=:
5918: ac_sed_cmds=
5919: while $ac_more_lines; do
5920: if test $ac_beg -gt 1; then
5921: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5922: else
5923: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5924: fi
5925: if test ! -s $tmp/subs.frag; then
5926: ac_more_lines=false
5927: else
5928: # The purpose of the label and of the branching condition is to
5929: # speed up the sed processing (if there are no `@' at all, there
5930: # is no need to browse any of the substitutions).
5931: # These are the two extra sed commands mentioned above.
5932: (echo ':t
5933: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5934: if test -z "$ac_sed_cmds"; then
5935: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5936: else
5937: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5938: fi
5939: ac_sed_frag=`expr $ac_sed_frag + 1`
5940: ac_beg=$ac_end
5941: ac_end=`expr $ac_end + $ac_max_sed_lines`
5942: fi
5943: done
5944: if test -z "$ac_sed_cmds"; then
5945: ac_sed_cmds=cat
5946: fi
5947: fi # test -n "$CONFIG_FILES"
5948:
5949: _ACEOF
5950: cat >>$CONFIG_STATUS <<\_ACEOF
5951: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5952: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5953: case $ac_file in
5954: - | *:- | *:-:* ) # input from stdin
5955: cat >$tmp/stdin
5956: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5957: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5958: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5959: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5960: * ) ac_file_in=$ac_file.in ;;
5961: esac
5962:
5963: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5964: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5965: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5966: X"$ac_file" : 'X\(//\)[^/]' \| \
5967: X"$ac_file" : 'X\(//\)$' \| \
5968: X"$ac_file" : 'X\(/\)' \| \
5969: . : '\(.\)' 2>/dev/null ||
5970: echo X"$ac_file" |
5971: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5972: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5973: /^X\(\/\/\)$/{ s//\1/; q; }
5974: /^X\(\/\).*/{ s//\1/; q; }
5975: s/.*/./; q'`
1.17 ohara 5976: { case "$ac_dir" in
5977: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
5978: *) as_incr_dir=.;;
5979: esac
5980: as_dummy="$ac_dir"
5981: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
5982: case $as_mkdir_dir in
5983: # Skip DOS drivespec
5984: ?:) as_incr_dir=$as_mkdir_dir ;;
5985: *)
5986: as_incr_dir=$as_incr_dir/$as_mkdir_dir
5987: test -d "$as_incr_dir" ||
5988: mkdir "$as_incr_dir" ||
5989: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
5990: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
5991: { (exit 1); exit 1; }; }
5992: ;;
5993: esac
5994: done; }
1.14 noro 5995:
5996: ac_builddir=.
5997:
5998: if test "$ac_dir" != .; then
5999: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6000: # A "../" for each directory in $ac_dir_suffix.
6001: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6002: else
6003: ac_dir_suffix= ac_top_builddir=
6004: fi
6005:
6006: case $srcdir in
6007: .) # No --srcdir option. We are building in place.
6008: ac_srcdir=.
6009: if test -z "$ac_top_builddir"; then
6010: ac_top_srcdir=.
6011: else
6012: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6013: fi ;;
6014: [\\/]* | ?:[\\/]* ) # Absolute path.
6015: ac_srcdir=$srcdir$ac_dir_suffix;
6016: ac_top_srcdir=$srcdir ;;
6017: *) # Relative path.
6018: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6019: ac_top_srcdir=$ac_top_builddir$srcdir ;;
6020: esac
6021: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6022: # absolute.
6023: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1.17 ohara 6024: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1.14 noro 6025: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6026: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6027:
6028:
6029: case $INSTALL in
6030: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6031: *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6032: esac
6033:
6034: if test x"$ac_file" != x-; then
6035: { echo "$as_me:$LINENO: creating $ac_file" >&5
6036: echo "$as_me: creating $ac_file" >&6;}
6037: rm -f "$ac_file"
6038: fi
6039: # Let's still pretend it is `configure' which instantiates (i.e., don't
6040: # use $as_me), people would be surprised to read:
6041: # /* config.h. Generated by config.status. */
6042: if test x"$ac_file" = x-; then
6043: configure_input=
6044: else
6045: configure_input="$ac_file. "
6046: fi
6047: configure_input=$configure_input"Generated from `echo $ac_file_in |
6048: sed 's,.*/,,'` by configure."
6049:
6050: # First look for the input files in the build tree, otherwise in the
6051: # src tree.
6052: ac_file_inputs=`IFS=:
6053: for f in $ac_file_in; do
6054: case $f in
6055: -) echo $tmp/stdin ;;
6056: [\\/$]*)
6057: # Absolute (can't be DOS-style, as IFS=:)
6058: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6059: echo "$as_me: error: cannot find input file: $f" >&2;}
6060: { (exit 1); exit 1; }; }
6061: echo $f;;
6062: *) # Relative
6063: if test -f "$f"; then
6064: # Build tree
6065: echo $f
6066: elif test -f "$srcdir/$f"; then
6067: # Source tree
6068: echo $srcdir/$f
6069: else
6070: # /dev/null tree
6071: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6072: echo "$as_me: error: cannot find input file: $f" >&2;}
6073: { (exit 1); exit 1; }; }
6074: fi;;
6075: esac
6076: done` || { (exit 1); exit 1; }
6077: _ACEOF
6078: cat >>$CONFIG_STATUS <<_ACEOF
6079: sed "$ac_vpsub
6080: $extrasub
6081: _ACEOF
6082: cat >>$CONFIG_STATUS <<\_ACEOF
6083: :t
6084: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6085: s,@configure_input@,$configure_input,;t t
6086: s,@srcdir@,$ac_srcdir,;t t
6087: s,@abs_srcdir@,$ac_abs_srcdir,;t t
6088: s,@top_srcdir@,$ac_top_srcdir,;t t
6089: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6090: s,@builddir@,$ac_builddir,;t t
6091: s,@abs_builddir@,$ac_abs_builddir,;t t
6092: s,@top_builddir@,$ac_top_builddir,;t t
6093: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6094: s,@INSTALL@,$ac_INSTALL,;t t
6095: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6096: rm -f $tmp/stdin
6097: if test x"$ac_file" != x-; then
6098: mv $tmp/out $ac_file
6099: else
6100: cat $tmp/out
6101: rm -f $tmp/out
6102: fi
6103:
6104: done
6105: _ACEOF
6106: cat >>$CONFIG_STATUS <<\_ACEOF
6107:
6108: #
6109: # CONFIG_COMMANDS section.
6110: #
6111: for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6112: ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6113: ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6114: ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6115: $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6116: X"$ac_dest" : 'X\(//\)[^/]' \| \
6117: X"$ac_dest" : 'X\(//\)$' \| \
6118: X"$ac_dest" : 'X\(/\)' \| \
6119: . : '\(.\)' 2>/dev/null ||
6120: echo X"$ac_dest" |
6121: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6122: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6123: /^X\(\/\/\)$/{ s//\1/; q; }
6124: /^X\(\/\).*/{ s//\1/; q; }
6125: s/.*/./; q'`
6126: ac_builddir=.
6127:
6128: if test "$ac_dir" != .; then
6129: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6130: # A "../" for each directory in $ac_dir_suffix.
6131: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6132: else
6133: ac_dir_suffix= ac_top_builddir=
6134: fi
6135:
6136: case $srcdir in
6137: .) # No --srcdir option. We are building in place.
6138: ac_srcdir=.
6139: if test -z "$ac_top_builddir"; then
6140: ac_top_srcdir=.
6141: else
6142: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6143: fi ;;
6144: [\\/]* | ?:[\\/]* ) # Absolute path.
6145: ac_srcdir=$srcdir$ac_dir_suffix;
6146: ac_top_srcdir=$srcdir ;;
6147: *) # Relative path.
6148: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6149: ac_top_srcdir=$ac_top_builddir$srcdir ;;
1.12 ohara 6150: esac
1.14 noro 6151: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
6152: # absolute.
6153: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1.17 ohara 6154: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1.14 noro 6155: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6156: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6157:
6158:
6159: { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6160: echo "$as_me: executing $ac_dest commands" >&6;}
6161: case $ac_dest in
6162: default-1 )
6163: test x"$AMDEP_TRUE" != x"" ||
6164: for mf in $CONFIG_FILES; do
6165: case "$mf" in
6166: Makefile) dirpart=.;;
6167: */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
6168: *) continue;;
6169: esac
6170: grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6171: # Extract the definition of DEP_FILES from the Makefile without
6172: # running `make'.
6173: DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6174: test -z "$DEPDIR" && continue
6175: # When using ansi2knr, U may be empty or an underscore; expand it
6176: U=`sed -n -e '/^U = / s///p' < "$mf"`
6177: test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6178: # We invoke sed twice because it is the simplest approach to
6179: # changing $(DEPDIR) to its actual value in the expansion.
6180: for file in `sed -n -e '
6181: /^DEP_FILES = .*\\\\$/ {
6182: s/^DEP_FILES = //
6183: :loop
6184: s/\\\\$//
6185: p
6186: n
6187: /\\\\$/ b loop
6188: p
6189: }
6190: /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6191: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6192: # Make sure the directory exists.
6193: test -f "$dirpart/$file" && continue
6194: fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
6195: $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
6196: # echo "creating $dirpart/$file"
6197: echo '# dummy' > "$dirpart/$file"
6198: done
6199: done
6200: ;;
6201: esac
6202: done
6203: _ACEOF
6204:
6205: cat >>$CONFIG_STATUS <<\_ACEOF
6206:
6207: { (exit 0); exit 0; }
6208: _ACEOF
6209: chmod +x $CONFIG_STATUS
6210: ac_clean_files=$ac_clean_files_save
6211:
6212:
6213: # configure is writing to config.log, and then calls config.status.
6214: # config.status does its own redirection, appending to config.log.
6215: # Unfortunately, on DOS this fails, as config.log is still kept open
6216: # by configure, so config.status won't be able to write to it; its
6217: # output is simply discarded. So we exec the FD to /dev/null,
6218: # effectively closing config.log, so it can be properly (re)opened and
6219: # appended to by config.status. When coming back to configure, we
6220: # need to make the FD available again.
6221: if test "$no_create" != yes; then
6222: ac_cs_success=:
6223: exec 5>/dev/null
1.17 ohara 6224: $SHELL $CONFIG_STATUS || ac_cs_success=false
1.14 noro 6225: exec 5>>config.log
6226: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6227: # would make configure fail if this is the last instruction.
6228: $ac_cs_success || { (exit 1); exit 1; }
6229: fi
6230:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>