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