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