/[ascend]/trunk/base/autotools/configure
ViewVC logotype

Contents of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 680 - (show annotations) (download)
Wed Jun 21 11:14:49 2006 UTC (16 years, 11 months ago) by johnpye
File size: 296911 byte(s)
Adding explicit dependency of tarball on 'ascend.spec'.
Use automated creation of SRCS lists in base/generic/general makefile.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
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 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="../generic/compiler/ascParse.y"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS RANLIB ac_ct_RANLIB LN_S SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP DEBUG_LIBS EGREP YACC parser_src LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS TCLINCLUDE NOTCLCONFIG TCLCONFIG TCLLIB TCLDYNAMICLINKING TKINCLUDE TKLIB TKCONFIG TKDYNAMICLINKING F77 BLASLIB LPAKLIB LSODLIB QUIET_INSTALL DEFAULT_ASCENDLIBRARY ASCEND_DEFAULTLIBRARY ascpwd fullpathsrcdir asc_include scanner_src typer_src MATH_LIBS X11_INCLUDES X11_LIBRARIES X11_RUN_PATH X11_EXTRA_LIBS DL_LIBS LD_FLAGS LD_SEARCH_FLAGS SHLIB_CFLAGS SHLIB_LD SHLIB_LD_LIBS SHLIB_SUFFIX ASC_LIB_SUFFIX TK_LIB TKTABLE_LIB ASC_TK_LIBRARY ASC_TCL_LIBRARY ASC_DISTDIR_REL_BIN INSTALL_ASCDATA ASC_ENV_TK_DEFAULT TK_LD_HACK HAVE_TKTABLE asc_subdirs F77LIBS make_blaslib make_lpaklib make_lsodlib HAVE_LSOD tkdir_root tkdir_topbuilddir models_dir_root models_topbuilddir help_dir_root help_topbuilddir LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
641 *)
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647 ;;
648
649 esac
650 done
651
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672 do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725 else
726 ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803 cat <<_ACEOF
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830 _ACEOF
831
832 cat <<\_ACEOF
833
834 X features:
835 --x-includes=DIR X include files are in DIR
836 --x-libraries=DIR X library files are in DIR
837
838 System types:
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846 cat <<\_ACEOF
847
848 Optional Features:
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --enable-optimization optimize the C code while building ascend
852 --enable-dynamic-packages
853 Enable dynamic linking of ASCEND external packages
854 (default is YES for Linux, Cygwin and MinGW; NO for
855 any other platform)
856
857 --enable-relation-debugging
858 Enable debug output for relation compilation
859 (default is NO)
860
861 --enable-compiler-timing
862 Enable timing of the compiler (default is NO)
863
864
865 Optional Packages:
866 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
867 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
868 --without-yacc do not generate parser from yacc file
869 --with-x use the X Window System
870 --without-tcl Disable Tcl
871 --with-tclconfig=path Set directory location of tclConfig.sh
872 --with-tcl=path Set location of Tcl package
873 --with-tclincl=path Set location of Tcl include directory
874 --with-tcllib=path Set location of Tcl library directory
875 --without-tk Disable Tk
876 --with-tkconfig=path Set directory location of tkConfig.sh
877 --with-tk=path Set location of Tk package
878 --with-tkincl=path Set location of Tk include directory
879 --with-tklib=path Set location of Tk library directory
880 Fortran compiler and libraries:
881 --with-fortran=F77,F77LIBS
882 The location of your Fortran compiler and its
883 library files. For example, under SunOS:
884 --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'
885 To specify only the compiler or libraries, leave off
886 whatever is not needed:
887 --with-fortran=',-L/usr/lang/lib -lF77 -lM77'
888 Use '--without-fortran' to not link against
889 any Fortran libraries
890 --with-blas=BLASLIB The full path to the blas library.
891 Use '--with-blas=build' to build the blas library
892 from the sources that come with the distribution.
893 --with-linpack=LPAKLIB The full path to the linpack library.
894 Use '--with-linpack=build' to build the library
895 from the sources that come with the distribution.
896 --with-lsod=LSODLIB The full path to the lsod library.
897 Use '--with-lsod=build' to build the lsod library
898 from the sources that come with the distribution.
899 Generation of Makefiles:
900 --without-tkdir do not generate Makefiles in the TK subdir
901 --without-models do not generate Makefiles in the models subdir
902 --with-quiet Much less whining if reinstalling the tk,models subdirs
903
904 Some influential environment variables:
905 CC C compiler command
906 CFLAGS C compiler flags
907 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
908 nonstandard directory <lib dir>
909 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
910 headers in a nonstandard directory <include dir>
911 CPP C preprocessor
912
913 Use these variables to override the choices made by `configure' or to help
914 it to find libraries and programs with nonstandard names/locations.
915
916 _ACEOF
917 fi
918
919 if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
921 ac_popdir=`pwd`
922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923 test -d $ac_dir || continue
924 ac_builddir=.
925
926 if test "$ac_dir" != .; then
927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 else
931 ac_dir_suffix= ac_top_builddir=
932 fi
933
934 case $srcdir in
935 .) # No --srcdir option. We are building in place.
936 ac_srcdir=.
937 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=.
939 else
940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 fi ;;
942 [\\/]* | ?:[\\/]* ) # Absolute path.
943 ac_srcdir=$srcdir$ac_dir_suffix;
944 ac_top_srcdir=$srcdir ;;
945 *) # Relative path.
946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 esac
949
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
952 case `pwd` in
953 .) ac_abs_builddir="$ac_dir";;
954 *)
955 case "$ac_dir" in
956 .) ac_abs_builddir=`pwd`;;
957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 esac;;
960 esac
961 case $ac_abs_builddir in
962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 *)
964 case ${ac_top_builddir}. in
965 .) ac_abs_top_builddir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_srcdir=$ac_srcdir;;
972 *)
973 case $ac_srcdir in
974 .) ac_abs_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 esac;;
978 esac
979 case $ac_abs_builddir in
980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 *)
982 case $ac_top_srcdir in
983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
986 esac;;
987 esac
988
989 cd $ac_dir
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
992 echo
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
995 echo
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
999 echo
1000 $ac_configure --help
1001 else
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003 fi
1004 cd "$ac_popdir"
1005 done
1006 fi
1007
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1010 cat <<\_ACEOF
1011
1012 Copyright (C) 2003 Free Software Foundation, Inc.
1013 This configure script is free software; the Free Software Foundation
1014 gives unlimited permission to copy, distribute and modify it.
1015 _ACEOF
1016 exit 0
1017 fi
1018 exec 5>config.log
1019 cat >&5 <<_ACEOF
1020 This file contains any messages produced by compilers while
1021 running configure, to aid debugging if configure makes a mistake.
1022
1023 It was created by $as_me, which was
1024 generated by GNU Autoconf 2.59. Invocation command line was
1025
1026 $ $0 $@
1027
1028 _ACEOF
1029 {
1030 cat <<_ASUNAME
1031 ## --------- ##
1032 ## Platform. ##
1033 ## --------- ##
1034
1035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040
1041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1043
1044 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1045 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1047 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1048 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1049 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1050 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1051
1052 _ASUNAME
1053
1054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055 for as_dir in $PATH
1056 do
1057 IFS=$as_save_IFS
1058 test -z "$as_dir" && as_dir=.
1059 echo "PATH: $as_dir"
1060 done
1061
1062 } >&5
1063
1064 cat >&5 <<_ACEOF
1065
1066
1067 ## ----------- ##
1068 ## Core tests. ##
1069 ## ----------- ##
1070
1071 _ACEOF
1072
1073
1074 # Keep a trace of the command line.
1075 # Strip out --no-create and --no-recursion so they do not pile up.
1076 # Strip out --silent because we don't want to record it for future runs.
1077 # Also quote any args containing shell meta-characters.
1078 # Make two passes to allow for proper duplicate-argument suppression.
1079 ac_configure_args=
1080 ac_configure_args0=
1081 ac_configure_args1=
1082 ac_sep=
1083 ac_must_keep_next=false
1084 for ac_pass in 1 2
1085 do
1086 for ac_arg
1087 do
1088 case $ac_arg in
1089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 continue ;;
1093 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095 esac
1096 case $ac_pass in
1097 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098 2)
1099 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100 if test $ac_must_keep_next = true; then
1101 ac_must_keep_next=false # Got value, back to normal.
1102 else
1103 case $ac_arg in
1104 *=* | --config-cache | -C | -disable-* | --disable-* \
1105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107 | -with-* | --with-* | -without-* | --without-* | --x)
1108 case "$ac_configure_args0 " in
1109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110 esac
1111 ;;
1112 -* ) ac_must_keep_next=true ;;
1113 esac
1114 fi
1115 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116 # Get rid of the leading space.
1117 ac_sep=" "
1118 ;;
1119 esac
1120 done
1121 done
1122 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124
1125 # When interrupted or exit'd, cleanup temporary files, and complete
1126 # config.log. We remove comments because anyway the quotes in there
1127 # would cause problems or look ugly.
1128 # WARNING: Be sure not to use single quotes in there, as some shells,
1129 # such as our DU 5.0 friend, will then `close' the trap.
1130 trap 'exit_status=$?
1131 # Save into config.log some information that might help in debugging.
1132 {
1133 echo
1134
1135 cat <<\_ASBOX
1136 ## ---------------- ##
1137 ## Cache variables. ##
1138 ## ---------------- ##
1139 _ASBOX
1140 echo
1141 # The following way of writing the cache mishandles newlines in values,
1142 {
1143 (set) 2>&1 |
1144 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145 *ac_space=\ *)
1146 sed -n \
1147 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1149 ;;
1150 *)
1151 sed -n \
1152 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1153 ;;
1154 esac;
1155 }
1156 echo
1157
1158 cat <<\_ASBOX
1159 ## ----------------- ##
1160 ## Output variables. ##
1161 ## ----------------- ##
1162 _ASBOX
1163 echo
1164 for ac_var in $ac_subst_vars
1165 do
1166 eval ac_val=$`echo $ac_var`
1167 echo "$ac_var='"'"'$ac_val'"'"'"
1168 done | sort
1169 echo
1170
1171 if test -n "$ac_subst_files"; then
1172 cat <<\_ASBOX
1173 ## ------------- ##
1174 ## Output files. ##
1175 ## ------------- ##
1176 _ASBOX
1177 echo
1178 for ac_var in $ac_subst_files
1179 do
1180 eval ac_val=$`echo $ac_var`
1181 echo "$ac_var='"'"'$ac_val'"'"'"
1182 done | sort
1183 echo
1184 fi
1185
1186 if test -s confdefs.h; then
1187 cat <<\_ASBOX
1188 ## ----------- ##
1189 ## confdefs.h. ##
1190 ## ----------- ##
1191 _ASBOX
1192 echo
1193 sed "/^$/d" confdefs.h | sort
1194 echo
1195 fi
1196 test "$ac_signal" != 0 &&
1197 echo "$as_me: caught signal $ac_signal"
1198 echo "$as_me: exit $exit_status"
1199 } >&5
1200 rm -f core *.core &&
1201 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202 exit $exit_status
1203 ' 0
1204 for ac_signal in 1 2 13 15; do
1205 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206 done
1207 ac_signal=0
1208
1209 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1210 rm -rf conftest* confdefs.h
1211 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212 echo >confdefs.h
1213
1214 # Predefined preprocessor variables.
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_NAME "$PACKAGE_NAME"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_STRING "$PACKAGE_STRING"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238 _ACEOF
1239
1240
1241 # Let the site file select an alternate cache file if it wants to.
1242 # Prefer explicitly selected file to automatically selected ones.
1243 if test -z "$CONFIG_SITE"; then
1244 if test "x$prefix" != xNONE; then
1245 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246 else
1247 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248 fi
1249 fi
1250 for ac_site_file in $CONFIG_SITE; do
1251 if test -r "$ac_site_file"; then
1252 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253 echo "$as_me: loading site script $ac_site_file" >&6;}
1254 sed 's/^/| /' "$ac_site_file" >&5
1255 . "$ac_site_file"
1256 fi
1257 done
1258
1259
1260 # Check that the precious variables saved in the cache have kept the same
1261 # value.
1262 ac_cache_corrupted=false
1263 for ac_var in `(set) 2>&1 |
1264 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1265 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1266 eval ac_new_set=\$ac_env_${ac_var}_set
1267 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1268 eval ac_new_val="\$ac_env_${ac_var}_value"
1269 case $ac_old_set,$ac_new_set in
1270 set,)
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1274 ,set)
1275 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1276 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1277 ac_cache_corrupted=: ;;
1278 ,);;
1279 *)
1280 if test "x$ac_old_val" != "x$ac_new_val"; then
1281 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1282 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1283 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1284 echo "$as_me: former value: $ac_old_val" >&2;}
1285 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1286 echo "$as_me: current value: $ac_new_val" >&2;}
1287 ac_cache_corrupted=:
1288 fi;;
1289 esac
1290 # Pass precious variables to config.status.
1291 if test "$ac_new_set" = set; then
1292 case $ac_new_val in
1293 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1294 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1295 *) ac_arg=$ac_var=$ac_new_val ;;
1296 esac
1297 case " $ac_configure_args " in
1298 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1299 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1300 esac
1301 fi
1302 done
1303 if $ac_cache_corrupted; then
1304 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1305 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1306 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1307 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1308 { (exit 1); exit 1; }; }
1309 fi
1310
1311 ac_ext=c
1312 ac_cpp='$CPP $CPPFLAGS'
1313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337 #--------------------------------------------------------------------
1338 # CVS Most Recent Revision Data
1339 # Put this data after AC_INIT since we want this information
1340 # to also appear in configure and autoconf, when creating
1341 # configure, strips all comments that appear in configure.in
1342 # before AC_INIT
1343 # $Revision: 1.38 $
1344 # $Date: 2003/11/23 19:36:39 $
1345 # $Author: ballan $
1346 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $
1347 #--------------------------------------------------------------------
1348
1349
1350 #--------------------------------------------------------------------
1351 # Where configure should look for files it needs.
1352 #--------------------------------------------------------------------
1353 ac_aux_dir=
1354 for ac_dir in config $srcdir/config; do
1355 if test -f $ac_dir/install-sh; then
1356 ac_aux_dir=$ac_dir
1357 ac_install_sh="$ac_aux_dir/install-sh -c"
1358 break
1359 elif test -f $ac_dir/install.sh; then
1360 ac_aux_dir=$ac_dir
1361 ac_install_sh="$ac_aux_dir/install.sh -c"
1362 break
1363 elif test -f $ac_dir/shtool; then
1364 ac_aux_dir=$ac_dir
1365 ac_install_sh="$ac_aux_dir/shtool install -c"
1366 break
1367 fi
1368 done
1369 if test -z "$ac_aux_dir"; then
1370 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1371 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1372 { (exit 1); exit 1; }; }
1373 fi
1374 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1375 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1376 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1377
1378
1379 #--------------------------------------------------------------------
1380 # Set the output variables prefix and exec_prefix that
1381 # determine where things will be installed.
1382 #--------------------------------------------------------------------
1383 if test "${prefix}" = "NONE"; then
1384 prefix=/usr/local
1385 fi
1386 if test "${exec_prefix}" = "NONE"; then
1387 exec_prefix=$prefix
1388 fi
1389
1390
1391 #--------------------------------------------------------------------
1392 # For the Fortran support libraries and the TCL/TK libraries
1393 # and header files, we unfortunately need the full path to
1394 # these files. The problem with having the full path is that
1395 # if the user moves the source tree, things will break unless
1396 # the user re-runs configure.
1397 #--------------------------------------------------------------------
1398
1399 #--------------------------------------------------------------------
1400 ##AWW
1401 ##AWW We put the .o files when compiling into a tree structure
1402 ##AWW relative to the directory in which we currently reside,
1403 ##AWW while the .c and .h files are in a similar tree structure
1404 ##AWW relative to the configure instruction we invoke. This
1405 ##AWW allows one to have separate .o files in their own tree when
1406 ##AWW compiling for different operating systems.
1407 ##AWW
1408 ##AWW Example 1 (same directories)
1409 ##AWW Current directory one is in: /home/me/trunk/base/unixAC213
1410 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1411 ##AWW Command to invoke configure: ./configure
1412 ##AWW $ascpwd will be: /home/me/trunk/base/unixAC213
1413 ##AWW $srcdir will be: .
1414 ##AWW
1415 ##AWW Example 2 (different directories, abs path for command)
1416 ##AWW Current directory one is in: /home/me/trunk/base/newTree
1417 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1418 ##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure
1419 ##AWW $ascpwd will be: /home/me/trunk/base/newTree
1420 ##AWW $srcdir will be: /home/me/trunk/base/unixAC213
1421 ##AWW
1422 ##AWW Example 3 (different directories, rel path for command)
1423 ##AWW Same as Example 2
1424 ##AWW Command to invoke configure: ../unixAC213/configure
1425 ##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2)
1426 ##AWW $srcdir will be: ../unixAC213
1427 ##AWW
1428 ##AWW Key elements of the source tree are:
1429 ##AWW code/trunk/trunk/base/unixAC213/configure
1430 ##AWW code/trunk/trunk/base/generic
1431 ##AWW code/trunk/tcltk
1432 ##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder
1433 ##AWW containing "configure"
1434 ##AWW
1435 ##AWW Configure is located at:
1436 ##AWW $srcdir/configure
1437 ##AWW while the .c/.h files one wants are in:
1438 ##AWW $srcdir/../generic/compiler
1439 ##AWW $srcdir/../generic/general
1440 ##AWW $srcdir/../generic/packages
1441 ##AWW $srcdir/../generic/solver
1442 ##AWW $srcdir/../generic/utilities
1443 ##AWW $srcdir/../../tcltk/generic/interface
1444 ##AWW
1445 ##AWW Each of these directories contain Makefiles and possible
1446 ##AWW need to find .h files in the other directories. For example
1447 ##AWW the include statements are always of the form
1448 ##AWW #include compiler/slv3.h or
1449 ##AWW #include interface/SlvProc.h
1450 ##AWW
1451 ##AWW A safe include path should assume one is a directory with any
1452 ##AWW of these .h and .c files and one needs to find a .h file in
1453 ##AWW any other of them. The following paths should do it.
1454 ##AWW
1455 ##AWW If in compiler, general, packages, solver, utilities
1456 ##AWW .. for general, packages, etc
1457 ##AWW ../../../tcltk/generic for interface
1458 ##AWW If in interface
1459 ##AWW .. for interface
1460 ##AWW ../../../base/generic for compiler, general, ..
1461 ##AWW
1462 #--------------------------------------------------------------------
1463 # The asc_include variable is (directory) path to the ascend4
1464 # SOURCE directory relative to the immediate subdirectories of
1465 # the ascend4 OBJECT directory. --rewrite - not clear.
1466 #AWW To compile a new ASCEND executable, one should move into the
1467 #AWW directory in which one wants the ASCEND object/executable
1468 #AWW to reside (call this objTree) and from there run
1469 #AWW ../base/unixAC213/configure.
1470 #AWW In the following code asc_include is set to the path from
1471 #JP I think that the current recommendation is to install from
1472 #JP run ./configure (ie from this directory)
1473
1474 ascpwd=`pwd`
1475 fullpathsrcdir=`cd $srcdir ; pwd`
1476
1477 case "$srcdir" in
1478 .)
1479 asc_include="../$srcdir"
1480 ;;
1481 /*)
1482 asc_include="$srcdir/../generic"
1483 ;;
1484 *)
1485 asc_include="$srcdir/../generic"
1486 ;;
1487 esac
1488
1489
1490 #--------------------------------------------------------------------
1491 # Do basic checks to determine
1492 # * if we have `ranlib'
1493 # * if we can create symbolic links
1494 # * if `make' sets the MAKE macro
1495 # * a bsd-compatible `install' program
1496 # If we use the install-sh script that comes with configure,
1497 # prefix it with the current directory so it'll work in
1498 # subdirectories. Unfortunately, it won't work if the user
1499 # moves the source tree.
1500 #--------------------------------------------------------------------
1501 if test -n "$ac_tool_prefix"; then
1502 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1504 echo "$as_me:$LINENO: checking for $ac_word" >&5
1505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506 if test "${ac_cv_prog_RANLIB+set}" = set; then
1507 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 else
1509 if test -n "$RANLIB"; then
1510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1511 else
1512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513 for as_dir in $PATH
1514 do
1515 IFS=$as_save_IFS
1516 test -z "$as_dir" && as_dir=.
1517 for ac_exec_ext in '' $ac_executable_extensions; do
1518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 break 2
1522 fi
1523 done
1524 done
1525
1526 fi
1527 fi
1528 RANLIB=$ac_cv_prog_RANLIB
1529 if test -n "$RANLIB"; then
1530 echo "$as_me:$LINENO: result: $RANLIB" >&5
1531 echo "${ECHO_T}$RANLIB" >&6
1532 else
1533 echo "$as_me:$LINENO: result: no" >&5
1534 echo "${ECHO_T}no" >&6
1535 fi
1536
1537 fi
1538 if test -z "$ac_cv_prog_RANLIB"; then
1539 ac_ct_RANLIB=$RANLIB
1540 # Extract the first word of "ranlib", so it can be a program name with args.
1541 set dummy ranlib; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547 if test -n "$ac_ct_RANLIB"; then
1548 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553 IFS=$as_save_IFS
1554 test -z "$as_dir" && as_dir=.
1555 for ac_exec_ext in '' $ac_executable_extensions; do
1556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557 ac_cv_prog_ac_ct_RANLIB="ranlib"
1558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559 break 2
1560 fi
1561 done
1562 done
1563
1564 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1565 fi
1566 fi
1567 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1568 if test -n "$ac_ct_RANLIB"; then
1569 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1570 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1571 else
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 fi
1575
1576 RANLIB=$ac_ct_RANLIB
1577 else
1578 RANLIB="$ac_cv_prog_RANLIB"
1579 fi
1580
1581 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1582 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1583 LN_S=$as_ln_s
1584 if test "$LN_S" = "ln -s"; then
1585 echo "$as_me:$LINENO: result: yes" >&5
1586 echo "${ECHO_T}yes" >&6
1587 else
1588 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1589 echo "${ECHO_T}no, using $LN_S" >&6
1590 fi
1591
1592 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1593 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1594 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1595 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597 else
1598 cat >conftest.make <<\_ACEOF
1599 all:
1600 @echo 'ac_maketemp="$(MAKE)"'
1601 _ACEOF
1602 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1603 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1604 if test -n "$ac_maketemp"; then
1605 eval ac_cv_prog_make_${ac_make}_set=yes
1606 else
1607 eval ac_cv_prog_make_${ac_make}_set=no
1608 fi
1609 rm -f conftest.make
1610 fi
1611 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1612 echo "$as_me:$LINENO: result: yes" >&5
1613 echo "${ECHO_T}yes" >&6
1614 SET_MAKE=
1615 else
1616 echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1618 SET_MAKE="MAKE=${MAKE-make}"
1619 fi
1620
1621 # Find a good install program. We prefer a C program (faster),
1622 # so one script is as good as another. But avoid the broken or
1623 # incompatible versions:
1624 # SysV /etc/install, /usr/sbin/install
1625 # SunOS /usr/etc/install
1626 # IRIX /sbin/install
1627 # AIX /bin/install
1628 # AmigaOS /C/install, which installs bootblocks on floppy discs
1629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1632 # OS/2's system install, which has a completely different semantic
1633 # ./install, which can be erroneously created by make from ./install.sh.
1634 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1635 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1636 if test -z "$INSTALL"; then
1637 if test "${ac_cv_path_install+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 else
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 for as_dir in $PATH
1642 do
1643 IFS=$as_save_IFS
1644 test -z "$as_dir" && as_dir=.
1645 # Account for people who put trailing slashes in PATH elements.
1646 case $as_dir/ in
1647 ./ | .// | /cC/* | \
1648 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1649 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1650 /usr/ucb/* ) ;;
1651 *)
1652 # OSF1 and SCO ODT 3.0 have their own names for install.
1653 # Don't use installbsd from OSF since it installs stuff as root
1654 # by default.
1655 for ac_prog in ginstall scoinst install; do
1656 for ac_exec_ext in '' $ac_executable_extensions; do
1657 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1658 if test $ac_prog = install &&
1659 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1660 # AIX install. It has an incompatible calling convention.
1661 :
1662 elif test $ac_prog = install &&
1663 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1664 # program-specific install script used by HP pwplus--don't use.
1665 :
1666 else
1667 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1668 break 3
1669 fi
1670 fi
1671 done
1672 done
1673 ;;
1674 esac
1675 done
1676
1677
1678 fi
1679 if test "${ac_cv_path_install+set}" = set; then
1680 INSTALL=$ac_cv_path_install
1681 else
1682 # As a last resort, use the slow shell script. We don't cache a
1683 # path for INSTALL within a source directory, because that will
1684 # break other packages using the cache if that directory is
1685 # removed, or if the path is relative.
1686 INSTALL=$ac_install_sh
1687 fi
1688 fi
1689 echo "$as_me:$LINENO: result: $INSTALL" >&5
1690 echo "${ECHO_T}$INSTALL" >&6
1691
1692 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1693 # It thinks the first close brace ends the variable substitution.
1694 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1695
1696 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1697
1698 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1699
1700
1701 case "X$INSTALL" in
1702 X/*)
1703 ;;
1704 *)
1705 INSTALL="$ascpwd/$INSTALL"
1706 ;;
1707 esac
1708
1709
1710 #--------------------------------------------------------------------
1711 # Get the host type for various checks along the way
1712 #--------------------------------------------------------------------
1713 # Make sure we can run config.sub.
1714 $ac_config_sub sun4 >/dev/null 2>&1 ||
1715 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1716 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1717 { (exit 1); exit 1; }; }
1718
1719 echo "$as_me:$LINENO: checking build system type" >&5
1720 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1721 if test "${ac_cv_build+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 else
1724 ac_cv_build_alias=$build_alias
1725 test -z "$ac_cv_build_alias" &&
1726 ac_cv_build_alias=`$ac_config_guess`
1727 test -z "$ac_cv_build_alias" &&
1728 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1729 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1730 { (exit 1); exit 1; }; }
1731 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1732 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1733 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1734 { (exit 1); exit 1; }; }
1735
1736 fi
1737 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1738 echo "${ECHO_T}$ac_cv_build" >&6
1739 build=$ac_cv_build
1740 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1741 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1742 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1743
1744
1745 echo "$as_me:$LINENO: checking host system type" >&5
1746 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1747 if test "${ac_cv_host+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 else
1750 ac_cv_host_alias=$host_alias
1751 test -z "$ac_cv_host_alias" &&
1752 ac_cv_host_alias=$ac_cv_build_alias
1753 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1754 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1755 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1756 { (exit 1); exit 1; }; }
1757
1758 fi
1759 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1760 echo "${ECHO_T}$ac_cv_host" >&6
1761 host=$ac_cv_host
1762 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1763 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1764 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1765
1766
1767
1768 #--------------------------------------------------------------------
1769 # Check for the C compiler: set CC and CFLAGS.
1770 # If the user does NOT specify `--enable-gcc' on the configure
1771 # command command line, set CC to either the envar CC or `cc'.
1772 # Call AC_PROG_CC which will use the value of CC (perhaps set
1773 # immediately above) or will check for `gcc' and then for `cc'
1774 # if `gcc' is not found.
1775 #
1776 # If we are using GCC, then assume it groks ANSI. Otherwise,
1777 # try to compile a small program using ANSI constructs with
1778 # CC. If this fails, try to locate each of the following:
1779 # c89 xlc acc
1780 # and if successful, see if it compiles an ANSI C program.
1781 # (Doing this in a loop would be ideal, but configure caches
1782 # the result of AC_CHECK_PROG and uses the cached value for
1783 # all but the first pass through the loop. This is also the
1784 # reason we have to use a different variable asc_cc1, asc_cc2
1785 # for each call to AC_CHECK_PROG.
1786 #
1787 # If we do not find an ANSI C compiler, print a warning and
1788 # use the first value of CC we tried.
1789 #--------------------------------------------------------------------
1790 #JP removed the lengthy CC tests, since ANSI C is pretty universal
1791 #JP these days, and GCC can pretty much be assumed if we're using
1792 #JP Autotools.
1793
1794 ac_ext=c
1795 ac_cpp='$CPP $CPPFLAGS'
1796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1799 if test -n "$ac_tool_prefix"; then
1800 for ac_prog in gcc
1801 do
1802 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1803 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1804 echo "$as_me:$LINENO: checking for $ac_word" >&5
1805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1806 if test "${ac_cv_prog_CC+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 if test -n "$CC"; then
1810 ac_cv_prog_CC="$CC" # Let the user override the test.
1811 else
1812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813 for as_dir in $PATH
1814 do
1815 IFS=$as_save_IFS
1816 test -z "$as_dir" && as_dir=.
1817 for ac_exec_ext in '' $ac_executable_extensions; do
1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1819 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1821 break 2
1822 fi
1823 done
1824 done
1825
1826 fi
1827 fi
1828 CC=$ac_cv_prog_CC
1829 if test -n "$CC"; then
1830 echo "$as_me:$LINENO: result: $CC" >&5
1831 echo "${ECHO_T}$CC" >&6
1832 else
1833 echo "$as_me:$LINENO: result: no" >&5
1834 echo "${ECHO_T}no" >&6
1835 fi
1836
1837 test -n "$CC" && break
1838 done
1839 fi
1840 if test -z "$CC"; then
1841 ac_ct_CC=$CC
1842 for ac_prog in gcc
1843 do
1844 # Extract the first word of "$ac_prog", so it can be a program name with args.
1845 set dummy $ac_prog; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851 if test -n "$ac_ct_CC"; then
1852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1853 else
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857 IFS=$as_save_IFS
1858 test -z "$as_dir" && as_dir=.
1859 for ac_exec_ext in '' $ac_executable_extensions; do
1860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861 ac_cv_prog_ac_ct_CC="$ac_prog"
1862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863 break 2
1864 fi
1865 done
1866 done
1867
1868 fi
1869 fi
1870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871 if test -n "$ac_ct_CC"; then
1872 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873 echo "${ECHO_T}$ac_ct_CC" >&6
1874 else
1875 echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1877 fi
1878
1879 test -n "$ac_ct_CC" && break
1880 done
1881
1882 CC=$ac_ct_CC
1883 fi
1884
1885
1886 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1887 See \`config.log' for more details." >&5
1888 echo "$as_me: error: no acceptable C compiler found in \$PATH
1889 See \`config.log' for more details." >&2;}
1890 { (exit 1); exit 1; }; }
1891
1892 # Provide some information about the compiler.
1893 echo "$as_me:$LINENO:" \
1894 "checking for C compiler version" >&5
1895 ac_compiler=`set X $ac_compile; echo $2`
1896 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1897 (eval $ac_compiler --version </dev/null >&5) 2>&5
1898 ac_status=$?
1899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1900 (exit $ac_status); }
1901 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1902 (eval $ac_compiler -v </dev/null >&5) 2>&5
1903 ac_status=$?
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }
1906 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1907 (eval $ac_compiler -V </dev/null >&5) 2>&5
1908 ac_status=$?
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); }
1911
1912 cat >conftest.$ac_ext <<_ACEOF
1913 /* confdefs.h. */
1914 _ACEOF
1915 cat confdefs.h >>conftest.$ac_ext
1916 cat >>conftest.$ac_ext <<_ACEOF
1917 /* end confdefs.h. */
1918
1919 int
1920 main ()
1921 {
1922
1923 ;
1924 return 0;
1925 }
1926 _ACEOF
1927 ac_clean_files_save=$ac_clean_files
1928 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1929 # Try to create an executable without -o first, disregard a.out.
1930 # It will help us diagnose broken compilers, and finding out an intuition
1931 # of exeext.
1932 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1933 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1934 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1935 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1936 (eval $ac_link_default) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 # Find the output, starting from the most likely. This scheme is
1941 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1942 # resort.
1943
1944 # Be careful to initialize this variable, since it used to be cached.
1945 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1946 ac_cv_exeext=
1947 # b.out is created by i960 compilers.
1948 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1949 do
1950 test -f "$ac_file" || continue
1951 case $ac_file in
1952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1953 ;;
1954 conftest.$ac_ext )
1955 # This is the source file.
1956 ;;
1957 [ab].out )
1958 # We found the default executable, but exeext='' is most
1959 # certainly right.
1960 break;;
1961 *.* )
1962 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1963 # FIXME: I believe we export ac_cv_exeext for Libtool,
1964 # but it would be cool to find out if it's true. Does anybody
1965 # maintain Libtool? --akim.
1966 export ac_cv_exeext
1967 break;;
1968 * )
1969 break;;
1970 esac
1971 done
1972 else
1973 echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1975
1976 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1977 See \`config.log' for more details." >&5
1978 echo "$as_me: error: C compiler cannot create executables
1979 See \`config.log' for more details." >&2;}
1980 { (exit 77); exit 77; }; }
1981 fi
1982
1983 ac_exeext=$ac_cv_exeext
1984 echo "$as_me:$LINENO: result: $ac_file" >&5
1985 echo "${ECHO_T}$ac_file" >&6
1986
1987 # Check the compiler produces executables we can run. If not, either
1988 # the compiler is broken, or we cross compile.
1989 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1990 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1991 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1992 # If not cross compiling, check that we can run a simple program.
1993 if test "$cross_compiling" != yes; then
1994 if { ac_try='./$ac_file'
1995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996 (eval $ac_try) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; }; then
2000 cross_compiling=no
2001 else
2002 if test "$cross_compiling" = maybe; then
2003 cross_compiling=yes
2004 else
2005 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2006 If you meant to cross compile, use \`--host'.
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot run C compiled programs.
2009 If you meant to cross compile, use \`--host'.
2010 See \`config.log' for more details." >&2;}
2011 { (exit 1); exit 1; }; }
2012 fi
2013 fi
2014 fi
2015 echo "$as_me:$LINENO: result: yes" >&5
2016 echo "${ECHO_T}yes" >&6
2017
2018 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2019 ac_clean_files=$ac_clean_files_save
2020 # Check the compiler produces executables we can run. If not, either
2021 # the compiler is broken, or we cross compile.
2022 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2023 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2024 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2025 echo "${ECHO_T}$cross_compiling" >&6
2026
2027 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2028 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2030 (eval $ac_link) 2>&5
2031 ac_status=$?
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; then
2034 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2035 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2036 # work properly (i.e., refer to `conftest.exe'), while it won't with
2037 # `rm'.
2038 for ac_file in conftest.exe conftest conftest.*; do
2039 test -f "$ac_file" || continue
2040 case $ac_file in
2041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2042 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2043 export ac_cv_exeext
2044 break;;
2045 * ) break;;
2046 esac
2047 done
2048 else
2049 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2050 See \`config.log' for more details." >&5
2051 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2052 See \`config.log' for more details." >&2;}
2053 { (exit 1); exit 1; }; }
2054 fi
2055
2056 rm -f conftest$ac_cv_exeext
2057 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2058 echo "${ECHO_T}$ac_cv_exeext" >&6
2059
2060 rm -f conftest.$ac_ext
2061 EXEEXT=$ac_cv_exeext
2062 ac_exeext=$EXEEXT
2063 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2064 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2065 if test "${ac_cv_objext+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 else
2068 cat >conftest.$ac_ext <<_ACEOF
2069 /* confdefs.h. */
2070 _ACEOF
2071 cat confdefs.h >>conftest.$ac_ext
2072 cat >>conftest.$ac_ext <<_ACEOF
2073 /* end confdefs.h. */
2074
2075 int
2076 main ()
2077 {
2078
2079 ;
2080 return 0;
2081 }
2082 _ACEOF
2083 rm -f conftest.o conftest.obj
2084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2085 (eval $ac_compile) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; then
2089 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2090 case $ac_file in
2091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2092 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2093 break;;
2094 esac
2095 done
2096 else
2097 echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2099
2100 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2101 See \`config.log' for more details." >&5
2102 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2103 See \`config.log' for more details." >&2;}
2104 { (exit 1); exit 1; }; }
2105 fi
2106
2107 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2108 fi
2109 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2110 echo "${ECHO_T}$ac_cv_objext" >&6
2111 OBJEXT=$ac_cv_objext
2112 ac_objext=$OBJEXT
2113 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2114 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2115 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118 cat >conftest.$ac_ext <<_ACEOF
2119 /* confdefs.h. */
2120 _ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h. */
2124
2125 int
2126 main ()
2127 {
2128 #ifndef __GNUC__
2129 choke me
2130 #endif
2131
2132 ;
2133 return 0;
2134 }
2135 _ACEOF
2136 rm -f conftest.$ac_objext
2137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138 (eval $ac_compile) 2>conftest.er1
2139 ac_status=$?
2140 grep -v '^ *+' conftest.er1 >conftest.err
2141 rm -f conftest.er1
2142 cat conftest.err >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); } &&
2145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2147 (eval $ac_try) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; } &&
2151 { ac_try='test -s conftest.$ac_objext'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153 (eval $ac_try) 2>&5
2154 ac_status=$?
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
2157 ac_compiler_gnu=yes
2158 else
2159 echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2161
2162 ac_compiler_gnu=no
2163 fi
2164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2165 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2166
2167 fi
2168 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2169 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2170 GCC=`test $ac_compiler_gnu = yes && echo yes`
2171 ac_test_CFLAGS=${CFLAGS+set}
2172 ac_save_CFLAGS=$CFLAGS
2173 CFLAGS="-g"
2174 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2175 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2176 if test "${ac_cv_prog_cc_g+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 cat >conftest.$ac_ext <<_ACEOF
2180 /* confdefs.h. */
2181 _ACEOF
2182 cat confdefs.h >>conftest.$ac_ext
2183 cat >>conftest.$ac_ext <<_ACEOF
2184 /* end confdefs.h. */
2185
2186 int
2187 main ()
2188 {
2189
2190 ;
2191 return 0;
2192 }
2193 _ACEOF
2194 rm -f conftest.$ac_objext
2195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>conftest.er1
2197 ac_status=$?
2198 grep -v '^ *+' conftest.er1 >conftest.err
2199 rm -f conftest.er1
2200 cat conftest.err >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; } &&
2209 { ac_try='test -s conftest.$ac_objext'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; }; then
2215 ac_cv_prog_cc_g=yes
2216 else
2217 echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 ac_cv_prog_cc_g=no
2221 fi
2222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2223 fi
2224 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2225 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2226 if test "$ac_test_CFLAGS" = set; then
2227 CFLAGS=$ac_save_CFLAGS
2228 elif test $ac_cv_prog_cc_g = yes; then
2229 if test "$GCC" = yes; then
2230 CFLAGS="-g -O2"
2231 else
2232 CFLAGS="-g"
2233 fi
2234 else
2235 if test "$GCC" = yes; then
2236 CFLAGS="-O2"
2237 else
2238 CFLAGS=
2239 fi
2240 fi
2241 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2242 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2243 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246 ac_cv_prog_cc_stdc=no
2247 ac_save_CC=$CC
2248 cat >conftest.$ac_ext <<_ACEOF
2249 /* confdefs.h. */
2250 _ACEOF
2251 cat confdefs.h >>conftest.$ac_ext
2252 cat >>conftest.$ac_ext <<_ACEOF
2253 /* end confdefs.h. */
2254 #include <stdarg.h>
2255 #include <stdio.h>
2256 #include <sys/types.h>
2257 #include <sys/stat.h>
2258 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2259 struct buf { int x; };
2260 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2261 static char *e (p, i)
2262 char **p;
2263 int i;
2264 {
2265 return p[i];
2266 }
2267 static char *f (char * (*g) (char **, int), char **p, ...)
2268 {
2269 char *s;
2270 va_list v;
2271 va_start (v,p);
2272 s = g (p, va_arg (v,int));
2273 va_end (v);
2274 return s;
2275 }
2276
2277 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2278 function prototypes and stuff, but not '\xHH' hex character constants.
2279 These don't provoke an error unfortunately, instead are silently treated
2280 as 'x'. The following induces an error, until -std1 is added to get
2281 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2282 array size at least. It's necessary to write '\x00'==0 to get something
2283 that's true only with -std1. */
2284 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2285
2286 int test (int i, double x);
2287 struct s1 {int (*f) (int a);};
2288 struct s2 {int (*f) (double a);};
2289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2290 int argc;
2291 char **argv;
2292 int
2293 main ()
2294 {
2295 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2296 ;
2297 return 0;
2298 }
2299 _ACEOF
2300 # Don't try gcc -ansi; that turns off useful extensions and
2301 # breaks some systems' header files.
2302 # AIX -qlanglvl=ansi
2303 # Ultrix and OSF/1 -std1
2304 # HP-UX 10.20 and later -Ae
2305 # HP-UX older versions -Aa -D_HPUX_SOURCE
2306 # SVR4 -Xc -D__EXTENSIONS__
2307 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2308 do
2309 CC="$ac_save_CC $ac_arg"
2310 rm -f conftest.$ac_objext
2311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2312 (eval $ac_compile) 2>conftest.er1
2313 ac_status=$?
2314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 (eval $ac_try) 2>&5
2322 ac_status=$?
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 (eval $ac_try) 2>&5
2328 ac_status=$?
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 ac_cv_prog_cc_stdc=$ac_arg
2332 break
2333 else
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2336
2337 fi
2338 rm -f conftest.err conftest.$ac_objext
2339 done
2340 rm -f conftest.$ac_ext conftest.$ac_objext
2341 CC=$ac_save_CC
2342
2343 fi
2344
2345 case "x$ac_cv_prog_cc_stdc" in
2346 x|xno)
2347 echo "$as_me:$LINENO: result: none needed" >&5
2348 echo "${ECHO_T}none needed" >&6 ;;
2349 *)
2350 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2351 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2352 CC="$CC $ac_cv_prog_cc_stdc" ;;
2353 esac
2354
2355 # Some people use a C++ compiler to compile C. Since we use `exit',
2356 # in C++ we need to declare it. In case someone uses the same compiler
2357 # for both compiling C and C++ we need to have the C++ compiler decide
2358 # the declaration of exit, since it's the most demanding environment.
2359 cat >conftest.$ac_ext <<_ACEOF
2360 #ifndef __cplusplus
2361 choke me
2362 #endif
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2367 ac_status=$?
2368 grep -v '^ *+' conftest.er1 >conftest.err
2369 rm -f conftest.er1
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 (eval $ac_try) 2>&5
2376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); }; } &&
2379 { ac_try='test -s conftest.$ac_objext'
2380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 (eval $ac_try) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; }; then
2385 for ac_declaration in \
2386 '' \
2387 'extern "C" void std::exit (int) throw (); using std::exit;' \
2388 'extern "C" void std::exit (int); using std::exit;' \
2389 'extern "C" void exit (int) throw ();' \
2390 'extern "C" void exit (int);' \
2391 'void exit (int);'
2392 do
2393 cat >conftest.$ac_ext <<_ACEOF
2394 /* confdefs.h. */
2395 _ACEOF
2396 cat confdefs.h >>conftest.$ac_ext
2397 cat >>conftest.$ac_ext <<_ACEOF
2398 /* end confdefs.h. */
2399 $ac_declaration
2400 #include <stdlib.h>
2401 int
2402 main ()
2403 {
2404 exit (42);
2405 ;
2406 return 0;
2407 }
2408 _ACEOF
2409 rm -f conftest.$ac_objext
2410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2411 (eval $ac_compile) 2>conftest.er1
2412 ac_status=$?
2413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); } &&
2418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426 (eval $ac_try) 2>&5
2427 ac_status=$?
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; }; then
2430 :
2431 else
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2434
2435 continue
2436 fi
2437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2438 cat >conftest.$ac_ext <<_ACEOF
2439 /* confdefs.h. */
2440 _ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2444 $ac_declaration
2445 int
2446 main ()
2447 {
2448 exit (42);
2449 ;
2450 return 0;
2451 }
2452 _ACEOF
2453 rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455 (eval $ac_compile) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 (eval $ac_try) 2>&5
2465 ac_status=$?
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest.$ac_objext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 (eval $ac_try) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 break
2475 else
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 fi
2480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2481 done
2482 rm -f conftest*
2483 if test -n "$ac_declaration"; then
2484 echo '#ifdef __cplusplus' >>confdefs.h
2485 echo $ac_declaration >>confdefs.h
2486 echo '#endif' >>confdefs.h
2487 fi
2488
2489 else
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2492
2493 fi
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 ac_ext=c
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2500
2501
2502 #--------------------------------------------------------------------
2503 # Do other misc checks with CC and CFLAGS.
2504 #
2505 # Determine how to run the C preprocessor.
2506 #
2507 # If the user specifies --enable-optimization, remove `-g'
2508 # from CFLAGS, add `-O' to CFLAGS, and define `NDEBUG'. If
2509 # we are not building optimized, check for special libraries
2510 # needed for building a debugging binary (currenly only
2511 # /usr/lib/end.o under HPUX).
2512 #
2513 # Check if we're running on AIX; if so, add `-D_ALL_SOURCE'
2514 # to CFLAGS.
2515 #
2516 # Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'
2517 # to CFLAGS unless the C preprocessor goes it for us.
2518 #--------------------------------------------------------------------
2519
2520 ac_ext=c
2521 ac_cpp='$CPP $CPPFLAGS'
2522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2525 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2526 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2527 # On Suns, sometimes $CPP names a directory.
2528 if test -n "$CPP" && test -d "$CPP"; then
2529 CPP=
2530 fi
2531 if test -z "$CPP"; then
2532 if test "${ac_cv_prog_CPP+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2534 else
2535 # Double quotes because CPP needs to be expanded
2536 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2537 do
2538 ac_preproc_ok=false
2539 for ac_c_preproc_warn_flag in '' yes
2540 do
2541 # Use a header file that comes with gcc, so configuring glibc
2542 # with a fresh cross-compiler works.
2543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2544 # <limits.h> exists even on freestanding compilers.
2545 # On the NeXT, cc -E runs the code through the compiler's parser,
2546 # not just through cpp. "Syntax error" is here to catch this case.
2547 cat >conftest.$ac_ext <<_ACEOF
2548 /* confdefs.h. */
2549 _ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2553 #ifdef __STDC__
2554 # include <limits.h>
2555 #else
2556 # include <assert.h>
2557 #endif
2558 Syntax error
2559 _ACEOF
2560 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2562 ac_status=$?
2563 grep -v '^ *+' conftest.er1 >conftest.err
2564 rm -f conftest.er1
2565 cat conftest.err >&5
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); } >/dev/null; then
2568 if test -s conftest.err; then
2569 ac_cpp_err=$ac_c_preproc_warn_flag
2570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2571 else
2572 ac_cpp_err=
2573 fi
2574 else
2575 ac_cpp_err=yes
2576 fi
2577 if test -z "$ac_cpp_err"; then
2578 :
2579 else
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2582
2583 # Broken: fails on valid input.
2584 continue
2585 fi
2586 rm -f conftest.err conftest.$ac_ext
2587
2588 # OK, works on sane cases. Now check whether non-existent headers
2589 # can be detected and how.
2590 cat >conftest.$ac_ext <<_ACEOF
2591 /* confdefs.h. */
2592 _ACEOF
2593 cat confdefs.h >>conftest.$ac_ext
2594 cat >>conftest.$ac_ext <<_ACEOF
2595 /* end confdefs.h. */
2596 #include <ac_nonexistent.h>
2597 _ACEOF
2598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2600 ac_status=$?
2601 grep -v '^ *+' conftest.er1 >conftest.err
2602 rm -f conftest.er1
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } >/dev/null; then
2606 if test -s conftest.err; then
2607 ac_cpp_err=$ac_c_preproc_warn_flag
2608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2609 else
2610 ac_cpp_err=
2611 fi
2612 else
2613 ac_cpp_err=yes
2614 fi
2615 if test -z "$ac_cpp_err"; then
2616 # Broken: success on invalid input.
2617 continue
2618 else
2619 echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2621
2622 # Passes both tests.
2623 ac_preproc_ok=:
2624 break
2625 fi
2626 rm -f conftest.err conftest.$ac_ext
2627
2628 done
2629 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2630 rm -f conftest.err conftest.$ac_ext
2631 if $ac_preproc_ok; then
2632 break
2633 fi
2634
2635 done
2636 ac_cv_prog_CPP=$CPP
2637
2638 fi
2639 CPP=$ac_cv_prog_CPP
2640 else
2641 ac_cv_prog_CPP=$CPP
2642 fi
2643 echo "$as_me:$LINENO: result: $CPP" >&5
2644 echo "${ECHO_T}$CPP" >&6
2645 ac_preproc_ok=false
2646 for ac_c_preproc_warn_flag in '' yes
2647 do
2648 # Use a header file that comes with gcc, so configuring glibc
2649 # with a fresh cross-compiler works.
2650 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2651 # <limits.h> exists even on freestanding compilers.
2652 # On the NeXT, cc -E runs the code through the compiler's parser,
2653 # not just through cpp. "Syntax error" is here to catch this case.
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h. */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2660 #ifdef __STDC__
2661 # include <limits.h>
2662 #else
2663 # include <assert.h>
2664 #endif
2665 Syntax error
2666 _ACEOF
2667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); } >/dev/null; then
2675 if test -s conftest.err; then
2676 ac_cpp_err=$ac_c_preproc_warn_flag
2677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2678 else
2679 ac_cpp_err=
2680 fi
2681 else
2682 ac_cpp_err=yes
2683 fi
2684 if test -z "$ac_cpp_err"; then
2685 :
2686 else
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690 # Broken: fails on valid input.
2691 continue
2692 fi
2693 rm -f conftest.err conftest.$ac_ext
2694
2695 # OK, works on sane cases. Now check whether non-existent headers
2696 # can be detected and how.
2697 cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h. */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2703 #include <ac_nonexistent.h>
2704 _ACEOF
2705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2707 ac_status=$?
2708 grep -v '^ *+' conftest.er1 >conftest.err
2709 rm -f conftest.er1
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } >/dev/null; then
2713 if test -s conftest.err; then
2714 ac_cpp_err=$ac_c_preproc_warn_flag
2715 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2716 else
2717 ac_cpp_err=
2718 fi
2719 else
2720 ac_cpp_err=yes
2721 fi
2722 if test -z "$ac_cpp_err"; then
2723 # Broken: success on invalid input.
2724 continue
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729 # Passes both tests.
2730 ac_preproc_ok=:
2731 break
2732 fi
2733 rm -f conftest.err conftest.$ac_ext
2734
2735 done
2736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2737 rm -f conftest.err conftest.$ac_ext
2738 if $ac_preproc_ok; then
2739 :
2740 else
2741 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2742 See \`config.log' for more details." >&5
2743 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2744 See \`config.log' for more details." >&2;}
2745 { (exit 1); exit 1; }; }
2746 fi
2747
2748 ac_ext=c
2749 ac_cpp='$CPP $CPPFLAGS'
2750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2753
2754
2755 # Check whether --enable-optimization or --disable-optimization was given.
2756 if test "${enable_optimization+set}" = set; then
2757 enableval="$enable_optimization"
2758 asc_do_opt="$enableval"
2759 else
2760 asc_do_opt=no
2761 fi;
2762
2763 if test "$asc_do_opt" = yes; then
2764 CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`
2765 cat >>confdefs.h <<\_ACEOF
2766 #define NDEBUG 1
2767 _ACEOF
2768
2769 else
2770 # Extract the first word of "end.o", so it can be a program name with args.
2771 set dummy end.o; ac_word=$2
2772 echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_path_DEBUG_LIBS+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 else
2777 case $DEBUG_LIBS in
2778 [\\/]* | ?:[\\/]*)
2779 ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path.
2780 ;;
2781 *)
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in /usr/lib
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_path_DEBUG_LIBS="$as_dir/$ac_word$ac_exec_ext"
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795
2796 ;;
2797 esac
2798 fi
2799 DEBUG_LIBS=$ac_cv_path_DEBUG_LIBS
2800
2801 if test -n "$DEBUG_LIBS"; then
2802 echo "$as_me:$LINENO: result: $DEBUG_LIBS" >&5
2803 echo "${ECHO_T}$DEBUG_LIBS" >&6
2804 else
2805 echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6
2807 fi
2808
2809 fi
2810
2811 echo "$as_me:$LINENO: checking for AIX" >&5
2812 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2813
2814
2815 echo "$as_me:$LINENO: checking for egrep" >&5
2816 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2817 if test "${ac_cv_prog_egrep+set}" = set; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 else
2820 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2821 then ac_cv_prog_egrep='grep -E'
2822 else ac_cv_prog_egrep='egrep'
2823 fi
2824 fi
2825 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2826 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2827 EGREP=$ac_cv_prog_egrep
2828
2829
2830 cat >conftest.$ac_ext <<_ACEOF
2831 /* confdefs.h. */
2832 _ACEOF
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2836
2837 #ifdef _AIX
2838 yes
2839 #endif
2840
2841 _ACEOF
2842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2843 $EGREP "yes" >/dev/null 2>&1; then
2844 asc_aix=yes ; cat >>confdefs.h <<\_ACEOF
2845 #define _ALL_SOURCE 1
2846 _ACEOF
2847
2848 else
2849 asc_aix=no
2850 fi
2851 rm -f conftest*
2852
2853 echo "$as_me:$LINENO: result: $asc_aix" >&5
2854 echo "${ECHO_T}$asc_aix" >&6
2855
2856 echo "$as_me:$LINENO: checking whether -D_HPUX_SOURCE is needed" >&5
2857 echo $ECHO_N "checking whether -D_HPUX_SOURCE is needed... $ECHO_C" >&6
2858 cat >conftest.$ac_ext <<_ACEOF
2859 /* confdefs.h. */
2860 _ACEOF
2861 cat confdefs.h >>conftest.$ac_ext
2862 cat >>conftest.$ac_ext <<_ACEOF
2863 /* end confdefs.h. */
2864
2865 #ifdef __hpux
2866 #ifndef _HPUX_SOURCE
2867 yes
2868 #endif
2869 #endif
2870
2871 _ACEOF
2872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2873 $EGREP "yes" >/dev/null 2>&1; then
2874 asc_hpux=yes ; cat >>confdefs.h <<\_ACEOF
2875 #define _HPUX_SOURCE 1
2876 _ACEOF
2877
2878 else
2879 asc_hpux=no
2880 fi
2881 rm -f conftest*
2882
2883 echo "$as_me:$LINENO: result: $asc_hpux" >&5
2884 echo "${ECHO_T}$asc_hpux" >&6
2885
2886 # Check the size of pointers; if cross compiling, assume 32 bit pointers
2887 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2888 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2889 if test "${ac_cv_header_stdc+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 else
2892 cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h. */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2898 #include <stdlib.h>
2899 #include <stdarg.h>
2900 #include <string.h>
2901 #include <float.h>
2902
2903 int
2904 main ()
2905 {
2906
2907 ;
2908 return 0;
2909 }
2910 _ACEOF
2911 rm -f conftest.$ac_objext
2912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913 (eval $ac_compile) 2>conftest.er1
2914 ac_status=$?
2915 grep -v '^ *+' conftest.er1 >conftest.err
2916 rm -f conftest.er1
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } &&
2920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922 (eval $ac_try) 2>&5
2923 ac_status=$?
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }; } &&
2926 { ac_try='test -s conftest.$ac_objext'
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; }; then
2932 ac_cv_header_stdc=yes
2933 else
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2936
2937 ac_cv_header_stdc=no
2938 fi
2939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2940
2941 if test $ac_cv_header_stdc = yes; then
2942 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2943 cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h. */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2949 #include <string.h>
2950
2951 _ACEOF
2952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2953 $EGREP "memchr" >/dev/null 2>&1; then
2954 :
2955 else
2956 ac_cv_header_stdc=no
2957 fi
2958 rm -f conftest*
2959
2960 fi
2961
2962 if test $ac_cv_header_stdc = yes; then
2963 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 #include <stdlib.h>
2971
2972 _ACEOF
2973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2974 $EGREP "free" >/dev/null 2>&1; then
2975 :
2976 else
2977 ac_cv_header_stdc=no
2978 fi
2979 rm -f conftest*
2980
2981 fi
2982
2983 if test $ac_cv_header_stdc = yes; then
2984 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2985 if test "$cross_compiling" = yes; then
2986 :
2987 else
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2994 #include <ctype.h>
2995 #if ((' ' & 0x0FF) == 0x020)
2996 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2997 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2998 #else
2999 # define ISLOWER(c) \
3000 (('a' <= (c) && (c) <= 'i') \
3001 || ('j' <= (c) && (c) <= 'r') \
3002 || ('s' <= (c) && (c) <= 'z'))
3003 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3004 #endif
3005
3006 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3007 int
3008 main ()
3009 {
3010 int i;
3011 for (i = 0; i < 256; i++)
3012 if (XOR (islower (i), ISLOWER (i))
3013 || toupper (i) != TOUPPER (i))
3014 exit(2);
3015 exit (0);
3016 }
3017 _ACEOF
3018 rm -f conftest$ac_exeext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3020 (eval $ac_link) 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 (eval $ac_try) 2>&5
3026 ac_status=$?
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); }; }; then
3029 :
3030 else
3031 echo "$as_me: program exited with status $ac_status" >&5
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 ( exit $ac_status )
3036 ac_cv_header_stdc=no
3037 fi
3038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3039 fi
3040 fi
3041 fi
3042 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3043 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3044 if test $ac_cv_header_stdc = yes; then
3045
3046 cat >>confdefs.h <<\_ACEOF
3047 #define STDC_HEADERS 1
3048 _ACEOF
3049
3050 fi
3051
3052 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3063 inttypes.h stdint.h unistd.h
3064 do
3065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3066 echo "$as_me:$LINENO: checking for $ac_header" >&5
3067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071 cat >conftest.$ac_ext <<_ACEOF
3072 /* confdefs.h. */
3073 _ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 $ac_includes_default
3078
3079 #include <$ac_header>
3080 _ACEOF
3081 rm -f conftest.$ac_objext
3082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3083 (eval $ac_compile) 2>conftest.er1
3084 ac_status=$?
3085 grep -v '^ *+' conftest.er1 >conftest.err
3086 rm -f conftest.er1
3087 cat conftest.err >&5
3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089 (exit $ac_status); } &&
3090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3092 (eval $ac_try) 2>&5
3093 ac_status=$?
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098 (eval $ac_try) 2>&5
3099 ac_status=$?
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3102 eval "$as_ac_Header=yes"
3103 else
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3106
3107 eval "$as_ac_Header=no"
3108 fi
3109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3110 fi
3111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3114 cat >>confdefs.h <<_ACEOF
3115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3116 _ACEOF
3117
3118 fi
3119
3120 done
3121
3122
3123 echo "$as_me:$LINENO: checking for void *" >&5
3124 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3125 if test "${ac_cv_type_void_p+set}" = set; then
3126 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 else
3128 cat >conftest.$ac_ext <<_ACEOF
3129 /* confdefs.h. */
3130 _ACEOF
3131 cat confdefs.h >>conftest.$ac_ext
3132 cat >>conftest.$ac_ext <<_ACEOF
3133 /* end confdefs.h. */
3134 $ac_includes_default
3135 int
3136 main ()
3137 {
3138 if ((void * *) 0)
3139 return 0;
3140 if (sizeof (void *))
3141 return 0;
3142 ;
3143 return 0;
3144 }
3145 _ACEOF
3146 rm -f conftest.$ac_objext
3147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3148 (eval $ac_compile) 2>conftest.er1
3149 ac_status=$?
3150 grep -v '^ *+' conftest.er1 >conftest.err
3151 rm -f conftest.er1
3152 cat conftest.err >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); } &&
3155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157 (eval $ac_try) 2>&5
3158 ac_status=$?
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; } &&
3161 { ac_try='test -s conftest.$ac_objext'
3162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3163 (eval $ac_try) 2>&5
3164 ac_status=$?
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); }; }; then
3167 ac_cv_type_void_p=yes
3168 else
3169 echo "$as_me: failed program was:" >&5
3170 sed 's/^/| /' conftest.$ac_ext >&5
3171
3172 ac_cv_type_void_p=no
3173 fi
3174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3175 fi
3176 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3177 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3178
3179 echo "$as_me:$LINENO: checking size of void *" >&5
3180 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3181 if test "${ac_cv_sizeof_void_p+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 if test "$ac_cv_type_void_p" = yes; then
3185 # The cast to unsigned long works around a bug in the HP C Compiler
3186 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3187 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3188 # This bug is HP SR number 8606223364.
3189 if test "$cross_compiling" = yes; then
3190 # Depending upon the size, compute the lo and hi bounds.
3191 cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h. */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3197 $ac_includes_default
3198 int
3199 main ()
3200 {
3201 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3202 test_array [0] = 0
3203
3204 ;
3205 return 0;
3206 }
3207 _ACEOF
3208 rm -f conftest.$ac_objext
3209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3210 (eval $ac_compile) 2>conftest.er1
3211 ac_status=$?
3212 grep -v '^ *+' conftest.er1 >conftest.err
3213 rm -f conftest.er1
3214 cat conftest.err >&5
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219 (eval $ac_try) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225 (eval $ac_try) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 ac_lo=0 ac_mid=0
3230 while :; do
3231 cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h. */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3237 $ac_includes_default
3238 int
3239 main ()
3240 {
3241 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3242 test_array [0] = 0
3243
3244 ;
3245 return 0;
3246 }
3247 _ACEOF
3248 rm -f conftest.$ac_objext
3249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3250 (eval $ac_compile) 2>conftest.er1
3251 ac_status=$?
3252 grep -v '^ *+' conftest.er1 >conftest.err
3253 rm -f conftest.er1
3254 cat conftest.err >&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); } &&
3257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3259 (eval $ac_try) 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }; } &&
3263 { ac_try='test -s conftest.$ac_objext'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; }; then
3269 ac_hi=$ac_mid; break
3270 else
3271 echo "$as_me: failed program was:" >&5
3272 sed 's/^/| /' conftest.$ac_ext >&5
3273
3274 ac_lo=`expr $ac_mid + 1`
3275 if test $ac_lo -le $ac_mid; then
3276 ac_lo= ac_hi=
3277 break
3278 fi
3279 ac_mid=`expr 2 '*' $ac_mid + 1`
3280 fi
3281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3282 done
3283 else
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h. */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h. */
3293 $ac_includes_default
3294 int
3295 main ()
3296 {
3297 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3298 test_array [0] = 0
3299
3300 ;
3301 return 0;
3302 }
3303 _ACEOF
3304 rm -f conftest.$ac_objext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306 (eval $ac_compile) 2>conftest.er1
3307 ac_status=$?
3308 grep -v '^ *+' conftest.er1 >conftest.err
3309 rm -f conftest.er1
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 (eval $ac_try) 2>&5
3316 ac_status=$?
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest.$ac_objext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321 (eval $ac_try) 2>&5
3322 ac_status=$?
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_hi=-1 ac_mid=-1
3326 while :; do
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 $ac_includes_default
3334 int
3335 main ()
3336 {
3337 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3338 test_array [0] = 0
3339
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 rm -f conftest.$ac_objext
3345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3346 (eval $ac_compile) 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } &&
3353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 (eval $ac_try) 2>&5
3356 ac_status=$?
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); }; } &&
3359 { ac_try='test -s conftest.$ac_objext'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 (eval $ac_try) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; }; then
3365 ac_lo=$ac_mid; break
3366 else
3367 echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370 ac_hi=`expr '(' $ac_mid ')' - 1`
3371 if test $ac_mid -le $ac_hi; then
3372 ac_lo= ac_hi=
3373 break
3374 fi
3375 ac_mid=`expr 2 '*' $ac_mid`
3376 fi
3377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3378 done
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3382
3383 ac_lo= ac_hi=
3384 fi
3385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3386 fi
3387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3388 # Binary search between lo and hi bounds.
3389 while test "x$ac_lo" != "x$ac_hi"; do
3390 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 $ac_includes_default
3398 int
3399 main ()
3400 {
3401 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3402 test_array [0] = 0
3403
3404 ;
3405 return 0;
3406 }
3407 _ACEOF
3408 rm -f conftest.$ac_objext
3409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3410 (eval $ac_compile) 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } &&
3417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 (eval $ac_try) 2>&5
3420 ac_status=$?
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); }; } &&
3423 { ac_try='test -s conftest.$ac_objext'
3424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3425 (eval $ac_try) 2>&5
3426 ac_status=$?
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); }; }; then
3429 ac_hi=$ac_mid
3430 else
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 ac_lo=`expr '(' $ac_mid ')' + 1`
3435 fi
3436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3437 done
3438 case $ac_lo in
3439 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3440 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3441 See \`config.log' for more details." >&5
3442 echo "$as_me: error: cannot compute sizeof (void *), 77
3443 See \`config.log' for more details." >&2;}
3444 { (exit 1); exit 1; }; } ;;
3445 esac
3446 else
3447 if test "$cross_compiling" = yes; then
3448 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
3449 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
3450 { (exit 1); exit 1; }; }
3451 else
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 $ac_includes_default
3459 long longval () { return (long) (sizeof (void *)); }
3460 unsigned long ulongval () { return (long) (sizeof (void *)); }
3461 #include <stdio.h>
3462 #include <stdlib.h>
3463 int
3464 main ()
3465 {
3466
3467 FILE *f = fopen ("conftest.val", "w");
3468 if (! f)
3469 exit (1);
3470 if (((long) (sizeof (void *))) < 0)
3471 {
3472 long i = longval ();
3473 if (i != ((long) (sizeof (void *))))
3474 exit (1);
3475 fprintf (f, "%ld\n", i);
3476 }
3477 else
3478 {
3479 unsigned long i = ulongval ();
3480 if (i != ((long) (sizeof (void *))))
3481 exit (1);
3482 fprintf (f, "%lu\n", i);
3483 }
3484 exit (ferror (f) || fclose (f) != 0);
3485
3486 ;
3487 return 0;
3488 }
3489 _ACEOF
3490 rm -f conftest$ac_exeext
3491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3492 (eval $ac_link) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3497 (eval $ac_try) 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }; }; then
3501 ac_cv_sizeof_void_p=`cat conftest.val`
3502 else
3503 echo "$as_me: program exited with status $ac_status" >&5
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 ( exit $ac_status )
3508 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3509 See \`config.log' for more details." >&5
3510 echo "$as_me: error: cannot compute sizeof (void *), 77
3511 See \`config.log' for more details." >&2;}
3512 { (exit 1); exit 1; }; }
3513 fi
3514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3515 fi
3516 fi
3517 rm -f conftest.val
3518 else
3519 ac_cv_sizeof_void_p=0
3520 fi
3521 fi
3522 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3523 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3524 cat >>confdefs.h <<_ACEOF
3525 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3526 _ACEOF
3527
3528
3529
3530
3531 #--------------------------------------------------------------------
3532 # Set YACC.
3533 # call the
3534 # autoconf macro which looks for `bison' and then for `yacc'.
3535 # note it isn't bright enough to check that yacc really exists,
3536 # so we allow the user to disable it.
3537 #--------------------------------------------------------------------
3538
3539 YACCSAVE="$YACC"
3540 for ac_prog in 'bison -y' byacc
3541 do
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543 set dummy $ac_prog; ac_word=$2
3544 echo "$as_me:$LINENO: checking for $ac_word" >&5
3545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3546 if test "${ac_cv_prog_YACC+set}" = set; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548 else
3549 if test -n "$YACC"; then
3550 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3554 do
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_YACC="$ac_prog"
3560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3562 fi
3563 done
3564 done
3565
3566 fi
3567 fi
3568 YACC=$ac_cv_prog_YACC
3569 if test -n "$YACC"; then
3570 echo "$as_me:$LINENO: result: $YACC" >&5
3571 echo "${ECHO_T}$YACC" >&6
3572 else
3573 echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6
3575 fi
3576
3577 test -n "$YACC" && break
3578 done
3579 test -n "$YACC" || YACC="yacc"
3580
3581
3582
3583 # Check whether --with-yacc or --without-yacc was given.
3584 if test "${with_yacc+set}" = set; then
3585 withval="$with_yacc"
3586
3587 else
3588 with_yacc=yes
3589 fi;
3590 if test ! "X$with_yacc" = "Xyes" ; then
3591 YACC=": configured without yacc"
3592 parser_src="ascParse.c.from.c"
3593 else
3594 parser_src="ascParse.c.from.yacc"
3595 fi
3596
3597
3598 #--------------------------------------------------------------------
3599 # Set LEX.
3600 # ASCEND requires a `flex' which understands -P (allows you to
3601 # specify a prefix other than `yy'). The -P flag was added at
3602 # the same time a -V (version) flag was added (version 2.4.1),
3603 # so if `flex' understands -V, it'll understand -P (checking
3604 # for -P directly requires a flex input file).
3605 #
3606 # 1. If `LEX' is not set, look for `flex' and set `LEX' to
3607 # `flex' if found.
3608 # 2. If `flex' was found, see if it understands -V. If so,
3609 # set `scanner_src' and `typer_src' to have `flex' generate
3610 # the C files from the flex input files
3611 # base/generic/compiler/scanner.l & tcltk/interface/typelex.l
3612 # We don't need to look for libfl.a since we define
3613 # yywrap() ourselves.
3614 # 3. If `flex' wasn't found or was found but isn't new enough:
3615 # a. Print a warning message
3616 # b. Set `scanner_src' and `typer_src' to use pre-generated
3617 # C files for the flex files mentioned in (2).
3618 # c. Set `LEX' to `lex'
3619 # d. Search for the lex library `libl.a' and set LEXLIB to
3620 # its location.
3621 #--------------------------------------------------------------------
3622
3623 # Extract the first word of "flex", so it can be a program name with args.
3624 set dummy flex; ac_word=$2
3625 echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627 if test "${ac_cv_prog_LEX+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630 if test -n "$LEX"; then
3631 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3640 ac_cv_prog_LEX="flex"
3641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 break 2
3643 fi
3644 done
3645 done
3646
3647 fi
3648 fi
3649 LEX=$ac_cv_prog_LEX
3650 if test -n "$LEX"; then
3651 echo "$as_me:$LINENO: result: $LEX" >&5
3652 echo "${ECHO_T}$LEX" >&6
3653 else
3654 echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658
3659 if test -n "$LEX" ; then
3660 echo "$as_me:$LINENO: checking whether $LEX is at least version 2.4.1" >&5
3661 echo $ECHO_N "checking whether $LEX is at least version 2.4.1... $ECHO_C" >&6
3662 echo "$LEX -V" 1>&5
3663 if $LEX -V 1>&5 2>&5 ; then
3664 echo "$as_me:$LINENO: result: yes" >&5
3665 echo "${ECHO_T}yes" >&6
3666 scanner_src="scanner.c.from.flex"
3667 typer_src="typelex.c.from.flex"
3668 else
3669 echo "$as_me:$LINENO: result: no" >&5
3670 echo "${ECHO_T}no" >&6
3671 LEX=''
3672 fi
3673 fi
3674
3675 if test -z "$LEX" ; then
3676 { echo "$as_me:$LINENO: WARNING: Cannot find a flex lexer version 2.4.1 or greater.
3677 Using pregenerated C files for base/generic/compiler/scanner.l
3678 and tcltk/interface/typelex.l. If you have flex 2.4.1
3679 or newer, set the LEX environment variable to its location
3680 and run configure again." >&5
3681 echo "$as_me: WARNING: Cannot find a flex lexer version 2.4.1 or greater.
3682 Using pregenerated C files for base/generic/compiler/scanner.l
3683 and tcltk/interface/typelex.l. If you have flex 2.4.1
3684 or newer, set the LEX environment variable to its location
3685 and run configure again." >&2;}
3686 scanner_src="scanner.c.from.c"
3687 typer_src="typelex.c.from.c"
3688
3689 # let configure set LEX and LEXLIB even though we won't be using them
3690 for ac_prog in flex lex
3691 do
3692 # Extract the first word of "$ac_prog", so it can be a program name with args.
3693 set dummy $ac_prog; ac_word=$2
3694 echo "$as_me:$LINENO: checking for $ac_word" >&5
3695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3696 if test "${ac_cv_prog_LEX+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 else
3699 if test -n "$LEX"; then
3700 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3709 ac_cv_prog_LEX="$ac_prog"
3710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 break 2
3712 fi
3713 done
3714 done
3715
3716 fi
3717 fi
3718 LEX=$ac_cv_prog_LEX
3719 if test -n "$LEX"; then
3720 echo "$as_me:$LINENO: result: $LEX" >&5
3721 echo "${ECHO_T}$LEX" >&6
3722 else
3723 echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6
3725 fi
3726
3727 test -n "$LEX" && break
3728 done
3729 test -n "$LEX" || LEX=":"
3730
3731 if test -z "$LEXLIB"
3732 then
3733 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3734 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3735 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3737 else
3738 ac_check_lib_save_LIBS=$LIBS
3739 LIBS="-lfl $LIBS"
3740 cat >conftest.$ac_ext <<_ACEOF
3741 /* confdefs.h. */
3742 _ACEOF
3743 cat confdefs.h >>conftest.$ac_ext
3744 cat >>conftest.$ac_ext <<_ACEOF
3745 /* end confdefs.h. */
3746
3747 /* Override any gcc2 internal prototype to avoid an error. */
3748 #ifdef __cplusplus
3749 extern "C"
3750 #endif
3751 /* We use char because int might match the return type of a gcc2
3752 builtin and then its argument prototype would still apply. */
3753 char yywrap ();
3754 int
3755 main ()
3756 {
3757 yywrap ();
3758 ;
3759 return 0;
3760 }
3761 _ACEOF
3762 rm -f conftest.$ac_objext conftest$ac_exeext
3763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3764 (eval $ac_link) 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3773 (eval $ac_try) 2>&5
3774 ac_status=$?
3775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776 (exit $ac_status); }; } &&
3777 { ac_try='test -s conftest$ac_exeext'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3779 (eval $ac_try) 2>&5
3780 ac_status=$?
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; }; then
3783 ac_cv_lib_fl_yywrap=yes
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 ac_cv_lib_fl_yywrap=no
3789 fi
3790 rm -f conftest.err conftest.$ac_objext \
3791 conftest$ac_exeext conftest.$ac_ext
3792 LIBS=$ac_check_lib_save_LIBS
3793 fi
3794 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3795 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3796 if test $ac_cv_lib_fl_yywrap = yes; then
3797 LEXLIB="-lfl"
3798 else
3799 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3800 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3801 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804 ac_check_lib_save_LIBS=$LIBS
3805 LIBS="-ll $LIBS"
3806 cat >conftest.$ac_ext <<_ACEOF
3807 /* confdefs.h. */
3808 _ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812
3813 /* Override any gcc2 internal prototype to avoid an error. */
3814 #ifdef __cplusplus
3815 extern "C"
3816 #endif
3817 /* We use char because int might match the return type of a gcc2
3818 builtin and then its argument prototype would still apply. */
3819 char yywrap ();
3820 int
3821 main ()
3822 {
3823 yywrap ();
3824 ;
3825 return 0;
3826 }
3827 _ACEOF
3828 rm -f conftest.$ac_objext conftest$ac_exeext
3829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3830 (eval $ac_link) 2>conftest.er1
3831 ac_status=$?
3832 grep -v '^ *+' conftest.er1 >conftest.err
3833 rm -f conftest.er1
3834 cat conftest.err >&5
3835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); } &&
3837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3839 (eval $ac_try) 2>&5
3840 ac_status=$?
3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3842 (exit $ac_status); }; } &&
3843 { ac_try='test -s conftest$ac_exeext'
3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3845 (eval $ac_try) 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3849 ac_cv_lib_l_yywrap=yes
3850 else
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3853
3854 ac_cv_lib_l_yywrap=no
3855 fi
3856 rm -f conftest.err conftest.$ac_objext \
3857 conftest$ac_exeext conftest.$ac_ext
3858 LIBS=$ac_check_lib_save_LIBS
3859 fi
3860 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3861 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3862 if test $ac_cv_lib_l_yywrap = yes; then
3863 LEXLIB="-ll"
3864 fi
3865
3866 fi
3867
3868 fi
3869
3870 if test "x$LEX" != "x:"; then
3871 echo "$as_me:$LINENO: checking lex output file root" >&5
3872 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3873 if test "${ac_cv_prog_lex_root+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 # The minimal lex program is just a single line: %%. But some broken lexes
3877 # (Solaris, I think it was) want two %% lines, so accommodate them.
3878 cat >conftest.l <<_ACEOF
3879 %%
3880 %%
3881 _ACEOF
3882 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3883 (eval $LEX conftest.l) 2>&5
3884 ac_status=$?
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); }
3887 if test -f lex.yy.c; then
3888 ac_cv_prog_lex_root=lex.yy
3889 elif test -f lexyy.c; then
3890 ac_cv_prog_lex_root=lexyy
3891 else
3892 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3893 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3894 { (exit 1); exit 1; }; }
3895 fi
3896 fi
3897 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3898 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3899 rm -f conftest.l
3900 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3901
3902 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3903 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3904 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 # POSIX says lex can declare yytext either as a pointer or an array; the
3908 # default is implementation-dependent. Figure out which it is, since
3909 # not all implementations provide the %pointer and %array declarations.
3910 ac_cv_prog_lex_yytext_pointer=no
3911 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3912 ac_save_LIBS=$LIBS
3913 LIBS="$LIBS $LEXLIB"
3914 cat >conftest.$ac_ext <<_ACEOF
3915 `cat $LEX_OUTPUT_ROOT.c`
3916 _ACEOF
3917 rm -f conftest.$ac_objext conftest$ac_exeext
3918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3919 (eval $ac_link) 2>conftest.er1
3920 ac_status=$?
3921 grep -v '^ *+' conftest.er1 >conftest.err
3922 rm -f conftest.er1
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } &&
3926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928 (eval $ac_try) 2>&5
3929 ac_status=$?
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); }; } &&
3932 { ac_try='test -s conftest$ac_exeext'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3938 ac_cv_prog_lex_yytext_pointer=yes
3939 else
3940 echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3942
3943 fi
3944 rm -f conftest.err conftest.$ac_objext \
3945 conftest$ac_exeext conftest.$ac_ext
3946 LIBS=$ac_save_LIBS
3947 rm -f "${LEX_OUTPUT_ROOT}.c"
3948
3949 fi
3950 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3951 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3952 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3953
3954 cat >>confdefs.h <<\_ACEOF
3955 #define YYTEXT_POINTER 1
3956 _ACEOF
3957
3958 fi
3959
3960 fi
3961 fi
3962
3963
3964 #--------------------------------------------------------------------
3965 # Math libraries.
3966 # On a few very rare systems, all of the libm.a stuff is
3967 # already in libc.a. Set compiler flags accordingly.
3968 # Also, Linux requires the "ieee" library for math to work
3969 # right (and it must appear before "-lm").
3970 #
3971 # When building on HPUX with GCC, GCC cannot find `copysign'
3972 # because it lives in an odd place; see if we need to add
3973 # this odd place to MATH_LIBS.
3974 #
3975 # See if erf(), the error function, exists; if so, define
3976 # HAVE_ERF.
3977 #--------------------------------------------------------------------
3978 echo "$as_me:$LINENO: checking for sin" >&5
3979 echo $ECHO_N "checking for sin... $ECHO_C" >&6
3980 if test "${ac_cv_func_sin+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983 cat >conftest.$ac_ext <<_ACEOF
3984 /* confdefs.h. */
3985 _ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 /* Define sin to an innocuous variant, in case <limits.h> declares sin.
3990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3991 #define sin innocuous_sin
3992
3993 /* System header to define __stub macros and hopefully few prototypes,
3994 which can conflict with char sin (); below.
3995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3996 <limits.h> exists even on freestanding compilers. */
3997
3998 #ifdef __STDC__
3999 # include <limits.h>
4000 #else
4001 # include <assert.h>
4002 #endif
4003
4004 #undef sin
4005
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 sin ();
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_sin) || defined (__stub___sin)
4018 choke me
4019 #else
4020 char (*f) () = sin;
4021 #endif
4022 #ifdef __cplusplus
4023 }
4024 #endif
4025
4026 int
4027 main ()
4028 {
4029 return f != sin;
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>conftest.er1
4037 ac_status=$?
4038 grep -v '^ *+' conftest.er1 >conftest.err
4039 rm -f conftest.er1
4040 cat conftest.err >&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; } &&
4049 { ac_try='test -s conftest$ac_exeext'
4050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4051 (eval $ac_try) 2>&5
4052 ac_status=$?
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; }; then
4055 ac_cv_func_sin=yes
4056 else
4057 echo "$as_me: failed program was:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4059
4060 ac_cv_func_sin=no
4061 fi
4062 rm -f conftest.err conftest.$ac_objext \
4063 conftest$ac_exeext conftest.$ac_ext
4064 fi
4065 echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
4066 echo "${ECHO_T}$ac_cv_func_sin" >&6
4067 if test $ac_cv_func_sin = yes; then
4068 MATH_LIBS=""
4069 else
4070 MATH_LIBS="-lm"
4071 fi
4072
4073
4074 echo "$as_me:$LINENO: checking for printf in -lieee" >&5
4075 echo $ECHO_N "checking for printf in -lieee... $ECHO_C" >&6
4076 if test "${ac_cv_lib_ieee_printf+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079 ac_check_lib_save_LIBS=$LIBS
4080 LIBS="-lieee $LIBS"
4081 cat >conftest.$ac_ext <<_ACEOF
4082 /* confdefs.h. */
4083 _ACEOF
4084 cat confdefs.h >>conftest.$ac_ext
4085 cat >>conftest.$ac_ext <<_ACEOF
4086 /* end confdefs.h. */
4087
4088 /* Override any gcc2 internal prototype to avoid an error. */
4089 #ifdef __cplusplus
4090 extern "C"
4091 #endif
4092 /* We use char because int might match the return type of a gcc2
4093 builtin and then its argument prototype would still apply. */
4094 char printf ();
4095 int
4096 main ()
4097 {
4098 printf ();
4099 ;
4100 return 0;
4101 }
4102 _ACEOF
4103 rm -f conftest.$ac_objext conftest$ac_exeext
4104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4105 (eval $ac_link) 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } &&
4112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest$ac_exeext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_lib_ieee_printf=yes
4125 else
4126 echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129 ac_cv_lib_ieee_printf=no
4130 fi
4131 rm -f conftest.err conftest.$ac_objext \
4132 conftest$ac_exeext conftest.$ac_ext
4133 LIBS=$ac_check_lib_save_LIBS
4134 fi
4135 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_printf" >&5
4136 echo "${ECHO_T}$ac_cv_lib_ieee_printf" >&6
4137 if test $ac_cv_lib_ieee_printf = yes; then
4138 MATH_LIBS="-lieee $MATH_LIBS"
4139 fi
4140
4141
4142 if test -n "$MATH_LIBS" ; then
4143
4144 echo "$as_me:$LINENO: checking for copysign in -lm" >&5
4145 echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6
4146 if test "${ac_cv_lib_m_copysign+set}" = set; then
4147 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149 ac_check_lib_save_LIBS=$LIBS
4150 LIBS="-lm $MATH_LIBS $LIBS"
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157
4158 /* Override any gcc2 internal prototype to avoid an error. */
4159 #ifdef __cplusplus
4160 extern "C"
4161 #endif
4162 /* We use char because int might match the return type of a gcc2
4163 builtin and then its argument prototype would still apply. */
4164 char copysign ();
4165 int
4166 main ()
4167 {
4168 copysign ();
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 rm -f conftest.$ac_objext conftest$ac_exeext
4174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4175 (eval $ac_link) 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } &&
4182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4184 (eval $ac_try) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; } &&
4188 { ac_try='test -s conftest$ac_exeext'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 ac_cv_lib_m_copysign=yes
4195 else
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 ac_cv_lib_m_copysign=no
4200 fi
4201 rm -f conftest.err conftest.$ac_objext \
4202 conftest$ac_exeext conftest.$ac_ext
4203 LIBS=$ac_check_lib_save_LIBS
4204 fi
4205 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5
4206 echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6
4207 if test $ac_cv_lib_m_copysign = yes; then
4208 cat >>confdefs.h <<_ACEOF
4209 #define HAVE_LIBM 1
4210 _ACEOF
4211
4212 LIBS="-lm $LIBS"
4213
4214 else
4215 echo "$as_me:$LINENO: checking for drem in -lm" >&5
4216 echo $ECHO_N "checking for drem in -lm... $ECHO_C" >&6
4217 if test "${ac_cv_lib_m_drem+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 else
4220 ac_check_lib_save_LIBS=$LIBS
4221 LIBS="-lm /lib/pa1.1/libM.a
4222 $LIBS"
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229
4230 /* Override any gcc2 internal prototype to avoid an error. */
4231 #ifdef __cplusplus
4232 extern "C"
4233 #endif
4234 /* We use char because int might match the return type of a gcc2
4235 builtin and then its argument prototype would still apply. */
4236 char drem ();
4237 int
4238 main ()
4239 {
4240 drem ();
4241 ;
4242