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