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

Contents of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 192 - (show annotations) (download)
Mon Jan 16 14:54:35 2006 UTC (19 years, 3 months ago) by johnpye
File size: 370281 byte(s)
Added test for 'vsnprintf'
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 asc_cc1 asc_cc2 asc_cc3 CPP DEBUG_LIBS EGREP YACC LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS TCL_LIB TCL_HDR TK_LIB TK_HDR TKTABLE_LIB F77 BLASLIB LPAKLIB LSODLIB 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 ASC_TK_LIBRARY ASC_TCL_LIBRARY 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
852 ASCEND specific options
853
854 Compiler options:
855 --enable-gcc allow use of gcc if avaiable
856 --enable-optimization optimize the C code while building ascend
857
858 Optional Packages:
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --with-x use the X Window System
862 Location of Tcl, Tk, and tkTable:
863 --with-tcl=LIBRARY,HEADER
864 The location of the Tcl8.0 library and/or header
865 For a static Tcl8.0 library, give the full path:
866 --with-tcl='/usr/local/lib/libtcl8.0.a'
867 For a dynamic library, give any -L options required:
868 --with-tcl='-L/usr/local/lib -ltcl8.0'
869 To specify only the header, leave off the library:
870 --with-tcl=',/usr/local/include/tcl.h'
871 --with-tk=LIBRARY,HEADER
872 The location of the Tk8.0 library and/or header
873 For a static Tk8.0 library, give the full path:
874 --with-tk='/usr/local/lib/libtk8.3.a'
875 For a dynamic library, give any -L options required:
876 --with-tk='-L/usr/local/lib -ltk8.3'
877 To specify only the header, leave off the library:
878 --with-tk=',/usr/local/include/tk.h'
879 --with-tktable=TKTABLE full path to a TkTable1.3 static library
880 --with-wish=/path/to/bin/wish
881 The location of the wish shell executable matching
882 the tcl/tk given by --with-tk and --with-tcl.
883 X11 must be running during configure.
884 Fortran compiler and libraries:
885 --with-fortran=F77,F77LIBS
886 The location of your Fortran compiler and its
887 library files. For example, under SunOS:
888 --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'
889 To specify only the compiler or libraries, leave off
890 whatever is not needed:
891 --with-fortran=',-L/usr/lang/lib -lF77 -lM77'
892 Use '--without-fortran' to not link against
893 any Fortran libraries
894 --with-blas=BLASLIB The full path to the blas library.
895 Use '--with-blas=build' to build the blas library
896 from the sources that come with the distribution.
897 --with-linpack=LPAKLIB The full path to the linpack library.
898 Use '--with-linpack=build' to build the library
899 from the sources that come with the distribution.
900 --with-lsod=LSODLIB The full path to the lsod library.
901 Use '--with-lsod=build' to build the lsod library
902 from the sources that come with the distribution.
903 Generation of Makefiles:
904 --without-tkdir do not generate Makefiles in the TK subdir
905 --without-models do not generate Makefiles in the models subdir
906
907 Some influential environment variables:
908 CC C compiler command
909 CFLAGS C compiler flags
910 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
911 nonstandard directory <lib dir>
912 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
913 headers in a nonstandard directory <include dir>
914 CPP C preprocessor
915
916 Use these variables to override the choices made by `configure' or to help
917 it to find libraries and programs with nonstandard names/locations.
918
919 _ACEOF
920 fi
921
922 if test "$ac_init_help" = "recursive"; then
923 # If there are subdirs, report their specific --help.
924 ac_popdir=`pwd`
925 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
926 test -d $ac_dir || continue
927 ac_builddir=.
928
929 if test "$ac_dir" != .; then
930 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
931 # A "../" for each directory in $ac_dir_suffix.
932 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 else
934 ac_dir_suffix= ac_top_builddir=
935 fi
936
937 case $srcdir in
938 .) # No --srcdir option. We are building in place.
939 ac_srcdir=.
940 if test -z "$ac_top_builddir"; then
941 ac_top_srcdir=.
942 else
943 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 fi ;;
945 [\\/]* | ?:[\\/]* ) # Absolute path.
946 ac_srcdir=$srcdir$ac_dir_suffix;
947 ac_top_srcdir=$srcdir ;;
948 *) # Relative path.
949 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
950 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 esac
952
953 # Do not use `cd foo && pwd` to compute absolute paths, because
954 # the directories may not exist.
955 case `pwd` in
956 .) ac_abs_builddir="$ac_dir";;
957 *)
958 case "$ac_dir" in
959 .) ac_abs_builddir=`pwd`;;
960 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
961 *) ac_abs_builddir=`pwd`/"$ac_dir";;
962 esac;;
963 esac
964 case $ac_abs_builddir in
965 .) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *)
967 case ${ac_top_builddir}. in
968 .) ac_abs_top_builddir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
970 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
971 esac;;
972 esac
973 case $ac_abs_builddir in
974 .) ac_abs_srcdir=$ac_srcdir;;
975 *)
976 case $ac_srcdir in
977 .) ac_abs_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
979 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
980 esac;;
981 esac
982 case $ac_abs_builddir in
983 .) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *)
985 case $ac_top_srcdir in
986 .) ac_abs_top_srcdir=$ac_abs_builddir;;
987 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
988 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
989 esac;;
990 esac
991
992 cd $ac_dir
993 # Check for guested configure; otherwise get Cygnus style configure.
994 if test -f $ac_srcdir/configure.gnu; then
995 echo
996 $SHELL $ac_srcdir/configure.gnu --help=recursive
997 elif test -f $ac_srcdir/configure; then
998 echo
999 $SHELL $ac_srcdir/configure --help=recursive
1000 elif test -f $ac_srcdir/configure.ac ||
1001 test -f $ac_srcdir/configure.in; then
1002 echo
1003 $ac_configure --help
1004 else
1005 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1006 fi
1007 cd $ac_popdir
1008 done
1009 fi
1010
1011 test -n "$ac_init_help" && exit 0
1012 if $ac_init_version; then
1013 cat <<\_ACEOF
1014
1015 Copyright (C) 2003 Free Software Foundation, Inc.
1016 This configure script is free software; the Free Software Foundation
1017 gives unlimited permission to copy, distribute and modify it.
1018 _ACEOF
1019 exit 0
1020 fi
1021 exec 5>config.log
1022 cat >&5 <<_ACEOF
1023 This file contains any messages produced by compilers while
1024 running configure, to aid debugging if configure makes a mistake.
1025
1026 It was created by $as_me, which was
1027 generated by GNU Autoconf 2.59. Invocation command line was
1028
1029 $ $0 $@
1030
1031 _ACEOF
1032 {
1033 cat <<_ASUNAME
1034 ## --------- ##
1035 ## Platform. ##
1036 ## --------- ##
1037
1038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043
1044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1046
1047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1050 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1054
1055 _ASUNAME
1056
1057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1058 for as_dir in $PATH
1059 do
1060 IFS=$as_save_IFS
1061 test -z "$as_dir" && as_dir=.
1062 echo "PATH: $as_dir"
1063 done
1064
1065 } >&5
1066
1067 cat >&5 <<_ACEOF
1068
1069
1070 ## ----------- ##
1071 ## Core tests. ##
1072 ## ----------- ##
1073
1074 _ACEOF
1075
1076
1077 # Keep a trace of the command line.
1078 # Strip out --no-create and --no-recursion so they do not pile up.
1079 # Strip out --silent because we don't want to record it for future runs.
1080 # Also quote any args containing shell meta-characters.
1081 # Make two passes to allow for proper duplicate-argument suppression.
1082 ac_configure_args=
1083 ac_configure_args0=
1084 ac_configure_args1=
1085 ac_sep=
1086 ac_must_keep_next=false
1087 for ac_pass in 1 2
1088 do
1089 for ac_arg
1090 do
1091 case $ac_arg in
1092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 continue ;;
1096 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1097 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 esac
1099 case $ac_pass in
1100 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101 2)
1102 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1103 if test $ac_must_keep_next = true; then
1104 ac_must_keep_next=false # Got value, back to normal.
1105 else
1106 case $ac_arg in
1107 *=* | --config-cache | -C | -disable-* | --disable-* \
1108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1110 | -with-* | --with-* | -without-* | --without-* | --x)
1111 case "$ac_configure_args0 " in
1112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 esac
1114 ;;
1115 -* ) ac_must_keep_next=true ;;
1116 esac
1117 fi
1118 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1119 # Get rid of the leading space.
1120 ac_sep=" "
1121 ;;
1122 esac
1123 done
1124 done
1125 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1126 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127
1128 # When interrupted or exit'd, cleanup temporary files, and complete
1129 # config.log. We remove comments because anyway the quotes in there
1130 # would cause problems or look ugly.
1131 # WARNING: Be sure not to use single quotes in there, as some shells,
1132 # such as our DU 5.0 friend, will then `close' the trap.
1133 trap 'exit_status=$?
1134 # Save into config.log some information that might help in debugging.
1135 {
1136 echo
1137
1138 cat <<\_ASBOX
1139 ## ---------------- ##
1140 ## Cache variables. ##
1141 ## ---------------- ##
1142 _ASBOX
1143 echo
1144 # The following way of writing the cache mishandles newlines in values,
1145 {
1146 (set) 2>&1 |
1147 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 *ac_space=\ *)
1149 sed -n \
1150 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1152 ;;
1153 *)
1154 sed -n \
1155 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1156 ;;
1157 esac;
1158 }
1159 echo
1160
1161 cat <<\_ASBOX
1162 ## ----------------- ##
1163 ## Output variables. ##
1164 ## ----------------- ##
1165 _ASBOX
1166 echo
1167 for ac_var in $ac_subst_vars
1168 do
1169 eval ac_val=$`echo $ac_var`
1170 echo "$ac_var='"'"'$ac_val'"'"'"
1171 done | sort
1172 echo
1173
1174 if test -n "$ac_subst_files"; then
1175 cat <<\_ASBOX
1176 ## ------------- ##
1177 ## Output files. ##
1178 ## ------------- ##
1179 _ASBOX
1180 echo
1181 for ac_var in $ac_subst_files
1182 do
1183 eval ac_val=$`echo $ac_var`
1184 echo "$ac_var='"'"'$ac_val'"'"'"
1185 done | sort
1186 echo
1187 fi
1188
1189 if test -s confdefs.h; then
1190 cat <<\_ASBOX
1191 ## ----------- ##
1192 ## confdefs.h. ##
1193 ## ----------- ##
1194 _ASBOX
1195 echo
1196 sed "/^$/d" confdefs.h | sort
1197 echo
1198 fi
1199 test "$ac_signal" != 0 &&
1200 echo "$as_me: caught signal $ac_signal"
1201 echo "$as_me: exit $exit_status"
1202 } >&5
1203 rm -f core *.core &&
1204 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 exit $exit_status
1206 ' 0
1207 for ac_signal in 1 2 13 15; do
1208 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1209 done
1210 ac_signal=0
1211
1212 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1213 rm -rf conftest* confdefs.h
1214 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 echo >confdefs.h
1216
1217 # Predefined preprocessor variables.
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_NAME "$PACKAGE_NAME"
1221 _ACEOF
1222
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_STRING "$PACKAGE_STRING"
1236 _ACEOF
1237
1238
1239 cat >>confdefs.h <<_ACEOF
1240 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1241 _ACEOF
1242
1243
1244 # Let the site file select an alternate cache file if it wants to.
1245 # Prefer explicitly selected file to automatically selected ones.
1246 if test -z "$CONFIG_SITE"; then
1247 if test "x$prefix" != xNONE; then
1248 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 else
1250 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251 fi
1252 fi
1253 for ac_site_file in $CONFIG_SITE; do
1254 if test -r "$ac_site_file"; then
1255 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1256 echo "$as_me: loading site script $ac_site_file" >&6;}
1257 sed 's/^/| /' "$ac_site_file" >&5
1258 . "$ac_site_file"
1259 fi
1260 done
1261
1262
1263 # Check that the precious variables saved in the cache have kept the same
1264 # value.
1265 ac_cache_corrupted=false
1266 for ac_var in `(set) 2>&1 |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1269 eval ac_new_set=\$ac_env_${ac_var}_set
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1271 eval ac_new_val="\$ac_env_${ac_var}_value"
1272 case $ac_old_set,$ac_new_set in
1273 set,)
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1276 ac_cache_corrupted=: ;;
1277 ,set)
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1280 ac_cache_corrupted=: ;;
1281 ,);;
1282 *)
1283 if test "x$ac_old_val" != "x$ac_new_val"; then
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1287 echo "$as_me: former value: $ac_old_val" >&2;}
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1289 echo "$as_me: current value: $ac_new_val" >&2;}
1290 ac_cache_corrupted=:
1291 fi;;
1292 esac
1293 # Pass precious variables to config.status.
1294 if test "$ac_new_set" = set; then
1295 case $ac_new_val in
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1298 *) ac_arg=$ac_var=$ac_new_val ;;
1299 esac
1300 case " $ac_configure_args " in
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1303 esac
1304 fi
1305 done
1306 if $ac_cache_corrupted; then
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1311 { (exit 1); exit 1; }; }
1312 fi
1313
1314 ac_ext=c
1315 ac_cpp='$CPP $CPPFLAGS'
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340 #--------------------------------------------------------------------
1341 # CVS Most Recent Revision Data
1342 # Put this data after AC_INIT since we want this information
1343 # to also appear in configure and autoconf, when creating
1344 # configure, strips all comments that appear in configure.in
1345 # before AC_INIT
1346 # $Revision: 1.38 $
1347 # $Date: 2003/11/23 19:36:39 $
1348 # $Author: ballan $
1349 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $
1350 #--------------------------------------------------------------------
1351
1352
1353 #--------------------------------------------------------------------
1354 # Where configure should look for files it needs.
1355 #--------------------------------------------------------------------
1356 ac_aux_dir=
1357 for ac_dir in config $srcdir/config; do
1358 if test -f $ac_dir/install-sh; then
1359 ac_aux_dir=$ac_dir
1360 ac_install_sh="$ac_aux_dir/install-sh -c"
1361 break
1362 elif test -f $ac_dir/install.sh; then
1363 ac_aux_dir=$ac_dir
1364 ac_install_sh="$ac_aux_dir/install.sh -c"
1365 break
1366 elif test -f $ac_dir/shtool; then
1367 ac_aux_dir=$ac_dir
1368 ac_install_sh="$ac_aux_dir/shtool install -c"
1369 break
1370 fi
1371 done
1372 if test -z "$ac_aux_dir"; then
1373 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1374 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1375 { (exit 1); exit 1; }; }
1376 fi
1377 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1378 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1379 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1380
1381
1382 #--------------------------------------------------------------------
1383 # Set the output variables prefix and exec_prefix that
1384 # determine where things will be installed.
1385 #--------------------------------------------------------------------
1386 if test "${prefix}" = "NONE"; then
1387 prefix=/usr/local
1388 fi
1389 if test "${exec_prefix}" = "NONE"; then
1390 exec_prefix=$prefix
1391 fi
1392
1393
1394 #--------------------------------------------------------------------
1395 # For the Fortran support libraries and the TCL/TK libraries
1396 # and header files, we unfortunately need the full path to
1397 # these files. The problem with having the full path is that
1398 # if the user moves the source tree, things will break unless
1399 # the user re-runs configure.
1400 #--------------------------------------------------------------------
1401
1402 #--------------------------------------------------------------------
1403 ##AWW
1404 ##AWW We put the .o files when compiling into a tree structure
1405 ##AWW relative to the directory in which we currently reside,
1406 ##AWW while the .c and .h files are in a similar tree structure
1407 ##AWW relative to the configure instruction we invoke. This
1408 ##AWW allows one to have separate .o files in their own tree when
1409 ##AWW compiling for different operating systems.
1410 ##AWW
1411 ##AWW Example 1 (same directories)
1412 ##AWW Current directory one is in: /home/me/trunk/base/unixAC213
1413 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1414 ##AWW Command to invoke configure: ./configure
1415 ##AWW $ascpwd will be: /home/me/trunk/base/unixAC213
1416 ##AWW $srcdir will be: .
1417 ##AWW
1418 ##AWW Example 2 (different directories, abs path for command)
1419 ##AWW Current directory one is in: /home/me/trunk/base/newTree
1420 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1421 ##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure
1422 ##AWW $ascpwd will be: /home/me/trunk/base/newTree
1423 ##AWW $srcdir will be: /home/me/trunk/base/unixAC213
1424 ##AWW
1425 ##AWW Example 3 (different directories, rel path for command)
1426 ##AWW Same as Example 2
1427 ##AWW Command to invoke configure: ../unixAC213/configure
1428 ##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2)
1429 ##AWW $srcdir will be: ../unixAC213
1430 ##AWW
1431 ##AWW Key elements of the source tree are:
1432 ##AWW code/trunk/trunk/base/unixAC213/configure
1433 ##AWW code/trunk/trunk/base/generic
1434 ##AWW code/trunk/tcltk98
1435 ##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder
1436 ##AWW containing "configure"
1437 ##AWW
1438 ##AWW Configure is located at:
1439 ##AWW $srcdir/configure
1440 ##AWW while the .c/.h files one wants are in:
1441 ##AWW $srcdir/../generic/compiler
1442 ##AWW $srcdir/../generic/general
1443 ##AWW $srcdir/../generic/packages
1444 ##AWW $srcdir/../generic/solver
1445 ##AWW $srcdir/../generic/utilities
1446 ##AWW $srcdir/../../tcltk98/generic/interface
1447 ##AWW
1448 ##AWW Each of these directories contain Makefiles and possible
1449 ##AWW need to find .h files in the other directories. For example
1450 ##AWW the include statements are always of the form
1451 ##AWW #include compiler/slv3.h or
1452 ##AWW #include interface/SlvProc.h
1453 ##AWW
1454 ##AWW A safe include path should assume one is a directory with any
1455 ##AWW of these .h and .c files and one needs to find a .h file in
1456 ##AWW any other of them. The following paths should do it.
1457 ##AWW
1458 ##AWW If in compiler, general, packages, solver, utilities
1459 ##AWW .. for general, packages, etc
1460 ##AWW ../../../tcltk98/generic for interface
1461 ##AWW If in interface
1462 ##AWW .. for interface
1463 ##AWW ../../../base/generic for compiler, general, ..
1464 ##AWW
1465 #--------------------------------------------------------------------
1466 # The asc_include variable is (directory) path to the ascend4
1467 # SOURCE directory relative to the immediate subdirectories of
1468 # the ascend4 OBJECT directory. --rewrite - not clear.
1469 #AWW To compile a new ASCEND executable, one should move into the
1470 #AWW directory in which one wants the ASCEND object/executable
1471 #AWW to reside (call this objTree) and from there run
1472 #AWW ../base/unixAC213/configure.
1473 #AWW In the following code asc_include is set to the path from
1474
1475 ascpwd=`pwd`
1476 fullpathsrcdir=`cd $srcdir ; pwd`
1477
1478 case "$srcdir" in
1479 .)
1480 asc_include="../$srcdir"
1481 ;;
1482 /*)
1483 asc_include="$srcdir/../generic"
1484 ;;
1485 *)
1486 asc_include="$srcdir/../generic"
1487 ;;
1488 esac
1489
1490
1491 #--------------------------------------------------------------------
1492 # Do basic checks to determine
1493 # * if we have `ranlib'
1494 # * if we can create symbolic links
1495 # * if `make' sets the MAKE macro
1496 # * a bsd-compatible `install' program
1497 # If we use the install-sh script that comes with configure,
1498 # prefix it with the current directory so it'll work in
1499 # subdirectories. Unfortunately, it won't work if the user
1500 # moves the source tree.
1501 #--------------------------------------------------------------------
1502 if test -n "$ac_tool_prefix"; then
1503 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1504 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1505 echo "$as_me:$LINENO: checking for $ac_word" >&5
1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1507 if test "${ac_cv_prog_RANLIB+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510 if test -n "$RANLIB"; then
1511 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1512 else
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 for as_dir in $PATH
1515 do
1516 IFS=$as_save_IFS
1517 test -z "$as_dir" && as_dir=.
1518 for ac_exec_ext in '' $ac_executable_extensions; do
1519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1520 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1522 break 2
1523 fi
1524 done
1525 done
1526
1527 fi
1528 fi
1529 RANLIB=$ac_cv_prog_RANLIB
1530 if test -n "$RANLIB"; then
1531 echo "$as_me:$LINENO: result: $RANLIB" >&5
1532 echo "${ECHO_T}$RANLIB" >&6
1533 else
1534 echo "$as_me:$LINENO: result: no" >&5
1535 echo "${ECHO_T}no" >&6
1536 fi
1537
1538 fi
1539 if test -z "$ac_cv_prog_RANLIB"; then
1540 ac_ct_RANLIB=$RANLIB
1541 # Extract the first word of "ranlib", so it can be a program name with args.
1542 set dummy ranlib; ac_word=$2
1543 echo "$as_me:$LINENO: checking for $ac_word" >&5
1544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1546 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 else
1548 if test -n "$ac_ct_RANLIB"; then
1549 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1550 else
1551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 for as_dir in $PATH
1553 do
1554 IFS=$as_save_IFS
1555 test -z "$as_dir" && as_dir=.
1556 for ac_exec_ext in '' $ac_executable_extensions; do
1557 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1558 ac_cv_prog_ac_ct_RANLIB="ranlib"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1561 fi
1562 done
1563 done
1564
1565 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1566 fi
1567 fi
1568 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1569 if test -n "$ac_ct_RANLIB"; then
1570 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1571 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1572 else
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575 fi
1576
1577 RANLIB=$ac_ct_RANLIB
1578 else
1579 RANLIB="$ac_cv_prog_RANLIB"
1580 fi
1581
1582 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1583 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1584 LN_S=$as_ln_s
1585 if test "$LN_S" = "ln -s"; then
1586 echo "$as_me:$LINENO: result: yes" >&5
1587 echo "${ECHO_T}yes" >&6
1588 else
1589 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1590 echo "${ECHO_T}no, using $LN_S" >&6
1591 fi
1592
1593 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1594 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1595 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1596 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 else
1599 cat >conftest.make <<\_ACEOF
1600 all:
1601 @echo 'ac_maketemp="$(MAKE)"'
1602 _ACEOF
1603 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1604 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1605 if test -n "$ac_maketemp"; then
1606 eval ac_cv_prog_make_${ac_make}_set=yes
1607 else
1608 eval ac_cv_prog_make_${ac_make}_set=no
1609 fi
1610 rm -f conftest.make
1611 fi
1612 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1613 echo "$as_me:$LINENO: result: yes" >&5
1614 echo "${ECHO_T}yes" >&6
1615 SET_MAKE=
1616 else
1617 echo "$as_me:$LINENO: result: no" >&5
1618 echo "${ECHO_T}no" >&6
1619 SET_MAKE="MAKE=${MAKE-make}"
1620 fi
1621
1622 # Find a good install program. We prefer a C program (faster),
1623 # so one script is as good as another. But avoid the broken or
1624 # incompatible versions:
1625 # SysV /etc/install, /usr/sbin/install
1626 # SunOS /usr/etc/install
1627 # IRIX /sbin/install
1628 # AIX /bin/install
1629 # AmigaOS /C/install, which installs bootblocks on floppy discs
1630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1633 # OS/2's system install, which has a completely different semantic
1634 # ./install, which can be erroneously created by make from ./install.sh.
1635 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1636 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1637 if test -z "$INSTALL"; then
1638 if test "${ac_cv_path_install+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 # Account for people who put trailing slashes in PATH elements.
1647 case $as_dir/ in
1648 ./ | .// | /cC/* | \
1649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1650 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1651 /usr/ucb/* ) ;;
1652 *)
1653 # OSF1 and SCO ODT 3.0 have their own names for install.
1654 # Don't use installbsd from OSF since it installs stuff as root
1655 # by default.
1656 for ac_prog in ginstall scoinst install; do
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1659 if test $ac_prog = install &&
1660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1661 # AIX install. It has an incompatible calling convention.
1662 :
1663 elif test $ac_prog = install &&
1664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1665 # program-specific install script used by HP pwplus--don't use.
1666 :
1667 else
1668 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1669 break 3
1670 fi
1671 fi
1672 done
1673 done
1674 ;;
1675 esac
1676 done
1677
1678
1679 fi
1680 if test "${ac_cv_path_install+set}" = set; then
1681 INSTALL=$ac_cv_path_install
1682 else
1683 # As a last resort, use the slow shell script. We don't cache a
1684 # path for INSTALL within a source directory, because that will
1685 # break other packages using the cache if that directory is
1686 # removed, or if the path is relative.
1687 INSTALL=$ac_install_sh
1688 fi
1689 fi
1690 echo "$as_me:$LINENO: result: $INSTALL" >&5
1691 echo "${ECHO_T}$INSTALL" >&6
1692
1693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1694 # It thinks the first close brace ends the variable substitution.
1695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1696
1697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1698
1699 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1700
1701
1702 case "X$INSTALL" in
1703 X/*)
1704 ;;
1705 *)
1706 INSTALL="$ascpwd/$INSTALL"
1707 ;;
1708 esac
1709
1710
1711 #--------------------------------------------------------------------
1712 # Get the host type for various checks along the way
1713 #--------------------------------------------------------------------
1714 # Make sure we can run config.sub.
1715 $ac_config_sub sun4 >/dev/null 2>&1 ||
1716 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1717 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1718 { (exit 1); exit 1; }; }
1719
1720 echo "$as_me:$LINENO: checking build system type" >&5
1721 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1722 if test "${ac_cv_build+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725 ac_cv_build_alias=$build_alias
1726 test -z "$ac_cv_build_alias" &&
1727 ac_cv_build_alias=`$ac_config_guess`
1728 test -z "$ac_cv_build_alias" &&
1729 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1730 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1731 { (exit 1); exit 1; }; }
1732 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1733 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1734 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1735 { (exit 1); exit 1; }; }
1736
1737 fi
1738 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1739 echo "${ECHO_T}$ac_cv_build" >&6
1740 build=$ac_cv_build
1741 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1744
1745
1746 echo "$as_me:$LINENO: checking host system type" >&5
1747 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1748 if test "${ac_cv_host+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 else
1751 ac_cv_host_alias=$host_alias
1752 test -z "$ac_cv_host_alias" &&
1753 ac_cv_host_alias=$ac_cv_build_alias
1754 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1755 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1756 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1757 { (exit 1); exit 1; }; }
1758
1759 fi
1760 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1761 echo "${ECHO_T}$ac_cv_host" >&6
1762 host=$ac_cv_host
1763 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1764 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1765 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1766
1767
1768
1769
1770 #--------------------------------------------------------------------
1771 # Check for the C compiler: set CC and CFLAGS.
1772 # If the user does NOT specify `--enable-gcc' on the configure
1773 # command command line, set CC to either the envar CC or `cc'.
1774 # Call AC_PROG_CC which will use the value of CC (perhaps set
1775 # immediately above) or will check for `gcc' and then for `cc'
1776 # if `gcc' is not found.
1777 #
1778 # If we are using GCC, then assume it groks ANSI. Otherwise,
1779 # try to compile a small program using ANSI constructs with
1780 # CC. If this fails, try to locate each of the following:
1781 # c89 xlc acc
1782 # and if successful, see if it compiles an ANSI C program.
1783 # (Doing this in a loop would be ideal, but configure caches
1784 # the result of AC_CHECK_PROG and uses the cached value for
1785 # all but the first pass through the loop. This is also the
1786 # reason we have to use a different variable asc_cc1, asc_cc2
1787 # for each call to AC_CHECK_PROG.
1788 #
1789 # If we do not find an ANSI C compiler, print a warning and
1790 # use the first value of CC we tried.
1791 #--------------------------------------------------------------------
1792
1793 # Check whether --enable-gcc or --disable-gcc was given.
1794 if test "${enable_gcc+set}" = set; then
1795 enableval="$enable_gcc"
1796 asc_gcc_ok=$enableval
1797 else
1798 asc_gcc_ok=no
1799 fi;
1800 if test ! "$asc_gcc_ok" = "yes"; then
1801 CC=${CC-cc}
1802 fi
1803 asc_orig_cc=$CC
1804
1805 if test "X$asc_gcc_ok" = "Xyes" ; then
1806 asc_ansi_ok=yes
1807 else
1808 echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5
1809 echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6
1810 ac_ext=c
1811 ac_cpp='$CPP $CPPFLAGS'
1812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1815 if test -n "$ac_tool_prefix"; then
1816 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1818 echo "$as_me:$LINENO: checking for $ac_word" >&5
1819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1820 if test "${ac_cv_prog_CC+set}" = set; then
1821 echo $ECHO_N "(cached) $ECHO_C" >&6
1822 else
1823 if test -n "$CC"; then
1824 ac_cv_prog_CC="$CC" # Let the user override the test.
1825 else
1826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1827 for as_dir in $PATH
1828 do
1829 IFS=$as_save_IFS
1830 test -z "$as_dir" && as_dir=.
1831 for ac_exec_ext in '' $ac_executable_extensions; do
1832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1833 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1835 break 2
1836 fi
1837 done
1838 done
1839
1840 fi
1841 fi
1842 CC=$ac_cv_prog_CC
1843 if test -n "$CC"; then
1844 echo "$as_me:$LINENO: result: $CC" >&5
1845 echo "${ECHO_T}$CC" >&6
1846 else
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 fi
1850
1851 fi
1852 if test -z "$ac_cv_prog_CC"; then
1853 ac_ct_CC=$CC
1854 # Extract the first word of "gcc", so it can be a program name with args.
1855 set dummy gcc; ac_word=$2
1856 echo "$as_me:$LINENO: checking for $ac_word" >&5
1857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 else
1861 if test -n "$ac_ct_CC"; then
1862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1863 else
1864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1865 for as_dir in $PATH
1866 do
1867 IFS=$as_save_IFS
1868 test -z "$as_dir" && as_dir=.
1869 for ac_exec_ext in '' $ac_executable_extensions; do
1870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1871 ac_cv_prog_ac_ct_CC="gcc"
1872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1873 break 2
1874 fi
1875 done
1876 done
1877
1878 fi
1879 fi
1880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1881 if test -n "$ac_ct_CC"; then
1882 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1883 echo "${ECHO_T}$ac_ct_CC" >&6
1884 else
1885 echo "$as_me:$LINENO: result: no" >&5
1886 echo "${ECHO_T}no" >&6
1887 fi
1888
1889 CC=$ac_ct_CC
1890 else
1891 CC="$ac_cv_prog_CC"
1892 fi
1893
1894 if test -z "$CC"; then
1895 if test -n "$ac_tool_prefix"; then
1896 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1897 set dummy ${ac_tool_prefix}cc; ac_word=$2
1898 echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900 if test "${ac_cv_prog_CC+set}" = set; then
1901 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903 if test -n "$CC"; then
1904 ac_cv_prog_CC="$CC" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909 IFS=$as_save_IFS
1910 test -z "$as_dir" && as_dir=.
1911 for ac_exec_ext in '' $ac_executable_extensions; do
1912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913 ac_cv_prog_CC="${ac_tool_prefix}cc"
1914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915 break 2
1916 fi
1917 done
1918 done
1919
1920 fi
1921 fi
1922 CC=$ac_cv_prog_CC
1923 if test -n "$CC"; then
1924 echo "$as_me:$LINENO: result: $CC" >&5
1925 echo "${ECHO_T}$CC" >&6
1926 else
1927 echo "$as_me:$LINENO: result: no" >&5
1928 echo "${ECHO_T}no" >&6
1929 fi
1930
1931 fi
1932 if test -z "$ac_cv_prog_CC"; then
1933 ac_ct_CC=$CC
1934 # Extract the first word of "cc", so it can be a program name with args.
1935 set dummy cc; ac_word=$2
1936 echo "$as_me:$LINENO: checking for $ac_word" >&5
1937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1940 else
1941 if test -n "$ac_ct_CC"; then
1942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1943 else
1944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945 for as_dir in $PATH
1946 do
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951 ac_cv_prog_ac_ct_CC="cc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955 done
1956 done
1957
1958 fi
1959 fi
1960 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1961 if test -n "$ac_ct_CC"; then
1962 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1963 echo "${ECHO_T}$ac_ct_CC" >&6
1964 else
1965 echo "$as_me:$LINENO: result: no" >&5
1966 echo "${ECHO_T}no" >&6
1967 fi
1968
1969 CC=$ac_ct_CC
1970 else
1971 CC="$ac_cv_prog_CC"
1972 fi
1973
1974 fi
1975 if test -z "$CC"; then
1976 # Extract the first word of "cc", so it can be a program name with args.
1977 set dummy cc; ac_word=$2
1978 echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980 if test "${ac_cv_prog_CC+set}" = set; then
1981 echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983 if test -n "$CC"; then
1984 ac_cv_prog_CC="$CC" # Let the user override the test.
1985 else
1986 ac_prog_rejected=no
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1995 ac_prog_rejected=yes
1996 continue
1997 fi
1998 ac_cv_prog_CC="cc"
1999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 break 2
2001 fi
2002 done
2003 done
2004
2005 if test $ac_prog_rejected = yes; then
2006 # We found a bogon in the path, so make sure we never use it.
2007 set dummy $ac_cv_prog_CC
2008 shift
2009 if test $# != 0; then
2010 # We chose a different compiler from the bogus one.
2011 # However, it has the same basename, so the bogon will be chosen
2012 # first if we set CC to just the basename; use the full file name.
2013 shift
2014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2015 fi
2016 fi
2017 fi
2018 fi
2019 CC=$ac_cv_prog_CC
2020 if test -n "$CC"; then
2021 echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6
2023 else
2024 echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2026 fi
2027
2028 fi
2029 if test -z "$CC"; then
2030 if test -n "$ac_tool_prefix"; then
2031 for ac_prog in cl
2032 do
2033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2035 echo "$as_me:$LINENO: checking for $ac_word" >&5
2036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037 if test "${ac_cv_prog_CC+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2039 else
2040 if test -n "$CC"; then
2041 ac_cv_prog_CC="$CC" # Let the user override the test.
2042 else
2043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044 for as_dir in $PATH
2045 do
2046 IFS=$as_save_IFS
2047 test -z "$as_dir" && as_dir=.
2048 for ac_exec_ext in '' $ac_executable_extensions; do
2049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052 break 2
2053 fi
2054 done
2055 done
2056
2057 fi
2058 fi
2059 CC=$ac_cv_prog_CC
2060 if test -n "$CC"; then
2061 echo "$as_me:$LINENO: result: $CC" >&5
2062 echo "${ECHO_T}$CC" >&6
2063 else
2064 echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6
2066 fi
2067
2068 test -n "$CC" && break
2069 done
2070 fi
2071 if test -z "$CC"; then
2072 ac_ct_CC=$CC
2073 for ac_prog in cl
2074 do
2075 # Extract the first word of "$ac_prog", so it can be a program name with args.
2076 set dummy $ac_prog; ac_word=$2
2077 echo "$as_me:$LINENO: checking for $ac_word" >&5
2078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 else
2085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 for as_dir in $PATH
2087 do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
2091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092 ac_cv_prog_ac_ct_CC="$ac_prog"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2095 fi
2096 done
2097 done
2098
2099 fi
2100 fi
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104 echo "${ECHO_T}$ac_ct_CC" >&6
2105 else
2106 echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6
2108 fi
2109
2110 test -n "$ac_ct_CC" && break
2111 done
2112
2113 CC=$ac_ct_CC
2114 fi
2115
2116 fi
2117
2118
2119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: no acceptable C compiler found in \$PATH
2122 See \`config.log' for more details." >&2;}
2123 { (exit 1); exit 1; }; }
2124
2125 # Provide some information about the compiler.
2126 echo "$as_me:$LINENO:" \
2127 "checking for C compiler version" >&5
2128 ac_compiler=`set X $ac_compile; echo $2`
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2130 (eval $ac_compiler --version </dev/null >&5) 2>&5
2131 ac_status=$?
2132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133 (exit $ac_status); }
2134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2135 (eval $ac_compiler -v </dev/null >&5) 2>&5
2136 ac_status=$?
2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138 (exit $ac_status); }
2139 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2140 (eval $ac_compiler -V </dev/null >&5) 2>&5
2141 ac_status=$?
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }
2144
2145 cat >conftest.$ac_ext <<_ACEOF
2146 /* confdefs.h. */
2147 _ACEOF
2148 cat confdefs.h >>conftest.$ac_ext
2149 cat >>conftest.$ac_ext <<_ACEOF
2150 /* end confdefs.h. */
2151
2152 int
2153 main ()
2154 {
2155
2156 ;
2157 return 0;
2158 }
2159 _ACEOF
2160 ac_clean_files_save=$ac_clean_files
2161 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2162 # Try to create an executable without -o first, disregard a.out.
2163 # It will help us diagnose broken compilers, and finding out an intuition
2164 # of exeext.
2165 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2166 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2167 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2168 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2169 (eval $ac_link_default) 2>&5
2170 ac_status=$?
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 # Find the output, starting from the most likely. This scheme is
2174 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2175 # resort.
2176
2177 # Be careful to initialize this variable, since it used to be cached.
2178 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2179 ac_cv_exeext=
2180 # b.out is created by i960 compilers.
2181 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2182 do
2183 test -f "$ac_file" || continue
2184 case $ac_file in
2185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2186 ;;
2187 conftest.$ac_ext )
2188 # This is the source file.
2189 ;;
2190 [ab].out )
2191 # We found the default executable, but exeext='' is most
2192 # certainly right.
2193 break;;
2194 *.* )
2195 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 # FIXME: I believe we export ac_cv_exeext for Libtool,
2197 # but it would be cool to find out if it's true. Does anybody
2198 # maintain Libtool? --akim.
2199 export ac_cv_exeext
2200 break;;
2201 * )
2202 break;;
2203 esac
2204 done
2205 else
2206 echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2208
2209 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: C compiler cannot create executables
2212 See \`config.log' for more details." >&2;}
2213 { (exit 77); exit 77; }; }
2214 fi
2215
2216 ac_exeext=$ac_cv_exeext
2217 echo "$as_me:$LINENO: result: $ac_file" >&5
2218 echo "${ECHO_T}$ac_file" >&6
2219
2220 # Check the compiler produces executables we can run. If not, either
2221 # the compiler is broken, or we cross compile.
2222 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2223 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2224 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2225 # If not cross compiling, check that we can run a simple program.
2226 if test "$cross_compiling" != yes; then
2227 if { ac_try='./$ac_file'
2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 (eval $ac_try) 2>&5
2230 ac_status=$?
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2233 cross_compiling=no
2234 else
2235 if test "$cross_compiling" = maybe; then
2236 cross_compiling=yes
2237 else
2238 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&5
2241 echo "$as_me: error: cannot run C compiled programs.
2242 If you meant to cross compile, use \`--host'.
2243 See \`config.log' for more details." >&2;}
2244 { (exit 1); exit 1; }; }
2245 fi
2246 fi
2247 fi
2248 echo "$as_me:$LINENO: result: yes" >&5
2249 echo "${ECHO_T}yes" >&6
2250
2251 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2252 ac_clean_files=$ac_clean_files_save
2253 # Check the compiler produces executables we can run. If not, either
2254 # the compiler is broken, or we cross compile.
2255 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2256 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2257 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2258 echo "${ECHO_T}$cross_compiling" >&6
2259
2260 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2261 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2263 (eval $ac_link) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; then
2267 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2268 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2269 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 # `rm'.
2271 for ac_file in conftest.exe conftest conftest.*; do
2272 test -f "$ac_file" || continue
2273 case $ac_file in
2274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2275 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2276 export ac_cv_exeext
2277 break;;
2278 * ) break;;
2279 esac
2280 done
2281 else
2282 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&5
2284 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&2;}
2286 { (exit 1); exit 1; }; }
2287 fi
2288
2289 rm -f conftest$ac_cv_exeext
2290 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2291 echo "${ECHO_T}$ac_cv_exeext" >&6
2292
2293 rm -f conftest.$ac_ext
2294 EXEEXT=$ac_cv_exeext
2295 ac_exeext=$EXEEXT
2296 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2297 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2298 if test "${ac_cv_objext+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 cat >conftest.$ac_ext <<_ACEOF
2302 /* confdefs.h. */
2303 _ACEOF
2304 cat confdefs.h >>conftest.$ac_ext
2305 cat >>conftest.$ac_ext <<_ACEOF
2306 /* end confdefs.h. */
2307
2308 int
2309 main ()
2310 {
2311
2312 ;
2313 return 0;
2314 }
2315 _ACEOF
2316 rm -f conftest.o conftest.obj
2317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2318 (eval $ac_compile) 2>&5
2319 ac_status=$?
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); }; then
2322 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2323 case $ac_file in
2324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2325 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2326 break;;
2327 esac
2328 done
2329 else
2330 echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2332
2333 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2334 See \`config.log' for more details." >&5
2335 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2336 See \`config.log' for more details." >&2;}
2337 { (exit 1); exit 1; }; }
2338 fi
2339
2340 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2341 fi
2342 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2343 echo "${ECHO_T}$ac_cv_objext" >&6
2344 OBJEXT=$ac_cv_objext
2345 ac_objext=$OBJEXT
2346 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2347 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2348 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351 cat >conftest.$ac_ext <<_ACEOF
2352 /* confdefs.h. */
2353 _ACEOF
2354 cat confdefs.h >>conftest.$ac_ext
2355 cat >>conftest.$ac_ext <<_ACEOF
2356 /* end confdefs.h. */
2357
2358 int
2359 main ()
2360 {
2361 #ifndef __GNUC__
2362 choke me
2363 #endif
2364
2365 ;
2366 return 0;
2367 }
2368 _ACEOF
2369 rm -f conftest.$ac_objext
2370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2371 (eval $ac_compile) 2>conftest.er1
2372 ac_status=$?
2373 grep -v '^ *+' conftest.er1 >conftest.err
2374 rm -f conftest.er1
2375 cat conftest.err >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); } &&
2378 { ac_try='test -z "$ac_c_werror_flag"
2379 || test ! -s conftest.err'
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); }; } &&
2385 { ac_try='test -s conftest.$ac_objext'
2386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2387 (eval $ac_try) 2>&5
2388 ac_status=$?
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); }; }; then
2391 ac_compiler_gnu=yes
2392 else
2393 echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2395
2396 ac_compiler_gnu=no
2397 fi
2398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2399 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2400
2401 fi
2402 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2403 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2404 GCC=`test $ac_compiler_gnu = yes && echo yes`
2405 ac_test_CFLAGS=${CFLAGS+set}
2406 ac_save_CFLAGS=$CFLAGS
2407 CFLAGS="-g"
2408 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2409 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2410 if test "${ac_cv_prog_cc_g+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2412 else
2413 cat >conftest.$ac_ext <<_ACEOF
2414 /* confdefs.h. */
2415 _ACEOF
2416 cat confdefs.h >>conftest.$ac_ext
2417 cat >>conftest.$ac_ext <<_ACEOF
2418 /* end confdefs.h. */
2419
2420 int
2421 main ()
2422 {
2423
2424 ;
2425 return 0;
2426 }
2427 _ACEOF
2428 rm -f conftest.$ac_objext
2429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2430 (eval $ac_compile) 2>conftest.er1
2431 ac_status=$?
2432 grep -v '^ *+' conftest.er1 >conftest.err
2433 rm -f conftest.er1
2434 cat conftest.err >&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); } &&
2437 { ac_try='test -z "$ac_c_werror_flag"
2438 || test ! -s conftest.err'
2439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440 (eval $ac_try) 2>&5
2441 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443 (exit $ac_status); }; } &&
2444 { ac_try='test -s conftest.$ac_objext'
2445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2446 (eval $ac_try) 2>&5
2447 ac_status=$?
2448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449 (exit $ac_status); }; }; then
2450 ac_cv_prog_cc_g=yes
2451 else
2452 echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455 ac_cv_prog_cc_g=no
2456 fi
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 fi
2459 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2460 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2461 if test "$ac_test_CFLAGS" = set; then
2462 CFLAGS=$ac_save_CFLAGS
2463 elif test $ac_cv_prog_cc_g = yes; then
2464 if test "$GCC" = yes; then
2465 CFLAGS="-g -O2"
2466 else
2467 CFLAGS="-g"
2468 fi
2469 else
2470 if test "$GCC" = yes; then
2471 CFLAGS="-O2"
2472 else
2473 CFLAGS=
2474 fi
2475 fi
2476 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2477 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2478 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481 ac_cv_prog_cc_stdc=no
2482 ac_save_CC=$CC
2483 cat >conftest.$ac_ext <<_ACEOF
2484 /* confdefs.h. */
2485 _ACEOF
2486 cat confdefs.h >>conftest.$ac_ext
2487 cat >>conftest.$ac_ext <<_ACEOF
2488 /* end confdefs.h. */
2489 #include <stdarg.h>
2490 #include <stdio.h>
2491 #include <sys/types.h>
2492 #include <sys/stat.h>
2493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2494 struct buf { int x; };
2495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2496 static char *e (p, i)
2497 char **p;
2498 int i;
2499 {
2500 return p[i];
2501 }
2502 static char *f (char * (*g) (char **, int), char **p, ...)
2503 {
2504 char *s;
2505 va_list v;
2506 va_start (v,p);
2507 s = g (p, va_arg (v,int));
2508 va_end (v);
2509 return s;
2510 }
2511
2512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2513 function prototypes and stuff, but not '\xHH' hex character constants.
2514 These don't provoke an error unfortunately, instead are silently treated
2515 as 'x'. The following induces an error, until -std1 is added to get
2516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2517 array size at least. It's necessary to write '\x00'==0 to get something
2518 that's true only with -std1. */
2519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2520
2521 int test (int i, double x);
2522 struct s1 {int (*f) (int a);};
2523 struct s2 {int (*f) (double a);};
2524 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2525 int argc;
2526 char **argv;
2527 int
2528 main ()
2529 {
2530 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2531 ;
2532 return 0;
2533 }
2534 _ACEOF
2535 # Don't try gcc -ansi; that turns off useful extensions and
2536 # breaks some systems' header files.
2537 # AIX -qlanglvl=ansi
2538 # Ultrix and OSF/1 -std1
2539 # HP-UX 10.20 and later -Ae
2540 # HP-UX older versions -Aa -D_HPUX_SOURCE
2541 # SVR4 -Xc -D__EXTENSIONS__
2542 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2543 do
2544 CC="$ac_save_CC $ac_arg"
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2548 ac_status=$?
2549 grep -v '^ *+' conftest.er1 >conftest.err
2550 rm -f conftest.er1
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 ac_cv_prog_cc_stdc=$ac_arg
2568 break
2569 else
2570 echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 fi
2574 rm -f conftest.err conftest.$ac_objext
2575 done
2576 rm -f conftest.$ac_ext conftest.$ac_objext
2577 CC=$ac_save_CC
2578
2579 fi
2580
2581 case "x$ac_cv_prog_cc_stdc" in
2582 x|xno)
2583 echo "$as_me:$LINENO: result: none needed" >&5
2584 echo "${ECHO_T}none needed" >&6 ;;
2585 *)
2586 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2587 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2588 CC="$CC $ac_cv_prog_cc_stdc" ;;
2589 esac
2590
2591 # Some people use a C++ compiler to compile C. Since we use `exit',
2592 # in C++ we need to declare it. In case someone uses the same compiler
2593 # for both compiling C and C++ we need to have the C++ compiler decide
2594 # the declaration of exit, since it's the most demanding environment.
2595 cat >conftest.$ac_ext <<_ACEOF
2596 #ifndef __cplusplus
2597 choke me
2598 #endif
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>conftest.er1
2603 ac_status=$?
2604 grep -v '^ *+' conftest.er1 >conftest.err
2605 rm -f conftest.er1
2606 cat conftest.err >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); } &&
2609 { ac_try='test -z "$ac_c_werror_flag"
2610 || test ! -s conftest.err'
2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612 (eval $ac_try) 2>&5
2613 ac_status=$?
2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }; } &&
2616 { ac_try='test -s conftest.$ac_objext'
2617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618 (eval $ac_try) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; }; then
2622 for ac_declaration in \
2623 '' \
2624 'extern "C" void std::exit (int) throw (); using std::exit;' \
2625 'extern "C" void std::exit (int); using std::exit;' \
2626 'extern "C" void exit (int) throw ();' \
2627 'extern "C" void exit (int);' \
2628 'void exit (int);'
2629 do
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h. */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2636 $ac_declaration
2637 #include <stdlib.h>
2638 int
2639 main ()
2640 {
2641 exit (42);
2642 ;
2643 return 0;
2644 }
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>conftest.er1
2649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
2655 { ac_try='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 :
2669 else
2670 echo "$as_me: failed program was:" >&5
2671 sed 's/^/| /' conftest.$ac_ext >&5
2672
2673 continue
2674 fi
2675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h. */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682 $ac_declaration
2683 int
2684 main ()
2685 {
2686 exit (42);
2687 ;
2688 return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.$ac_objext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag"
2701 || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 break
2714 else
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718 fi
2719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720 done
2721 rm -f conftest*
2722 if test -n "$ac_declaration"; then
2723 echo '#ifdef __cplusplus' >>confdefs.h
2724 echo $ac_declaration >>confdefs.h
2725 echo '#endif' >>confdefs.h
2726 fi
2727
2728 else
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2731
2732 fi
2733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_ext=c
2735 ac_cpp='$CPP $CPPFLAGS'
2736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2739
2740
2741 cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h. */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h. */
2747
2748 int
2749 main ()
2750 {
2751
2752 int tstproto(int arg1, char * arg2);
2753 int tstconst(const int arg1, const char *arg2);
2754 int tstvoidp(const int arg1, const void *arg2);
2755 ;
2756 return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761 (eval $ac_compile) 2>conftest.er1
2762 ac_status=$?
2763 grep -v '^ *+' conftest.er1 >conftest.err
2764 rm -f conftest.er1
2765 cat conftest.err >&5
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); } &&
2768 { ac_try='test -z "$ac_c_werror_flag"
2769 || test ! -s conftest.err'
2770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771 (eval $ac_try) 2>&5
2772 ac_status=$?
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }; } &&
2775 { ac_try='test -s conftest.$ac_objext'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; }; then
2781 asc_ansi_ok=yes
2782 else
2783 echo "$as_me: failed program was:" >&5
2784 sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 asc_ansi_ok=no
2787 fi
2788 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2789 echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5
2790 echo "${ECHO_T}$asc_ansi_ok" >&6
2791 fi
2792
2793 if test "$asc_ansi_ok" = no ; then
2794 # Extract the first word of "c89", so it can be a program name with args.
2795 set dummy c89; ac_word=$2
2796 echo "$as_me:$LINENO: checking for $ac_word" >&5
2797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2798 if test "${ac_cv_prog_asc_cc1+set}" = set; then
2799 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 else
2801 if test -n "$asc_cc1"; then
2802 ac_cv_prog_asc_cc1="$asc_cc1" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807 IFS=$as_save_IFS
2808 test -z "$as_dir" && as_dir=.
2809 for ac_exec_ext in '' $ac_executable_extensions; do
2810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811 ac_cv_prog_asc_cc1="c89"
2812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 break 2
2814 fi
2815 done
2816 done
2817
2818 test -z "$ac_cv_prog_asc_cc1" && ac_cv_prog_asc_cc1="NONE"
2819 fi
2820 fi
2821 asc_cc1=$ac_cv_prog_asc_cc1
2822 if test -n "$asc_cc1"; then
2823 echo "$as_me:$LINENO: result: $asc_cc1" >&5
2824 echo "${ECHO_T}$asc_cc1" >&6
2825 else
2826 echo "$as_me:$LINENO: result: no" >&5
2827 echo "${ECHO_T}no" >&6
2828 fi
2829
2830 if test ! "$asc_cc1" = NONE ; then
2831 CC=$asc_cc1
2832 echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5
2833 echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6
2834 cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h. */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2840
2841 int
2842 main ()
2843 {
2844
2845 int tstproto(int arg1, char * arg2);
2846 int tstconst(const int arg1, const char *arg2);
2847 int tstvoidp(const int arg1, const void *arg2);
2848 ;
2849 return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 asc_ansi_ok=yes
2875 else
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 asc_ansi_ok=no
2880 fi
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882 echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5
2883 echo "${ECHO_T}$asc_ansi_ok" >&6
2884 fi
2885 fi
2886
2887 if test "$asc_ansi_ok" = no ; then
2888 # Extract the first word of "xlc", so it can be a program name with args.
2889 set dummy xlc; ac_word=$2
2890 echo "$as_me:$LINENO: checking for $ac_word" >&5
2891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2892 if test "${ac_cv_prog_asc_cc2+set}" = set; then
2893 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 else
2895 if test -n "$asc_cc2"; then
2896 ac_cv_prog_asc_cc2="$asc_cc2" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_asc_cc2="xlc"
2906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911
2912 test -z "$ac_cv_prog_asc_cc2" && ac_cv_prog_asc_cc2="NONE"
2913 fi
2914 fi
2915 asc_cc2=$ac_cv_prog_asc_cc2
2916 if test -n "$asc_cc2"; then
2917 echo "$as_me:$LINENO: result: $asc_cc2" >&5
2918 echo "${ECHO_T}$asc_cc2" >&6
2919 else
2920 echo "$as_me:$LINENO: result: no" >&5
2921 echo "${ECHO_T}no" >&6
2922 fi
2923
2924 if test ! "$asc_cc2" = NONE ; then
2925 CC=$asc_cc2
2926 echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5
2927 echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6
2928 cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h. */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2934
2935 int
2936 main ()
2937 {
2938
2939 int tstproto(int arg1, char * arg2);
2940 int tstconst(const int arg1, const char *arg2);
2941 int tstvoidp(const int arg1, const void *arg2);
2942 ;
2943 return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2948 (eval $ac_compile) 2>conftest.er1
2949 ac_status=$?
2950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } &&
2955 { ac_try='test -z "$ac_c_werror_flag"
2956 || test ! -s conftest.err'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964 (eval $ac_try) 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 asc_ansi_ok=yes
2969 else
2970 echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2972
2973 asc_ansi_ok=no
2974 fi
2975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2976 echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5
2977 echo "${ECHO_T}$asc_ansi_ok" >&6
2978 fi
2979 fi
2980
2981 if test "$asc_ansi_ok" = no ; then
2982 # Extract the first word of "acc", so it can be a program name with args.
2983 set dummy acc; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_prog_asc_cc3+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2988 else
2989 if test -n "$asc_cc3"; then
2990 ac_cv_prog_asc_cc3="$asc_cc3" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 ac_cv_prog_asc_cc3="acc"
3000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005
3006 test -z "$ac_cv_prog_asc_cc3" && ac_cv_prog_asc_cc3="NONE"
3007 fi
3008 fi
3009 asc_cc3=$ac_cv_prog_asc_cc3
3010 if test -n "$asc_cc3"; then
3011 echo "$as_me:$LINENO: result: $asc_cc3" >&5
3012 echo "${ECHO_T}$asc_cc3" >&6
3013 else
3014 echo "$as_me:$LINENO: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3016 fi
3017
3018 if test ! "$asc_cc3" = NONE ; then
3019 CC=$asc_cc3
3020 echo "$as_me:$LINENO: checking whether $CC understands const, void*, and function prototypes" >&5
3021 echo $ECHO_N "checking whether $CC understands const, void*, and function prototypes... $ECHO_C" >&6
3022 cat >conftest.$ac_ext <<_ACEOF
3023 /* confdefs.h. */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3028
3029 int
3030 main ()
3031 {
3032
3033 int tstproto(int arg1, char * arg2);
3034 int tstconst(const int arg1, const char *arg2);
3035 int tstvoidp(const int arg1, const void *arg2);
3036 ;
3037 return 0;
3038 }
3039 _ACEOF
3040 rm -f conftest.$ac_objext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3042 (eval $ac_compile) 2>conftest.er1
3043 ac_status=$?
3044 grep -v '^ *+' conftest.er1 >conftest.err
3045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_c_werror_flag"
3050 || test ! -s conftest.err'
3051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3052 (eval $ac_try) 2>&5
3053 ac_status=$?
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); }; } &&
3056 { ac_try='test -s conftest.$ac_objext'
3057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058 (eval $ac_try) 2>&5
3059 ac_status=$?
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; }; then
3062 asc_ansi_ok=yes
3063 else
3064 echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067 asc_ansi_ok=no
3068 fi
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070 echo "$as_me:$LINENO: result: $asc_ansi_ok" >&5
3071 echo "${ECHO_T}$asc_ansi_ok" >&6
3072 fi
3073 fi
3074
3075 ac_ext=c
3076 ac_cpp='$CPP $CPPFLAGS'
3077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3080 if test -n "$ac_tool_prefix"; then
3081 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3082 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3083 echo "$as_me:$LINENO: checking for $ac_word" >&5
3084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3085 if test "${ac_cv_prog_CC+set}" = set; then
3086 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 else
3088 if test -n "$CC"; then
3089 ac_cv_prog_CC="$CC" # Let the user override the test.
3090 else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 for as_dir in $PATH
3093 do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
3097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3098 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3100 break 2
3101 fi
3102 done
3103 done
3104
3105 fi
3106 fi
3107 CC=$ac_cv_prog_CC
3108 if test -n "$CC"; then
3109 echo "$as_me:$LINENO: result: $CC" >&5
3110 echo "${ECHO_T}$CC" >&6
3111 else
3112 echo "$as_me:$LINENO: result: no" >&5
3113 echo "${ECHO_T}no" >&6
3114 fi
3115
3116 fi
3117 if test -z "$ac_cv_prog_CC"; then
3118 ac_ct_CC=$CC
3119 # Extract the first word of "gcc", so it can be a program name with args.
3120 set dummy gcc; ac_word=$2
3121 echo "$as_me:$LINENO: checking for $ac_word" >&5
3122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3123 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 else
3126 if test -n "$ac_ct_CC"; then
3127 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3128 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH
3131 do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3136 ac_cv_prog_ac_ct_CC="gcc"
3137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140 done
3141 done
3142
3143 fi
3144 fi
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3148 echo "${ECHO_T}$ac_ct_CC" >&6
3149 else
3150 echo "$as_me:$LINENO: result: no" >&5
3151 echo "${ECHO_T}no" >&6
3152 fi
3153
3154 CC=$ac_ct_CC
3155 else
3156 CC="$ac_cv_prog_CC"
3157 fi
3158
3159 if test -z "$CC"; then
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}cc; ac_word=$2
3163 echo "$as_me:$LINENO: checking for $ac_word" >&5
3164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165 if test "${ac_cv_prog_CC+set}" = set; then
3166 echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_CC="${ac_tool_prefix}cc"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184
3185 fi
3186 fi
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 echo "$as_me:$LINENO: result: $CC" >&5
3190 echo "${ECHO_T}$CC" >&6
3191 else
3192 echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6
3194 fi
3195
3196 fi
3197 if test -z "$ac_cv_prog_CC"; then
3198 ac_ct_CC=$CC
3199 # Extract the first word of "cc", so it can be a program name with args.
3200 set dummy cc; ac_word=$2
3201 echo "$as_me:$LINENO: checking for $ac_word" >&5
3202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3203 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206 if test -n "$ac_ct_CC"; then
3207 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_ac_ct_CC="cc"
3217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3219 fi
3220 done
3221 done
3222
3223 fi
3224 fi
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3228 echo "${ECHO_T}$ac_ct_CC" >&6
3229 else
3230 echo "$as_me:$LINENO: result: no" >&5
3231 echo "${ECHO_T}no" >&6
3232 fi
3233
3234 CC=$ac_ct_CC
3235 else
3236 CC="$ac_cv_prog_CC"
3237 fi
3238
3239 fi
3240 if test -z "$CC"; then
3241 # Extract the first word of "cc", so it can be a program name with args.
3242 set dummy cc; ac_word=$2
3243 echo "$as_me:$LINENO: checking for $ac_word" >&5
3244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245 if test "${ac_cv_prog_CC+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247 else
3248 if test -n "$CC"; then
3249 ac_cv_prog_CC="$CC" # Let the user override the test.
3250 else
3251 ac_prog_rejected=no
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
3257 for ac_exec_ext in '' $ac_executable_extensions; do
3258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3259 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3260 ac_prog_rejected=yes
3261 continue
3262 fi
3263 ac_cv_prog_CC="cc"
3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267 done
3268 done
3269
3270 if test $ac_prog_rejected = yes; then
3271 # We found a bogon in the path, so make sure we never use it.
3272 set dummy $ac_cv_prog_CC
3273 shift
3274 if test $# != 0; then
3275 # We chose a different compiler from the bogus one.
3276 # However, it has the same basename, so the bogon will be chosen
3277 # first if we set CC to just the basename; use the full file name.
3278 shift
3279 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3280 fi
3281 fi
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 echo "$as_me:$LINENO: result: $CC" >&5
3287 echo "${ECHO_T}$CC" >&6
3288 else
3289 echo "$as_me:$LINENO: result: no" >&5
3290 echo "${ECHO_T}no" >&6
3291 fi
3292
3293 fi
3294 if test -z "$CC"; then
3295 if test -n "$ac_tool_prefix"; then
3296 for ac_prog in cl
3297 do
3298 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_prog_CC+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3304 else
3305 if test -n "$CC"; then
3306 ac_cv_prog_CC="$CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3315 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321
3322 fi
3323 fi
3324 CC=$ac_cv_prog_CC
3325 if test -n "$CC"; then
3326 echo "$as_me:$LINENO: result: $CC" >&5
3327 echo "${ECHO_T}$CC" >&6
3328 else
3329 echo "$as_me:$LINENO: result: no" >&5
3330 echo "${ECHO_T}no" >&6
3331 fi
3332
3333 test -n "$CC" && break
3334 done
3335 fi
3336 if test -z "$CC"; then
3337 ac_ct_CC=$CC
3338 for ac_prog in cl
3339 do
3340 # Extract the first word of "$ac_prog", so it can be a program name with args.
3341 set dummy $ac_prog; ac_word=$2
3342 echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3344 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 else
3347 if test -n "$ac_ct_CC"; then
3348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3349 else
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351 for as_dir in $PATH
3352 do
3353 IFS=$as_save_IFS
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_prog_ac_ct_CC="$ac_prog"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 break 2
3360 fi
3361 done
3362 done
3363
3364 fi
3365 fi
3366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3369 echo "${ECHO_T}$ac_ct_CC" >&6
3370 else
3371 echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6
3373 fi
3374
3375 test -n "$ac_ct_CC" && break
3376 done
3377
3378 CC=$ac_ct_CC
3379 fi
3380
3381 fi
3382
3383
3384 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: no acceptable C compiler found in \$PATH
3387 See \`config.log' for more details." >&2;}
3388 { (exit 1); exit 1; }; }
3389
3390 # Provide some information about the compiler.
3391 echo "$as_me:$LINENO:" \
3392 "checking for C compiler version" >&5
3393 ac_compiler=`set X $ac_compile; echo $2`
3394 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3395 (eval $ac_compiler --version </dev/null >&5) 2>&5
3396 ac_status=$?
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }
3399 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3400 (eval $ac_compiler -v </dev/null >&5) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }
3404 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3405 (eval $ac_compiler -V </dev/null >&5) 2>&5
3406 ac_status=$?
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); }
3409
3410 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3411 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3412 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 cat >conftest.$ac_ext <<_ACEOF
3416 /* confdefs.h. */
3417 _ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3421
3422 int
3423 main ()
3424 {
3425 #ifndef __GNUC__
3426 choke me
3427 #endif
3428
3429 ;
3430 return 0;
3431 }
3432 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435 (eval $ac_compile) 2>conftest.er1
3436 ac_status=$?
3437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); } &&
3442 { ac_try='test -z "$ac_c_werror_flag"
3443 || test ! -s conftest.err'
3444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445 (eval $ac_try) 2>&5
3446 ac_status=$?
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); }; } &&
3449 { ac_try='test -s conftest.$ac_objext'
3450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 (eval $ac_try) 2>&5
3452 ac_status=$?
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_compiler_gnu=yes
3456 else
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 ac_compiler_gnu=no
3461 fi
3462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3464
3465 fi
3466 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3467 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3468 GCC=`test $ac_compiler_gnu = yes && echo yes`
3469 ac_test_CFLAGS=${CFLAGS+set}
3470 ac_save_CFLAGS=$CFLAGS
3471 CFLAGS="-g"
3472 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3473 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3474 if test "${ac_cv_prog_cc_g+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477 cat >conftest.$ac_ext <<_ACEOF
3478 /* confdefs.h. */
3479 _ACEOF
3480 cat confdefs.h >>conftest.$ac_ext
3481 cat >>conftest.$ac_ext <<_ACEOF
3482 /* end confdefs.h. */
3483
3484 int
3485 main ()
3486 {
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 rm -f conftest.$ac_objext
3493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3494 (eval $ac_compile) 2>conftest.er1
3495 ac_status=$?
3496 grep -v '^ *+' conftest.er1 >conftest.err
3497 rm -f conftest.er1
3498 cat conftest.err >&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } &&
3501 { ac_try='test -z "$ac_c_werror_flag"
3502 || test ! -s conftest.err'
3503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3504 (eval $ac_try) 2>&5
3505 ac_status=$?
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; } &&
3508 { ac_try='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510 (eval $ac_try) 2>&5
3511 ac_status=$?
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_cv_prog_cc_g=yes
3515 else
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3518
3519 ac_cv_prog_cc_g=no
3520 fi
3521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3522 fi
3523 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3524 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3525 if test "$ac_test_CFLAGS" = set; then
3526 CFLAGS=$ac_save_CFLAGS
3527 elif test $ac_cv_prog_cc_g = yes; then
3528 if test "$GCC" = yes; then
3529 CFLAGS="-g -O2"
3530 else
3531 CFLAGS="-g"
3532 fi
3533 else
3534 if test "$GCC" = yes; then
3535 CFLAGS="-O2"
3536 else
3537 CFLAGS=
3538 fi
3539 fi
3540 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3541 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3542 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545 ac_cv_prog_cc_stdc=no
3546 ac_save_CC=$CC
3547 cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h. */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 #include <stdarg.h>
3554 #include <stdio.h>
3555 #include <sys/types.h>
3556 #include <sys/stat.h>
3557 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3558 struct buf { int x; };
3559 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3560 static char *e (p, i)
3561 char **p;
3562 int i;
3563 {
3564 return p[i];
3565 }
3566 static char *f (char * (*g) (char **, int), char **p, ...)
3567 {
3568 char *s;
3569 va_list v;
3570 va_start (v,p);
3571 s = g (p, va_arg (v,int));
3572 va_end (v);
3573 return s;
3574 }
3575
3576 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3577 function prototypes and stuff, but not '\xHH' hex character constants.
3578 These don't provoke an error unfortunately, instead are silently treated
3579 as 'x'. The following induces an error, until -std1 is added to get
3580 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3581 array size at least. It's necessary to write '\x00'==0 to get something
3582 that's true only with -std1. */
3583 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3584
3585 int test (int i, double x);
3586 struct s1 {int (*f) (int a);};
3587 struct s2 {int (*f) (double a);};
3588 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3589 int argc;
3590 char **argv;
3591 int
3592 main ()
3593 {
3594 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3595 ;
3596 return 0;
3597 }
3598 _ACEOF
3599 # Don't try gcc -ansi; that turns off useful extensions and
3600 # breaks some systems' header files.
3601 # AIX -qlanglvl=ansi
3602 # Ultrix and OSF/1 -std1
3603 # HP-UX 10.20 and later -Ae
3604 # HP-UX older versions -Aa -D_HPUX_SOURCE
3605 # SVR4 -Xc -D__EXTENSIONS__
3606 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3607 do
3608 CC="$ac_save_CC $ac_arg"
3609 rm -f conftest.$ac_objext
3610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611 (eval $ac_compile) 2>conftest.er1
3612 ac_status=$?
3613 grep -v '^ *+' conftest.er1 >conftest.err
3614 rm -f conftest.er1
3615 cat conftest.err >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); } &&
3618 { ac_try='test -z "$ac_c_werror_flag"
3619 || test ! -s conftest.err'
3620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621 (eval $ac_try) 2>&5
3622 ac_status=$?
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); }; } &&
3625 { ac_try='test -s conftest.$ac_objext'
3626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627 (eval $ac_try) 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }; }; then
3631 ac_cv_prog_cc_stdc=$ac_arg
3632 break
3633 else
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 fi
3638 rm -f conftest.err conftest.$ac_objext
3639 done
3640 rm -f conftest.$ac_ext conftest.$ac_objext
3641 CC=$ac_save_CC
3642
3643 fi
3644
3645 case "x$ac_cv_prog_cc_stdc" in
3646 x|xno)
3647 echo "$as_me:$LINENO: result: none needed" >&5
3648 echo "${ECHO_T}none needed" >&6 ;;
3649 *)
3650 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3651 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3652 CC="$CC $ac_cv_prog_cc_stdc" ;;
3653 esac
3654
3655 # Some people use a C++ compiler to compile C. Since we use `exit',
3656 # in C++ we need to declare it. In case someone uses the same compiler
3657 # for both compiling C and C++ we need to have the C++ compiler decide
3658 # the declaration of exit, since it's the most demanding environment.
3659 cat >conftest.$ac_ext <<_ACEOF
3660 #ifndef __cplusplus
3661 choke me
3662 #endif
3663 _ACEOF
3664 rm -f conftest.$ac_objext
3665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3666 (eval $ac_compile) 2>conftest.er1
3667 ac_status=$?
3668 grep -v '^ *+' conftest.er1 >conftest.err
3669 rm -f conftest.er1
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } &&
3673 { ac_try='test -z "$ac_c_werror_flag"
3674 || test ! -s conftest.err'
3675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3676 (eval $ac_try) 2>&5
3677 ac_status=$?
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; } &&
3680 { ac_try='test -s conftest.$ac_objext'
3681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682 (eval $ac_try) 2>&5
3683 ac_status=$?
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 for ac_declaration in \
3687 '' \
3688 'extern "C" void std::exit (int) throw (); using std::exit;' \
3689 'extern "C" void std::exit (int); using std::exit;' \
3690 'extern "C" void exit (int) throw ();' \
3691 'extern "C" void exit (int);' \
3692 'void exit (int);'
3693 do
3694 cat >conftest.$ac_ext <<_ACEOF
3695 /* confdefs.h. */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700 $ac_declaration
3701 #include <stdlib.h>
3702 int
3703 main ()
3704 {
3705 exit (42);
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712 (eval $ac_compile) 2>conftest.er1
3713 ac_status=$?
3714 grep -v '^ *+' conftest.er1 >conftest.err
3715 rm -f conftest.er1
3716 cat conftest.err >&5
3717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } &&
3719 { ac_try='test -z "$ac_c_werror_flag"
3720 || test ! -s conftest.err'
3721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; } &&
3726 { ac_try='test -s conftest.$ac_objext'
3727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728 (eval $ac_try) 2>&5
3729 ac_status=$?
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 :
3733 else
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3736
3737 continue
3738 fi
3739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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 $ac_declaration
3747 int
3748 main ()
3749 {
3750 exit (42);
3751 ;
3752 return 0;
3753 }
3754 _ACEOF
3755 rm -f conftest.$ac_objext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757 (eval $ac_compile) 2>conftest.er1
3758 ac_status=$?
3759 grep -v '^ *+' conftest.er1 >conftest.err
3760 rm -f conftest.er1
3761 cat conftest.err >&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } &&
3764 { ac_try='test -z "$ac_c_werror_flag"
3765 || test ! -s conftest.err'
3766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3767 (eval $ac_try) 2>&5
3768 ac_status=$?
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; } &&
3771 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3777 break
3778 else
3779 echo "$as_me: failed program was:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3781
3782 fi
3783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3784 done
3785 rm -f conftest*
3786 if test -n "$ac_declaration"; then
3787 echo '#ifdef __cplusplus' >>confdefs.h
3788 echo $ac_declaration >>confdefs.h
3789 echo '#endif' >>confdefs.h
3790 fi
3791
3792 else
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3795
3796 fi
3797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 ac_ext=c
3799 ac_cpp='$CPP $CPPFLAGS'
3800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3803
3804
3805 if test "$asc_ansi_ok" = no ; then
3806 CC=$asc_orig_cc
3807 { { echo "$as_me:$LINENO: error: Cannot find an ANSI C compiler. ASCEND will not build
3808 without an ANSI compiler. If you have an ANSI compiler which
3809 configure is not finding, set the CC environment variable to
3810 the full path fo the compiler and rerun configure." >&5
3811 echo "$as_me: error: Cannot find an ANSI C compiler. ASCEND will not build
3812 without an ANSI compiler. If you have an ANSI compiler which
3813 configure is not finding, set the CC environment variable to
3814 the full path fo the compiler and rerun configure." >&2;}
3815 { (exit 1); exit 1; }; }
3816 fi
3817
3818
3819 #--------------------------------------------------------------------
3820 # Do other misc checks with CC and CFLAGS.
3821 #
3822 # Determine how to run the C preprocessor.
3823 #
3824 # If the user specifies --enable-optimization, remove `-g'
3825 # from CFLAGS, add `-O' to CFLAGS, and define `NDEBUG'. If
3826 # we are not building optimized, check for special libraries
3827 # needed for building a debugging binary (currenly only
3828 # /usr/lib/end.o under HPUX).
3829 #
3830 # Check if we're running on AIX; if so, add `-D_ALL_SOURCE'
3831 # to CFLAGS.
3832 #
3833 # Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'
3834 # to CFLAGS unless the C preprocessor goes it for us.
3835 #--------------------------------------------------------------------
3836
3837 ac_ext=c
3838 ac_cpp='$CPP $CPPFLAGS'
3839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3842 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3843 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3844 # On Suns, sometimes $CPP names a directory.
3845 if test -n "$CPP" && test -d "$CPP"; then
3846 CPP=
3847 fi
3848 if test -z "$CPP"; then
3849 if test "${ac_cv_prog_CPP+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 # Double quotes because CPP needs to be expanded
3853 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3854 do
3855 ac_preproc_ok=false
3856 for ac_c_preproc_warn_flag in '' yes
3857 do
3858 # Use a header file that comes with gcc, so configuring glibc
3859 # with a fresh cross-compiler works.
3860 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3861 # <limits.h> exists even on freestanding compilers.
3862 # On the NeXT, cc -E runs the code through the compiler's parser,
3863 # not just through cpp. "Syntax error" is here to catch this case.
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870 #ifdef __STDC__
3871 # include <limits.h>
3872 #else
3873 # include <assert.h>
3874 #endif
3875 Syntax error
3876 _ACEOF
3877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } >/dev/null; then
3885 if test -s conftest.err; then
3886 ac_cpp_err=$ac_c_preproc_warn_flag
3887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3888 else
3889 ac_cpp_err=
3890 fi
3891 else
3892 ac_cpp_err=yes
3893 fi
3894 if test -z "$ac_cpp_err"; then
3895 :
3896 else
3897 echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3899
3900 # Broken: fails on valid input.
3901 continue
3902 fi
3903 rm -f conftest.err conftest.$ac_ext
3904
3905 # OK, works on sane cases. Now check whether non-existent headers
3906 # can be detected and how.
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 #include <ac_nonexistent.h>
3914 _ACEOF
3915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3917 ac_status=$?
3918 grep -v '^ *+' conftest.er1 >conftest.err
3919 rm -f conftest.er1
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922 (exit $ac_status); } >/dev/null; then
3923 if test -s conftest.err; then
3924 ac_cpp_err=$ac_c_preproc_warn_flag
3925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3926 else
3927 ac_cpp_err=
3928 fi
3929 else
3930 ac_cpp_err=yes
3931 fi
3932 if test -z "$ac_cpp_err"; then
3933 # Broken: success on invalid input.
3934 continue
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 # Passes both tests.
3940 ac_preproc_ok=:
3941 break
3942 fi
3943 rm -f conftest.err conftest.$ac_ext
3944
3945 done
3946 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3947 rm -f conftest.err conftest.$ac_ext
3948 if $ac_preproc_ok; then
3949 break
3950 fi
3951
3952 done
3953 ac_cv_prog_CPP=$CPP
3954
3955 fi
3956 CPP=$ac_cv_prog_CPP
3957 else
3958 ac_cv_prog_CPP=$CPP
3959 fi
3960 echo "$as_me:$LINENO: result: $CPP" >&5
3961 echo "${ECHO_T}$CPP" >&6
3962 ac_preproc_ok=false
3963 for ac_c_preproc_warn_flag in '' yes
3964 do
3965 # Use a header file that comes with gcc, so configuring glibc
3966 # with a fresh cross-compiler works.
3967 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3968 # <limits.h> exists even on freestanding compilers.
3969 # On the NeXT, cc -E runs the code through the compiler's parser,
3970 # not just through cpp. "Syntax error" is here to catch this case.
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h. */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h. */
3977 #ifdef __STDC__
3978 # include <limits.h>
3979 #else
3980 # include <assert.h>
3981 #endif
3982 Syntax error
3983 _ACEOF
3984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3986 ac_status=$?
3987 grep -v '^ *+' conftest.er1 >conftest.err
3988 rm -f conftest.er1
3989 cat conftest.err >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); } >/dev/null; then
3992 if test -s conftest.err; then
3993 ac_cpp_err=$ac_c_preproc_warn_flag
3994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3995 else
3996 ac_cpp_err=
3997 fi
3998 else
3999 ac_cpp_err=yes
4000 fi
4001 if test -z "$ac_cpp_err"; then
4002 :
4003 else
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007 # Broken: fails on valid input.
4008 continue
4009 fi
4010 rm -f conftest.err conftest.$ac_ext
4011
4012 # OK, works on sane cases. Now check whether non-existent headers
4013 # can be detected and how.
4014 cat >conftest.$ac_ext <<_ACEOF
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020 #include <ac_nonexistent.h>
4021 _ACEOF
4022 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4024 ac_status=$?
4025 grep -v '^ *+' conftest.er1 >conftest.err
4026 rm -f conftest.er1
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } >/dev/null; then
4030 if test -s conftest.err; then
4031 ac_cpp_err=$ac_c_preproc_warn_flag
4032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4033 else
4034 ac_cpp_err=
4035 fi
4036 else
4037 ac_cpp_err=yes
4038 fi
4039 if test -z "$ac_cpp_err"; then
4040 # Broken: success on invalid input.
4041 continue
4042 else
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4045
4046 # Passes both tests.
4047 ac_preproc_ok=:
4048 break
4049 fi
4050 rm -f conftest.err conftest.$ac_ext
4051
4052 done
4053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4054 rm -f conftest.err conftest.$ac_ext
4055 if $ac_preproc_ok; then
4056 :
4057 else
4058 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4059 See \`config.log' for more details." >&5
4060 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4061 See \`config.log' for more details." >&2;}
4062 { (exit 1); exit 1; }; }
4063 fi
4064
4065 ac_ext=c
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070
4071
4072 # Check whether --enable-optimization or --disable-optimization was given.
4073 if test "${enable_optimization+set}" = set; then
4074 enableval="$enable_optimization"
4075 asc_do_opt="$enableval"
4076 else
4077 asc_do_opt=no
4078 fi;
4079 if test "$asc_do_opt" = yes; then
4080 CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`
4081 cat >>confdefs.h <<\_ACEOF
4082 #define NDEBUG 1
4083 _ACEOF
4084
4085 else
4086 # Extract the first word of "end.o", so it can be a program name with args.
4087 set dummy end.o; ac_word=$2
4088 echo "$as_me:$LINENO: checking for $ac_word" >&5
4089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4090 if test "${ac_cv_path_DEBUG_LIBS+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093 case $DEBUG_LIBS in
4094 [\\/]* | ?:[\\/]*)
4095 ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path.
4096 ;;
4097 *)
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in /usr/lib
4100 do
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4105 ac_cv_path_DEBUG_LIBS="$as_dir/$ac_word$ac_exec_ext"
4106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 break 2
4108 fi
4109 done
4110 done
4111
4112 ;;
4113 esac
4114 fi
4115 DEBUG_LIBS=$ac_cv_path_DEBUG_LIBS
4116
4117 if test -n "$DEBUG_LIBS"; then
4118 echo "$as_me:$LINENO: result: $DEBUG_LIBS" >&5
4119 echo "${ECHO_T}$DEBUG_LIBS" >&6
4120 else
4121 echo "$as_me:$LINENO: result: no" >&5
4122 echo "${ECHO_T}no" >&6
4123 fi
4124
4125 fi
4126
4127 echo "$as_me:$LINENO: checking for AIX" >&5
4128 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
4129
4130 echo "$as_me:$LINENO: checking for egrep" >&5
4131 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4132 if test "${ac_cv_prog_egrep+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 else
4135 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4136 then ac_cv_prog_egrep='grep -E'
4137 else ac_cv_prog_egrep='egrep'
4138 fi
4139 fi
4140 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4141 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4142 EGREP=$ac_cv_prog_egrep
4143
4144
4145 cat >conftest.$ac_ext <<_ACEOF
4146 /* confdefs.h. */
4147 _ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4151
4152 #ifdef _AIX
4153 yes
4154 #endif
4155
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "yes" >/dev/null 2>&1; then
4159 asc_aix=yes ; cat >>confdefs.h <<\_ACEOF
4160 #define _ALL_SOURCE 1
4161 _ACEOF
4162
4163 else
4164 asc_aix=no
4165 fi
4166 rm -f conftest*
4167
4168 echo "$as_me:$LINENO: result: $asc_aix" >&5
4169 echo "${ECHO_T}$asc_aix" >&6
4170
4171 echo "$as_me:$LINENO: checking whether -D_HPUX_SOURCE is needed" >&5
4172 echo $ECHO_N "checking whether -D_HPUX_SOURCE is needed... $ECHO_C" >&6
4173 cat >conftest.$ac_ext <<_ACEOF
4174 /* confdefs.h. */
4175 _ACEOF
4176 cat confdefs.h >>conftest.$ac_ext
4177 cat >>conftest.$ac_ext <<_ACEOF
4178 /* end confdefs.h. */
4179
4180 #ifdef __hpux
4181 #ifndef _HPUX_SOURCE
4182 yes
4183 #endif
4184 #endif
4185
4186 _ACEOF
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 $EGREP "yes" >/dev/null 2>&1; then
4189 asc_hpux=yes ; cat >>confdefs.h <<\_ACEOF
4190 #define _HPUX_SOURCE 1
4191 _ACEOF
4192
4193 else
4194 asc_hpux=no
4195 fi
4196 rm -f conftest*
4197
4198 echo "$as_me:$LINENO: result: $asc_hpux" >&5
4199 echo "${ECHO_T}$asc_hpux" >&6
4200
4201 # Check the size of pointers; if cross compiling, assume 32 bit pointers
4202 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4203 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4204 if test "${ac_cv_header_stdc+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h. */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4213 #include <stdlib.h>
4214 #include <stdarg.h>
4215 #include <string.h>
4216 #include <float.h>
4217
4218 int
4219 main ()
4220 {
4221
4222 ;
4223 return 0;
4224 }
4225 _ACEOF
4226 rm -f conftest.$ac_objext
4227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4228 (eval $ac_compile) 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } &&
4235 { ac_try='test -z "$ac_c_werror_flag"
4236 || test ! -s conftest.err'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 (eval $ac_try) 2>&5
4239 ac_status=$?
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244 (eval $ac_try) 2>&5
4245 ac_status=$?
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_header_stdc=yes
4249 else
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4252
4253 ac_cv_header_stdc=no
4254 fi
4255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4256
4257 if test $ac_cv_header_stdc = yes; then
4258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4259 cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h. */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 #include <string.h>
4266
4267 _ACEOF
4268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4269 $EGREP "memchr" >/dev/null 2>&1; then
4270 :
4271 else
4272 ac_cv_header_stdc=no
4273 fi
4274 rm -f conftest*
4275
4276 fi
4277
4278 if test $ac_cv_header_stdc = yes; then
4279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h. */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h. */
4286 #include <stdlib.h>
4287
4288 _ACEOF
4289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4290 $EGREP "free" >/dev/null 2>&1; then
4291 :
4292 else
4293 ac_cv_header_stdc=no
4294 fi
4295 rm -f conftest*
4296
4297 fi
4298
4299 if test $ac_cv_header_stdc = yes; then
4300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4301 if test "$cross_compiling" = yes; then
4302 :
4303 else
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h. */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h. */
4310 #include <ctype.h>
4311 #if ((' ' & 0x0FF) == 0x020)
4312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4314 #else
4315 # define ISLOWER(c) \
4316 (('a' <= (c) && (c) <= 'i') \
4317 || ('j' <= (c) && (c) <= 'r') \
4318 || ('s' <= (c) && (c) <= 'z'))
4319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4320 #endif
4321
4322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4323 int
4324 main ()
4325 {
4326 int i;
4327 for (i = 0; i < 256; i++)
4328 if (XOR (islower (i), ISLOWER (i))
4329 || toupper (i) != TOUPPER (i))
4330 exit(2);
4331 exit (0);
4332 }
4333 _ACEOF
4334 rm -f conftest$ac_exeext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4336 (eval $ac_link) 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 (eval $ac_try) 2>&5
4342 ac_status=$?
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); }; }; then
4345 :
4346 else
4347 echo "$as_me: program exited with status $ac_status" >&5
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 ( exit $ac_status )
4352 ac_cv_header_stdc=no
4353 fi
4354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4355 fi
4356 fi
4357 fi
4358 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4359 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4360 if test $ac_cv_header_stdc = yes; then
4361
4362 cat >>confdefs.h <<\_ACEOF
4363 #define STDC_HEADERS 1
4364 _ACEOF
4365
4366 fi
4367
4368 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4379 inttypes.h stdint.h unistd.h
4380 do
4381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4382 echo "$as_me:$LINENO: checking for $ac_header" >&5
4383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4385 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 else
4387 cat >conftest.$ac_ext <<_ACEOF
4388 /* confdefs.h. */
4389 _ACEOF
4390 cat confdefs.h >>conftest.$ac_ext
4391 cat >>conftest.$ac_ext <<_ACEOF
4392 /* end confdefs.h. */
4393 $ac_includes_default
4394
4395 #include <$ac_header>
4396 _ACEOF
4397 rm -f conftest.$ac_objext
4398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4399 (eval $ac_compile) 2>conftest.er1
4400 ac_status=$?
4401 grep -v '^ *+' conftest.er1 >conftest.err
4402 rm -f conftest.er1
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag"
4407 || test ! -s conftest.err'
4408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4409 (eval $ac_try) 2>&5
4410 ac_status=$?
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); }; } &&
4413 { ac_try='test -s conftest.$ac_objext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 (eval $ac_try) 2>&5
4416 ac_status=$?
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4419 eval "$as_ac_Header=yes"
4420 else
4421 echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424 eval "$as_ac_Header=no"
4425 fi
4426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4427 fi
4428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4431 cat >>confdefs.h <<_ACEOF
4432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4433 _ACEOF
4434
4435 fi
4436
4437 done
4438
4439
4440 echo "$as_me:$LINENO: checking for void *" >&5
4441 echo $ECHO_N "checking for void *... $ECHO_C" >&6
4442 if test "${ac_cv_type_void_p+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 else
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 $ac_includes_default
4452 int
4453 main ()
4454 {
4455 if ((void * *) 0)
4456 return 0;
4457 if (sizeof (void *))
4458 return 0;
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 rm -f conftest.$ac_objext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } &&
4472 { ac_try='test -z "$ac_c_werror_flag"
4473 || test ! -s conftest.err'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4475 (eval $ac_try) 2>&5
4476 ac_status=$?
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; } &&
4479 { ac_try='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 ac_cv_type_void_p=yes
4486 else
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4489
4490 ac_cv_type_void_p=no
4491 fi
4492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4493 fi
4494 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
4495 echo "${ECHO_T}$ac_cv_type_void_p" >&6
4496
4497 echo "$as_me:$LINENO: checking size of void *" >&5
4498 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4499 if test "${ac_cv_sizeof_void_p+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502 if test "$ac_cv_type_void_p" = yes; then
4503 # The cast to unsigned long works around a bug in the HP C Compiler
4504 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4505 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4506 # This bug is HP SR number 8606223364.
4507 if test "$cross_compiling" = yes; then
4508 # Depending upon the size, compute the lo and hi bounds.
4509 cat >conftest.$ac_ext <<_ACEOF
4510 /* confdefs.h. */
4511 _ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4516 int
4517 main ()
4518 {
4519 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4520 test_array [0] = 0
4521
4522 ;
4523 return 0;
4524 }
4525 _ACEOF
4526 rm -f conftest.$ac_objext
4527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4528 (eval $ac_compile) 2>conftest.er1
4529 ac_status=$?
4530 grep -v '^ *+' conftest.er1 >conftest.err
4531 rm -f conftest.er1
4532 cat conftest.err >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); } &&
4535 { ac_try='test -z "$ac_c_werror_flag"
4536 || test ! -s conftest.err'
4537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 (eval $ac_try) 2>&5
4539 ac_status=$?
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544 (eval $ac_try) 2>&5
4545 ac_status=$?
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }; }; then
4548 ac_lo=0 ac_mid=0
4549 while :; do
4550 cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h. */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 $ac_includes_default
4557 int
4558 main ()
4559 {
4560 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4561 test_array [0] = 0
4562
4563 ;
4564 return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569 (eval $ac_compile) 2>conftest.er1
4570 ac_status=$?
4571 grep -v '^ *+' conftest.er1 >conftest.err
4572 rm -f conftest.er1
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } &&
4576 { ac_try='test -z "$ac_c_werror_flag"
4577 || test ! -s conftest.err'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; } &&
4583 { ac_try='test -s conftest.$ac_objext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 (eval $ac_try) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4589 ac_hi=$ac_mid; break
4590 else
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4593
4594 ac_lo=`expr $ac_mid + 1`
4595 if test $ac_lo -le $ac_mid; then
4596 ac_lo= ac_hi=
4597 break
4598 fi
4599 ac_mid=`expr 2 '*' $ac_mid + 1`
4600 fi
4601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4602 done
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 cat >conftest.$ac_ext <<_ACEOF
4608 /* confdefs.h. */
4609 _ACEOF
4610 cat confdefs.h >>conftest.$ac_ext
4611 cat >>conftest.$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 int
4615 main ()
4616 {
4617 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4618 test_array [0] = 0
4619
4620 ;
4621 return 0;
4622 }
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4627 ac_status=$?
4628 grep -v '^ *+' conftest.er1 >conftest.err
4629 rm -f conftest.er1
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_c_werror_flag"
4634 || test ! -s conftest.err'
4635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4636 (eval $ac_try) 2>&5
4637 ac_status=$?
4638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639 (exit $ac_status); }; } &&
4640 { ac_try='test -s conftest.$ac_objext'
4641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 (eval $ac_try) 2>&5
4643 ac_status=$?
4644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4646 ac_hi=-1 ac_mid=-1
4647 while :; do
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 $ac_includes_default
4655 int
4656 main ()
4657 {
4658 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4659 test_array [0] = 0
4660
4661 ;
4662 return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667 (eval $ac_compile) 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -z "$ac_c_werror_flag"
4675 || test ! -s conftest.err'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4677 (eval $ac_try) 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try='test -s conftest.$ac_objext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4687 ac_lo=$ac_mid; break
4688 else
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4691
4692 ac_hi=`expr '(' $ac_mid ')' - 1`
4693 if test $ac_mid -le $ac_hi; then
4694 ac_lo= ac_hi=
4695 break
4696 fi
4697 ac_mid=`expr 2 '*' $ac_mid`
4698 fi
4699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4700 done
4701 else
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 ac_lo= ac_hi=
4706 fi
4707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4708 fi
4709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4710 # Binary search between lo and hi bounds.
4711 while test "x$ac_lo" != "x$ac_hi"; do
4712 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h. */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 $ac_includes_default
4720 int
4721 main ()
4722 {
4723 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4724 test_array [0] = 0
4725
4726 ;
4727 return 0;
4728 }
4729 _ACEOF
4730 rm -f conftest.$ac_objext
4731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4732 (eval $ac_compile) 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -z "$ac_c_werror_flag"
4740 || test ! -s conftest.err'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 (eval $ac_try) 2>&5
4743 ac_status=$?
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; } &&
4746 { ac_try='test -s conftest.$ac_objext'
4747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748 (eval $ac_try) 2>&5
4749 ac_status=$?
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; }; then
4752 ac_hi=$ac_mid
4753 else
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4756
4757 ac_lo=`expr '(' $ac_mid ')' + 1`
4758 fi
4759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4760 done
4761 case $ac_lo in
4762 ?*) ac_cv_sizeof_void_p=$ac_lo;;
4763 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4764 See \`config.log' for more details." >&5
4765 echo "$as_me: error: cannot compute sizeof (void *), 77
4766 See \`config.log' for more details." >&2;}
4767 { (exit 1); exit 1; }; } ;;
4768 esac
4769 else
4770 if test "$cross_compiling" = yes; then
4771 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4772 See \`config.log' for more details." >&5
4773 echo "$as_me: error: cannot run test program while cross compiling
4774 See \`config.log' for more details." >&2;}
4775 { (exit 1); exit 1; }; }
4776 else
4777 cat >conftest.$ac_ext <<_ACEOF
4778 /* confdefs.h. */
4779 _ACEOF
4780 cat confdefs.h >>conftest.$ac_ext
4781 cat >>conftest.$ac_ext <<_ACEOF
4782 /* end confdefs.h. */
4783 $ac_includes_default
4784 long longval () { return (long) (sizeof (void *)); }
4785 unsigned long ulongval () { return (long) (sizeof (void *)); }
4786 #include <stdio.h>
4787 #include <stdlib.h>
4788 int
4789 main ()
4790 {
4791
4792 FILE *f = fopen ("conftest.val", "w");
4793 if (! f)
4794 exit (1);
4795 if (((long) (sizeof (void *))) < 0)
4796 {
4797 long i = longval ();
4798 if (i != ((long) (sizeof (void *))))
4799 exit (1);
4800 fprintf (f, "%ld\n", i);
4801 }
4802 else
4803 {
4804 unsigned long i = ulongval ();
4805 if (i != ((long) (sizeof (void *))))
4806 exit (1);
4807 fprintf (f, "%lu\n", i);
4808 }
4809 exit (ferror (f) || fclose (f) != 0);
4810
4811 ;
4812 return 0;
4813 }
4814 _ACEOF
4815 rm -f conftest$ac_exeext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4817 (eval $ac_link) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_cv_sizeof_void_p=`cat conftest.val`
4827 else
4828 echo "$as_me: program exited with status $ac_status" >&5
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4831
4832 ( exit $ac_status )
4833 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4834 See \`config.log' for more details." >&5
4835 echo "$as_me: error: cannot compute sizeof (void *), 77
4836 See \`config.log' for more details." >&2;}
4837 { (exit 1); exit 1; }; }
4838 fi
4839 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4840 fi
4841 fi
4842 rm -f conftest.val
4843 else
4844 ac_cv_sizeof_void_p=0
4845 fi
4846 fi
4847 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
4848 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4849 cat >>confdefs.h <<_ACEOF
4850 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4851 _ACEOF
4852
4853
4854
4855
4856 #--------------------------------------------------------------------
4857 # Set YACC.
4858 # See if we can find `yacc' ourselves; if not, call the
4859 # autoconf macro which looks for `bison' and then for `yacc'
4860 #--------------------------------------------------------------------
4861 asc_found_yacc=0
4862 # Extract the first word of "yacc", so it can be a program name with args.
4863 set dummy yacc; ac_word=$2
4864 echo "$as_me:$LINENO: checking for $ac_word" >&5
4865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4866 if test "${ac_cv_prog_YACC+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 else
4869 if test -n "$YACC"; then
4870 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4871 else
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875 IFS=$as_save_IFS
4876 test -z "$as_dir" && as_dir=.
4877 for ac_exec_ext in '' $ac_executable_extensions; do
4878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4879 ac_cv_prog_YACC="yacc"
4880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4881 break 2
4882 fi
4883 done
4884 done
4885
4886 test -z "$ac_cv_prog_YACC" && ac_cv_prog_YACC="asc_found_yacc=no"
4887 fi
4888 fi
4889 YACC=$ac_cv_prog_YACC
4890 if test -n "$YACC"; then
4891 echo "$as_me:$LINENO: result: $YACC" >&5
4892 echo "${ECHO_T}$YACC" >&6
4893 else
4894 echo "$as_me:$LINENO: result: no" >&5
4895 echo "${ECHO_T}no" >&6
4896 fi
4897
4898 if test "$asc_found_yacc" = no ; then
4899 for ac_prog in 'bison -y' byacc
4900 do
4901 # Extract the first word of "$ac_prog", so it can be a program name with args.
4902 set dummy $ac_prog; ac_word=$2
4903 echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4905 if test "${ac_cv_prog_YACC+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 if test -n "$YACC"; then
4909 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_YACC="$ac_prog"
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922 done
4923 done
4924
4925 fi
4926 fi
4927 YACC=$ac_cv_prog_YACC
4928 if test -n "$YACC"; then
4929 echo "$as_me:$LINENO: result: $YACC" >&5
4930 echo "${ECHO_T}$YACC" >&6
4931 else
4932 echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6
4934 fi
4935
4936 test -n "$YACC" && break
4937 done
4938 test -n "$YACC" || YACC="yacc"
4939
4940 fi
4941
4942
4943 #--------------------------------------------------------------------
4944 # Set LEX.
4945 # ASCEND requires a `flex' which understands -P (allows you to
4946 # specify a prefix other than `yy'). The -P flag was added at
4947 # the same time a -V (version) flag was added (version 2.4.1),
4948 # so if `flex' understands -V, it'll understand -P (checking
4949 # for -P directly requires a flex input file).
4950 #
4951 # 1. If `LEX' is not set, look for `flex' and set `LEX' to
4952 # `flex' if found.
4953 # 2. If `flex' was found, see if it understands -V. If so,
4954 # set `scanner_src' and `typer_src' to have `flex' generate
4955 # the C files from the flex input files
4956 # base/generic/compiler/scanner.l & tcltk98/interface/typelex.l
4957 # We don't need to look for libfl.a since we define
4958 # yywrap() ourselves.
4959 # 3. If `flex' wasn't found or was found but isn't new enough:
4960 # a. Print a warning message
4961 # b. Set `scanner_src' and `typer_src' to use pre-generated
4962 # C files for the flex files mentioned in (2).
4963 # c. Set `LEX' to `lex'
4964 # d. Search for the lex library `libl.a' and set LEXLIB to
4965 # its location.
4966 #--------------------------------------------------------------------
4967 # Extract the first word of "flex", so it can be a program name with args.
4968 set dummy flex; ac_word=$2
4969 echo "$as_me:$LINENO: checking for $ac_word" >&5
4970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4971 if test "${ac_cv_prog_LEX+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 else
4974 if test -n "$LEX"; then
4975 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4976 else
4977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978 for as_dir in $PATH
4979 do
4980 IFS=$as_save_IFS
4981 test -z "$as_dir" && as_dir=.
4982 for ac_exec_ext in '' $ac_executable_extensions; do
4983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4984 ac_cv_prog_LEX="flex"
4985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4986 break 2
4987 fi
4988 done
4989 done
4990
4991 fi
4992 fi
4993 LEX=$ac_cv_prog_LEX
4994 if test -n "$LEX"; then
4995 echo "$as_me:$LINENO: result: $LEX" >&5
4996 echo "${ECHO_T}$LEX" >&6
4997 else
4998 echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6
5000 fi
5001
5002
5003 if test -n "$LEX" ; then
5004 echo "$as_me:$LINENO: checking whether $LEX is at least version 2.4.1" >&5
5005 echo $ECHO_N "checking whether $LEX is at least version 2.4.1... $ECHO_C" >&6
5006 echo "$LEX -V" 1>&5
5007 if $LEX -V 1>&5 2>&5 ; then
5008 echo "$as_me:$LINENO: result: yes" >&5
5009 echo "${ECHO_T}yes" >&6
5010 scanner_src="scanner.c.from.flex"
5011 typer_src="typelex.c.from.flex"
5012 else
5013 echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6
5015 LEX=''
5016 fi
5017 fi
5018
5019 if test -z "$LEX" ; then
5020 { echo "$as_me:$LINENO: WARNING: Cannot find a flex lexer version 2.4.1 or greater.
5021 Using pregenerated C files for base/generic/compiler/scanner.l
5022 and tcltk98/interface/typelex.l. If you have flex 2.4.1
5023 or newer, set the LEX environment variable to its location
5024 and run configure again." >&5
5025 echo "$as_me: WARNING: Cannot find a flex lexer version 2.4.1 or greater.
5026 Using pregenerated C files for base/generic/compiler/scanner.l
5027 and tcltk98/interface/typelex.l. If you have flex 2.4.1
5028 or newer, set the LEX environment variable to its location
5029 and run configure again." >&2;}
5030 scanner_src="scanner.c.from.c"
5031 typer_src="typelex.c.from.c"
5032
5033 # let configure set LEX and LEXLIB even though we won't be using them
5034 for ac_prog in flex lex
5035 do
5036 # Extract the first word of "$ac_prog", so it can be a program name with args.
5037 set dummy $ac_prog; ac_word=$2
5038 echo "$as_me:$LINENO: checking for $ac_word" >&5
5039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5040 if test "${ac_cv_prog_LEX+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 else
5043 if test -n "$LEX"; then
5044 ac_cv_prog_LEX="$LEX" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053 ac_cv_prog_LEX="$ac_prog"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5056 fi
5057 done
5058 done
5059
5060 fi
5061 fi
5062 LEX=$ac_cv_prog_LEX
5063 if test -n "$LEX"; then
5064 echo "$as_me:$LINENO: result: $LEX" >&5
5065 echo "${ECHO_T}$LEX" >&6
5066 else
5067 echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5069 fi
5070
5071 test -n "$LEX" && break
5072 done
5073 test -n "$LEX" || LEX=":"
5074
5075 if test -z "$LEXLIB"
5076 then
5077 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
5078 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
5079 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
5080 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 else
5082 ac_check_lib_save_LIBS=$LIBS
5083 LIBS="-lfl $LIBS"
5084 cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h. */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090
5091 /* Override any gcc2 internal prototype to avoid an error. */
5092 #ifdef __cplusplus
5093 extern "C"
5094 #endif
5095 /* We use char because int might match the return type of a gcc2
5096 builtin and then its argument prototype would still apply. */
5097 char yywrap ();
5098 int
5099 main ()
5100 {
5101 yywrap ();
5102 ;
5103 return 0;
5104 }
5105 _ACEOF
5106 rm -f conftest.$ac_objext conftest$ac_exeext
5107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5108 (eval $ac_link) 2>conftest.er1
5109 ac_status=$?
5110 grep -v '^ *+' conftest.er1 >conftest.err
5111 rm -f conftest.er1
5112 cat conftest.err >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); } &&
5115 { ac_try='test -z "$ac_c_werror_flag"
5116 || test ! -s conftest.err'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 (eval $ac_try) 2>&5
5119 ac_status=$?
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; } &&
5122 { ac_try='test -s conftest$ac_exeext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5124 (eval $ac_try) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 ac_cv_lib_fl_yywrap=yes
5129 else
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5132
5133 ac_cv_lib_fl_yywrap=no
5134 fi
5135 rm -f conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5137 LIBS=$ac_check_lib_save_LIBS
5138 fi
5139 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
5140 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
5141 if test $ac_cv_lib_fl_yywrap = yes; then
5142 LEXLIB="-lfl"
5143 else
5144 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
5145 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
5146 if test "${ac_cv_lib_l_yywrap+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 ac_check_lib_save_LIBS=$LIBS
5150 LIBS="-ll $LIBS"
5151 cat >conftest.$ac_ext <<_ACEOF
5152 /* confdefs.h. */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h. */
5157
5158 /* Override any gcc2 internal prototype to avoid an error. */
5159 #ifdef __cplusplus
5160 extern "C"
5161 #endif
5162 /* We use char because int might match the return type of a gcc2
5163 builtin and then its argument prototype would still apply. */
5164 char yywrap ();
5165 int
5166 main ()
5167 {
5168 yywrap ();
5169 ;
5170 return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest.$ac_objext conftest$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175 (eval $ac_link) 2>conftest.er1
5176 ac_status=$?
5177 grep -v '^ *+' conftest.er1 >conftest.err
5178 rm -f conftest.er1
5179 cat conftest.err >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); } &&
5182 { ac_try='test -z "$ac_c_werror_flag"
5183 || test ! -s conftest.err'
5184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185 (eval $ac_try) 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); }; } &&
5189 { ac_try='test -s conftest$ac_exeext'
5190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191 (eval $ac_try) 2>&5
5192 ac_status=$?
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); }; }; then
5195 ac_cv_lib_l_yywrap=yes
5196 else
5197 echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 ac_cv_lib_l_yywrap=no
5201 fi
5202 rm -f conftest.err conftest.$ac_objext \
5203 conftest$ac_exeext conftest.$ac_ext
5204 LIBS=$ac_check_lib_save_LIBS
5205 fi
5206 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
5207 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
5208 if test $ac_cv_lib_l_yywrap = yes; then
5209 LEXLIB="-ll"
5210 fi
5211
5212 fi
5213
5214 fi
5215
5216 if test "x$LEX" != "x:"; then
5217 echo "$as_me:$LINENO: checking lex output file root" >&5
5218 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
5219 if test "${ac_cv_prog_lex_root+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 # The minimal lex program is just a single line: %%. But some broken lexes
5223 # (Solaris, I think it was) want two %% lines, so accommodate them.
5224 cat >conftest.l <<_ACEOF
5225 %%
5226 %%
5227 _ACEOF
5228 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
5229 (eval $LEX conftest.l) 2>&5
5230 ac_status=$?
5231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232 (exit $ac_status); }
5233 if test -f lex.yy.c; then
5234 ac_cv_prog_lex_root=lex.yy
5235 elif test -f lexyy.c; then
5236 ac_cv_prog_lex_root=lexyy
5237 else
5238 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
5239 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
5240 { (exit 1); exit 1; }; }
5241 fi
5242 fi
5243 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
5244 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
5245 rm -f conftest.l
5246 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5247
5248 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
5249 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
5250 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253 # POSIX says lex can declare yytext either as a pointer or an array; the
5254 # default is implementation-dependent. Figure out which it is, since
5255 # not all implementations provide the %pointer and %array declarations.
5256 ac_cv_prog_lex_yytext_pointer=no
5257 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5258 ac_save_LIBS=$LIBS
5259 LIBS="$LIBS $LEXLIB"
5260 cat >conftest.$ac_ext <<_ACEOF
5261 `cat $LEX_OUTPUT_ROOT.c`
5262 _ACEOF
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265 (eval $ac_link) 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } &&
5272 { ac_try='test -z "$ac_c_werror_flag"
5273 || test ! -s conftest.err'
5274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5275 (eval $ac_try) 2>&5
5276 ac_status=$?
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); }; } &&
5279 { ac_try='test -s conftest$ac_exeext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281 (eval $ac_try) 2>&5
5282 ac_status=$?
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_cv_prog_lex_yytext_pointer=yes
5286 else
5287 echo "$as_me: failed program was:" >&5
5288 sed 's/^/| /' conftest.$ac_ext >&5
5289
5290 fi
5291 rm -f conftest.err conftest.$ac_objext \
5292 conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_save_LIBS
5294 rm -f "${LEX_OUTPUT_ROOT}.c"
5295
5296 fi
5297 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
5298 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
5299 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5300
5301 cat >>confdefs.h <<\_ACEOF
5302 #define YYTEXT_POINTER 1
5303 _ACEOF
5304
5305 fi
5306
5307 fi
5308 fi
5309
5310
5311 #--------------------------------------------------------------------
5312 # Math libraries.
5313 # On a few very rare systems, all of the libm.a stuff is
5314 # already in libc.a. Set compiler flags accordingly.
5315 # Also, Linux requires the "ieee" library for math to work
5316 # right (and it must appear before "-lm").
5317 #
5318 # When building on HPUX with GCC, GCC cannot find `copysign'
5319 # because it lives in an odd place; see if we need to add
5320 # this odd place to MATH_LIBS.
5321 #
5322 # See if erf(), the error function, exists; if so, define
5323 # HAVE_ERF.
5324 #--------------------------------------------------------------------
5325 echo "$as_me:$LINENO: checking for sin" >&5
5326 echo $ECHO_N "checking for sin... $ECHO_C" >&6
5327 if test "${ac_cv_func_sin+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330 cat >conftest.$ac_ext <<_ACEOF
5331 /* confdefs.h. */
5332 _ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5336 /* Define sin to an innocuous variant, in case <limits.h> declares sin.
5337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5338 #define sin innocuous_sin
5339
5340 /* System header to define __stub macros and hopefully few prototypes,
5341 which can conflict with char sin (); below.
5342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5343 <limits.h> exists even on freestanding compilers. */
5344
5345 #ifdef __STDC__
5346 # include <limits.h>
5347 #else
5348 # include <assert.h>
5349 #endif
5350
5351 #undef sin
5352
5353 /* Override any gcc2 internal prototype to avoid an error. */
5354 #ifdef __cplusplus
5355 extern "C"
5356 {
5357 #endif
5358 /* We use char because int might match the return type of a gcc2
5359 builtin and then its argument prototype would still apply. */
5360 char sin ();
5361 /* The GNU C library defines this for functions which it implements
5362 to always fail with ENOSYS. Some functions are actually named
5363 something starting with __ and the normal name is an alias. */
5364 #if defined (__stub_sin) || defined (__stub___sin)
5365 choke me
5366 #else
5367 char (*f) () = sin;
5368 #endif
5369 #ifdef __cplusplus
5370 }
5371 #endif
5372
5373 int
5374 main ()
5375 {
5376 return f != sin;
5377 ;
5378 return 0;
5379 }
5380 _ACEOF
5381 rm -f conftest.$ac_objext conftest$ac_exeext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5383 (eval $ac_link) 2>conftest.er1
5384 ac_status=$?
5385 grep -v '^ *+' conftest.er1 >conftest.err
5386 rm -f conftest.er1
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try='test -z "$ac_c_werror_flag"
5391 || test ! -s conftest.err'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5393 (eval $ac_try) 2>&5
5394 ac_status=$?
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; } &&
5397 { ac_try='test -s conftest$ac_exeext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399 (eval $ac_try) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_cv_func_sin=yes
5404 else
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 ac_cv_func_sin=no
5409 fi
5410 rm -f conftest.err conftest.$ac_objext \
5411 conftest$ac_exeext conftest.$ac_ext
5412 fi
5413 echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
5414 echo "${ECHO_T}$ac_cv_func_sin" >&6
5415 if test $ac_cv_func_sin = yes; then
5416 MATH_LIBS=""
5417 else
5418 MATH_LIBS="-lm"
5419 fi
5420
5421
5422 echo "$as_me:$LINENO: checking for printf in -lieee" >&5
5423 echo $ECHO_N "checking for printf in -lieee... $ECHO_C" >&6
5424 if test "${ac_cv_lib_ieee_printf+set}" = set; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 ac_check_lib_save_LIBS=$LIBS
5428 LIBS="-lieee $LIBS"
5429 cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h. */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435
5436 /* Override any gcc2 internal prototype to avoid an error. */
5437 #ifdef __cplusplus
5438 extern "C"
5439 #endif
5440 /* We use char because int might match the return type of a gcc2
5441 builtin and then its argument prototype would still apply. */
5442 char printf ();
5443 int
5444 main ()
5445 {
5446 printf ();
5447 ;
5448 return 0;
5449 }
5450 _ACEOF
5451 rm -f conftest.$ac_objext conftest$ac_exeext
5452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5453 (eval $ac_link) 2>conftest.er1
5454 ac_status=$?
5455 grep -v '^ *+' conftest.er1 >conftest.err
5456 rm -f conftest.er1
5457 cat conftest.err >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); } &&
5460 { ac_try='test -z "$ac_c_werror_flag"
5461 || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5463 (eval $ac_try) 2>&5
5464 ac_status=$?
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest$ac_exeext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 (eval $ac_try) 2>&5
5470 ac_status=$?
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_cv_lib_ieee_printf=yes
5474 else
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5477
5478 ac_cv_lib_ieee_printf=no
5479 fi
5480 rm -f conftest.err conftest.$ac_objext \
5481 conftest$ac_exeext conftest.$ac_ext
5482 LIBS=$ac_check_lib_save_LIBS
5483 fi
5484 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_printf" >&5
5485 echo "${ECHO_T}$ac_cv_lib_ieee_printf" >&6
5486 if test $ac_cv_lib_ieee_printf = yes; then
5487 MATH_LIBS="-lieee $MATH_LIBS"
5488 fi
5489
5490
5491 if test -n "$MATH_LIBS" ; then
5492
5493 echo "$as_me:$LINENO: checking for copysign in -lm" >&5
5494 echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6
5495 if test "${ac_cv_lib_m_copysign+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5497 else
5498 ac_check_lib_save_LIBS=$LIBS
5499 LIBS="-lm $MATH_LIBS $LIBS"
5500 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h. */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506
5507 /* Override any gcc2 internal prototype to avoid an error. */
5508 #ifdef __cplusplus
5509 extern "C"
5510 #endif
5511 /* We use char because int might match the return type of a gcc2
5512 builtin and then its argument prototype would still apply. */
5513 char copysign ();
5514 int
5515 main ()
5516 {
5517 copysign ();
5518 ;
5519 return 0;
5520 }
5521 _ACEOF
5522 rm -f conftest.$ac_objext conftest$ac_exeext
5523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5524 (eval $ac_link) 2>conftest.er1
5525 ac_status=$?
5526 grep -v '^ *+' conftest.er1 >conftest.err
5527 rm -f conftest.er1
5528 cat conftest.err >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } &&
5531 { ac_try='test -z "$ac_c_werror_flag"
5532 || test ! -s conftest.err'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534 (eval $ac_try) 2>&5
5535 ac_status=$?
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; } &&
5538 { ac_try='test -s conftest$ac_exeext'
5539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 (eval $ac_try) 2>&5
5541 ac_status=$?
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }; }; then
5544 ac_cv_lib_m_copysign=yes
5545 else
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549 ac_cv_lib_m_copysign=no
5550 fi
5551 rm -f conftest.err conftest.$ac_objext \
5552 conftest$ac_exeext conftest.$ac_ext
5553 LIBS=$ac_check_lib_save_LIBS
5554 fi
5555 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5
5556 echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6
5557 if test $ac_cv_lib_m_copysign = yes; then
5558 cat >>confdefs.h <<_ACEOF
5559 #define HAVE_LIBM 1
5560 _ACEOF
5561
5562 LIBS="-lm $LIBS"
5563
5564 else
5565 echo "$as_me:$LINENO: checking for drem in -lm" >&5
5566 echo $ECHO_N "checking for drem in -lm... $ECHO_C" >&6
5567 if test "${ac_cv_lib_m_drem+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570 ac_check_lib_save_LIBS=$LIBS
5571 LIBS="-lm /lib/pa1.1/libM.a
5572 $LIBS"
5573 cat >conftest.$ac_ext <<_ACEOF
5574 /* confdefs.h. */
5575 _ACEOF
5576 cat confdefs.h >>conftest.$ac_ext
5577 cat >>conftest.$ac_ext <<_ACEOF
5578 /* end confdefs.h. */
5579
5580 /* Override any gcc2 internal prototype to avoid an error. */
5581 #ifdef __cplusplus
5582 extern "C"
5583 #endif
5584 /* We use char because int might match the return type of a gcc2
5585 builtin and then its argument prototype would still apply. */
5586 char drem ();
5587 int
5588 main ()
5589 {
5590 drem ();
5591 ;
5592 return 0;
5593 }
5594 _ACEOF
5595 rm -f conftest.$ac_objext conftest$ac_exeext
5596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597 (eval $ac_link) 2>conftest.er1
5598 ac_status=$?
5599 grep -v '^ *+' conftest.er1 >conftest.err
5600 rm -f conftest.er1
5601 cat conftest.err >&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); } &&
5604 { ac_try='test -z "$ac_c_werror_flag"
5605 || test ! -s conftest.err'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 (eval $ac_try) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; } &&
5611 { ac_try='test -s conftest$ac_exeext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5613 (eval $ac_try) 2>&5
5614 ac_status=$?
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5617 ac_cv_lib_m_drem=yes
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622 ac_cv_lib_m_drem=no
5623 fi
5624 rm -f conftest.err conftest.$ac_objext \
5625 conftest$ac_exeext conftest.$ac_ext
5626 LIBS=$ac_check_lib_save_LIBS
5627 fi
5628 echo "$as_me:$LINENO: result: $ac_cv_lib_m_drem" >&5
5629 echo "${ECHO_T}$ac_cv_lib_m_drem" >&6
5630 if test $ac_cv_lib_m_drem = yes; then
5631 MATH_LIBS="$MATH_LIBS /lib/pa1.1/libM.a"
5632
5633 fi
5634
5635 fi
5636
5637 fi
5638
5639 # store the current list of libraries, add the math libraries to LIBS,
5640 # check for erf(), then reset the value of LIBS.
5641 asc_keep_LIBS="$LIBS"
5642 LIBS="$LIBS $MATH_LIBS"
5643
5644 for ac_func in erf
5645 do
5646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5647 echo "$as_me:$LINENO: checking for $ac_func" >&5
5648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5649 if eval "test \"\${$as_ac_var+set}\" = set"; then
5650 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 else
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5660 #define $ac_func innocuous_$ac_func
5661
5662 /* System header to define __stub macros and hopefully few prototypes,
5663 which can conflict with char $ac_func (); below.
5664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5665 <limits.h> exists even on freestanding compilers. */
5666
5667 #ifdef __STDC__
5668 # include <limits.h>
5669 #else
5670 # include <assert.h>
5671 #endif
5672
5673 #undef $ac_func
5674
5675 /* Override any gcc2 internal prototype to avoid an error. */
5676 #ifdef __cplusplus
5677 extern "C"
5678 {
5679 #endif
5680 /* We use char because int might match the return type of a gcc2
5681 builtin and then its argument prototype would still apply. */
5682 char $ac_func ();
5683 /* The GNU C library defines this for functions which it implements
5684 to always fail with ENOSYS. Some functions are actually named
5685 something starting with __ and the normal name is an alias. */
5686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5687 choke me
5688 #else
5689 char (*f) () = $ac_func;
5690 #endif
5691 #ifdef __cplusplus
5692 }
5693 #endif
5694
5695 int
5696 main ()
5697 {
5698 return f != $ac_func;
5699 ;
5700 return 0;
5701 }
5702 _ACEOF
5703 rm -f conftest.$ac_objext conftest$ac_exeext
5704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5705 (eval $ac_link) 2>conftest.er1
5706 ac_status=$?
5707 grep -v '^ *+' conftest.er1 >conftest.err
5708 rm -f conftest.er1
5709 cat conftest.err >&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); } &&
5712 { ac_try='test -z "$ac_c_werror_flag"
5713 || test ! -s conftest.err'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5715 (eval $ac_try) 2>&5
5716 ac_status=$?
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; } &&
5719 { ac_try='test -s conftest$ac_exeext'
5720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5721 (eval $ac_try) 2>&5
5722 ac_status=$?
5723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724 (exit $ac_status); }; }; then
5725 eval "$as_ac_var=yes"
5726 else
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730 eval "$as_ac_var=no"
5731 fi
5732 rm -f conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext conftest.$ac_ext
5734 fi
5735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5737 if test `eval echo '${'$as_ac_var'}'` = yes; then
5738 cat >>confdefs.h <<_ACEOF
5739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5740 _ACEOF
5741
5742 fi
5743 done
5744
5745 LIBS="$asc_keep_LIBS"
5746
5747 #----------------------------------------------
5748 # Check for 'vsnprintf' -- there seems to be a problem with in
5749 # on cygwin.
5750
5751
5752
5753
5754
5755
5756 for ac_func in snprintf vsnprintf
5757 do
5758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5759 echo "$as_me:$LINENO: checking for $ac_func" >&5
5760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5761 if eval "test \"\${$as_ac_var+set}\" = set"; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5772 #define $ac_func innocuous_$ac_func
5773
5774 /* System header to define __stub macros and hopefully few prototypes,
5775 which can conflict with char $ac_func (); below.
5776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5777 <limits.h> exists even on freestanding compilers. */
5778
5779 #ifdef __STDC__
5780 # include <limits.h>
5781 #else
5782 # include <assert.h>
5783 #endif
5784
5785 #undef $ac_func
5786
5787 /* Override any gcc2 internal prototype to avoid an error. */
5788 #ifdef __cplusplus
5789 extern "C"
5790 {
5791 #endif
5792 /* We use char because int might match the return type of a gcc2
5793 builtin and then its argument prototype would still apply. */
5794 char $ac_func ();
5795 /* The GNU C library defines this for functions which it implements
5796 to always fail with ENOSYS. Some functions are actually named
5797 something starting with __ and the normal name is an alias. */
5798 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5799 choke me
5800 #else
5801 char (*f) () = $ac_func;
5802 #endif
5803 #ifdef __cplusplus
5804 }
5805 #endif
5806
5807 int
5808 main ()
5809 {
5810 return f != $ac_func;
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 rm -f conftest.$ac_objext conftest$ac_exeext
5816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5817 (eval $ac_link) 2>conftest.er1
5818 ac_status=$?
5819 grep -v '^ *+' conftest.er1 >conftest.err
5820 rm -f conftest.er1
5821 cat conftest.err >&5
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); } &&
5824 { ac_try='test -z "$ac_c_werror_flag"
5825 || test ! -s conftest.err'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest$ac_exeext'
5832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5833 (eval $ac_try) 2>&5
5834 ac_status=$?
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); }; }; then
5837 eval "$as_ac_var=yes"
5838 else
5839 echo "$as_me: failed program was:" >&5
5840 sed 's/^/| /' conftest.$ac_ext >&5
5841
5842 eval "$as_ac_var=no"
5843 fi
5844 rm -f conftest.err conftest.$ac_objext \
5845 conftest$ac_exeext conftest.$ac_ext
5846 fi
5847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5848 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5849 if test `eval echo '${'$as_ac_var'}'` = yes; then
5850 cat >>confdefs.h <<_ACEOF
5851 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5852 _ACEOF
5853
5854 fi
5855 done
5856
5857 echo "$as_me:$LINENO: checking for working snprintf" >&5
5858 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
5859 if test "${ac_cv_have_working_snprintf+set}" = set; then
5860 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 else
5862 if test "$cross_compiling" = yes; then
5863 ac_cv_have_working_snprintf=cross
5864 else
5865 cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h. */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5871 #include <stdio.h>
5872
5873 int main(void)
5874 {
5875 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
5876 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
5877 int i;
5878 i = snprintf (bufs, 2, "%s", "111");
5879 if (strcmp (bufs, "1")) exit (1);
5880 if (i != 3) exit (1);
5881 i = snprintf (bufd, 2, "%d", 111);
5882 if (strcmp (bufd, "1")) exit (1);
5883 if (i != 3) exit (1);
5884 exit(0);
5885 }
5886 _ACEOF
5887 rm -f conftest$ac_exeext
5888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5889 (eval $ac_link) 2>&5
5890 ac_status=$?
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5894 (eval $ac_try) 2>&5
5895 ac_status=$?
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); }; }; then
5898 ac_cv_have_working_snprintf=yes
5899 else
5900 echo "$as_me: program exited with status $ac_status" >&5
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 ( exit $ac_status )
5905 ac_cv_have_working_snprintf=no
5906 fi
5907 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5908 fi
5909 fi
5910
5911 echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
5912 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6
5913 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
5914 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
5915 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918 if test "$cross_compiling" = yes; then
5919 ac_cv_have_working_vsnprintf=cross
5920 else
5921 cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h. */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 #include <stdio.h>
5928 #include <stdarg.h>
5929
5930 int my_vsnprintf (char *buf, const char *tmpl, ...)
5931 {
5932 int i;
5933 va_list args;
5934 va_start (args, tmpl);
5935 i = vsnprintf (buf, 2, tmpl, args);
5936 va_end (args);
5937 return i;
5938 }
5939
5940 int main(void)
5941 {
5942 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
5943 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
5944 int i;
5945 i = my_vsnprintf (bufs, "%s", "111");
5946 if (strcmp (bufs, "1")) exit (1);
5947 if (i != 3) exit (1);
5948 i = my_vsnprintf (bufd, "%d", 111);
5949 if (strcmp (bufd, "1")) exit (1);
5950 if (i != 3) exit (1);
5951 exit(0);
5952 }
5953 _ACEOF
5954 rm -f conftest$ac_exeext
5955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5956 (eval $ac_link) 2>&5
5957 ac_status=$?
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961 (eval $ac_try) 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }; }; then
5965 ac_cv_have_working_vsnprintf=yes
5966 else
5967 echo "$as_me: program exited with status $ac_status" >&5
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5970
5971 ( exit $ac_status )
5972 ac_cv_have_working_vsnprintf=no
5973 fi
5974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5975 fi
5976 fi
5977
5978 echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
5979 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6
5980 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
5981 case $LIBOBJS in
5982 "snprintf.$ac_objext" | \
5983 *" snprintf.$ac_objext" | \
5984 "snprintf.$ac_objext "* | \
5985 *" snprintf.$ac_objext "* ) ;;
5986 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
5987 esac
5988
5989 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
5990 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
5991
5992 cat >>confdefs.h <<\_ACEOF
5993 #define PREFER_PORTABLE_SNPRINTF 1
5994 _ACEOF
5995
5996 fi
5997
5998 #--------------------------------------------------------------------
5999 # Check for X11.
6000 # We'll use the simple autoconf builtin macro for finding
6001 # X11 until we find a reason not to.
6002 #
6003 # On Solaris and IRIX, add the path to the X library to the
6004 # run-time shared-library-search-path so the ASCEND binary
6005 # can find the X library without the user having to set
6006 # LD_LIBRARY_PATH
6007 #--------------------------------------------------------------------
6008 echo "$as_me:$LINENO: checking for X" >&5
6009 echo $ECHO_N "checking for X... $ECHO_C" >&6
6010
6011
6012 # Check whether --with-x or --without-x was given.
6013 if test "${with_x+set}" = set; then
6014 withval="$with_x"
6015
6016 fi;
6017 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6018 if test "x$with_x" = xno; then
6019 # The user explicitly disabled X.
6020 have_x=disabled
6021 else
6022 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6023 # Both variables are already set.
6024 have_x=yes
6025 else
6026 if test "${ac_cv_have_x+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 # One or both of the vars are not set, and there is no cached value.
6030 ac_x_includes=no ac_x_libraries=no
6031 rm -fr conftest.dir
6032 if mkdir conftest.dir; then
6033 cd conftest.dir
6034 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6035 cat >Imakefile <<'_ACEOF'
6036 acfindx:
6037 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6038 _ACEOF
6039 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6040 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6041 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6042 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6043 for ac_extension in a so sl; do
6044 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6045 test -f $ac_im_libdir/libX11.$ac_extension; then
6046 ac_im_usrlibdir=$ac_im_libdir; break
6047 fi
6048 done
6049 # Screen out bogus values from the imake configuration. They are
6050 # bogus both because they are the default anyway, and because
6051 # using them would break gcc on systems where it needs fixed includes.
6052 case $ac_im_incroot in
6053 /usr/include) ;;
6054 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6055 esac
6056 case $ac_im_usrlibdir in
6057 /usr/lib | /lib) ;;
6058 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6059 esac
6060 fi
6061 cd ..
6062 rm -fr conftest.dir
6063 fi
6064
6065 # Standard set of common directories for X headers.
6066 # Check X11 before X11Rn because it is often a symlink to the current release.
6067 ac_x_header_dirs='
6068 /usr/X11/include
6069 /usr/X11R6/include
6070 /usr/X11R5/include
6071 /usr/X11R4/include
6072
6073 /usr/include/X11
6074 /usr/include/X11R6
6075 /usr/include/X11R5
6076 /usr/include/X11R4
6077
6078 /usr/local/X11/include
6079 /usr/local/X11R6/include
6080 /usr/local/X11R5/include
6081 /usr/local/X11R4/include
6082
6083 /usr/local/include/X11
6084 /usr/local/include/X11R6
6085 /usr/local/include/X11R5
6086 /usr/local/include/X11R4
6087
6088 /usr/X386/include
6089 /usr/x386/include
6090 /usr/XFree86/include/X11
6091
6092 /usr/include
6093 /usr/local/include
6094 /usr/unsupported/include
6095 /usr/athena/include
6096 /usr/local/x11r5/include
6097 /usr/lpp/Xamples/include
6098
6099 /usr/openwin/include
6100 /usr/openwin/share/include'
6101
6102 if test "$ac_x_includes" = no; then
6103 # Guess where to find include files, by looking for Intrinsic.h.
6104 # First, try using that file with no special directory specified.
6105 cat >conftest.$ac_ext <<_ACEOF
6106 /* confdefs.h. */
6107 _ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #include <X11/Intrinsic.h>
6112 _ACEOF
6113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6115 ac_status=$?
6116 grep -v '^ *+' conftest.er1 >conftest.err
6117 rm -f conftest.er1
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } >/dev/null; then
6121 if test -s conftest.err; then
6122 ac_cpp_err=$ac_c_preproc_warn_flag
6123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6124 else
6125 ac_cpp_err=
6126 fi
6127 else
6128 ac_cpp_err=yes
6129 fi
6130 if test -z "$ac_cpp_err"; then
6131 # We can compile using X headers with no special include directory.
6132 ac_x_includes=
6133 else
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6136
6137 for ac_dir in $ac_x_header_dirs; do
6138 if test -r "$ac_dir/X11/Intrinsic.h"; then
6139 ac_x_includes=$ac_dir
6140 break
6141 fi
6142 done
6143 fi
6144 rm -f conftest.err conftest.$ac_ext
6145 fi # $ac_x_includes = no
6146
6147 if test "$ac_x_libraries" = no; then
6148 # Check for the libraries.
6149 # See if we find them without any special options.
6150 # Don't add to $LIBS permanently.
6151 ac_save_LIBS=$LIBS
6152 LIBS="-lXt $LIBS"
6153 cat >conftest.$ac_ext <<_ACEOF
6154 /* confdefs.h. */
6155 _ACEOF
6156 cat confdefs.h >>conftest.$ac_ext
6157 cat >>conftest.$ac_ext <<_ACEOF
6158 /* end confdefs.h. */
6159 #include <X11/Intrinsic.h>
6160 int
6161 main ()
6162 {
6163 XtMalloc (0)
6164 ;
6165 return 0;
6166 }
6167 _ACEOF
6168 rm -f conftest.$ac_objext conftest$ac_exeext
6169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6170 (eval $ac_link) 2>conftest.er1
6171 ac_status=$?
6172 grep -v '^ *+' conftest.er1 >conftest.err
6173 rm -f conftest.er1
6174 cat conftest.err >&5
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); } &&
6177 { ac_try='test -z "$ac_c_werror_flag"
6178 || test ! -s conftest.err'
6179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6180 (eval $ac_try) 2>&5
6181 ac_status=$?
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); }; } &&
6184 { ac_try='test -s conftest$ac_exeext'
6185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 (eval $ac_try) 2>&5
6187 ac_status=$?
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); }; }; then
6190 LIBS=$ac_save_LIBS
6191 # We can link X programs with no special library path.
6192 ac_x_libraries=
6193 else
6194 echo "$as_me: failed program was:" >&5
6195 sed 's/^/| /' conftest.$ac_ext >&5
6196
6197 LIBS=$ac_save_LIBS
6198 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6199 do
6200 # Don't even attempt the hair of trying to link an X program!
6201 for ac_extension in a so sl; do
6202 if test -r $ac_dir/libXt.$ac_extension; then
6203 ac_x_libraries=$ac_dir
6204 break 2
6205 fi
6206 done
6207 done
6208 fi
6209 rm -f conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext
6211 fi # $ac_x_libraries = no
6212
6213 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6214 # Didn't find X anywhere. Cache the known absence of X.
6215 ac_cv_have_x="have_x=no"
6216 else
6217 # Record where we found X for the cache.
6218 ac_cv_have_x="have_x=yes \
6219 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6220 fi
6221 fi
6222
6223 fi
6224 eval "$ac_cv_have_x"
6225 fi # $with_x != no
6226
6227 if test "$have_x" != yes; then
6228 echo "$as_me:$LINENO: result: $have_x" >&5
6229 echo "${ECHO_T}$have_x" >&6
6230 no_x=yes
6231 else
6232 # If each of the values was on the command line, it overrides each guess.
6233 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6234 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6235 # Update the cache value to reflect the command line values.
6236 ac_cv_have_x="have_x=yes \
6237 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6238 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6239 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6240 fi
6241
6242 if test -n "$x_includes"; then
6243 X11_INCLUDES="-I$x_includes"
6244 fi
6245 if test -n "$x_libraries"; then
6246 X11_LIBRARIES="-L$x_libraries"
6247 case "$host" in
6248 sparc-sun-solaris*)
6249 X11_RUN_PATH="-R$x_libraries"
6250 ;;
6251 mips-sgi-irix*)
6252 X11_RUN_PATH="-rpath $x_libraries"
6253 ;;
6254 *)
6255 X11_RUN_PATH=""
6256 ;;
6257 esac
6258 fi
6259
6260
6261 #--------------------------------------------------------------------
6262 # Check for the existence of various libraries. The order here
6263 # is important, so that then end up in the right order in the
6264 # command line generated by make. The -lsocket and -lnsl
6265 # libraries require a couple of special tricks:
6266 # 1. Use "connect" and "accept" to check for -lsocket, and
6267 # "gethostbyname" to check for -lnsl.
6268 # 2. Use each function name only once: can't redo a check
6269 # because autoconf caches the results of the last check
6270 # and won't redo it.
6271 # 3. Use -lnsl and -lsocket only if they supply procedures that
6272 # aren't already present in the normal libraries. This is
6273 # because IRIX 5.2 has libraries, but they aren't needed and
6274 # they're bogus: they goof up name resolution if used.
6275 # 4. On some SVR4 systems, can't use -lsocket without -lnsl
6276 # too. To get around this problem, check for both libraries
6277 # together if -lsocket doesn't work by itself.
6278 #--------------------------------------------------------------------
6279
6280 asc_checkBoth=0
6281 echo "$as_me:$LINENO: checking for connect" >&5
6282 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6283 if test "${ac_cv_func_connect+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286 cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h. */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6294 #define connect innocuous_connect
6295
6296 /* System header to define __stub macros and hopefully few prototypes,
6297 which can conflict with char connect (); below.
6298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6299 <limits.h> exists even on freestanding compilers. */
6300
6301 #ifdef __STDC__
6302 # include <limits.h>
6303 #else
6304 # include <assert.h>
6305 #endif
6306
6307 #undef connect
6308
6309 /* Override any gcc2 internal prototype to avoid an error. */
6310 #ifdef __cplusplus
6311 extern "C"
6312 {
6313 #endif
6314 /* We use char because int might match the return type of a gcc2
6315 builtin and then its argument prototype would still apply. */
6316 char connect ();
6317 /* The GNU C library defines this for functions which it implements
6318 to always fail with ENOSYS. Some functions are actually named
6319 something starting with __ and the normal name is an alias. */
6320 #if defined (__stub_connect) || defined (__stub___connect)
6321 choke me
6322 #else
6323 char (*f) () = connect;
6324 #endif
6325 #ifdef __cplusplus
6326 }
6327 #endif
6328
6329 int
6330 main ()
6331 {
6332 return f != connect;
6333 ;
6334 return 0;
6335 }
6336 _ACEOF
6337 rm -f conftest.$ac_objext conftest$ac_exeext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339 (eval $ac_link) 2>conftest.er1
6340 ac_status=$?
6341 grep -v '^ *+' conftest.er1 >conftest.err
6342 rm -f conftest.er1
6343 cat conftest.err >&5
6344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6345 (exit $ac_status); } &&
6346 { ac_try='test -z "$ac_c_werror_flag"
6347 || test ! -s conftest.err'
6348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 (eval $ac_try) 2>&5
6350 ac_status=$?
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); }; } &&
6353 { ac_try='test -s conftest$ac_exeext'
6354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 (eval $ac_try) 2>&5
6356 ac_status=$?
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }; }; then
6359 ac_cv_func_connect=yes
6360 else
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 ac_cv_func_connect=no
6365 fi
6366 rm -f conftest.err conftest.$ac_objext \
6367 conftest$ac_exeext conftest.$ac_ext
6368 fi
6369 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6370 echo "${ECHO_T}$ac_cv_func_connect" >&6
6371 if test $ac_cv_func_connect = yes; then
6372 asc_checkSocket=0
6373 else
6374 asc_checkSocket=1
6375 fi
6376
6377 if test "$asc_checkSocket" = 1; then
6378 echo "$as_me:$LINENO: checking for printf in -lsocket" >&5
6379 echo $ECHO_N "checking for printf in -lsocket... $ECHO_C" >&6
6380 if test "${ac_cv_lib_socket_printf+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382 else
6383 ac_check_lib_save_LIBS=$LIBS
6384 LIBS="-lsocket $LIBS"
6385 cat >conftest.$ac_ext <<_ACEOF
6386 /* confdefs.h. */
6387 _ACEOF
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6391
6392 /* Override any gcc2 internal prototype to avoid an error. */
6393 #ifdef __cplusplus
6394 extern "C"
6395 #endif
6396 /* We use char because int might match the return type of a gcc2
6397 builtin and then its argument prototype would still apply. */
6398 char printf ();
6399 int
6400 main ()
6401 {
6402 printf ();
6403 ;
6404 return 0;
6405 }
6406 _ACEOF
6407 rm -f conftest.$ac_objext conftest$ac_exeext
6408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6409 (eval $ac_link) 2>conftest.er1
6410 ac_status=$?
6411 grep -v '^ *+' conftest.er1 >conftest.err
6412 rm -f conftest.er1
6413 cat conftest.err >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } &&
6416 { ac_try='test -z "$ac_c_werror_flag"
6417 || test ! -s conftest.err'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 (eval $ac_try) 2>&5
6420 ac_status=$?
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest$ac_exeext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 (eval $ac_try) 2>&5
6426 ac_status=$?
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_lib_socket_printf=yes
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ac_cv_lib_socket_printf=no
6435 fi
6436 rm -f conftest.err conftest.$ac_objext \
6437 conftest$ac_exeext conftest.$ac_ext
6438 LIBS=$ac_check_lib_save_LIBS
6439 fi
6440 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_printf" >&5
6441 echo "${ECHO_T}$ac_cv_lib_socket_printf" >&6
6442 if test $ac_cv_lib_socket_printf = yes; then
6443 X11_EXTRA_LIBS="-lsocket"
6444 else
6445 asc_checkBoth=1
6446 fi
6447
6448 fi
6449 if test "$asc_checkBoth" = 1; then
6450 asc_oldLibs=$LIBS
6451 X11_EXTRA_LIBS="-lsocket -lnsl"
6452 LIBS="$LIBS $X11_EXTRA_LIBS"
6453 echo "$as_me:$LINENO: checking for accept" >&5
6454 echo $ECHO_N "checking for accept... $ECHO_C" >&6
6455 if test "${ac_cv_func_accept+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458 cat >conftest.$ac_ext <<_ACEOF
6459 /* confdefs.h. */
6460 _ACEOF
6461 cat confdefs.h >>conftest.$ac_ext
6462 cat >>conftest.$ac_ext <<_ACEOF
6463 /* end confdefs.h. */
6464 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
6465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6466 #define accept innocuous_accept
6467
6468 /* System header to define __stub macros and hopefully few prototypes,
6469 which can conflict with char accept (); below.
6470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6471 <limits.h> exists even on freestanding compilers. */
6472
6473 #ifdef __STDC__
6474 # include <limits.h>
6475 #else
6476 # include <assert.h>
6477 #endif
6478
6479 #undef accept
6480
6481 /* Override any gcc2 internal prototype to avoid an error. */
6482 #ifdef __cplusplus
6483 extern "C"
6484 {
6485 #endif
6486 /* We use char because int might match the return type of a gcc2
6487 builtin and then its argument prototype would still apply. */
6488 char accept ();
6489 /* The GNU C library defines this for functions which it implements
6490 to always fail with ENOSYS. Some functions are actually named
6491 something starting with __ and the normal name is an alias. */
6492 #if defined (__stub_accept) || defined (__stub___accept)
6493 choke me
6494 #else
6495 char (*f) () = accept;
6496 #endif
6497 #ifdef __cplusplus
6498 }
6499 #endif
6500
6501 int
6502 main ()
6503 {
6504 return f != accept;
6505 ;
6506 return 0;
6507 }
6508 _ACEOF
6509 rm -f conftest.$ac_objext conftest$ac_exeext
6510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6511 (eval $ac_link) 2>conftest.er1
6512 ac_status=$?
6513 grep -v '^ *+' conftest.er1 >conftest.err
6514 rm -f conftest.er1
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } &&
6518 { ac_try='test -z "$ac_c_werror_flag"
6519 || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6521 (eval $ac_try) 2>&5
6522 ac_status=$?
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest$ac_exeext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527 (eval $ac_try) 2>&5
6528 ac_status=$?
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_cv_func_accept=yes
6532 else
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6535
6536 ac_cv_func_accept=no
6537 fi
6538 rm -f conftest.err conftest.$ac_objext \
6539 conftest$ac_exeext conftest.$ac_ext
6540 fi
6541 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
6542 echo "${ECHO_T}$ac_cv_func_accept" >&6
6543 if test $ac_cv_func_accept = yes; then
6544 asc_checkNsl=0
6545 else
6546 X11_EXTRA_LIBS=""
6547 fi
6548
6549 LIBS=$asc_oldLibs
6550 fi
6551 asc_oldLibs=$LIBS
6552 LIBS="$LIBS $X11_EXTRA_LIBS"
6553 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6554 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6555 if test "${ac_cv_func_gethostbyname+set}" = set; then
6556 echo $ECHO_N "(cached) $ECHO_C" >&6
6557 else
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h. */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6566 #define gethostbyname innocuous_gethostbyname
6567
6568 /* System header to define __stub macros and hopefully few prototypes,
6569 which can conflict with char gethostbyname (); below.
6570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6571 <limits.h> exists even on freestanding compilers. */
6572
6573 #ifdef __STDC__
6574 # include <limits.h>
6575 #else
6576 # include <assert.h>
6577 #endif
6578
6579 #undef gethostbyname
6580
6581 /* Override any gcc2 internal prototype to avoid an error. */
6582 #ifdef __cplusplus
6583 extern "C"
6584 {
6585 #endif
6586 /* We use char because int might match the return type of a gcc2
6587 builtin and then its argument prototype would still apply. */
6588 char gethostbyname ();
6589 /* The GNU C library defines this for functions which it implements
6590 to always fail with ENOSYS. Some functions are actually named
6591 something starting with __ and the normal name is an alias. */
6592 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6593 choke me
6594 #else
6595 char (*f) () = gethostbyname;
6596 #endif
6597 #ifdef __cplusplus
6598 }
6599 #endif
6600
6601 int
6602 main ()
6603 {
6604 return f != gethostbyname;
6605 ;
6606 return 0;
6607 }
6608 _ACEOF
6609 rm -f conftest.$ac_objext conftest$ac_exeext
6610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6611 (eval $ac_link) 2>conftest.er1
6612 ac_status=$?
6613 grep -v '^ *+' conftest.er1 >conftest.err
6614 rm -f conftest.er1
6615 cat conftest.err >&5
6616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617 (exit $ac_status); } &&
6618 { ac_try='test -z "$ac_c_werror_flag"
6619 || test ! -s conftest.err'
6620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6621 (eval $ac_try) 2>&5
6622 ac_status=$?
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); }; } &&
6625 { ac_try='test -s conftest$ac_exeext'
6626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6627 (eval $ac_try) 2>&5
6628 ac_status=$?
6629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); }; }; then
6631 ac_cv_func_gethostbyname=yes
6632 else
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 ac_cv_func_gethostbyname=no
6637 fi
6638 rm -f conftest.err conftest.$ac_objext \
6639 conftest$ac_exeext conftest.$ac_ext
6640 fi
6641 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6642 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6643 if test $ac_cv_func_gethostbyname = yes; then
6644 :
6645 else
6646 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
6647 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
6648 if test "${ac_cv_lib_nsl_printf+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 ac_check_lib_save_LIBS=$LIBS
6652 LIBS="-lnsl $LIBS"
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659
6660 /* Override any gcc2 internal prototype to avoid an error. */
6661 #ifdef __cplusplus
6662 extern "C"
6663 #endif
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6666 char printf ();
6667 int
6668 main ()
6669 {
6670 printf ();
6671 ;
6672 return 0;
6673 }
6674 _ACEOF
6675 rm -f conftest.$ac_objext conftest$ac_exeext
6676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6677 (eval $ac_link) 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -z "$ac_c_werror_flag"
6685 || test ! -s conftest.err'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687 (eval $ac_try) 2>&5
6688 ac_status=$?
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; } &&
6691 { ac_try='test -s conftest$ac_exeext'
6692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 (eval $ac_try) 2>&5
6694 ac_status=$?
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); }; }; then
6697 ac_cv_lib_nsl_printf=yes
6698 else
6699 echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6701
6702 ac_cv_lib_nsl_printf=no
6703 fi
6704 rm -f conftest.err conftest.$ac_objext \
6705 conftest$ac_exeext conftest.$ac_ext
6706 LIBS=$ac_check_lib_save_LIBS
6707 fi
6708 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
6709 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
6710 if test $ac_cv_lib_nsl_printf = yes; then
6711 X11_EXTRA_LIBS="$X11_EXTRA_LIBS -lnsl"
6712 fi
6713
6714 fi
6715
6716 LIBS=$asc_oldLibs
6717
6718
6719 #--------------------------------------------------------------------
6720 # The following comes directly from the configure.in file for
6721 # Tcl8.0.
6722 #
6723 # The statements below define a collection of symbols related to
6724 # dynamic loading and shared libraries:
6725 #
6726 # DL_OBJS - Name of the object file that implements dynamic
6727 # loading for ASCEND on this system.
6728 # DL_LIBS - Library file(s) to include in tclsh and other base
6729 # applications in order for the "load" command to work.
6730 # LD_FLAGS - Flags to pass to the compiler when linking object
6731 # files into an executable application binary such
6732 # as tclsh.
6733 # LD_SEARCH_FLAGS-Flags to pass to ld, such as "-R /usr/local/tcl/lib",
6734 # that tell the run-time dynamic linker where to look
6735 # for shared libraries such as libtcl.so. Depends on
6736 # the variable LIB_RUNTIME_DIR in the Makefile.
6737 # MAKE_LIB - Command to execute to build the ASCEND library;
6738 # differs depending on whether or not ASCEND is being
6739 # compiled as a shared library.
6740 # SHLIB_CFLAGS - Flags to pass to cc when compiling the components
6741 # of a shared library (may request position-independent
6742 # code, among other things).
6743 # SHLIB_LD - Base command to use for combining object files
6744 # into a shared library.
6745 # SHLIB_LD_LIBS - Dependent libraries for the linker to scan when
6746 # creating shared libraries. This symbol typically
6747 # goes at the end of the "ld" commands that build
6748 # shared libraries. The value of the symbol is
6749 # "${LIBS}" if all of the dependent libraries should
6750 # be specified when creating a shared library. If
6751 # dependent libraries should not be specified (as on
6752 # SunOS 4.x, where they cause the link to fail, or in
6753 # general if ASCEND and Tk aren't themselves shared
6754 # libraries), then this symbol has an empty string
6755 # as its value.
6756 # SHLIB_SUFFIX - Suffix to use for the names of dynamically loadable
6757 # extensions. An empty string means we don't know how
6758 # to use shared libraries on this platform.
6759 # ASC_LIB_FILE - Name of the file that contains the ASCEND library, such
6760 # as libtcl7.8.so or libtcl7.8.a.
6761 # ASC_LIB_SUFFIX -Specifies everything that comes after the "libtcl"
6762 # in the shared library name, using the $VERSION variable
6763 # to put the version in the right place. This is used
6764 # by platforms that need non-standard library names.
6765 # Examples: ${VERSION}.so.1.1 on NetBSD, since it needs
6766 # to have a version after the .so, and ${VERSION}.a
6767 # on AIX, since the ASCEND shared library needs to have
6768 # a .a extension whereas shared objects for loadable
6769 # extensions have a .so extension. Defaults to
6770 # ${VERSION}${SHLIB_SUFFIX}.
6771 #--------------------------------------------------------------------
6772
6773 # Step 1: set the variable "system" to hold the name and version number
6774 # for the system. This can usually be done via the "uname" command, but
6775 # there are a few systems, like Next, where this doesn't work.
6776
6777 # Changed this to use the "$host" variable from AC_CANONICAL_HOST
6778
6779 # Step 2: check for existence of -ldl library. This is needed because
6780 # Linux can use either -ldl or -ldld for dynamic loading.
6781
6782 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6783 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6784 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787 ac_check_lib_save_LIBS=$LIBS
6788 LIBS="-ldl $LIBS"
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h. */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795
6796 /* Override any gcc2 internal prototype to avoid an error. */
6797 #ifdef __cplusplus
6798 extern "C"
6799 #endif
6800 /* We use char because int might match the return type of a gcc2
6801 builtin and then its argument prototype would still apply. */
6802 char dlopen ();
6803 int
6804 main ()
6805 {
6806 dlopen ();
6807 ;
6808 return 0;
6809 }
6810 _ACEOF
6811 rm -f conftest.$ac_objext conftest$ac_exeext
6812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6813 (eval $ac_link) 2>conftest.er1
6814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } &&
6820 { ac_try='test -z "$ac_c_werror_flag"
6821 || test ! -s conftest.err'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6823 (eval $ac_try) 2>&5
6824 ac_status=$?
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; } &&
6827 { ac_try='test -s conftest$ac_exeext'
6828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6829 (eval $ac_try) 2>&5
6830 ac_status=$?
6831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); }; }; then
6833 ac_cv_lib_dl_dlopen=yes
6834 else
6835 echo "$as_me: failed program was:" >&5
6836 sed 's/^/| /' conftest.$ac_ext >&5
6837
6838 ac_cv_lib_dl_dlopen=no
6839 fi
6840 rm -f conftest.err conftest.$ac_objext \
6841 conftest$ac_exeext conftest.$ac_ext
6842 LIBS=$ac_check_lib_save_LIBS
6843 fi
6844 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6845 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6846 if test $ac_cv_lib_dl_dlopen = yes; then
6847 have_dl=yes
6848 else
6849 have_dl=no
6850 fi
6851
6852
6853 # Step 3: set configuration options based on system name and version.
6854
6855 ASC_SHARED_LIB_SUFFIX=""
6856 ASC_UNSHARED_LIB_SUFFIX=""
6857 ASC_LIB_VERSIONS_OK=ok
6858 case $host in
6859 *-aix*)
6860 SHLIB_CFLAGS=""
6861 SHLIB_LD="$fullpathsrcdir/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512"
6862 SHLIB_LD_LIBS='${LIBS}'
6863 SHLIB_SUFFIX=".so"
6864 DL_OBJS=""
6865 DL_LIBS="-lld"
6866 LD_FLAGS=""
6867 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6868 ASC_SHARED_LIB_SUFFIX='${VERSION}.a'
6869 ;;
6870 *-bsdi*)
6871 SHLIB_CFLAGS=""
6872 SHLIB_LD="shlicc -r"
6873 SHLIB_LD_LIBS='${LIBS}'
6874 SHLIB_SUFFIX=".so"
6875 DL_OBJS=""
6876 DL_LIBS="-ldl"
6877 LD_FLAGS=""
6878 LD_SEARCH_FLAGS=""
6879 ;;
6880 *-dgux*)
6881 SHLIB_CFLAGS="-K PIC"
6882 SHLIB_LD="cc -G"
6883 SHLIB_LD_LIBS=""
6884 SHLIB_SUFFIX=".so"
6885 DL_OBJS=""
6886 DL_LIBS="-ldl"
6887 LD_FLAGS=""
6888 LD_SEARCH_FLAGS=""
6889 ;;
6890 *-hpux8*|*-hpux9*|*-hpux10*)
6891 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6892 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6893 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 ac_check_lib_save_LIBS=$LIBS
6897 LIBS="-ldld $LIBS"
6898 cat >conftest.$ac_ext <<_ACEOF
6899 /* confdefs.h. */
6900 _ACEOF
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6904
6905 /* Override any gcc2 internal prototype to avoid an error. */
6906 #ifdef __cplusplus
6907 extern "C"
6908 #endif
6909 /* We use char because int might match the return type of a gcc2
6910 builtin and then its argument prototype would still apply. */
6911 char shl_load ();
6912 int
6913 main ()
6914 {
6915 shl_load ();
6916 ;
6917 return 0;
6918 }
6919 _ACEOF
6920 rm -f conftest.$ac_objext conftest$ac_exeext
6921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6922 (eval $ac_link) 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } &&
6929 { ac_try='test -z "$ac_c_werror_flag"
6930 || test ! -s conftest.err'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6932 (eval $ac_try) 2>&5
6933 ac_status=$?
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; } &&
6936 { ac_try='test -s conftest$ac_exeext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6938 (eval $ac_try) 2>&5
6939 ac_status=$?
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6942 ac_cv_lib_dld_shl_load=yes
6943 else
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947 ac_cv_lib_dld_shl_load=no
6948 fi
6949 rm -f conftest.err conftest.$ac_objext \
6950 conftest$ac_exeext conftest.$ac_ext
6951 LIBS=$ac_check_lib_save_LIBS
6952 fi
6953 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6954 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6955 if test $ac_cv_lib_dld_shl_load = yes; then
6956 tcl_ok=yes
6957 else
6958 tcl_ok=no
6959 fi
6960
6961 if test "$tcl_ok" = yes; then
6962 SHLIB_CFLAGS="+z"
6963 SHLIB_LD="ld -b"
6964 SHLIB_LD_LIBS=""
6965 SHLIB_SUFFIX=".sl"
6966 DL_OBJS=""
6967 DL_LIBS="-ldld"
6968 LD_FLAGS="-Wl,-E"
6969 LD_SEARCH_FLAGS='-Wl,+b,${LIB_RUNTIME_DIR}:.'
6970 fi
6971 ;;
6972 *-irix4*)
6973 SHLIB_CFLAGS="-G 0"
6974 SHLIB_SUFFIX=".a"
6975 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
6976 SHLIB_LD_LIBS='${LIBS}'
6977 DL_OBJS=""
6978 DL_LIBS=""
6979 LD_FLAGS="-Wl,-D,08000000"
6980 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
6981 ASC_SHARED_LIB_SUFFIX='${VERSION}.a'
6982 ;;
6983 *-irix5*|*-irix6.*)
6984 SHLIB_CFLAGS=""
6985 SHLIB_LD="ld -shared -rdata_shared"
6986 SHLIB_LD_LIBS=""
6987 SHLIB_SUFFIX=".so"
6988 DL_OBJS=""
6989 DL_LIBS=""
6990 LD_FLAGS=""
6991 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
6992 ;;
6993 *-linux*)
6994 SHLIB_CFLAGS="-fPIC"
6995 SHLIB_LD_LIBS=""
6996 SHLIB_SUFFIX=".so"
6997 if test "$have_dl" = yes; then
6998 SHLIB_LD="${CC} -shared"
6999 DL_OBJS=""
7000 DL_LIBS="-ldl"
7001 LD_FLAGS="-rdynamic"
7002 LD_SEARCH_FLAGS=""
7003 else
7004 if test "${ac_cv_header_dld_h+set}" = set; then
7005 echo "$as_me:$LINENO: checking for dld.h" >&5
7006 echo $ECHO_N "checking for dld.h... $ECHO_C" >&6
7007 if test "${ac_cv_header_dld_h+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 fi
7010 echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
7011 echo "${ECHO_T}$ac_cv_header_dld_h" >&6
7012 else
7013 # Is the header compilable?
7014 echo "$as_me:$LINENO: checking dld.h usability" >&5
7015 echo $ECHO_N "checking dld.h usability... $ECHO_C" >&6
7016 cat >conftest.$ac_ext <<_ACEOF
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 $ac_includes_default
7023 #include <dld.h>
7024 _ACEOF
7025 rm -f conftest.$ac_objext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7027 (eval $ac_compile) 2>conftest.er1
7028 ac_status=$?
7029 grep -v '^ *+' conftest.er1 >conftest.err
7030 rm -f conftest.er1
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7037 (eval $ac_try) 2>&5
7038 ac_status=$?
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest.$ac_objext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7043 (eval $ac_try) 2>&5
7044 ac_status=$?
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7047 ac_header_compiler=yes
7048 else
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7051
7052 ac_header_compiler=no
7053 fi
7054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7055 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7056 echo "${ECHO_T}$ac_header_compiler" >&6
7057
7058 # Is the header present?
7059 echo "$as_me:$LINENO: checking dld.h presence" >&5
7060 echo $ECHO_N "checking dld.h presence... $ECHO_C" >&6
7061 cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h. */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */
7067 #include <dld.h>
7068 _ACEOF
7069 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7071 ac_status=$?
7072 grep -v '^ *+' conftest.er1 >conftest.err
7073 rm -f conftest.er1
7074 cat conftest.err >&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } >/dev/null; then
7077 if test -s conftest.err; then
7078 ac_cpp_err=$ac_c_preproc_warn_flag
7079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7080 else
7081 ac_cpp_err=
7082 fi
7083 else
7084 ac_cpp_err=yes
7085 fi
7086 if test -z "$ac_cpp_err"; then
7087 ac_header_preproc=yes
7088 else
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ac_header_preproc=no
7093 fi
7094 rm -f conftest.err conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7096 echo "${ECHO_T}$ac_header_preproc" >&6
7097
7098 # So? What about this header?
7099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7100 yes:no: )
7101 { echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
7102 echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7103 { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
7104 echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
7105 ac_header_preproc=yes
7106 ;;
7107 no:yes:* )
7108 { echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
7109 echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
7110 { echo "$as_me:$LINENO: WARNING: dld.h: check for missing prerequisite headers?" >&5
7111 echo "$as_me: WARNING: dld.h: check for missing prerequisite headers?" >&2;}
7112 { echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
7113 echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
7114 { echo "$as_me:$LINENO: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&5
7115 echo "$as_me: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&2;}
7116 { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
7117 echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
7118 { echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
7119 echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
7120 (
7121 cat <<\_ASBOX
7122 ## ------------------------------------------ ##
7123 ## Report this to the AC_PACKAGE_NAME lists. ##
7124 ## ------------------------------------------ ##
7125 _ASBOX
7126 ) |
7127 sed "s/^/$as_me: WARNING: /" >&2
7128 ;;
7129 esac
7130 echo "$as_me:$LINENO: checking for dld.h" >&5
7131 echo $ECHO_N "checking for dld.h... $ECHO_C" >&6
7132 if test "${ac_cv_header_dld_h+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 else
7135 ac_cv_header_dld_h=$ac_header_preproc
7136 fi
7137 echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
7138 echo "${ECHO_T}$ac_cv_header_dld_h" >&6
7139
7140 fi
7141 if test $ac_cv_header_dld_h = yes; then
7142
7143 SHLIB_LD="ld -shared"
7144 DL_OBJS=""
7145 DL_LIBS="-ldld"
7146 LD_FLAGS=""
7147 LD_SEARCH_FLAGS=""
7148 fi
7149
7150
7151 fi
7152 ;;
7153 MP-RAS-02*)
7154 SHLIB_CFLAGS="-K PIC"
7155 SHLIB_LD="cc -G"
7156 SHLIB_LD_LIBS=""
7157 SHLIB_SUFFIX=".so"
7158 DL_OBJS=""
7159 DL_LIBS="-ldl"
7160 LD_FLAGS=""
7161 LD_SEARCH_FLAGS=""
7162 ;;
7163 MP-RAS-*)
7164 SHLIB_CFLAGS="-K PIC"
7165 SHLIB_LD="cc -G"
7166 SHLIB_LD_LIBS=""
7167 SHLIB_SUFFIX=".so"
7168 DL_OBJS=""
7169 DL_LIBS="-ldl"
7170 LD_FLAGS="-Wl,-Bexport"
7171 LD_SEARCH_FLAGS=""
7172 ;;
7173 *-netbsd*|*-freebsd*|*-openbsd*)
7174 # Not available on all versions: check for include file.
7175 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7176 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7177 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
7178 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 fi
7181 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7182 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
7183 else
7184 # Is the header compilable?
7185 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
7186 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
7187 cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h. */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h. */
7193 $ac_includes_default
7194 #include <dlfcn.h>
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7198 (eval $ac_compile) 2>conftest.er1
7199 ac_status=$?
7200 grep -v '^ *+' conftest.er1 >conftest.err
7201 rm -f conftest.er1
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } &&
7205 { ac_try='test -z "$ac_c_werror_flag"
7206 || test ! -s conftest.err'
7207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 (eval $ac_try) 2>&5
7209 ac_status=$?
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; } &&
7212 { ac_try='test -s conftest.$ac_objext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214 (eval $ac_try) 2>&5
7215 ac_status=$?
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 ac_header_compiler=yes
7219 else
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7222
7223 ac_header_compiler=no
7224 fi
7225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7227 echo "${ECHO_T}$ac_header_compiler" >&6
7228
7229 # Is the header present?
7230 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
7231 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
7232 cat >conftest.$ac_ext <<_ACEOF
7233 /* confdefs.h. */
7234 _ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 #include <dlfcn.h>
7239 _ACEOF
7240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7242 ac_status=$?
7243 grep -v '^ *+' conftest.er1 >conftest.err
7244 rm -f conftest.er1
7245 cat conftest.err >&5
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } >/dev/null; then
7248 if test -s conftest.err; then
7249 ac_cpp_err=$ac_c_preproc_warn_flag
7250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7251 else
7252 ac_cpp_err=
7253 fi
7254 else
7255 ac_cpp_err=yes
7256 fi
7257 if test -z "$ac_cpp_err"; then
7258 ac_header_preproc=yes
7259 else
7260 echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263 ac_header_preproc=no
7264 fi
7265 rm -f conftest.err conftest.$ac_ext
7266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7267 echo "${ECHO_T}$ac_header_preproc" >&6
7268
7269 # So? What about this header?
7270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7271 yes:no: )
7272 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
7273 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7274 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
7275 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
7276 ac_header_preproc=yes
7277 ;;
7278 no:yes:* )
7279 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
7280 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
7281 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
7282 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
7283 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
7284 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
7285 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
7286 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
7287 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
7288 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
7289 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
7290 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
7291 (
7292 cat <<\_ASBOX
7293 ## ------------------------------------------ ##
7294 ## Report this to the AC_PACKAGE_NAME lists. ##
7295 ## ------------------------------------------ ##
7296 _ASBOX
7297 ) |
7298 sed "s/^/$as_me: WARNING: /" >&2
7299 ;;
7300 esac
7301 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
7302 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
7303 if test "${ac_cv_header_dlfcn_h+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 ac_cv_header_dlfcn_h=$ac_header_preproc
7307 fi
7308 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
7309 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
7310
7311 fi
7312 if test $ac_cv_header_dlfcn_h = yes; then
7313
7314 SHLIB_CFLAGS="-fpic"
7315 SHLIB_LD="ld -Bshareable -x"
7316 SHLIB_LD_LIBS=""
7317 SHLIB_SUFFIX=".so"
7318 DL_OBJS=""
7319 DL_LIBS=""
7320 LD_FLAGS=""
7321 LD_SEARCH_FLAGS=""
7322 ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0'
7323
7324 else
7325
7326 SHLIB_CFLAGS=""
7327 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
7328 SHLIB_LD_LIBS='${LIBS}'
7329 SHLIB_SUFFIX=".a"
7330 DL_OBJS=""
7331 DL_LIBS=""
7332 LD_FLAGS=""
7333 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7334 ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
7335
7336 fi
7337
7338
7339
7340 # FreeBSD doesn't handle version numbers with dots.
7341
7342 ASC_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
7343 ASC_LIB_VERSIONS_OK=nodots
7344 ;;
7345 *-nextstep*)
7346 SHLIB_CFLAGS=""
7347 SHLIB_LD="cc -nostdlib -r"
7348 SHLIB_LD_LIBS=""
7349 SHLIB_SUFFIX=".so"
7350 DL_OBJS=""
7351 DL_LIBS=""
7352 LD_FLAGS=""
7353 LD_SEARCH_FLAGS=""
7354 ;;
7355 alpha-dec-osf*)
7356 # Digital OSF/1
7357 SHLIB_CFLAGS=""
7358 SHLIB_LD='ld -shared -expect_unresolved "*"'
7359 SHLIB_LD_LIBS=""
7360 SHLIB_SUFFIX=".so"
7361 DL_OBJS=""
7362 DL_LIBS=""
7363 LD_FLAGS=""
7364 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
7365 ;;
7366 *-riscos*)
7367 SHLIB_CFLAGS="-G 0"
7368 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
7369 SHLIB_LD_LIBS='${LIBS}'
7370 SHLIB_SUFFIX=".a"
7371 DL_OBJS=""
7372 DL_LIBS=""
7373 LD_FLAGS="-Wl,-D,08000000"
7374 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7375 ;;
7376 SCO_SV-3.2*)
7377 # Note, dlopen is available only on SCO 3.2.5 and greater. However,
7378 # this test works, since "uname -s" was non-standard in 3.2.4 and
7379 # below.
7380 SHLIB_CFLAGS="-Kpic -belf"
7381 SHLIB_LD="ld -G"
7382 SHLIB_LD_LIBS=""
7383 SHLIB_SUFFIX=".so"
7384 DL_OBJS=""
7385 DL_LIBS=""
7386 LD_FLAGS="-belf -Wl,-Bexport"
7387 LD_SEARCH_FLAGS=""
7388 ;;
7389 *-sni-sysv*)
7390 SHLIB_CFLAGS="-K PIC"
7391 SHLIB_LD="cc -G"
7392 SHLIB_LD_LIBS=""
7393 SHLIB_SUFFIX=".so"
7394 DL_OBJS=""
7395 DL_LIBS="-ldl"
7396 LD_FLAGS=""
7397 LD_SEARCH_FLAGS=""
7398 ;;
7399 *-sunos4*)
7400 SHLIB_CFLAGS="-PIC"
7401 SHLIB_LD="ld"
7402 SHLIB_LD_LIBS=""
7403 SHLIB_SUFFIX=".so"
7404 DL_OBJS=""
7405 DL_LIBS="-ldl"
7406 LD_FLAGS=""
7407 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7408
7409 # SunOS can't handle version numbers with dots in them in library
7410 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it
7411 # requires an extra version number at the end of .so file names.
7412 # So, the library has to have a name like libtcl75.so.1.0
7413
7414 ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0'
7415 ASC_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
7416 ASC_LIB_VERSIONS_OK=nodots
7417 ;;
7418 *-solaris*)
7419 SHLIB_CFLAGS="-KPIC"
7420 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
7421
7422 # Note: need the LIBS below, otherwise Tk won't find ASCEND's
7423 # symbols when dynamically loaded into tclsh.
7424
7425 SHLIB_LD_LIBS='${LIBS}'
7426 SHLIB_SUFFIX=".so"
7427 DL_OBJS=""
7428 DL_LIBS="-ldl"
7429 LD_FLAGS=""
7430 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
7431 ;;
7432 *-ultrix4*)
7433 SHLIB_CFLAGS="-G 0"
7434 SHLIB_SUFFIX=".a"
7435 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
7436 SHLIB_LD_LIBS='${LIBS}'
7437 DL_OBJS=""
7438 DL_LIBS=""
7439 LD_FLAGS="-Wl,-D,08000000"
7440 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
7441 ;;
7442 mips-dde-sysv*)
7443 SHLIB_CFLAGS="-KPIC"
7444 SHLIB_LD="cc -G"
7445 SHLIB_LD_LIBS=""
7446 SHLIB_SUFFIX=".so"
7447 DL_OBJS=""
7448 DL_LIBS="-ldl"
7449 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
7450 # that don't grok the -Bexport option. Test that it does.
7451 hold_ldflags=$LDFLAGS
7452 echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5
7453 echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6
7454 LDFLAGS="${LDFLAGS} -Wl,-Bexport"
7455 cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h. */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h. */
7461
7462 int
7463 main ()
7464 {
7465 int i;
7466 ;
7467 return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest.$ac_objext conftest$ac_exeext
7471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7472 (eval $ac_link) 2>conftest.er1
7473 ac_status=$?
7474 grep -v '^ *+' conftest.er1 >conftest.err
7475 rm -f conftest.er1
7476 cat conftest.err >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } &&
7479 { ac_try='test -z "$ac_c_werror_flag"
7480 || test ! -s conftest.err'
7481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7482 (eval $ac_try) 2>&5
7483 ac_status=$?
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); }; } &&
7486 { ac_try='test -s conftest$ac_exeext'
7487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 (eval $ac_try) 2>&5
7489 ac_status=$?
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); }; }; then
7492 found=yes
7493 else
7494 echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7496
7497 found=no
7498 fi
7499 rm -f conftest.err conftest.$ac_objext \
7500 conftest$ac_exeext conftest.$ac_ext
7501 LDFLAGS=$hold_ldflags
7502 echo "$as_me:$LINENO: result: $found" >&5
7503 echo "${ECHO_T}$found" >&6
7504 if test "$found" = yes; then
7505 LD_FLAGS="-Wl,-Bexport"
7506 else
7507 LD_FLAGS=""
7508 fi
7509 LD_SEARCH_FLAGS=""
7510 ;;
7511 esac
7512
7513 #--------------------------------------------------------------------
7514 # TCL / TK / TK-TABLE
7515 #
7516 # The user can specify the location of the Tcl and/or Tk
7517 # libraries using the --with-tcl and --with-tk configure
7518 # options. Print a warning if the user tries to say
7519 # --without-tcl since ASCEND requires Tcl/Tk.
7520 #
7521 # If the user does not specify the location, we need to search
7522 # for either shared or static versions of the Tcl and Tk
7523 # libraries, and they must be for version 8.x of Tcl/Tk.
7524 #
7525 # Check for the static Tcl library in a list of reasonable
7526 # locations. If we find it, verify that it is from Tcl 8.0 by
7527 # looking for the symbol `TclCompileCatchCmd'. Remember, we
7528 # need the math library and the dynamic loader library (-ldl or
7529 # -ldld) to avoid undefined symbols when we test the version of
7530 # the Tcl library.
7531 #
7532 # If we can't find a static Tcl8.0 library, try to find a
7533 # dynamic one by calling AC_CHECK_LIB and looking for the
7534 # function `TclCompileCatchCmd'. If we fail, print an error
7535 # message and exit configure.
7536 #
7537 # Search for a version of tcl.h that contains `8.' in the
7538 # TCL_MAJOR_VERSION macro; we look in a list of reasonable
7539 # locations, then call AC_EGREP_HEADER to look for us.
7540 #
7541 # Repeat the process for the Tk library; the symbol we want is
7542 # `Tk_NameOfFont'; remember we need the X library---and all the
7543 # libraries it needs---as well as the Tcl library to avoid
7544 # undefined symbols when we test the version of the Tk library.
7545 #
7546 # The user can use --with-tktable to specify a location for a
7547 # static version of the Tk-Table library. If a value is
7548 # specified, assume it is good and define the cpp macro
7549 # STATIC_TABLE.
7550 #
7551 # If a value is not specified, look for libTktable.a; if we
7552 # find it, assume it works and define the cpp macro
7553 # STATIC_TABLE. If we don't find it, assume ASCEND will be
7554 # able to dynamically load it at run time and tell the user
7555 # about our assumption.
7556 #--------------------------------------------------------------------
7557 #
7558 # a list of directories to search for the Tcl/Tk libraries
7559 asc_tcl_library_dirs="
7560 /usr/local/lib/ascend/lib
7561 $prefix/lib:$exec_prefix/lib
7562 $ascpwd/tcl8.0
7563 $ascpwd/tcl8.0/unix
7564 $ascpwd/tk8.0
7565 $ascpwd/tk8.0/unix
7566 $ascpwd/ascend4/lib
7567 /lib
7568 /usr/lib
7569 /usr/local/lib
7570 /usr/contributed/lib
7571 /afs/cs/project/ascend/depot/@sys/lib
7572 "
7573 # a list of directories to search for the Tcl/Tk include files
7574 asc_tcl_include_dirs="
7575 /usr/local/lib/ascend/include
7576 $prefix/include
7577 $fullpathsrcdir/tcl8.0
7578 $fullpathsrcdir/tcl8.0/generic
7579 $fullpathsrcdir/tk8.0
7580 $fullpathsrcdir/tk8.0/generic
7581 $fullpathsrcdir/ascend4/include
7582 $ascpwd/ascend4/include
7583 /usr/include
7584 /usr/local/include
7585 /usr/contributed/include
7586 /afs/cs/project/ascend/depot/common/include
7587 "
7588 # a list of directories to search for the TkTable library
7589 asc_tk_table_dirs="
7590 /usr/local/lib/ascend/lib/Tktable
7591 $prefix/lib/Tktable
7592 $exec_prefix/lib/Tktable
7593 $ascpwd/tkTable1.80
7594 $ascpwd/ascend4/lib
7595 $ascpwd/ascend4/lib/Tktable
7596 /afs/cs/project/ascend/depot/@sys/lib/Tktable
7597 "
7598 # see if the user gave us the location of the Tcl8.0
7599 # library and/or header file
7600 #
7601
7602 # Check whether --with-tcl or --without-tcl was given.
7603 if test "${with_tcl+set}" = set; then
7604 withval="$with_tcl"
7605
7606 else
7607 with_tcl=yes
7608 fi;
7609
7610 case "$with_tcl" in
7611 no)
7612 # User specified --without-tcl; this makes no sense,
7613 # print a warning and search for it ourselves
7614 { echo "$as_me:$LINENO: WARNING: Bad option '--without-tcl'
7615 ASCEND must be compiled with Tcl8.0." >&5
7616 echo "$as_me: WARNING: Bad option '--without-tcl'
7617 ASCEND must be compiled with Tcl8.0." >&2;}
7618 with_tcllib=_searching
7619 with_tclhdr=_searching
7620 ;;
7621 yes|,|"")
7622 # User didn't give the option or didn't give useful
7623 # information, search for it ourselves
7624 with_tcllib=_searching
7625 with_tclhdr=_searching
7626 ;;
7627 ,*)
7628 # Only the header was specified.
7629 with_tcllib=_searching
7630 TCL_HDR=`echo $with_tcl | sed 's/^,//'`
7631 ;;
7632 *,?*)
7633 # Both the library and the header were specified
7634 TCL_LIB=`echo $with_tcl | sed 's/,.*$//'`
7635 TCL_HDR=`echo $with_tcl | sed 's/^.*,//'`
7636 ;;
7637 *)
7638 # Only the library was specified
7639 TCL_LIB=`echo $with_tcl | sed 's/,$//'`
7640 with_tclhdr=_searching
7641 ;;
7642 esac
7643
7644 # try to find a static version of the Tcl8.0 library
7645 #
7646 if test "X$with_tcllib" = X_searching ; then
7647 for ac_prog in libtcl8.0.a libtcl80.a libtcl8.3.a
7648 do
7649 # Extract the first word of "$ac_prog", so it can be a program name with args.
7650 set dummy $ac_prog; ac_word=$2
7651 echo "$as_me:$LINENO: checking for $ac_word" >&5
7652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7653 if test "${ac_cv_path_TCL_LIB+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656 case $TCL_LIB in
7657 [\\/]* | ?:[\\/]*)
7658 ac_cv_path_TCL_LIB="$TCL_LIB" # Let the user override the test with a path.
7659 ;;
7660 *)
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 for as_dir in $asc_tcl_library_dirs
7663 do
7664 IFS=$as_save_IFS
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7668 ac_cv_path_TCL_LIB="$as_dir/$ac_word$ac_exec_ext"
7669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 break 2
7671 fi
7672 done
7673 done
7674
7675 ;;
7676 esac
7677 fi
7678 TCL_LIB=$ac_cv_path_TCL_LIB
7679
7680 if test -n "$TCL_LIB"; then
7681 echo "$as_me:$LINENO: result: $TCL_LIB" >&5
7682 echo "${ECHO_T}$TCL_LIB" >&6
7683 else
7684 echo "$as_me:$LINENO: result: no" >&5
7685 echo "${ECHO_T}no" >&6
7686 fi
7687
7688 test -n "$TCL_LIB" && break
7689 done
7690
7691 if test -z "$TCL_LIB" ; then
7692 TCL_LIB=_searching
7693 fi
7694 else
7695 echo "$as_me:$LINENO: result: checking for tcl library... $TCL_LIB" >&5
7696 echo "${ECHO_T}checking for tcl library... $TCL_LIB" >&6
7697 fi
7698
7699 # verify the TCL_LIB
7700 if test ! "X$TCL_LIB" = X_searching ; then
7701 echo "$as_me:$LINENO: checking whether $TCL_LIB is for Tcl8.3" >&5
7702 echo $ECHO_N "checking whether $TCL_LIB is for Tcl8.3... $ECHO_C" >&6
7703 asc_libs_orig=$LIBS
7704 LIBS="$TCL_LIB $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
7705 cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h. */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711
7712 int
7713 main ()
7714 {
7715 TclCompileCatchCmd()
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 rm -f conftest.$ac_objext conftest$ac_exeext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7722 (eval $ac_link) 2>conftest.er1
7723 ac_status=$?
7724 grep -v '^ *+' conftest.er1 >conftest.err
7725 rm -f conftest.er1
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -z "$ac_c_werror_flag"
7730 || test ! -s conftest.err'
7731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 (eval $ac_try) 2>&5
7733 ac_status=$?
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try='test -s conftest$ac_exeext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 (eval $ac_try) 2>&5
7739 ac_status=$?
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7742 :
7743 else
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7746
7747 TCL_LIB=_searching
7748 fi
7749 rm -f conftest.err conftest.$ac_objext \
7750 conftest$ac_exeext conftest.$ac_ext;
7751 if test "X$TCL_LIB" = X_searching ; then
7752 echo "$as_me:$LINENO: result: no" >&5
7753 echo "${ECHO_T}no" >&6
7754 else
7755 echo "$as_me:$LINENO: result: yes" >&5
7756 echo "${ECHO_T}yes" >&6
7757 fi
7758 LIBS=$asc_libs_orig
7759 fi
7760
7761 # see if the default LPATH can find the Tcl8.0 library
7762 #
7763 if test "X$TCL_LIB" = X_searching ; then
7764 echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl83" >&5
7765 echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl83... $ECHO_C" >&6
7766 if test "${ac_cv_lib_tcl83_TclCompileCatchCmd+set}" = set; then
7767 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769 ac_check_lib_save_LIBS=$LIBS
7770 LIBS="-ltcl83 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
7771 cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h. */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777
7778 /* Override any gcc2 internal prototype to avoid an error. */
7779 #ifdef __cplusplus
7780 extern "C"
7781 #endif
7782 /* We use char because int might match the return type of a gcc2
7783 builtin and then its argument prototype would still apply. */
7784 char TclCompileCatchCmd ();
7785 int
7786 main ()
7787 {
7788 TclCompileCatchCmd ();
7789 ;
7790 return 0;
7791 }
7792 _ACEOF
7793 rm -f conftest.$ac_objext conftest$ac_exeext
7794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7795 (eval $ac_link) 2>conftest.er1
7796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } &&
7802 { ac_try='test -z "$ac_c_werror_flag"
7803 || test ! -s conftest.err'
7804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805 (eval $ac_try) 2>&5
7806 ac_status=$?
7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808 (exit $ac_status); }; } &&
7809 { ac_try='test -s conftest$ac_exeext'
7810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 (eval $ac_try) 2>&5
7812 ac_status=$?
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 ac_cv_lib_tcl83_TclCompileCatchCmd=yes
7816 else
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 ac_cv_lib_tcl83_TclCompileCatchCmd=no
7821 fi
7822 rm -f conftest.err conftest.$ac_objext \
7823 conftest$ac_exeext conftest.$ac_ext
7824 LIBS=$ac_check_lib_save_LIBS
7825 fi
7826 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl83_TclCompileCatchCmd" >&5
7827 echo "${ECHO_T}$ac_cv_lib_tcl83_TclCompileCatchCmd" >&6
7828 if test $ac_cv_lib_tcl83_TclCompileCatchCmd = yes; then
7829 TCL_LIB="-ltcl83"
7830 fi
7831
7832 fi
7833 if test "X$TCL_LIB" = X_searching ; then
7834 echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl8.3" >&5
7835 echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl8.3... $ECHO_C" >&6
7836 if test "${ac_cv_lib_tcl8_3_TclCompileCatchCmd+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 else
7839 ac_check_lib_save_LIBS=$LIBS
7840 LIBS="-ltcl8.3 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
7841 cat >conftest.$ac_ext <<_ACEOF
7842 /* confdefs.h. */
7843 _ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7847
7848 /* Override any gcc2 internal prototype to avoid an error. */
7849 #ifdef __cplusplus
7850 extern "C"
7851 #endif
7852 /* We use char because int might match the return type of a gcc2
7853 builtin and then its argument prototype would still apply. */
7854 char TclCompileCatchCmd ();
7855 int
7856 main ()
7857 {
7858 TclCompileCatchCmd ();
7859 ;
7860 return 0;
7861 }
7862 _ACEOF
7863 rm -f conftest.$ac_objext conftest$ac_exeext
7864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7865 (eval $ac_link) 2>conftest.er1
7866 ac_status=$?
7867 grep -v '^ *+' conftest.er1 >conftest.err
7868 rm -f conftest.er1
7869 cat conftest.err >&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } &&
7872 { ac_try='test -z "$ac_c_werror_flag"
7873 || test ! -s conftest.err'
7874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7875 (eval $ac_try) 2>&5
7876 ac_status=$?
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); }; } &&
7879 { ac_try='test -s conftest$ac_exeext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881 (eval $ac_try) 2>&5
7882 ac_status=$?
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_lib_tcl8_3_TclCompileCatchCmd=yes
7886 else
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7889
7890 ac_cv_lib_tcl8_3_TclCompileCatchCmd=no
7891 fi
7892 rm -f conftest.err conftest.$ac_objext \
7893 conftest$ac_exeext conftest.$ac_ext
7894 LIBS=$ac_check_lib_save_LIBS
7895 fi
7896 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_3_TclCompileCatchCmd" >&5
7897 echo "${ECHO_T}$ac_cv_lib_tcl8_3_TclCompileCatchCmd" >&6
7898 if test $ac_cv_lib_tcl8_3_TclCompileCatchCmd = yes; then
7899 TCL_LIB="-ltcl8.3"
7900 fi
7901
7902 fi
7903 if test "X$TCL_LIB" = X_searching ; then
7904 echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl8.0" >&5
7905 echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl8.0... $ECHO_C" >&6
7906 if test "${ac_cv_lib_tcl8_0_TclCompileCatchCmd+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 ac_check_lib_save_LIBS=$LIBS
7910 LIBS="-ltcl8.0 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917
7918 /* Override any gcc2 internal prototype to avoid an error. */
7919 #ifdef __cplusplus
7920 extern "C"
7921 #endif
7922 /* We use char because int might match the return type of a gcc2
7923 builtin and then its argument prototype would still apply. */
7924 char TclCompileCatchCmd ();
7925 int
7926 main ()
7927 {
7928 TclCompileCatchCmd ();
7929 ;
7930 return 0;
7931 }
7932 _ACEOF
7933 rm -f conftest.$ac_objext conftest$ac_exeext
7934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7935 (eval $ac_link) 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
7942 { ac_try='test -z "$ac_c_werror_flag"
7943 || test ! -s conftest.err'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; } &&
7949 { ac_try='test -s conftest$ac_exeext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 ac_cv_lib_tcl8_0_TclCompileCatchCmd=yes
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 ac_cv_lib_tcl8_0_TclCompileCatchCmd=no
7961 fi
7962 rm -f conftest.err conftest.$ac_objext \
7963 conftest$ac_exeext conftest.$ac_ext
7964 LIBS=$ac_check_lib_save_LIBS
7965 fi
7966 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl8_0_TclCompileCatchCmd" >&5
7967 echo "${ECHO_T}$ac_cv_lib_tcl8_0_TclCompileCatchCmd" >&6
7968 if test $ac_cv_lib_tcl8_0_TclCompileCatchCmd = yes; then
7969 TCL_LIB="-ltcl8.0"
7970 fi
7971
7972 fi
7973 if test "X$TCL_LIB" = X_searching ; then
7974 echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl80" >&5
7975 echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl80... $ECHO_C" >&6
7976 if test "${ac_cv_lib_tcl80_TclCompileCatchCmd+set}" = set; then
7977 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 else
7979 ac_check_lib_save_LIBS=$LIBS
7980 LIBS="-ltcl80 $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
7981 cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h. */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987
7988 /* Override any gcc2 internal prototype to avoid an error. */
7989 #ifdef __cplusplus
7990 extern "C"
7991 #endif
7992 /* We use char because int might match the return type of a gcc2
7993 builtin and then its argument prototype would still apply. */
7994 char TclCompileCatchCmd ();
7995 int
7996 main ()
7997 {
7998 TclCompileCatchCmd ();
7999 ;
8000 return 0;
8001 }
8002 _ACEOF
8003 rm -f conftest.$ac_objext conftest$ac_exeext
8004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8005 (eval $ac_link) 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } &&
8012 { ac_try='test -z "$ac_c_werror_flag"
8013 || test ! -s conftest.err'
8014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8015 (eval $ac_try) 2>&5
8016 ac_status=$?
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); }; } &&
8019 { ac_try='test -s conftest$ac_exeext'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8021 (eval $ac_try) 2>&5
8022 ac_status=$?
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; }; then
8025 ac_cv_lib_tcl80_TclCompileCatchCmd=yes
8026 else
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.$ac_ext >&5
8029
8030 ac_cv_lib_tcl80_TclCompileCatchCmd=no
8031 fi
8032 rm -f conftest.err conftest.$ac_objext \
8033 conftest$ac_exeext conftest.$ac_ext
8034 LIBS=$ac_check_lib_save_LIBS
8035 fi
8036 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl80_TclCompileCatchCmd" >&5
8037 echo "${ECHO_T}$ac_cv_lib_tcl80_TclCompileCatchCmd" >&6
8038 if test $ac_cv_lib_tcl80_TclCompileCatchCmd = yes; then
8039 TCL_LIB="-ltcl80"
8040 fi
8041
8042 fi
8043 if test "X$TCL_LIB" = X_searching ; then
8044 echo "$as_me:$LINENO: checking for TclCompileCatchCmd in -ltcl" >&5
8045 echo $ECHO_N "checking for TclCompileCatchCmd in -ltcl... $ECHO_C" >&6
8046 if test "${ac_cv_lib_tcl_TclCompileCatchCmd+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 else
8049 ac_check_lib_save_LIBS=$LIBS
8050 LIBS="-ltcl $X11_LIBRARIES $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
8051 cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h. */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057
8058 /* Override any gcc2 internal prototype to avoid an error. */
8059 #ifdef __cplusplus
8060 extern "C"
8061 #endif
8062 /* We use char because int might match the return type of a gcc2
8063 builtin and then its argument prototype would still apply. */
8064 char TclCompileCatchCmd ();
8065 int
8066 main ()
8067 {
8068 TclCompileCatchCmd ();
8069 ;
8070 return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest.$ac_objext conftest$ac_exeext
8074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8075 (eval $ac_link) 2>conftest.er1
8076 ac_status=$?
8077 grep -v '^ *+' conftest.er1 >conftest.err
8078 rm -f conftest.er1
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } &&
8082 { ac_try='test -z "$ac_c_werror_flag"
8083 || test ! -s conftest.err'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; } &&
8089 { ac_try='test -s conftest$ac_exeext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8091 (eval $ac_try) 2>&5
8092 ac_status=$?
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_cv_lib_tcl_TclCompileCatchCmd=yes
8096 else
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8099
8100 ac_cv_lib_tcl_TclCompileCatchCmd=no
8101 fi
8102 rm -f conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
8104 LIBS=$ac_check_lib_save_LIBS
8105 fi
8106 echo "$as_me:$LINENO: result: $ac_cv_lib_tcl_TclCompileCatchCmd" >&5
8107 echo "${ECHO_T}$ac_cv_lib_tcl_TclCompileCatchCmd" >&6
8108 if test $ac_cv_lib_tcl_TclCompileCatchCmd = yes; then
8109 TCL_LIB="-ltcl"
8110 fi
8111
8112 fi
8113
8114 # give up searching for the Tcl8.0 library
8115 #
8116 if test "X$TCL_LIB" = X_searching ; then
8117 { { echo "$as_me:$LINENO: error: Cannot find a compatiable Tcl library.
8118 You must build and install Tcl version 8.3 before you
8119 can build ASCEND. If you have installed the correct version
8120 of Tcl, run configure again with the argument:
8121 --with-tcl=LIBRARY,HEADER
8122 where LIBRARY and HEADER are the full paths to the Tcl8.3
8123 library file and header file, respectively." >&5
8124 echo "$as_me: error: Cannot find a compatiable Tcl library.
8125 You must build and install Tcl version 8.3 before you
8126 can build ASCEND. If you have installed the correct version
8127 of Tcl, run configure again with the argument:
8128 --with-tcl=LIBRARY,HEADER
8129 where LIBRARY and HEADER are the full paths to the Tcl8.3
8130 library file and header file, respectively." >&2;}
8131 { (exit 1); exit 1; }; }
8132 fi
8133
8134 # see if the user gave us the location of the Tcl8.0 header file
8135 #
8136 if test ! "X$with_tclhdr" = X_searching ; then
8137 if test ! -f "$TCL_HDR" ; then
8138 { echo "$as_me:$LINENO: WARNING: user specified Tcl header file, $TCL_HDR, does not exist" >&5
8139 echo "$as_me: WARNING: user specified Tcl header file, $TCL_HDR, does not exist" >&2;}
8140 with_tclhdr=_searching
8141 TCL_HDR=''
8142 fi
8143 fi
8144 if test "X$with_tclhdr" = X_searching ; then
8145 # Extract the first word of "tcl.h", so it can be a program name with args.
8146 set dummy tcl.h; ac_word=$2
8147 echo "$as_me:$LINENO: checking for $ac_word" >&5
8148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8149 if test "${ac_cv_path_TCL_HDR+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152 case $TCL_HDR in
8153 [\\/]* | ?:[\\/]*)
8154 ac_cv_path_TCL_HDR="$TCL_HDR" # Let the user override the test with a path.
8155 ;;
8156 *)
8157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8158 for as_dir in $asc_tcl_include_dirs
8159 do
8160 IFS=$as_save_IFS
8161 test -z "$as_dir" && as_dir=.
8162 for ac_exec_ext in '' $ac_executable_extensions; do
8163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8164 ac_cv_path_TCL_HDR="$as_dir/$ac_word$ac_exec_ext"
8165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8166 break 2
8167 fi
8168 done
8169 done
8170
8171 ;;
8172 esac
8173 fi
8174 TCL_HDR=$ac_cv_path_TCL_HDR
8175
8176 if test -n "$TCL_HDR"; then
8177 echo "$as_me:$LINENO: result: $TCL_HDR" >&5
8178 echo "${ECHO_T}$TCL_HDR" >&6
8179 else
8180 echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6
8182 fi
8183
8184 if test -z "$TCL_HDR" ; then
8185 cat >conftest.$ac_ext <<_ACEOF
8186 /* confdefs.h. */
8187 _ACEOF
8188 cat confdefs.h >>conftest.$ac_ext
8189 cat >>conftest.$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 #include <tcl.h>
8192
8193 _ACEOF
8194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8195 $EGREP "TCL_MAJOR_VERSION.*8" >/dev/null 2>&1; then
8196 TCL_HDR='tcl.h'
8197 fi
8198 rm -f conftest*
8199
8200 fi
8201 else
8202 echo "$as_me:$LINENO: result: checking for tcl header... $TCL_HDR" >&5
8203 echo "${ECHO_T}checking for tcl header... $TCL_HDR" >&6
8204 fi
8205 if test -f "$TCL_HDR" ; then
8206 echo "$as_me:$LINENO: checking whether $TCL_HDR is for version 8" >&5
8207 echo $ECHO_N "checking whether $TCL_HDR is for version 8... $ECHO_C" >&6
8208 echo 'grep TCL_MAJOR_VERSION "$TCL_HDR" 2>&5' 1>&5
8209 grep_tcl_h=`grep TCL_MAJOR_VERSION "$TCL_HDR" 2>&5`
8210 echo $grep_tcl_h 1>&5
8211 case "$grep_tcl_h" in
8212 *8)
8213 echo "$as_me:$LINENO: result: yes" >&5
8214 echo "${ECHO_T}yes" >&6
8215 ;;
8216 *)
8217 echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6
8219 TCL_HDR=
8220 ;;
8221 esac
8222 fi
8223 if test -z "$TCL_HDR" ; then
8224 { { echo "$as_me:$LINENO: error: Cannot find a compatiable Tcl header file.
8225 You must build and install Tcl version 8.3 (but not yet 8.4) before you
8226 can build ASCEND. If you have installed the correct version
8227 of Tcl, run configure again with the argument:
8228 --with-tcl=LIBRARY,HEADER
8229 where LIBRARY and HEADER are the full paths to the Tcl8.3
8230 library file and header file, respectively." >&5
8231 echo "$as_me: error: Cannot find a compatiable Tcl header file.
8232 You must build and install Tcl version 8.3 (but not yet 8.4) before you
8233 can build ASCEND. If you have installed the correct version
8234 of Tcl, run configure again with the argument:
8235 --with-tcl=LIBRARY,HEADER
8236 where LIBRARY and HEADER are the full paths to the Tcl8.3
8237 library file and header file, respectively." >&2;}
8238 { (exit 1); exit 1; }; }
8239 fi
8240 TCL_HDR=`echo $TCL_HDR | sed 's,tcl\.h$,,'`
8241 if test -n "$TCL_HDR" ; then
8242 TCL_HDR="-I$TCL_HDR"
8243 fi
8244
8245
8246 ###### REPEAT FOR TK
8247 #
8248 # see if the user gave us the location of the Tk8.3
8249 # library and/or header file
8250 #
8251
8252 # Check whether --with-tk or --without-tk was given.
8253 if test "${with_tk+set}" = set; then
8254 withval="$with_tk"
8255
8256 else
8257 with_tk=yes
8258 fi;
8259
8260 case "$with_tk" in
8261 no)
8262 # User specified --without-tk; this makes no sense,
8263 # print a warning and search for it ourselves
8264 { echo "$as_me:$LINENO: WARNING: Bad option '--without-tk'
8265 ASCEND must be compiled with Tk8.0." >&5
8266 echo "$as_me: WARNING: Bad option '--without-tk'
8267 ASCEND must be compiled with Tk8.0." >&2;}
8268 with_tklib=_searching
8269 with_tkhdr=_searching
8270 ;;
8271 yes|,|"")
8272 # User didn't give the option or didn't give useful
8273 # information, search for it ourselves
8274 with_tklib=_searching
8275 with_tkhdr=_searching
8276 ;;
8277 ,*)
8278 # Only the header was specified.
8279 with_tklib=_searching
8280 TK_HDR=`echo $with_tk | sed 's/^,//'`
8281 ;;
8282 *,?*)
8283 # Both the library and the header were specified
8284 TK_LIB=`echo $with_tk | sed 's/,.*$//'`
8285 TK_HDR=`echo $with_tk | sed 's/^.*,//'`
8286 ;;
8287 *)
8288 # Only the library was specified
8289 TK_LIB=`echo $with_tk | sed 's/,$//'`
8290 with_tkhdr=_searching
8291 ;;
8292 esac
8293
8294 # try to find a static version of the Tk8.0 library
8295 #
8296 if test "X$with_tklib" = X_searching ; then
8297 for ac_prog in libtk8.0.a libtk80.a libtk.a libtk8.3.a
8298 do
8299 # Extract the first word of "$ac_prog", so it can be a program name with args.
8300 set dummy $ac_prog; ac_word=$2
8301 echo "$as_me:$LINENO: checking for $ac_word" >&5
8302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8303 if test "${ac_cv_path_TK_LIB+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306 case $TK_LIB in
8307 [\\/]* | ?:[\\/]*)
8308 ac_cv_path_TK_LIB="$TK_LIB" # Let the user override the test with a path.
8309 ;;
8310 *)
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $asc_tcl_library_dirs
8313 do
8314 IFS=$as_save_IFS
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318 ac_cv_path_TK_LIB="$as_dir/$ac_word$ac_exec_ext"
8319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 break 2
8321 fi
8322 done
8323 done
8324
8325 ;;
8326 esac
8327 fi
8328 TK_LIB=$ac_cv_path_TK_LIB
8329
8330 if test -n "$TK_LIB"; then
8331 echo "$as_me:$LINENO: result: $TK_LIB" >&5
8332 echo "${ECHO_T}$TK_LIB" >&6
8333 else
8334 echo "$as_me:$LINENO: result: no" >&5
8335 echo "${ECHO_T}no" >&6
8336 fi
8337
8338 test -n "$TK_LIB" && break
8339 done
8340
8341 if test -z "TK_LIB" ; then
8342 TK_LIB=_searching
8343 fi
8344 else
8345 echo "$as_me:$LINENO: result: checking for tk library... $TK_LIB" >&5
8346 echo "${ECHO_T}checking for tk library... $TK_LIB" >&6
8347 fi
8348
8349 # verify the TK_LIB
8350 #
8351 if test ! "X$TK_LIB" = X_searching ; then
8352 echo "$as_me:$LINENO: checking whether $TK_LIB is for Tk8.0" >&5
8353 echo $ECHO_N "checking whether $TK_LIB is for Tk8.0... $ECHO_C" >&6
8354 asc_libs_orig=$LIBS
8355 LIBS="$TK_LIB $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
8356 cat >conftest.$ac_ext <<_ACEOF
8357 /* confdefs.h. */
8358 _ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8362
8363 int
8364 main ()
8365 {
8366 Tk_NameOfFont()
8367 ;
8368 return 0;
8369 }
8370 _ACEOF
8371 rm -f conftest.$ac_objext conftest$ac_exeext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373 (eval $ac_link) 2>conftest.er1
8374 ac_status=$?
8375 grep -v '^ *+' conftest.er1 >conftest.err
8376 rm -f conftest.er1
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag"
8381 || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 (eval $ac_try) 2>&5
8384 ac_status=$?
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try='test -s conftest$ac_exeext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 (eval $ac_try) 2>&5
8390 ac_status=$?
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 :
8394 else
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8397
8398 TK_LIB=_searching
8399 fi
8400 rm -f conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext;
8402 if test "X$TK_LIB" = X_searching ; then
8403 echo "$as_me:$LINENO: result: no" >&5
8404 echo "${ECHO_T}no" >&6
8405 else
8406 echo "$as_me:$LINENO: result: yes" >&5
8407 echo "${ECHO_T}yes" >&6
8408 fi
8409 LIBS=$asc_libs_orig
8410 fi
8411
8412 # see if the default LPATH can find the Tk8.0 library
8413 #
8414 if test "X$TK_LIB" = X_searching ; then
8415 echo "$as_me:$LINENO: result: checking for a dynamically loaded Tk8.0 library" >&5
8416 echo "${ECHO_T}checking for a dynamically loaded Tk8.0 library" >&6
8417 echo "$as_me:$LINENO: checking for Tk_NameOfFont in -ltk8.0" >&5
8418 echo $ECHO_N "checking for Tk_NameOfFont in -ltk8.0... $ECHO_C" >&6
8419 if test "${ac_cv_lib_tk8_0_Tk_NameOfFont+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 else
8422 ac_check_lib_save_LIBS=$LIBS
8423 LIBS="-ltk8.0 $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h. */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8430
8431 /* Override any gcc2 internal prototype to avoid an error. */
8432 #ifdef __cplusplus
8433 extern "C"
8434 #endif
8435 /* We use char because int might match the return type of a gcc2
8436 builtin and then its argument prototype would still apply. */
8437 char Tk_NameOfFont ();
8438 int
8439 main ()
8440 {
8441 Tk_NameOfFont ();
8442 ;
8443 return 0;
8444 }
8445 _ACEOF
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>conftest.er1
8449 ac_status=$?
8450 grep -v '^ *+' conftest.er1 >conftest.err
8451 rm -f conftest.er1
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 (exit $ac_status); } &&
8455 { ac_try='test -z "$ac_c_werror_flag"
8456 || test ! -s conftest.err'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 (eval $ac_try) 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest$ac_exeext'
8463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 (eval $ac_try) 2>&5
8465 ac_status=$?
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); }; }; then
8468 ac_cv_lib_tk8_0_Tk_NameOfFont=yes
8469 else
8470 echo "$as_me: failed program was:" >&5
8471 sed 's/^/| /' conftest.$ac_ext >&5
8472
8473 ac_cv_lib_tk8_0_Tk_NameOfFont=no
8474 fi
8475 rm -f conftest.err conftest.$ac_objext \
8476 conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_check_lib_save_LIBS
8478 fi
8479 echo "$as_me:$LINENO: result: $ac_cv_lib_tk8_0_Tk_NameOfFont" >&5
8480 echo "${ECHO_T}$ac_cv_lib_tk8_0_Tk_NameOfFont" >&6
8481 if test $ac_cv_lib_tk8_0_Tk_NameOfFont = yes; then
8482 TK_LIB="-ltk8.0"
8483 fi
8484
8485 fi
8486 if test "X$TK_LIB" = X_searching ; then
8487 echo "$as_me:$LINENO: checking for Tk_NameOfFont in -ltk80" >&5
8488 echo $ECHO_N "checking for Tk_NameOfFont in -ltk80... $ECHO_C" >&6
8489 if test "${ac_cv_lib_tk80_Tk_NameOfFont+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8491 else
8492 ac_check_lib_save_LIBS=$LIBS
8493 LIBS="-ltk80 $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
8494 cat >conftest.$ac_ext <<_ACEOF
8495 /* confdefs.h. */
8496 _ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500
8501 /* Override any gcc2 internal prototype to avoid an error. */
8502 #ifdef __cplusplus
8503 extern "C"
8504 #endif
8505 /* We use char because int might match the return type of a gcc2
8506 builtin and then its argument prototype would still apply. */
8507 char Tk_NameOfFont ();
8508 int
8509 main ()
8510 {
8511 Tk_NameOfFont ();
8512 ;
8513 return 0;
8514 }
8515 _ACEOF
8516 rm -f conftest.$ac_objext conftest$ac_exeext
8517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8518 (eval $ac_link) 2>conftest.er1
8519 ac_status=$?
8520 grep -v '^ *+' conftest.er1 >conftest.err
8521 rm -f conftest.er1
8522 cat conftest.err >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); } &&
8525 { ac_try='test -z "$ac_c_werror_flag"
8526 || test ! -s conftest.err'
8527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8528 (eval $ac_try) 2>&5
8529 ac_status=$?
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); }; } &&
8532 { ac_try='test -s conftest$ac_exeext'
8533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8534 (eval $ac_try) 2>&5
8535 ac_status=$?
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); }; }; then
8538 ac_cv_lib_tk80_Tk_NameOfFont=yes
8539 else
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8542
8543 ac_cv_lib_tk80_Tk_NameOfFont=no
8544 fi
8545 rm -f conftest.err conftest.$ac_objext \
8546 conftest$ac_exeext conftest.$ac_ext
8547 LIBS=$ac_check_lib_save_LIBS
8548 fi
8549 echo "$as_me:$LINENO: result: $ac_cv_lib_tk80_Tk_NameOfFont" >&5
8550 echo "${ECHO_T}$ac_cv_lib_tk80_Tk_NameOfFont" >&6
8551 if test $ac_cv_lib_tk80_Tk_NameOfFont = yes; then
8552 TK_LIB="-ltk80"
8553 fi
8554
8555 fi
8556 if test "X$TK_LIB" = X_searching ; then
8557 echo "$as_me:$LINENO: checking for Tk_NameOfFont in -ltk" >&5
8558 echo $ECHO_N "checking for Tk_NameOfFont in -ltk... $ECHO_C" >&6
8559 if test "${ac_cv_lib_tk_Tk_NameOfFont+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 ac_check_lib_save_LIBS=$LIBS
8563 LIBS="-ltk $TCL_LIB $X11_LIBRARIES -lX11 $X11_EXTRA_LIBS $DL_LIBS $MATH_LIBS $LIBS"
8564 cat >conftest.$ac_ext <<_ACEOF
8565 /* confdefs.h. */
8566 _ACEOF
8567 cat confdefs.h >>conftest.$ac_ext
8568 cat >>conftest.$ac_ext <<_ACEOF
8569 /* end confdefs.h. */
8570
8571 /* Override any gcc2 internal prototype to avoid an error. */
8572 #ifdef __cplusplus
8573 extern "C"
8574 #endif
8575 /* We use char because int might match the return type of a gcc2
8576 builtin and then its argument prototype would still apply. */
8577 char Tk_NameOfFont ();
8578 int
8579 main ()
8580 {
8581 Tk_NameOfFont ();
8582 ;
8583 return 0;
8584 }
8585 _ACEOF
8586 rm -f conftest.$ac_objext conftest$ac_exeext
8587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8588 (eval $ac_link) 2>conftest.er1
8589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } &&
8595 { ac_try='test -z "$ac_c_werror_flag"
8596 || test ! -s conftest.err'
8597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 (eval $ac_try) 2>&5
8599 ac_status=$?
8600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601 (exit $ac_status); }; } &&
8602 { ac_try='test -s conftest$ac_exeext'
8603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604 (eval $ac_try) 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); }; }; then
8608 ac_cv_lib_tk_Tk_NameOfFont=yes
8609 else
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 ac_cv_lib_tk_Tk_NameOfFont=no
8614 fi
8615 rm -f conftest.err conftest.$ac_objext \
8616 conftest$ac_exeext conftest.$ac_ext
8617 LIBS=$ac_check_lib_save_LIBS
8618 fi
8619 echo "$as_me:$LINENO: result: $ac_cv_lib_tk_Tk_NameOfFont" >&5
8620 echo "${ECHO_T}$ac_cv_lib_tk_Tk_NameOfFont" >&6
8621 if test $ac_cv_lib_tk_Tk_NameOfFont = yes; then
8622 TK_LIB="-ltk"
8623 fi
8624
8625 fi
8626
8627 # give up searching for the Tk8.0 library
8628 #
8629 if test "X$TK_LIB" = X_searching ; then
8630 { { echo "$as_me:$LINENO: error: Cannot find a compatiable Tk library.
8631 You must build and install Tk version 8.0 or newer before you
8632 can build ASCEND. If you have installed the correct version
8633 of Tk, run configure again with the argument:
8634 --with-tk=LIBRARY,HEADER
8635 where LIBRARY and HEADER are the full paths to the Tk8.0
8636 library file and header file, respectively." >&5
8637 echo "$as_me: error: Cannot find a compatiable Tk library.
8638 You must build and install Tk version 8.0 or newer before you
8639 can build ASCEND. If you have installed the correct version
8640 of Tk, run configure again with the argument:
8641 --with-tk=LIBRARY,HEADER
8642 where LIBRARY and HEADER are the full paths to the Tk8.0
8643 library file and header file, respectively." >&2;}
8644 { (exit 1); exit 1; }; }
8645 fi
8646
8647 # see if the user gave us the location of the Tk8.0 header file
8648 #
8649 if test ! "X$with_tkhdr" = X_searching ; then
8650 if test ! -f "$TK_HDR" ; then
8651 { echo "$as_me:$LINENO: WARNING: user specified Tk header file, $TK_HDR, does not exist" >&5
8652 echo "$as_me: WARNING: user specified Tk header file, $TK_HDR, does not exist" >&2;}
8653 with_tkhdr=_searching
8654 TK_HDR=''
8655 fi
8656 fi
8657 if test "X$with_tkhdr" = X_searching ; then
8658 # Extract the first word of "tk.h", so it can be a program name with args.
8659 set dummy tk.h; ac_word=$2
8660 echo "$as_me:$LINENO: checking for $ac_word" >&5
8661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8662 if test "${ac_cv_path_TK_HDR+set}" = set; then
8663 echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665 case $TK_HDR in
8666 [\\/]* | ?:[\\/]*)
8667 ac_cv_path_TK_HDR="$TK_HDR" # Let the user override the test with a path.
8668 ;;
8669 *)
8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671 for as_dir in $asc_tcl_include_dirs
8672 do
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8677 ac_cv_path_TK_HDR="$as_dir/$ac_word$ac_exec_ext"
8678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8679 break 2
8680 fi
8681 done
8682 done
8683
8684 ;;
8685 esac
8686 fi
8687 TK_HDR=$ac_cv_path_TK_HDR
8688
8689 if test -n "$TK_HDR"; then
8690 echo "$as_me:$LINENO: result: $TK_HDR" >&5
8691 echo "${ECHO_T}$TK_HDR" >&6
8692 else
8693 echo "$as_me:$LINENO: result: no" >&5
8694 echo "${ECHO_T}no" >&6
8695 fi
8696
8697 if test -z "$TK_HDR" ; then
8698 cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h. */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h. */
8704 #include <tk.h>
8705
8706 _ACEOF
8707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8708 $EGREP "TK_MAJOR_VERSION.*8" >/dev/null 2>&1; then
8709 TK_HDR='tk.h'
8710 fi
8711 rm -f conftest*
8712
8713 fi
8714 else
8715 echo "$as_me:$LINENO: result: checking for tk header... $TK_HDR" >&5
8716 echo "${ECHO_T}checking for tk header... $TK_HDR" >&6
8717 fi
8718 if test -f "$TK_HDR" ; then
8719 echo "$as_me:$LINENO: checking whether $TK_HDR is for version 8" >&5
8720 echo $ECHO_N "checking whether $TK_HDR is for version 8... $ECHO_C" >&6
8721 echo 'grep TK_MAJOR_VERSION "$TK_HDR" 2>&5' 1>&5
8722 grep_tk_h=`grep TK_MAJOR_VERSION "$TK_HDR" 2>&5`
8723 echo $grep_tk_h 1>&5
8724 case "$grep_tk_h" in
8725 *8)
8726 echo "$as_me:$LINENO: result: yes" >&5
8727 echo "${ECHO_T}yes" >&6
8728 ;;
8729 *)
8730 echo "$as_me:$LINENO: result: no" >&5
8731 echo "${ECHO_T}no" >&6
8732 TK_HDR=
8733 ;;
8734 esac
8735 fi
8736 if test -z "$TK_HDR" ; then
8737 { { echo "$as_me:$LINENO: error: Cannot find a compatiable Tk header file.
8738 You must build and install Tk version 8.0 or newer before you
8739 can build ASCEND. If you have installed the correct version
8740 of Tk, run configure again with the argument:
8741 --with-tk=LIBRARY,HEADER
8742 where LIBRARY and HEADER are the full paths to the Tk8.0
8743 library file and header file, respectively." >&5
8744 echo "$as_me: error: Cannot find a compatiable Tk header file.
8745 You must build and install Tk version 8.0 or newer before you
8746 can build ASCEND. If you have installed the correct version
8747 of Tk, run configure again with the argument:
8748 --with-tk=LIBRARY,HEADER
8749 where LIBRARY and HEADER are the full paths to the Tk8.0
8750 library file and header file, respectively." >&2;}
8751 { (exit 1); exit 1; }; }
8752 fi
8753 TK_HDR=`echo $TK_HDR | sed 's,tk\.h$,,'`
8754 if test -n "$TK_HDR" ; then
8755 TK_HDR="-I$TK_HDR"
8756 if test "X$TCL_HDR" = "X$TK_HDR" ; then
8757 TK_HDR=
8758 fi
8759 fi
8760
8761
8762
8763 # Check whether --with-tktable or --without-tktable was given.
8764 if test "${with_tktable+set}" = set; then
8765 withval="$with_tktable"
8766
8767 fi;
8768 case "$with_tktable" in
8769 yes|no|"")
8770 # search for the table
8771 # Extract the first word of "libTktable.a", so it can be a program name with args.
8772 set dummy libTktable.a; ac_word=$2
8773 echo "$as_me:$LINENO: checking for $ac_word" >&5
8774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8775 if test "${ac_cv_path_TKTABLE_LIB+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 else
8778 case $TKTABLE_LIB in
8779 [\\/]* | ?:[\\/]*)
8780 ac_cv_path_TKTABLE_LIB="$TKTABLE_LIB" # Let the user override the test with a path.
8781 ;;
8782 *)
8783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8784 for as_dir in $asc_tk_table_dirs
8785 do
8786 IFS=$as_save_IFS
8787 test -z "$as_dir" && as_dir=.
8788 for ac_exec_ext in '' $ac_executable_extensions; do
8789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8790 ac_cv_path_TKTABLE_LIB="$as_dir/$ac_word$ac_exec_ext"
8791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8792 break 2
8793 fi
8794 done
8795 done
8796
8797 ;;
8798 esac
8799 fi
8800 TKTABLE_LIB=$ac_cv_path_TKTABLE_LIB
8801
8802 if test -n "$TKTABLE_LIB"; then
8803 echo "$as_me:$LINENO: result: $TKTABLE_LIB" >&5
8804 echo "${ECHO_T}$TKTABLE_LIB" >&6
8805 else
8806 echo "$as_me:$LINENO: result: no" >&5
8807 echo "${ECHO_T}no" >&6
8808 fi
8809
8810 ;;
8811 *)
8812 # use the user's value
8813 TKTABLE_LIB="$with_tktable"
8814 ;;
8815 esac
8816 if test -n "$TKTABLE_LIB" ; then
8817 HAVE_TKTABLE='-DSTATIC_TKTABLE'
8818 else
8819 echo "$as_me:$LINENO: result: Assuming Tktable will be dynamically linked into ASCEND" >&5
8820 echo "${ECHO_T}Assuming Tktable will be dynamically linked into ASCEND" >&6
8821 fi
8822
8823
8824 # Check whether --with-wish or --without-wish was given.
8825 if test "${with_wish+set}" = set; then
8826 withval="$with_wish"
8827
8828 else
8829 with_wish=no
8830 fi;
8831 case "$with_wish" in
8832 yes|no|"")
8833 echo "$as_me:$LINENO: result: --with-wish not specified.
8834 Setting env vars TCL_LIBRARY, TK_LIBRARY may be needed to run." >&5
8835 echo "${ECHO_T}--with-wish not specified.
8836 Setting env vars TCL_LIBRARY, TK_LIBRARY may be needed to run." >&6
8837 ;;
8838 *)
8839 echo "$as_me:$LINENO: checking wish for tcl_library,tk_library" >&5
8840 echo $ECHO_N "checking wish for tcl_library,tk_library... $ECHO_C" >&6
8841
8842 # asc_wishvar( tcl_library, $with_wish)
8843 # generate the executable to extract a variable
8844 # from the tickle shell
8845 cat << EOF > wishvar.tmp.tcl
8846 #! $with_wish
8847 # this is a generated file and can be deleted any time.
8848 if {\$argc != 1} {
8849 puts stderr "\$argv0 needs variable name"
8850 exit 1
8851 }
8852 set var [lindex \$argv 0]
8853 puts [set \$var]
8854 exit 0
8855 EOF
8856
8857 #call it
8858 # usage wishvar varname shell-to-test-in
8859 ASC_TK_LIBRARY=`$with_wish wishvar.tmp.tcl -- tk_library`
8860
8861
8862
8863 # asc_wishvar( tcl_library, $with_wish)
8864 # generate the executable to extract a variable
8865 # from the tickle shell
8866 cat << EOF > wishvar.tmp.tcl
8867 #! $with_wish
8868 # this is a generated file and can be deleted any time.
8869 if {\$argc != 1} {
8870 puts stderr "\$argv0 needs variable name"
8871 exit 1
8872 }
8873 set var [lindex \$argv 0]
8874 puts [set \$var]
8875 exit 0
8876 EOF
8877
8878 #call it
8879 # usage wishvar varname shell-to-test-in
8880 ASC_TCL_LIBRARY=`$with_wish wishvar.tmp.tcl -- tcl_library`
8881
8882
8883 echo "$as_me:$LINENO: result: $ASC_TCL_LIBRARY , $ASC_TK_LIBRARY" >&5
8884 echo "${ECHO_T} $ASC_TCL_LIBRARY , $ASC_TK_LIBRARY" >&6
8885 ;;
8886 esac
8887
8888
8889 #--------------------------------------------------------------------
8890 # FORTRAN
8891 #
8892 # ASCEND uses the LSOD integrator and is capable of working
8893 # with CONOPT and with MINOS. These libraries are written in
8894 # Fortran; to use them, configure needs to find a Fortran
8895 # compiler and the necessary Fortran libraries (e.g.,
8896 # libF77.a). LSOD, CONOPT, and MINOS also require the BLAS and
8897 # LINPACK libraries to avoid undefined symbols at link time.
8898 #
8899 # The builder can specify the location of
8900 # * the Fortran compiler and libraries using
8901 # --with-fortran=<compiler>,<libraries>
8902 # * the BLAS library using
8903 # --with-blas=<blas-library>
8904 # * the LINPACK library using
8905 # --with-linpack=<linpack-library>
8906 # * the LSOD library using
8907 # --with-blas=<lsod-library>
8908 # * the CONOPT library using
8909 # --with-conopt=<conopt-library>
8910 # * the MINOS library using
8911 # --with-minos=<minos-library> <===currently disabled
8912 # The builder can disable some parts of the fortran build using
8913 # the --without-<package> configure option.
8914 #
8915 # If the user does not specify the locations of the compiler
8916 # and the libraries and does not disable them, configure
8917 # attempts to find them.
8918 #
8919 # Building with LSOD, CONOPT, and/or MINOS is further
8920 # complicated by the dependencies between these libraries and
8921 # the BLAS and LINPACK libraries.
8922 #
8923 # If we cannot find a Fortran compiler, we disable all Fortran
8924 # code (LSOD, CONOPT, and MINOS). Otherwise, look for the
8925 # Fortran libraries (e.g., libF77.a) based on the type of
8926 # machine we are compiling on.
8927 #
8928 # If Fortran is enabled, we need to find a compiled BLAS
8929 # library or source code. Check for the machine's libblas.a
8930 # and ASCEND's libascblas.a; if those fail, check for the
8931 # libascblas.a source code; if that fails, we disable all
8932 # Fortran (LSOD, CONOPT, MINOS).
8933 #
8934 # If Fortran is enabled, we need to find a compiled LINPACK
8935 # library or source code. Check for the machine's liblpak.a
8936 # and ASCEND's libasclpak.a; if those fail, check for the
8937 # libasclpak.a source code; if that fails, we disable all
8938 # Fortran (LSOD, CONOPT, MINOS).
8939 #
8940 # If Fortran is enabled, we try to find a compiled LSOD library
8941 # or source code. Check for a libinteg.a; if that fails, check
8942 # for the libinteg.a source code; if that fails, we disable
8943 # LSOD. If we find LSOD, define STATIC_LSOD.
8944 #
8945 # If Fortran is enabled, we try to find a compiled OPTSQP
8946 # library or source code. Check for a librsqp.a; if that fails,
8947 # check for the librsqp.a source code; if that fails, we disable
8948 # OPTSQP. If we find RSQP, define STATIC_OPTSQP.
8949 #
8950 # If Fortran is enabled, we try to find a compiled CONOPT
8951 # library. Check for a libconsub.a; if that fails, we disable
8952 # CONOPT. If we find CONOPT, define STATIC_CONOPT; if not,
8953 # tell the user where to find CONOPT using the contact
8954 # information from the nonlinear programming FAQ:
8955 # http://www.mcs.anl.gov/home/otc/Guide/faq/nonlinear-programming-faq.html
8956 #
8957 # If Fortran is enabled, we try to find a compiled MINOS
8958 # library or source code. Check for a libminos54.a; if that
8959 # fails, check for the libminos54.a source code; if that fails,
8960 # we disable MINOS. If we find MINOS, define STATIC_MINOS; if
8961 # not, tell the user where to find MINOS using the contact
8962 # information from the nonlinear programming FAQ:
8963 # http://www.mcs.anl.gov/home/otc/Guide/faq/nonlinear-programming-faq.html
8964 #--------------------------------------------------------------------
8965 #
8966 # the list of directories to search for the fortran compiler
8967 asc_f77_prog_dirs="$PATH:/usr/lang:/opt/SUNWspro/bin"
8968 #
8969 # the list of directories to search for the required fortran libraries
8970 asc_f77_support_dirs="
8971 /lib
8972 /usr/lib
8973 /usr/local/lib
8974 /usr/contributed/lib
8975 /usr/local/lib/ascend/lib
8976 $ascpwd/blas
8977 $ascpwd/linpack
8978 $ascpwd/lsod
8979
8980 ##AWW There are folders two levels up from configure for these packages
8981 $fullpathsrcdir/../../blas
8982 $fullpathsrcdir/../../linpack
8983 $fullpathsrcdir/../../lsod
8984
8985 #AWW20041113: $ascpwd/conopt
8986 #AWW20041113: $ascpwd/rsqp
8987 #AWW20041113: $ascpwd/minos
8988 #AWW20041113: $ascpwd/ascend4/archive
8989 $ascpwd/archive
8990 /afs/cs/project/ascend/depot/@sys/lib
8991 /afs/cs/project/ascend/depot/build/obj/conopt
8992 "
8993 #
8994
8995 # Check whether --with-fortran or --without-fortran was given.
8996 if test "${with_fortran+set}" = set; then
8997 withval="$with_fortran"
8998
8999 else
9000 with_fortran=yes
9001 fi;
9002 case "$with_fortran" in
9003 no)
9004 # The user disabled all fortran using
9005 # the --without-fortran option.
9006 F77=
9007 F77LIBS=
9008 with_f77=no
9009 with_f77libs=no
9010 ;;
9011 yes|,|"")
9012 # The user didn't pass in the --with-fortran option
9013 # or didn't give us any useful information. We do
9014 # the search ourselves.
9015 with_f77=_searching
9016 with_f77libs=_searching
9017 ;;
9018 ,*)
9019 # The user passed in the libraries, search for the
9020 # compiler ourselves.
9021 with_f77=_searching
9022 F77LIBS=`echo $with_fortran | sed 's/^,//'`
9023 echo "user gave F77LIBS=$F77LIBS"
9024 ;;
9025 *,?*)
9026 # The user passed in both the compiler and the
9027 # libraries.
9028 F77=`echo $with_fortran | sed s'/,.*$//'`
9029 F77LIBS=`echo $with_fortran | sed 's/^.*,//'`
9030 echo "user gave F77=$F77"
9031 echo "user gave F77LIBS=$F77LIBS"
9032 ;;
9033 *)
9034 # The user passed in the compiler; search for the
9035 # libraries ourselves.
9036 F77=`echo $with_fortran | sed s'/,$//'`
9037 with_f77libs=_searching
9038 echo "user gave F77=$F77"
9039 ;;
9040 esac
9041
9042 if test "X$with_f77" = X_searching ; then
9043 # Search for the fortran compiler; print a warning if we can't
9044 # find it and disable all fortran.
9045 for ac_prog in f77 xlf g77
9046 do
9047 # Extract the first word of "$ac_prog", so it can be a program name with args.
9048 set dummy $ac_prog; ac_word=$2
9049 echo "$as_me:$LINENO: checking for $ac_word" >&5
9050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9051 if test "${ac_cv_path_F77+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054 case $F77 in
9055 [\\/]* | ?:[\\/]*)
9056 ac_cv_path_F77="$F77" # Let the user override the test with a path.
9057 ;;
9058 *)
9059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9060 for as_dir in $asc_f77_prog_dirs
9061 do
9062 IFS=$as_save_IFS
9063 test -z "$as_dir" && as_dir=.
9064 for ac_exec_ext in '' $ac_executable_extensions; do
9065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9066 ac_cv_path_F77="$as_dir/$ac_word$ac_exec_ext"
9067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9068 break 2
9069 fi
9070 done
9071 done
9072
9073 ;;
9074 esac
9075 fi
9076 F77=$ac_cv_path_F77
9077
9078 if test -n "$F77"; then
9079 echo "$as_me:$LINENO: result: $F77" >&5
9080 echo "${ECHO_T}$F77" >&6
9081 else
9082 echo "$as_me:$LINENO: result: no" >&5
9083 echo "${ECHO_T}no" >&6
9084 fi
9085
9086 test -n "$F77" && break
9087 done
9088
9089 if test -z "$F77" ; then
9090 with_fortran=no
9091 with_f77libs=no
9092 { echo "$as_me:$LINENO: WARNING: Cannot find your Fortran compiler. Building ASCEND
9093 without integration, MINOS, and CONOPT support. To bulid ASCEND with
9094 Fortran support, run configure with the option
9095 --with-fortran=F77,F77LIBS
9096 where F77 is the full path to your Fortran compiler and F77LIBS are
9097 its related libraries" >&5
9098 echo "$as_me: WARNING: Cannot find your Fortran compiler. Building ASCEND
9099 without integration, MINOS, and CONOPT support. To bulid ASCEND with
9100 Fortran support, run configure with the option
9101 --with-fortran=F77,F77LIBS
9102 where F77 is the full path to your Fortran compiler and F77LIBS are
9103 its related libraries" >&2;}
9104 fi
9105 fi
9106
9107 if test "X$with_f77libs" = X_searching ; then
9108 # We found a compiler, now search for the fortran libraries
9109 # based on the system type.
9110 echo "$as_me:$LINENO: result: checking for fortran libraries based on system type" >&5
9111 echo "${ECHO_T}checking for fortran libraries based on system type" >&6
9112 case "$host" in
9113 alpha-dec-osf*)
9114 echo "$as_me:$LINENO: checking for for_lle in -lfor" >&5
9115 echo $ECHO_N "checking for for_lle in -lfor... $ECHO_C" >&6
9116 if test "${ac_cv_lib_for_for_lle+set}" = set; then
9117 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119 ac_check_lib_save_LIBS=$LIBS
9120 LIBS="-lfor $F77LIBS $LIBS"
9121 cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h. */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9127
9128 /* Override any gcc2 internal prototype to avoid an error. */
9129 #ifdef __cplusplus
9130 extern "C"
9131 #endif
9132 /* We use char because int might match the return type of a gcc2
9133 builtin and then its argument prototype would still apply. */
9134 char for_lle ();
9135 int
9136 main ()
9137 {
9138 for_lle ();
9139 ;
9140 return 0;
9141 }
9142 _ACEOF
9143 rm -f conftest.$ac_objext conftest$ac_exeext
9144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145 (eval $ac_link) 2>conftest.er1
9146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } &&
9152 { ac_try='test -z "$ac_c_werror_flag"
9153 || test ! -s conftest.err'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; } &&
9159 { ac_try='test -s conftest$ac_exeext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9161 (eval $ac_try) 2>&5
9162 ac_status=$?
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 ac_cv_lib_for_for_lle=yes
9166 else
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9169
9170 ac_cv_lib_for_for_lle=no
9171 fi
9172 rm -f conftest.err conftest.$ac_objext \
9173 conftest$ac_exeext conftest.$ac_ext
9174 LIBS=$ac_check_lib_save_LIBS
9175 fi
9176 echo "$as_me:$LINENO: result: $ac_cv_lib_for_for_lle" >&5
9177 echo "${ECHO_T}$ac_cv_lib_for_for_lle" >&6
9178 if test $ac_cv_lib_for_for_lle = yes; then
9179 F77LIBS="$F77LIBS -lfor"
9180 fi
9181
9182 echo "$as_me:$LINENO: checking for _OtsFill in -lots" >&5
9183 echo $ECHO_N "checking for _OtsFill in -lots... $ECHO_C" >&6
9184 if test "${ac_cv_lib_ots__OtsFill+set}" = set; then
9185 echo $ECHO_N "(cached) $ECHO_C" >&6
9186 else
9187 ac_check_lib_save_LIBS=$LIBS
9188 LIBS="-lots $F77LIBS $LIBS"
9189 cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h. */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9195
9196 /* Override any gcc2 internal prototype to avoid an error. */
9197 #ifdef __cplusplus
9198 extern "C"
9199 #endif
9200 /* We use char because int might match the return type of a gcc2
9201 builtin and then its argument prototype would still apply. */
9202 char _OtsFill ();
9203 int
9204 main ()
9205 {
9206 _OtsFill ();
9207 ;
9208 return 0;
9209 }
9210 _ACEOF
9211 rm -f conftest.$ac_objext conftest$ac_exeext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9213 (eval $ac_link) 2>conftest.er1
9214 ac_status=$?
9215 grep -v '^ *+' conftest.er1 >conftest.err
9216 rm -f conftest.er1
9217 cat conftest.err >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); } &&
9220 { ac_try='test -z "$ac_c_werror_flag"
9221 || test ! -s conftest.err'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; } &&
9227 { ac_try='test -s conftest$ac_exeext'
9228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 (eval $ac_try) 2>&5
9230 ac_status=$?
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); }; }; then
9233 ac_cv_lib_ots__OtsFill=yes
9234 else
9235 echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 ac_cv_lib_ots__OtsFill=no
9239 fi
9240 rm -f conftest.err conftest.$ac_objext \
9241 conftest$ac_exeext conftest.$ac_ext
9242 LIBS=$ac_check_lib_save_LIBS
9243 fi
9244 echo "$as_me:$LINENO: result: $ac_cv_lib_ots__OtsFill" >&5
9245 echo "${ECHO_T}$ac_cv_lib_ots__OtsFill" >&6
9246 if test $ac_cv_lib_ots__OtsFill = yes; then
9247 F77LIBS="$F77LIBS -lots"
9248 fi
9249
9250 echo "$as_me:$LINENO: checking for etime_ in -lUfor" >&5
9251 echo $ECHO_N "checking for etime_ in -lUfor... $ECHO_C" >&6
9252 if test "${ac_cv_lib_Ufor_etime_+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255 ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-lUfor $F77LIBS $LIBS"
9257 cat >conftest.$ac_ext <<_ACEOF
9258 /* confdefs.h. */
9259 _ACEOF
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9263
9264 /* Override any gcc2 internal prototype to avoid an error. */
9265 #ifdef __cplusplus
9266 extern "C"
9267 #endif
9268 /* We use char because int might match the return type of a gcc2
9269 builtin and then its argument prototype would still apply. */
9270 char etime_ ();
9271 int
9272 main ()
9273 {
9274 etime_ ();
9275 ;
9276 return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>conftest.er1
9282 ac_status=$?
9283 grep -v '^ *+' conftest.er1 >conftest.err
9284 rm -f conftest.er1
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try='test -z "$ac_c_werror_flag"
9289 || test ! -s conftest.err'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9291 (eval $ac_try) 2>&5
9292 ac_status=$?
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; } &&
9295 { ac_try='test -s conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9301 ac_cv_lib_Ufor_etime_=yes
9302 else
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9305
9306 ac_cv_lib_Ufor_etime_=no
9307 fi
9308 rm -f conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
9310 LIBS=$ac_check_lib_save_LIBS
9311 fi
9312 echo "$as_me:$LINENO: result: $ac_cv_lib_Ufor_etime_" >&5
9313 echo "${ECHO_T}$ac_cv_lib_Ufor_etime_" >&6
9314 if test $ac_cv_lib_Ufor_etime_ = yes; then
9315 F77LIBS="$F77LIBS -lUfor"
9316 fi
9317
9318 ;;
9319 mips-dec-ultrix*)
9320 echo "$as_me:$LINENO: checking for for_lle in -lfor" >&5
9321 echo $ECHO_N "checking for for_lle in -lfor... $ECHO_C" >&6
9322 if test "${ac_cv_lib_for_for_lle+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 ac_check_lib_save_LIBS=$LIBS
9326 LIBS="-lfor $F77LIBS $LIBS"
9327 cat >conftest.$ac_ext <<_ACEOF
9328 /* confdefs.h. */
9329 _ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9333
9334 /* Override any gcc2 internal prototype to avoid an error. */
9335 #ifdef __cplusplus
9336 extern "C"
9337 #endif
9338 /* We use char because int might match the return type of a gcc2
9339 builtin and then its argument prototype would still apply. */
9340 char for_lle ();
9341 int
9342 main ()
9343 {
9344 for_lle ();
9345 ;
9346 return 0;
9347 }
9348 _ACEOF
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9351 (eval $ac_link) 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -z "$ac_c_werror_flag"
9359 || test ! -s conftest.err'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361 (eval $ac_try) 2>&5
9362 ac_status=$?
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; } &&
9365 { ac_try='test -s conftest$ac_exeext'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9367 (eval $ac_try) 2>&5
9368 ac_status=$?
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; }; then
9371 ac_cv_lib_for_for_lle=yes
9372 else
9373 echo "$as_me: failed program was:" >&5
9374 sed 's/^/| /' conftest.$ac_ext >&5
9375
9376 ac_cv_lib_for_for_lle=no
9377 fi
9378 rm -f conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9380 LIBS=$ac_check_lib_save_LIBS
9381 fi
9382 echo "$as_me:$LINENO: result: $ac_cv_lib_for_for_lle" >&5
9383 echo "${ECHO_T}$ac_cv_lib_for_for_lle" >&6
9384 if test $ac_cv_lib_for_for_lle = yes; then
9385 F77LIBS="$F77LIBS -lfor"
9386 fi
9387
9388 ;;
9389 hppa1.1-hp-hpux*)
9390 echo "$as_me:$LINENO: checking for FTN_QATAN in -lcl" >&5
9391 echo $ECHO_N "checking for FTN_QATAN in -lcl... $ECHO_C" >&6
9392 if test "${ac_cv_lib_cl_FTN_QATAN+set}" = set; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395 ac_check_lib_save_LIBS=$LIBS
9396 LIBS="-lcl $F77LIBS $LIBS"
9397 cat >conftest.$ac_ext <<_ACEOF
9398 /* confdefs.h. */
9399 _ACEOF
9400 cat confdefs.h >>conftest.$ac_ext
9401 cat >>conftest.$ac_ext <<_ACEOF
9402 /* end confdefs.h. */
9403
9404 /* Override any gcc2 internal prototype to avoid an error. */
9405 #ifdef __cplusplus
9406 extern "C"
9407 #endif
9408 /* We use char because int might match the return type of a gcc2
9409 builtin and then its argument prototype would still apply. */
9410 char FTN_QATAN ();
9411 int
9412 main ()
9413 {
9414 FTN_QATAN ();
9415 ;
9416 return 0;
9417 }
9418 _ACEOF
9419 rm -f conftest.$ac_objext conftest$ac_exeext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9421 (eval $ac_link) 2>conftest.er1
9422 ac_status=$?
9423 grep -v '^ *+' conftest.er1 >conftest.err
9424 rm -f conftest.er1
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_c_werror_flag"
9429 || test ! -s conftest.err'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9431 (eval $ac_try) 2>&5
9432 ac_status=$?
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; } &&
9435 { ac_try='test -s conftest$ac_exeext'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 (eval $ac_try) 2>&5
9438 ac_status=$?
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; }; then
9441 ac_cv_lib_cl_FTN_QATAN=yes
9442 else
9443 echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446 ac_cv_lib_cl_FTN_QATAN=no
9447 fi
9448 rm -f conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9450 LIBS=$ac_check_lib_save_LIBS
9451 fi
9452 echo "$as_me:$LINENO: result: $ac_cv_lib_cl_FTN_QATAN" >&5
9453 echo "${ECHO_T}$ac_cv_lib_cl_FTN_QATAN" >&6
9454 if test $ac_cv_lib_cl_FTN_QATAN = yes; then
9455 F77LIBS="$F77LIBS -lcl"
9456 fi
9457
9458 ;;
9459 *-ibm-aix*)
9460 # need to add -lc before -lxlf on AIX to
9461 # avoid getting the wrong getenv
9462 F77LIBS="-lc $F77LIBS"
9463 echo "$as_me:$LINENO: checking for _xldabs in -lxlf" >&5
9464 echo $ECHO_N "checking for _xldabs in -lxlf... $ECHO_C" >&6
9465 if test "${ac_cv_lib_xlf__xldabs+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468 ac_check_lib_save_LIBS=$LIBS
9469 LIBS="-lxlf $F77LIBS $LIBS"
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h. */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h. */
9476
9477 /* Override any gcc2 internal prototype to avoid an error. */
9478 #ifdef __cplusplus
9479 extern "C"
9480 #endif
9481 /* We use char because int might match the return type of a gcc2
9482 builtin and then its argument prototype would still apply. */
9483 char _xldabs ();
9484 int
9485 main ()
9486 {
9487 _xldabs ();
9488 ;
9489 return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9494 (eval $ac_link) 2>conftest.er1
9495 ac_status=$?
9496 grep -v '^ *+' conftest.er1 >conftest.err
9497 rm -f conftest.er1
9498 cat conftest.err >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); } &&
9501 { ac_try='test -z "$ac_c_werror_flag"
9502 || test ! -s conftest.err'
9503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504 (eval $ac_try) 2>&5
9505 ac_status=$?
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); }; } &&
9508 { ac_try='test -s conftest$ac_exeext'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; }; then
9514 ac_cv_lib_xlf__xldabs=yes
9515 else
9516 echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 ac_cv_lib_xlf__xldabs=no
9520 fi
9521 rm -f conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9523 LIBS=$ac_check_lib_save_LIBS
9524 fi
9525 echo "$as_me:$LINENO: result: $ac_cv_lib_xlf__xldabs" >&5
9526 echo "${ECHO_T}$ac_cv_lib_xlf__xldabs" >&6
9527 if test $ac_cv_lib_xlf__xldabs = yes; then
9528 F77LIBS="$F77LIBS -lxlf"
9529 fi
9530
9531 echo "$as_me:$LINENO: checking for srand_ in -lxlfutil" >&5
9532 echo $ECHO_N "checking for srand_ in -lxlfutil... $ECHO_C" >&6
9533 if test "${ac_cv_lib_xlfutil_srand_+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9535 else
9536 ac_check_lib_save_LIBS=$LIBS
9537 LIBS="-lxlfutil $F77LIBS $LIBS"
9538 cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h. */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544
9545 /* Override any gcc2 internal prototype to avoid an error. */
9546 #ifdef __cplusplus
9547 extern "C"
9548 #endif
9549 /* We use char because int might match the return type of a gcc2
9550 builtin and then its argument prototype would still apply. */
9551 char srand_ ();
9552 int
9553 main ()
9554 {
9555 srand_ ();
9556 ;
9557 return 0;
9558 }
9559 _ACEOF
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9562 (eval $ac_link) 2>conftest.er1
9563 ac_status=$?
9564 grep -v '^ *+' conftest.er1 >conftest.err
9565 rm -f conftest.er1
9566 cat conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 (exit $ac_status); } &&
9569 { ac_try='test -z "$ac_c_werror_flag"
9570 || test ! -s conftest.err'
9571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9572 (eval $ac_try) 2>&5
9573 ac_status=$?
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; }; then
9582 ac_cv_lib_xlfutil_srand_=yes
9583 else
9584 echo "$as_me: failed program was:" >&5
9585 sed 's/^/| /' conftest.$ac_ext >&5
9586
9587 ac_cv_lib_xlfutil_srand_=no
9588 fi
9589 rm -f conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9591 LIBS=$ac_check_lib_save_LIBS
9592 fi
9593 echo "$as_me:$LINENO: result: $ac_cv_lib_xlfutil_srand_" >&5
9594 echo "${ECHO_T}$ac_cv_lib_xlfutil_srand_" >&6
9595 if test $ac_cv_lib_xlfutil_srand_ = yes; then
9596 F77LIBS="$F77LIBS -lxlfutil"
9597 fi
9598
9599 echo "$as_me:$LINENO: checking for printf in -lxlf90" >&5
9600 echo $ECHO_N "checking for printf in -lxlf90... $ECHO_C" >&6
9601 if test "${ac_cv_lib_xlf90_printf+set}" = set; then
9602 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 else
9604 ac_check_lib_save_LIBS=$LIBS
9605 LIBS="-lxlf90 $F77LIBS $LIBS"
9606 cat >conftest.$ac_ext <<_ACEOF
9607 /* confdefs.h. */
9608 _ACEOF
9609 cat confdefs.h >>conftest.$ac_ext
9610 cat >>conftest.$ac_ext <<_ACEOF
9611 /* end confdefs.h. */
9612
9613 /* Override any gcc2 internal prototype to avoid an error. */
9614 #ifdef __cplusplus
9615 extern "C"
9616 #endif
9617 /* We use char because int might match the return type of a gcc2
9618 builtin and then its argument prototype would still apply. */
9619 char printf ();
9620 int
9621 main ()
9622 {
9623 printf ();
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9630 (eval $ac_link) 2>conftest.er1
9631 ac_status=$?
9632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -z "$ac_c_werror_flag"
9638 || test ! -s conftest.err'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; } &&
9644 { ac_try='test -s conftest$ac_exeext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_cv_lib_xlf90_printf=yes
9651 else
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9654
9655 ac_cv_lib_xlf90_printf=no
9656 fi
9657 rm -f conftest.err conftest.$ac_objext \
9658 conftest$ac_exeext conftest.$ac_ext
9659 LIBS=$ac_check_lib_save_LIBS
9660 fi
9661 echo "$as_me:$LINENO: result: $ac_cv_lib_xlf90_printf" >&5
9662 echo "${ECHO_T}$ac_cv_lib_xlf90_printf" >&6
9663 if test $ac_cv_lib_xlf90_printf = yes; then
9664 F77LIBS="$F77LIBS -lxlf90"
9665 fi
9666
9667 ;;
9668 *-linux-*)
9669 echo "$as_me:$LINENO: checking for pow_dd in -lf2c" >&5
9670 echo $ECHO_N "checking for pow_dd in -lf2c... $ECHO_C" >&6
9671 if test "${ac_cv_lib_f2c_pow_dd+set}" = set; then
9672 echo $ECHO_N "(cached) $ECHO_C" >&6
9673 else
9674 ac_check_lib_save_LIBS=$LIBS
9675 LIBS="-lf2c $F77LIBS $LIBS"
9676 cat >conftest.$ac_ext <<_ACEOF
9677 /* confdefs.h. */
9678 _ACEOF
9679 cat confdefs.h >>conftest.$ac_ext
9680 cat >>conftest.$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682
9683 /* Override any gcc2 internal prototype to avoid an error. */
9684 #ifdef __cplusplus
9685 extern "C"
9686 #endif
9687 /* We use char because int might match the return type of a gcc2
9688 builtin and then its argument prototype would still apply. */
9689 char pow_dd ();
9690 int
9691 main ()
9692 {
9693 pow_dd ();
9694 ;
9695 return 0;
9696 }
9697 _ACEOF
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag"
9708 || test ! -s conftest.err'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 (eval $ac_try) 2>&5
9717 ac_status=$?
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9720 ac_cv_lib_f2c_pow_dd=yes
9721 else
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9724
9725 ac_cv_lib_f2c_pow_dd=no
9726 fi
9727 rm -f conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729 LIBS=$ac_check_lib_save_LIBS
9730 fi
9731 echo "$as_me:$LINENO: result: $ac_cv_lib_f2c_pow_dd" >&5
9732 echo "${ECHO_T}$ac_cv_lib_f2c_pow_dd" >&6
9733 if test $ac_cv_lib_f2c_pow_dd = yes; then
9734 F77LIBS="$F77LIBS -lf2c"
9735 fi
9736
9737 echo "$as_me:$LINENO: checking for pow_dd in -lg2c" >&5
9738 echo $ECHO_N "checking for pow_dd in -lg2c... $ECHO_C" >&6
9739 if test "${ac_cv_lib_g2c_pow_dd+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 else
9742 ac_check_lib_save_LIBS=$LIBS
9743 LIBS="-lg2c $F77LIBS $LIBS"
9744 cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h. */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750
9751 /* Override any gcc2 internal prototype to avoid an error. */
9752 #ifdef __cplusplus
9753 extern "C"
9754 #endif
9755 /* We use char because int might match the return type of a gcc2
9756 builtin and then its argument prototype would still apply. */
9757 char pow_dd ();
9758 int
9759 main ()
9760 {
9761 pow_dd ();
9762 ;
9763 return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768 (eval $ac_link) 2>conftest.er1
9769 ac_status=$?
9770 grep -v '^ *+' conftest.er1 >conftest.err
9771 rm -f conftest.er1
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag"
9776 || test ! -s conftest.err'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 (eval $ac_try) 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; } &&
9782 { ac_try='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 (eval $ac_try) 2>&5
9785 ac_status=$?
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 ac_cv_lib_g2c_pow_dd=yes
9789 else
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9792
9793 ac_cv_lib_g2c_pow_dd=no
9794 fi
9795 rm -f conftest.err conftest.$ac_objext \
9796 conftest$ac_exeext conftest.$ac_ext
9797 LIBS=$ac_check_lib_save_LIBS
9798 fi
9799 echo "$as_me:$LINENO: result: $ac_cv_lib_g2c_pow_dd" >&5
9800 echo "${ECHO_T}$ac_cv_lib_g2c_pow_dd" >&6
9801 if test $ac_cv_lib_g2c_pow_dd = yes; then
9802 F77LIBS="$F77LIBS -lg2c"
9803 fi
9804
9805 ;;
9806 sparc-sun-solaris*)
9807 if test -n "$GCC" ; then
9808 F77LIBS="-L/opt/SUNWspro/lib -R/opt/SUNWspro/lib"
9809 fi
9810 echo "$as_me:$LINENO: checking for d_sqrt_ in -lsunmath" >&5
9811 echo $ECHO_N "checking for d_sqrt_ in -lsunmath... $ECHO_C" >&6
9812 if test "${ac_cv_lib_sunmath_d_sqrt_+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 else
9815 ac_check_lib_save_LIBS=$LIBS
9816 LIBS="-lsunmath $LIBS"
9817 cat >conftest.$ac_ext <<_ACEOF
9818 /* confdefs.h. */
9819 _ACEOF
9820 cat confdefs.h >>conftest.$ac_ext
9821 cat >>conftest.$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9823
9824 /* Override any gcc2 internal prototype to avoid an error. */
9825 #ifdef __cplusplus
9826 extern "C"
9827 #endif
9828 /* We use char because int might match the return type of a gcc2
9829 builtin and then its argument prototype would still apply. */
9830 char d_sqrt_ ();
9831 int
9832 main ()
9833 {
9834 d_sqrt_ ();
9835 ;
9836 return 0;
9837 }
9838 _ACEOF
9839 rm -f conftest.$ac_objext conftest$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_cv_lib_sunmath_d_sqrt_=yes
9862 else
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9865
9866 ac_cv_lib_sunmath_d_sqrt_=no
9867 fi
9868 rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870 LIBS=$ac_check_lib_save_LIBS
9871 fi
9872 echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_d_sqrt_" >&5
9873 echo "${ECHO_T}$ac_cv_lib_sunmath_d_sqrt_" >&6
9874 if test $ac_cv_lib_sunmath_d_sqrt_ = yes; then
9875 MATH_LIBS="-lsunmath $MATH_LIBS"
9876 fi
9877
9878 echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5
9879 echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6
9880 if test "${ac_cv_lib_F77_f77_init+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883 ac_check_lib_save_LIBS=$LIBS
9884 LIBS="-lF77 $F77LIBS $MATH_LIBS $LIBS"
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891
9892 /* Override any gcc2 internal prototype to avoid an error. */
9893 #ifdef __cplusplus
9894 extern "C"
9895 #endif
9896 /* We use char because int might match the return type of a gcc2
9897 builtin and then its argument prototype would still apply. */
9898 char f77_init ();
9899 int
9900 main ()
9901 {
9902 f77_init ();
9903 ;
9904 return 0;
9905 }
9906 _ACEOF
9907 rm -f conftest.$ac_objext conftest$ac_exeext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9909 (eval $ac_link) 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag"
9917 || test ! -s conftest.err'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; } &&
9923 { ac_try='test -s conftest$ac_exeext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925 (eval $ac_try) 2>&5
9926 ac_status=$?
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_lib_F77_f77_init=yes
9930 else
9931 echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9933
9934 ac_cv_lib_F77_f77_init=no
9935 fi
9936 rm -f conftest.err conftest.$ac_objext \
9937 conftest$ac_exeext conftest.$ac_ext
9938 LIBS=$ac_check_lib_save_LIBS
9939 fi
9940 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5
9941 echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6
9942 if test $ac_cv_lib_F77_f77_init = yes; then
9943 F77LIBS="$F77LIBS -lF77"
9944 fi
9945
9946 echo "$as_me:$LINENO: checking for inmax_ in -lM77" >&5
9947 echo $ECHO_N "checking for inmax_ in -lM77... $ECHO_C" >&6
9948 if test "${ac_cv_lib_M77_inmax_+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 else
9951 ac_check_lib_save_LIBS=$LIBS
9952 LIBS="-lM77 $F77LIBS $MATH_LIBS $LIBS"
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959
9960 /* Override any gcc2 internal prototype to avoid an error. */
9961 #ifdef __cplusplus
9962 extern "C"
9963 #endif
9964 /* We use char because int might match the return type of a gcc2
9965 builtin and then its argument prototype would still apply. */
9966 char inmax_ ();
9967 int
9968 main ()
9969 {
9970 inmax_ ();
9971 ;
9972 return 0;
9973 }
9974 _ACEOF
9975 rm -f conftest.$ac_objext conftest$ac_exeext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977 (eval $ac_link) 2>conftest.er1
9978 ac_status=$?
9979 grep -v '^ *+' conftest.er1 >conftest.err
9980 rm -f conftest.er1
9981 cat conftest.err >&5
9982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9983 (exit $ac_status); } &&
9984 { ac_try='test -z "$ac_c_werror_flag"
9985 || test ! -s conftest.err'
9986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 (eval $ac_try) 2>&5
9988 ac_status=$?
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990 (exit $ac_status); }; } &&
9991 { ac_try='test -s conftest$ac_exeext'
9992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 (eval $ac_try) 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 ac_cv_lib_M77_inmax_=yes
9998 else
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10001
10002 ac_cv_lib_M77_inmax_=no
10003 fi
10004 rm -f conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_lib_save_LIBS
10007 fi
10008 echo "$as_me:$LINENO: result: $ac_cv_lib_M77_inmax_" >&5
10009 echo "${ECHO_T}$ac_cv_lib_M77_inmax_" >&6
10010 if test $ac_cv_lib_M77_inmax_ = yes; then
10011 F77LIBS="$F77LIBS -lM77"
10012 fi
10013
10014 ;;
10015 sparc-sun-sunos4*)
10016 if test -n "$GCC" ; then
10017 F77LIBS="-L/usr/lang/lib"
10018 fi
10019 echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5
10020 echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6
10021 if test "${ac_cv_lib_F77_f77_init+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 else
10024 ac_check_lib_save_LIBS=$LIBS
10025 LIBS="-lF77 $F77LIBS $LIBS"
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h. */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032
10033 /* Override any gcc2 internal prototype to avoid an error. */
10034 #ifdef __cplusplus
10035 extern "C"
10036 #endif
10037 /* We use char because int might match the return type of a gcc2
10038 builtin and then its argument prototype would still apply. */
10039 char f77_init ();
10040 int
10041 main ()
10042 {
10043 f77_init ();
10044 ;
10045 return 0;
10046 }
10047 _ACEOF
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10050 (eval $ac_link) 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } &&
10057 { ac_try='test -z "$ac_c_werror_flag"
10058 || test ! -s conftest.err'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10061 ac_status=$?
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; } &&
10064 { ac_try='test -s conftest$ac_exeext'
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 ac_cv_lib_F77_f77_init=yes
10071 else
10072 echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10074
10075 ac_cv_lib_F77_f77_init=no
10076 fi
10077 rm -f conftest.err conftest.$ac_objext \
10078 conftest$ac_exeext conftest.$ac_ext
10079 LIBS=$ac_check_lib_save_LIBS
10080 fi
10081 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5
10082 echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6
10083 if test $ac_cv_lib_F77_f77_init = yes; then
10084 F77LIBS="$F77LIBS -lF77"
10085 fi
10086
10087 echo "$as_me:$LINENO: checking for inmax_ in -lM77" >&5
10088 echo $ECHO_N "checking for inmax_ in -lM77... $ECHO_C" >&6
10089 if test "${ac_cv_lib_M77_inmax_+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092 ac_check_lib_save_LIBS=$LIBS
10093 LIBS="-lM77 $F77LIBS $LIBS"
10094 cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h. */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h. */
10100
10101 /* Override any gcc2 internal prototype to avoid an error. */
10102 #ifdef __cplusplus
10103 extern "C"
10104 #endif
10105 /* We use char because int might match the return type of a gcc2
10106 builtin and then its argument prototype would still apply. */
10107 char inmax_ ();
10108 int
10109 main ()
10110 {
10111 inmax_ ();
10112 ;
10113 return 0;
10114 }
10115 _ACEOF
10116 rm -f conftest.$ac_objext conftest$ac_exeext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10118 (eval $ac_link) 2>conftest.er1
10119 ac_status=$?
10120 grep -v '^ *+' conftest.er1 >conftest.err
10121 rm -f conftest.er1
10122 cat conftest.err >&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -z "$ac_c_werror_flag"
10126 || test ! -s conftest.err'
10127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10128 (eval $ac_try) 2>&5
10129 ac_status=$?
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; } &&
10132 { ac_try='test -s conftest$ac_exeext'
10133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134 (eval $ac_try) 2>&5
10135 ac_status=$?
10136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137 (exit $ac_status); }; }; then
10138 ac_cv_lib_M77_inmax_=yes
10139 else
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10142
10143 ac_cv_lib_M77_inmax_=no
10144 fi
10145 rm -f conftest.err conftest.$ac_objext \
10146 conftest$ac_exeext conftest.$ac_ext
10147 LIBS=$ac_check_lib_save_LIBS
10148 fi
10149 echo "$as_me:$LINENO: result: $ac_cv_lib_M77_inmax_" >&5
10150 echo "${ECHO_T}$ac_cv_lib_M77_inmax_" >&6
10151 if test $ac_cv_lib_M77_inmax_ = yes; then
10152 F77LIBS="$F77LIBS -lM77"
10153 fi
10154
10155 ;;
10156 mips-sgi-irix*)
10157 echo "$as_me:$LINENO: checking for s_copy in -lF77" >&5
10158 echo $ECHO_N "checking for s_copy in -lF77... $ECHO_C" >&6
10159 if test "${ac_cv_lib_F77_s_copy+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162 ac_check_lib_save_LIBS=$LIBS
10163 LIBS="-lF77 $F77LIBS $LIBS"
10164 cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h. */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170
10171 /* Override any gcc2 internal prototype to avoid an error. */
10172 #ifdef __cplusplus
10173 extern "C"
10174 #endif
10175 /* We use char because int might match the return type of a gcc2
10176 builtin and then its argument prototype would still apply. */
10177 char s_copy ();
10178 int
10179 main ()
10180 {
10181 s_copy ();
10182 ;
10183 return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10189 ac_status=$?
10190 grep -v '^ *+' conftest.er1 >conftest.err
10191 rm -f conftest.er1
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_c_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10199 ac_status=$?
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10205 ac_status=$?
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10208 ac_cv_lib_F77_s_copy=yes
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10212
10213 ac_cv_lib_F77_s_copy=no
10214 fi
10215 rm -f conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
10217 LIBS=$ac_check_lib_save_LIBS
10218 fi
10219 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_s_copy" >&5
10220 echo "${ECHO_T}$ac_cv_lib_F77_s_copy" >&6
10221 if test $ac_cv_lib_F77_s_copy = yes; then
10222 F77LIBS="$F77LIBS -lF77"
10223 fi
10224
10225 echo "$as_me:$LINENO: checking for f_exit in -lI77" >&5
10226 echo $ECHO_N "checking for f_exit in -lI77... $ECHO_C" >&6
10227 if test "${ac_cv_lib_I77_f_exit+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 else
10230 ac_check_lib_save_LIBS=$LIBS
10231 LIBS="-lI77 $F77LIBS $LIBS"
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238
10239 /* Override any gcc2 internal prototype to avoid an error. */
10240 #ifdef __cplusplus
10241 extern "C"
10242 #endif
10243 /* We use char because int might match the return type of a gcc2
10244 builtin and then its argument prototype would still apply. */
10245 char f_exit ();
10246 int
10247 main ()
10248 {
10249 f_exit ();
10250 ;
10251 return 0;
10252 }
10253 _ACEOF
10254 rm -f conftest.$ac_objext conftest$ac_exeext
10255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10256 (eval $ac_link) 2>conftest.er1
10257 ac_status=$?
10258 grep -v '^ *+' conftest.er1 >conftest.err
10259 rm -f conftest.er1
10260 cat conftest.err >&5
10261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262 (exit $ac_status); } &&
10263 { ac_try='test -z "$ac_c_werror_flag"
10264 || test ! -s conftest.err'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10267 ac_status=$?
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; } &&
10270 { ac_try='test -s conftest$ac_exeext'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10273 ac_status=$?
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; }; then
10276 ac_cv_lib_I77_f_exit=yes
10277 else
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10280
10281 ac_cv_lib_I77_f_exit=no
10282 fi
10283 rm -f conftest.err conftest.$ac_objext \
10284 conftest$ac_exeext conftest.$ac_ext
10285 LIBS=$ac_check_lib_save_LIBS
10286 fi
10287 echo "$as_me:$LINENO: result: $ac_cv_lib_I77_f_exit" >&5
10288 echo "${ECHO_T}$ac_cv_lib_I77_f_exit" >&6
10289 if test $ac_cv_lib_I77_f_exit = yes; then
10290 F77LIBS="$F77LIBS -lI77"
10291 fi
10292
10293 echo "$as_me:$LINENO: checking for mkidxname in -lisam" >&5
10294 echo $ECHO_N "checking for mkidxname in -lisam... $ECHO_C" >&6
10295 if test "${ac_cv_lib_isam_mkidxname+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298 ac_check_lib_save_LIBS=$LIBS
10299 LIBS="-lisam $F77LIBS $LIBS"
10300 cat >conftest.$ac_ext <<_ACEOF
10301 /* confdefs.h. */
10302 _ACEOF
10303 cat confdefs.h >>conftest.$ac_ext
10304 cat >>conftest.$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10306
10307 /* Override any gcc2 internal prototype to avoid an error. */
10308 #ifdef __cplusplus
10309 extern "C"
10310 #endif
10311 /* We use char because int might match the return type of a gcc2
10312 builtin and then its argument prototype would still apply. */
10313 char mkidxname ();
10314 int
10315 main ()
10316 {
10317 mkidxname ();
10318 ;
10319 return 0;
10320 }
10321 _ACEOF
10322 rm -f conftest.$ac_objext conftest$ac_exeext
10323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10324 (eval $ac_link) 2>conftest.er1
10325 ac_status=$?
10326 grep -v '^ *+' conftest.er1 >conftest.err
10327 rm -f conftest.er1
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } &&
10331 { ac_try='test -z "$ac_c_werror_flag"
10332 || test ! -s conftest.err'
10333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334 (eval $ac_try) 2>&5
10335 ac_status=$?
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); }; } &&
10338 { ac_try='test -s conftest$ac_exeext'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10341 ac_status=$?
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 ac_cv_lib_isam_mkidxname=yes
10345 else
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349 ac_cv_lib_isam_mkidxname=no
10350 fi
10351 rm -f conftest.err conftest.$ac_objext \
10352 conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10354 fi
10355 echo "$as_me:$LINENO: result: $ac_cv_lib_isam_mkidxname" >&5
10356 echo "${ECHO_T}$ac_cv_lib_isam_mkidxname" >&6
10357 if test $ac_cv_lib_isam_mkidxname = yes; then
10358 F77LIBS="$F77LIBS -lisam"
10359 fi
10360
10361 ;;
10362 *)
10363 echo "$as_me:$LINENO: checking for printf in -lF77" >&5
10364 echo $ECHO_N "checking for printf in -lF77... $ECHO_C" >&6
10365 if test "${ac_cv_lib_F77_printf+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368 ac_check_lib_save_LIBS=$LIBS
10369 LIBS="-lF77 $F77LIBS $LIBS"
10370 cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h. */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376
10377 /* Override any gcc2 internal prototype to avoid an error. */
10378 #ifdef __cplusplus
10379 extern "C"
10380 #endif
10381 /* We use char because int might match the return type of a gcc2
10382 builtin and then its argument prototype would still apply. */
10383 char printf ();
10384 int
10385 main ()
10386 {
10387 printf ();
10388 ;
10389 return 0;
10390 }
10391 _ACEOF
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10394 (eval $ac_link) 2>conftest.er1
10395 ac_status=$?
10396 grep -v '^ *+' conftest.er1 >conftest.err
10397 rm -f conftest.er1
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } &&
10401 { ac_try='test -z "$ac_c_werror_flag"
10402 || test ! -s conftest.err'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10405 ac_status=$?
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; } &&
10408 { ac_try='test -s conftest$ac_exeext'
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; }; then
10414 ac_cv_lib_F77_printf=yes
10415 else
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419 ac_cv_lib_F77_printf=no
10420 fi
10421 rm -f conftest.err conftest.$ac_objext \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10424 fi
10425 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_printf" >&5
10426 echo "${ECHO_T}$ac_cv_lib_F77_printf" >&6
10427 if test $ac_cv_lib_F77_printf = yes; then
10428 F77LIBS="$F77LIBS -lF77"
10429 fi
10430
10431 echo "$as_me:$LINENO: checking for printf in -lM77" >&5
10432 echo $ECHO_N "checking for printf in -lM77... $ECHO_C" >&6
10433 if test "${ac_cv_lib_M77_printf+set}" = set; then
10434 echo $ECHO_N "(cached) $ECHO_C" >&6
10435 else
10436 ac_check_lib_save_LIBS=$LIBS
10437 LIBS="-lM77 $F77LIBS $LIBS"
10438 cat >conftest.$ac_ext <<_ACEOF
10439 /* confdefs.h. */
10440 _ACEOF
10441 cat confdefs.h >>conftest.$ac_ext
10442 cat >>conftest.$ac_ext <<_ACEOF
10443 /* end confdefs.h. */
10444
10445 /* Override any gcc2 internal prototype to avoid an error. */
10446 #ifdef __cplusplus
10447 extern "C"
10448 #endif
10449 /* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10451 char printf ();
10452 int
10453 main ()
10454 {
10455 printf ();
10456 ;
10457 return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>conftest.er1
10463 ac_status=$?
10464 grep -v '^ *+' conftest.er1 >conftest.err
10465 rm -f conftest.er1
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag"
10470 || test ! -s conftest.err'
10471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10472 (eval $ac_try) 2>&5
10473 ac_status=$?
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); }; } &&
10476 { ac_try='test -s conftest$ac_exeext'
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; }; then
10482 ac_cv_lib_M77_printf=yes
10483 else
10484 echo "$as_me: failed program was:" >&5
10485 sed 's/^/| /' conftest.$ac_ext >&5
10486
10487 ac_cv_lib_M77_printf=no
10488 fi
10489 rm -f conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10491 LIBS=$ac_check_lib_save_LIBS
10492 fi
10493 echo "$as_me:$LINENO: result: $ac_cv_lib_M77_printf" >&5
10494 echo "${ECHO_T}$ac_cv_lib_M77_printf" >&6
10495 if test $ac_cv_lib_M77_printf = yes; then
10496 F77LIBS="$F77LIBS -lM77"
10497 fi
10498
10499 echo "$as_me:$LINENO: checking for pow_dd in -lf2c" >&5
10500 echo $ECHO_N "checking for pow_dd in -lf2c... $ECHO_C" >&6
10501 if test "${ac_cv_lib_f2c_pow_dd+set}" = set; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504 ac_check_lib_save_LIBS=$LIBS
10505 LIBS="-lf2c $F77LIBS $LIBS"
10506 cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h. */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512
10513 /* Override any gcc2 internal prototype to avoid an error. */
10514 #ifdef __cplusplus
10515 extern "C"
10516 #endif
10517 /* We use char because int might match the return type of a gcc2
10518 builtin and then its argument prototype would still apply. */
10519 char pow_dd ();
10520 int
10521 main ()
10522 {
10523 pow_dd ();
10524 ;
10525 return 0;
10526 }
10527 _ACEOF
10528 rm -f conftest.$ac_objext conftest$ac_exeext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10530 (eval $ac_link) 2>conftest.er1
10531 ac_status=$?
10532 grep -v '^ *+' conftest.er1 >conftest.err
10533 rm -f conftest.er1
10534 cat conftest.err >&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); } &&
10537 { ac_try='test -z "$ac_c_werror_flag"
10538 || test ! -s conftest.err'
10539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10540 (eval $ac_try) 2>&5
10541 ac_status=$?
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); }; } &&
10544 { ac_try='test -s conftest$ac_exeext'
10545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10546 (eval $ac_try) 2>&5
10547 ac_status=$?
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10550 ac_cv_lib_f2c_pow_dd=yes
10551 else
10552 echo "$as_me: failed program was:" >&5
10553 sed 's/^/| /' conftest.$ac_ext >&5
10554
10555 ac_cv_lib_f2c_pow_dd=no
10556 fi
10557 rm -f conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10560 fi
10561 echo "$as_me:$LINENO: result: $ac_cv_lib_f2c_pow_dd" >&5
10562 echo "${ECHO_T}$ac_cv_lib_f2c_pow_dd" >&6
10563 if test $ac_cv_lib_f2c_pow_dd = yes; then
10564 F77LIBS="$F77LIBS -lf2c"
10565 fi
10566
10567 echo "$as_me:$LINENO: checking for printf in -lf77" >&5
10568 echo $ECHO_N "checking for printf in -lf77... $ECHO_C" >&6
10569 if test "${ac_cv_lib_f77_printf+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10571 else
10572 ac_check_lib_save_LIBS=$LIBS
10573 LIBS="-lf77 $F77LIBS $LIBS"
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580
10581 /* Override any gcc2 internal prototype to avoid an error. */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 /* We use char because int might match the return type of a gcc2
10586 builtin and then its argument prototype would still apply. */
10587 char printf ();
10588 int
10589 main ()
10590 {
10591 printf ();
10592 ;
10593 return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598 (eval $ac_link) 2>conftest.er1
10599 ac_status=$?
10600 grep -v '^ *+' conftest.er1 >conftest.err
10601 rm -f conftest.er1
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -z "$ac_c_werror_flag"
10606 || test ! -s conftest.err'
10607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10608 (eval $ac_try) 2>&5
10609 ac_status=$?
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; } &&
10612 { ac_try='test -s conftest$ac_exeext'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10615 ac_status=$?
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; }; then
10618 ac_cv_lib_f77_printf=yes
10619 else
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10622
10623 ac_cv_lib_f77_printf=no
10624 fi
10625 rm -f conftest.err conftest.$ac_objext \
10626 conftest$ac_exeext conftest.$ac_ext
10627 LIBS=$ac_check_lib_save_LIBS
10628 fi
10629 echo "$as_me:$LINENO: result: $ac_cv_lib_f77_printf" >&5
10630 echo "${ECHO_T}$ac_cv_lib_f77_printf" >&6
10631 if test $ac_cv_lib_f77_printf = yes; then
10632 F77LIBS="$F77LIBS -lf77"
10633 fi
10634
10635 echo "$as_me:$LINENO: checking for printf in -lfor" >&5
10636 echo $ECHO_N "checking for printf in -lfor... $ECHO_C" >&6
10637 if test "${ac_cv_lib_for_printf+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640 ac_check_lib_save_LIBS=$LIBS
10641 LIBS="-lfor $F77LIBS $LIBS"
10642 cat >conftest.$ac_ext <<_ACEOF
10643 /* confdefs.h. */
10644 _ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10648
10649 /* Override any gcc2 internal prototype to avoid an error. */
10650 #ifdef __cplusplus
10651 extern "C"
10652 #endif
10653 /* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10655 char printf ();
10656 int
10657 main ()
10658 {
10659 printf ();
10660 ;
10661 return 0;
10662 }
10663 _ACEOF
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>conftest.er1
10667 ac_status=$?
10668 grep -v '^ *+' conftest.er1 >conftest.err
10669 rm -f conftest.er1
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag"
10674 || test ! -s conftest.err'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10677 ac_status=$?
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; } &&
10680 { ac_try='test -s conftest$ac_exeext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10683 ac_status=$?
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
10686 ac_cv_lib_for_printf=yes
10687 else
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10690
10691 ac_cv_lib_for_printf=no
10692 fi
10693 rm -f conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10696 fi
10697 echo "$as_me:$LINENO: result: $ac_cv_lib_for_printf" >&5
10698 echo "${ECHO_T}$ac_cv_lib_for_printf" >&6
10699 if test $ac_cv_lib_for_printf = yes; then
10700 F77LIBS="$F77LIBS -lfor"
10701 fi
10702
10703 echo "$as_me:$LINENO: checking for printf in -lots" >&5
10704 echo $ECHO_N "checking for printf in -lots... $ECHO_C" >&6
10705 if test "${ac_cv_lib_ots_printf+set}" = set; then
10706 echo $ECHO_N "(cached) $ECHO_C" >&6
10707 else
10708 ac_check_lib_save_LIBS=$LIBS
10709 LIBS="-lots $F77LIBS $LIBS"
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h. */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716
10717 /* Override any gcc2 internal prototype to avoid an error. */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 /* We use char because int might match the return type of a gcc2
10722 builtin and then its argument prototype would still apply. */
10723 char printf ();
10724 int
10725 main ()
10726 {
10727 printf ();
10728 ;
10729 return 0;
10730 }
10731 _ACEOF
10732 rm -f conftest.$ac_objext conftest$ac_exeext
10733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10734 (eval $ac_link) 2>conftest.er1
10735 ac_status=$?
10736 grep -v '^ *+' conftest.er1 >conftest.err
10737 rm -f conftest.er1
10738 cat conftest.err >&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); } &&
10741 { ac_try='test -z "$ac_c_werror_flag"
10742 || test ! -s conftest.err'
10743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744 (eval $ac_try) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; } &&
10748 { ac_try='test -s conftest$ac_exeext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 ac_cv_lib_ots_printf=yes
10755 else
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10758
10759 ac_cv_lib_ots_printf=no
10760 fi
10761 rm -f conftest.err conftest.$ac_objext \
10762 conftest$ac_exeext conftest.$ac_ext
10763 LIBS=$ac_check_lib_save_LIBS
10764 fi
10765 echo "$as_me:$LINENO: result: $ac_cv_lib_ots_printf" >&5
10766 echo "${ECHO_T}$ac_cv_lib_ots_printf" >&6
10767 if test $ac_cv_lib_ots_printf = yes; then
10768 F77LIBS="$F77LIBS -lots"
10769 fi
10770
10771 echo "$as_me:$LINENO: checking for printf in -lUfor" >&5
10772 echo $ECHO_N "checking for printf in -lUfor... $ECHO_C" >&6
10773 if test "${ac_cv_lib_Ufor_printf+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10775 else
10776 ac_check_lib_save_LIBS=$LIBS
10777 LIBS="-lUfor $F77LIBS $LIBS"
10778 cat >conftest.$ac_ext <<_ACEOF
10779 /* confdefs.h. */
10780 _ACEOF
10781 cat confdefs.h >>conftest.$ac_ext
10782 cat >>conftest.$ac_ext <<_ACEOF
10783 /* end confdefs.h. */
10784
10785 /* Override any gcc2 internal prototype to avoid an error. */
10786 #ifdef __cplusplus
10787 extern "C"
10788 #endif
10789 /* We use char because int might match the return type of a gcc2
10790 builtin and then its argument prototype would still apply. */
10791 char printf ();
10792 int
10793 main ()
10794 {
10795 printf ();
10796 ;
10797 return 0;
10798 }
10799 _ACEOF
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10802 (eval $ac_link) 2>conftest.er1
10803 ac_status=$?
10804 grep -v '^ *+' conftest.er1 >conftest.err
10805 rm -f conftest.er1
10806 cat conftest.err >&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -z "$ac_c_werror_flag"
10810 || test ! -s conftest.err'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10813 ac_status=$?
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest$ac_exeext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10819 ac_status=$?
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 ac_cv_lib_Ufor_printf=yes
10823 else
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10826
10827 ac_cv_lib_Ufor_printf=no
10828 fi
10829 rm -f conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LIBS=$ac_check_lib_save_LIBS
10832 fi
10833 echo "$as_me:$LINENO: result: $ac_cv_lib_Ufor_printf" >&5
10834 echo "${ECHO_T}$ac_cv_lib_Ufor_printf" >&6
10835 if test $ac_cv_lib_Ufor_printf = yes; then
10836 F77LIBS="$F77LIBS -lUfor"
10837 fi
10838
10839 ;;
10840 esac
10841 fi
10842
10843 # asc_subdirs are the extra fortran subdirectories we have to visit
10844 # to build the fortran libraries. Initialize it to empty here.
10845 asc_subdirs=''
10846
10847 # Initialize the blas variables
10848 make_blaslib=''
10849
10850
10851 # Check whether --with-blas or --without-blas was given.
10852 if test "${with_blas+set}" = set; then
10853 withval="$with_blas"
10854
10855 else
10856 with_blas=yes
10857 fi;
10858 case "$with_fortran$with_blas" in
10859 no*)
10860 # Fortran is disabled; ignore this option (if present)
10861 BLASLIB=
10862 ;;
10863 *no)
10864 # It is an error if the user chooses to build without
10865 # the BLAS library if Fortran is enabled.
10866 { { echo "$as_me:$LINENO: error: Bad option '--without-blas'
10867 To support Fortran calls, ASCEND must be compiled with a blas library" >&5
10868 echo "$as_me: error: Bad option '--without-blas'
10869 To support Fortran calls, ASCEND must be compiled with a blas library" >&2;}
10870 { (exit 1); exit 1; }; }
10871 ;;
10872 *build)
10873 # Fortran is enabled and the user specified --with-blas=build
10874 # For a search for BLAS source code and tell the Makefile
10875 # to build it; useful for testing configure.
10876 #AWW20041206: blas_src_file="$srcdir/blas/dcopy.f"
10877 blas_src_file="$srcdir/../../blas/dcopy.f"
10878 echo "$as_me:$LINENO: checking for blas source file $blas_src_file " >&5
10879 echo $ECHO_N "checking for blas source file $blas_src_file ... $ECHO_C" >&6
10880 if test -f $blas_src_file ; then
10881 echo "$as_me:$LINENO: result: yes" >&5
10882 echo "${ECHO_T}yes" >&6
10883 #AWW20041119: BLASLIB="$ascpwd/ascend4/archive/libascblas.a"
10884 BLASLIB="$ascpwd/archive/libascblas.a"
10885 make_blaslib='make-blaslib'
10886 #AWW20041206: blaslib_makefile="blas/Makefile"
10887 blaslib_makefile="blas/Makefile:../../blas/Makefile.in"
10888 #AWW20041206: asc_subdirs="$asc_subdirs ../blas"
10889 asc_subdirs="$asc_subdirs blas"
10890 else
10891 echo "$as_me:$LINENO: result: no" >&5
10892 echo "${ECHO_T}no" >&6
10893 { { echo "$as_me:$LINENO: error: User specified '--with-blas=build' but
10894 configure cannot find the blas source file $blas_src_file" >&5
10895 echo "$as_me: error: User specified '--with-blas=build' but
10896 configure cannot find the blas source file $blas_src_file" >&2;}
10897 { (exit 1); exit 1; }; }
10898 fi
10899 ;;
10900 *yes)
10901 # Fortran in enabled and the user didn't give the --with-blas
10902 # option or didn't give the library's location.
10903 # Search for a compiled libblas.a or libascblas.a; if that
10904 # fails, look for BLAS source code; if that also fails,
10905 # disable all Fortran and print a warning.
10906 for ac_prog in libblas.a libascblas.a
10907 do
10908 # Extract the first word of "$ac_prog", so it can be a program name with args.
10909 set dummy $ac_prog; ac_word=$2
10910 echo "$as_me:$LINENO: checking for $ac_word" >&5
10911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10912 if test "${ac_cv_path_BLASLIB+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 else
10915 case $BLASLIB in
10916 [\\/]* | ?:[\\/]*)
10917 ac_cv_path_BLASLIB="$BLASLIB" # Let the user override the test with a path.
10918 ;;
10919 *)
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $asc_f77_support_dirs
10922 do
10923 IFS=$as_save_IFS
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10927 ac_cv_path_BLASLIB="$as_dir/$ac_word$ac_exec_ext"
10928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10929 break 2
10930 fi
10931 done
10932 done
10933
10934 ;;
10935 esac
10936 fi
10937 BLASLIB=$ac_cv_path_BLASLIB
10938
10939 if test -n "$BLASLIB"; then
10940 echo "$as_me:$LINENO: result: $BLASLIB" >&5
10941 echo "${ECHO_T}$BLASLIB" >&6
10942 else
10943 echo "$as_me:$LINENO: result: no" >&5
10944 echo "${ECHO_T}no" >&6
10945 fi
10946
10947 test -n "$BLASLIB" && break
10948 done
10949
10950 blas_src_file="$srcdir/../../blas/dcopy.f"
10951 if test -z "$BLASLIB" -a -n "$blas_src_file" ; then
10952 echo "$as_me:$LINENO: checking for blas source file $blas_src_file " >&5
10953 echo $ECHO_N "checking for blas source file $blas_src_file ... $ECHO_C" >&6
10954 if test -f $blas_src_file ; then
10955 echo "$as_me:$LINENO: result: yes" >&5
10956 echo "${ECHO_T}yes" >&6
10957 #AWW20041119: BLASLIB="$ascpwd/ascend4/archive/libascblas.a"
10958 BLASLIB="$ascpwd/archive/libascblas.a"
10959 make_blaslib='make-blaslib'
10960 #AWW20041206: blaslib_makefile="blas/Makefile"
10961 blaslib_makefile="blas/Makefile:../../blas/Makefile.in"
10962 #AWW20041206: asc_subdirs="$asc_subdirs ../blas"
10963 asc_subdirs="$asc_subdirs blas"
10964 else
10965 echo "$as_me:$LINENO: result: no" >&5
10966 echo "${ECHO_T}no" >&6
10967 fi
10968 fi
10969 if test -z "$BLASLIB" ; then
10970 with_fortran=no
10971 { echo "$as_me:$LINENO: WARNING: Cannot find libblas.a, libascblas.a, nor blas
10972 source code. Building ASCEND without integration, MINOS, and CONOPT
10973 support. To specify a specific location for the blas library, run
10974 configure again with the argument:
10975 --with-blas=BLASLIB
10976 where BLASLIB is the full path to the blas library file." >&5
10977 echo "$as_me: WARNING: Cannot find libblas.a, libascblas.a, nor blas
10978 source code. Building ASCEND without integration, MINOS, and CONOPT
10979 support. To specify a specific location for the blas library, run
10980 configure again with the argument:
10981 --with-blas=BLASLIB
10982 where BLASLIB is the full path to the blas library file." >&2;}
10983 fi
10984 ;;
10985 *)
10986 # The user gave us --with-blas=BLASLIB, use that as the
10987 # location of the BLAS library.
10988 BLASLIB="$with_blas"
10989 ;;
10990 esac
10991
10992
10993 # Initialize the linpack variables
10994 make_lpaklib=''
10995
10996
10997 # Check whether --with-linpack or --without-linpack was given.
10998 if test "${with_linpack+set}" = set; then
10999 withval="$with_linpack"
11000
11001 else
11002 with_linpack=yes
11003 fi;
11004 case "$with_fortran$with_linpack" in
11005 no*)
11006 # Fortran is disabled; ignore this option (if present)
11007 LPAKLIB=
11008 ;;
11009 *no)
11010 # It is an error if the user chooses to build without
11011 # the LINPACK library if Fortran is enabled.
11012 { { echo "$as_me:$LINENO: error: Bad option '--without-linpack'
11013 To support Fortran calls, ASCEND must be compiled with a
11014 linpack library." >&5
11015 echo "$as_me: error: Bad option '--without-linpack'
11016 To support Fortran calls, ASCEND must be compiled with a
11017 linpack library." >&2;}
11018 { (exit 1); exit 1; }; }
11019 ;;
11020 *build)
11021 # Fortran is enabled and the user specified --with-linpack=build
11022 # For a search for LINPACK source code and tell the Makefile
11023 # to build it; useful for testing configure.
11024 lpak_src_file="$srcdir/../../linpack/d1mach.f"
11025 echo "$as_me:$LINENO: checking for linpack source file $lpak_src_file " >&5
11026 echo $ECHO_N "checking for linpack source file $lpak_src_file ... $ECHO_C" >&6
11027 if test -f $lpak_src_file ; then
11028 echo "$as_me:$LINENO: result: yes" >&5
11029 echo "${ECHO_T}yes" >&6
11030 #AWW20041119: LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a"
11031 LPAKLIB="$ascpwd/archive/libasclpak.a"
11032 make_lpaklib='make-lpaklib'
11033 #AWW20041206: lpaklib_makefile="linpack/Makefile"
11034 lpaklib_makefile="linpack/Makefile:../../linpack/Makefile.in"
11035 #AWW20041206: asc_subdirs="$asc_subdirs ../linpack"
11036 asc_subdirs="$asc_subdirs linpack"
11037 else
11038 echo "$as_me:$LINENO: result: no" >&5
11039 echo "${ECHO_T}no" >&6
11040 { { echo "$as_me:$LINENO: error: User specified '--with-linpack=build' but
11041 configure cannot find the linpack source file $lpak_src_file" >&5
11042 echo "$as_me: error: User specified '--with-linpack=build' but
11043 configure cannot find the linpack source file $lpak_src_file" >&2;}
11044 { (exit 1); exit 1; }; }
11045 fi
11046 ;;
11047 *yes)
11048 # Fortran in enabled and the user didn't give the --with-linpack
11049 # option or didn't give the library's location.
11050 # Search for a compiled liblpak.a or libasclpak.a; if that
11051 # fails, look for LINPACK source code; if that also fails,
11052 # disable all Fortran and print a warning.
11053 for ac_prog in liblpak.a libasclpak.a
11054 do
11055 # Extract the first word of "$ac_prog", so it can be a program name with args.
11056 set dummy $ac_prog; ac_word=$2
11057 echo "$as_me:$LINENO: checking for $ac_word" >&5
11058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11059 if test "${ac_cv_path_LPAKLIB+set}" = set; then
11060 echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062 case $LPAKLIB in
11063 [\\/]* | ?:[\\/]*)
11064 ac_cv_path_LPAKLIB="$LPAKLIB" # Let the user override the test with a path.
11065 ;;
11066 *)
11067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11068 for as_dir in $asc_f77_support_dirs
11069 do
11070 IFS=$as_save_IFS
11071 test -z "$as_dir" && as_dir=.
11072 for ac_exec_ext in '' $ac_executable_extensions; do
11073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11074 ac_cv_path_LPAKLIB="$as_dir/$ac_word$ac_exec_ext"
11075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11076 break 2
11077 fi
11078 done
11079 done
11080
11081 ;;
11082 esac
11083 fi
11084 LPAKLIB=$ac_cv_path_LPAKLIB
11085
11086 if test -n "$LPAKLIB"; then
11087 echo "$as_me:$LINENO: result: $LPAKLIB" >&5
11088 echo "${ECHO_T}$LPAKLIB" >&6
11089 else
11090 echo "$as_me:$LINENO: result: no" >&5
11091 echo "${ECHO_T}no" >&6
11092 fi
11093
11094 test -n "$LPAKLIB" && break
11095 done
11096
11097 lpak_src_file="$srcdir/../../linpack/d1mach.f"
11098 if test -z "$LPAKLIB" -a -n "$lpak_src_file" ; then
11099 echo "$as_me:$LINENO: checking for linpack source file $lpak_src_file " >&5
11100 echo $ECHO_N "checking for linpack source file $lpak_src_file ... $ECHO_C" >&6
11101 if test -f $lpak_src_file ; then
11102 echo "$as_me:$LINENO: result: yes" >&5
11103 echo "${ECHO_T}yes" >&6
11104 #AWW20041119: LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a"
11105 LPAKLIB="$ascpwd/archive/libasclpak.a"
11106 make_lpaklib='make-lpaklib'
11107 #AWW20041206: lpaklib_makefile="linpack/Makefile"
11108 lpaklib_makefile="linpack/Makefile:../../linpack/Makefile.in"
11109 #AWW20041206: asc_subdirs="$asc_subdirs ../linpack"
11110 asc_subdirs="$asc_subdirs linpack"
11111 else
11112 echo "$as_me:$LINENO: result: no" >&5
11113 echo "${ECHO_T}no" >&6
11114 fi
11115 fi
11116 if test -z "$LPAKLIB" ; then
11117 with_fortran=no
11118 { echo "$as_me:$LINENO: WARNING: Cannot find liblpak.a, libasclpak.a, nor linpack
11119 source code. Building ASCEND without integration, MINOS, and CONOPT
11120 support. To specify a specific location for the linpack library, run
11121 configure again with the argument:
11122 --with-linpack=LPAKLIB
11123 where LPAKLIB is the full path to the linpack library file." >&5
11124 echo "$as_me: WARNING: Cannot find liblpak.a, libasclpak.a, nor linpack
11125 source code. Building ASCEND without integration, MINOS, and CONOPT
11126 support. To specify a specific location for the linpack library, run
11127 configure again with the argument:
11128 --with-linpack=LPAKLIB
11129 where LPAKLIB is the full path to the linpack library file." >&2;}
11130 fi
11131 ;;
11132 *)
11133 # The user gave us --with-linkpack=LINKPACKLIB, use that
11134 # as the location of the LINKPACK library.
11135 LPAKLIB="$with_linpack"
11136 ;;
11137 esac
11138
11139
11140 # Initialize the lsod variables
11141 make_lsodlib=''
11142 HAVE_LSOD=''
11143
11144
11145 # Check whether --with-lsod or --without-lsod was given.
11146 if test "${with_lsod+set}" = set; then
11147 withval="$with_lsod"
11148
11149 else
11150 with_lsod=yes
11151 fi;
11152 case "$with_fortran$with_lsod" in
11153 no*)
11154 # Fortran is disabled; ignore this option (if present)
11155 LSODLIB=
11156 with_lsod=no
11157 ;;
11158 *no)
11159 # Fortran is enabled but the user specified --without-lsod
11160 LSODLIB=
11161 ;;
11162 *build)
11163 # Fortran is enabled and the user specified --with-lsod=build
11164 # For a search for LSOD source code and tell the Makefile
11165 # to build it; useful for testing configure.
11166 lsod_src_file="$srcdir/../../lsod/lsode.f"
11167 echo "$as_me:$LINENO: checking for lsod source file $lsod_src_file " >&5
11168 echo $ECHO_N "checking for lsod source file $lsod_src_file ... $ECHO_C" >&6
11169 if test -f $lsod_src_file ; then
11170 echo "$as_me:$LINENO: result: yes" >&5
11171 echo "${ECHO_T}yes" >&6
11172 #AWW20041119: LSODLIB="$ascpwd/ascend4/archive/libinteg.a"
11173 LSODLIB="$ascpwd/archive/libinteg.a"
11174 make_lsodlib='make-lsodlib'
11175 #AWW20041206: lsodlib_makefile="lsod/Makefile"
11176 lsodlib_makefile="lsod/Makefile:../../lsod/Makefile.in"
11177 #AWW20041206: asc_subdirs="$asc_subdirs ../lsod"
11178 asc_subdirs="$asc_subdirs lsod"
11179 HAVE_LSOD='-DSTATIC_LSOD'
11180 else
11181 echo "$as_me:$LINENO: result: no" >&5
11182 echo "${ECHO_T}no" >&6
11183 { { echo "$as_me:$LINENO: error: User specified '--with-lsod=build' but
11184 configure cannot find the lsod source file $lsod_src_file" >&5
11185 echo "$as_me: error: User specified '--with-lsod=build' but
11186 configure cannot find the lsod source file $lsod_src_file" >&2;}
11187 { (exit 1); exit 1; }; }
11188 fi
11189 ;;
11190 *yes)
11191 # Fortran in enabled and the user didn't give the --with-lsod
11192 # option or didn't give the library's location.
11193 # Search for a compiled libinteg.a; if that fails, look
11194 # for LSOD source code; if that also fails, disable LSOD
11195 # and print a warning.
11196 for ac_prog in libinteg.a libasclsod.a
11197 do
11198 # Extract the first word of "$ac_prog", so it can be a program name with args.
11199 set dummy $ac_prog; ac_word=$2
11200 echo "$as_me:$LINENO: checking for $ac_word" >&5
11201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11202 if test "${ac_cv_path_LSODLIB+set}" = set; then
11203 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 else
11205 case $LSODLIB in
11206 [\\/]* | ?:[\\/]*)
11207 ac_cv_path_LSODLIB="$LSODLIB" # Let the user override the test with a path.
11208 ;;
11209 *)
11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211 for as_dir in $asc_f77_support_dirs
11212 do
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11217 ac_cv_path_LSODLIB="$as_dir/$ac_word$ac_exec_ext"
11218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11219 break 2
11220 fi
11221 done
11222 done
11223
11224 ;;
11225 esac
11226 fi
11227 LSODLIB=$ac_cv_path_LSODLIB
11228
11229 if test -n "$LSODLIB"; then
11230 echo "$as_me:$LINENO: result: $LSODLIB" >&5
11231 echo "${ECHO_T}$LSODLIB" >&6
11232 else
11233 echo "$as_me:$LINENO: result: no" >&5
11234 echo "${ECHO_T}no" >&6
11235 fi
11236
11237 test -n "$LSODLIB" && break
11238 done
11239
11240 lsod_src_file="$srcdir/../../lsod/lsode.f"
11241 if test -z "$LSODLIB" -a -n "$lsod_src_file" ; then
11242 echo "$as_me:$LINENO: checking for lsod source file $lsod_src_file " >&5
11243 echo $ECHO_N "checking for lsod source file $lsod_src_file ... $ECHO_C" >&6
11244 if test -f $lsod_src_file ; then
11245 echo "$as_me:$LINENO: result: yes" >&5
11246 echo "${ECHO_T}yes" >&6
11247 #AWW20041119: LSODLIB="$ascpwd/ascend4/archive/libinteg.a"
11248 LSODLIB="$ascpwd/archive/libinteg.a"
11249 make_lsodlib='make-lsodlib'
11250 #AWW20041206: lsodlib_makefile="lsod/Makefile"
11251 lsodlib_makefile="lsod/Makefile:../../lsod/Makefile.in"
11252 #AWW20041206: asc_subdirs="$asc_subdirs ../lsod"
11253 asc_subdirs="$asc_subdirs lsod"
11254 else
11255 echo "$as_me:$LINENO: result: no" >&5
11256 echo "${ECHO_T}no" >&6
11257 fi
11258 fi
11259 if test -z "$LSODLIB" ; then
11260 with_lsod=no
11261 { echo "$as_me:$LINENO: WARNING: Cannot find libinteg.a nor the lsod
11262 source code. Building ASCEND without integration
11263 support. To specify a specific location for the lsod library, run
11264 configure again with the argument:
11265 --with-lsod=LSODLIB
11266 where LSODLIB is the full path to the lsod integration library file." >&5
11267 echo "$as_me: WARNING: Cannot find libinteg.a nor the lsod
11268 source code. Building ASCEND without integration
11269 support. To specify a specific location for the lsod library, run
11270 configure again with the argument:
11271 --with-lsod=LSODLIB
11272 where LSODLIB is the full path to the lsod integration library file." >&2;}
11273 else
11274 HAVE_LSOD='-DSTATIC_LSOD'
11275 fi
11276 ;;
11277 *)
11278 # The user gave us --with-lsod=LSODLIB, use that as the
11279 # location of the LSOD library and define -DSTATIC_LSOD.
11280 LSODLIB="$with_lsod"
11281 HAVE_LSOD='-DSTATIC_LSOD'
11282 ;;
11283 esac
11284
11285
11286 #--------------------------------------------------------------------
11287 # Other trees which may or may not be present. If present,
11288 # generate the Makefiles in the tree unless the user passes in
11289 # a --without-<package> argument.
11290 #
11291 # Valid <package> values are: TK, models, help
11292 #
11293 # We could have `configure' do this for us via
11294 # AC_CONFIG_SUBDIRS, but `configure' scripts in the trees can
11295 # only be one directory removed from this configure script.
11296 # For example, it would be nice to have `models' under
11297 # `ascend4', but `configure' doesn't like `ascend4/models' as
11298 # an argument to AC_CONFIG_SUBDIRS.
11299 #
11300 # To get around this problem, we do things by hand. :-)
11301 #
11302 # If the user gives a --without-<package> argument, we have
11303 # nothing to do for that package.
11304 #
11305 # Otherwise,
11306 # * Set `subdir_file_exists' to a file that should exist in the
11307 # subtree---this is how we know that the subtree is really
11308 # there.
11309 # * Set `subdir_locations' to the list of locations, relative
11310 # to this configure script, where the subtree may live.
11311 # * Set `subdir_output' to the list of makefiles to generate;
11312 # the variable `subdir_root' in this list will be replaced
11313 # with the correct value from `subdir_locations'.
11314 #
11315 # To see which (if any) of the values in `subdir_locations' is
11316 # the correct one, we set `subdir_root' to each value in
11317 # `subdir_locations' and check for the existence of
11318 # $fullpathsrcdir/$subdir_root/$subdir_file_exists, where
11319 # $fullpathsrcdir is the full path to the source directory. If
11320 # that file exists, we
11321 # * Set <package>_dir_root to ../$subdir_root. The "../" is
11322 #AWW20041208:# needed since this value is used in the `ascend4' directory
11323 # needed since this value is used in the `generic' directory
11324 #AWW20041208:# and $subdir_root is relative to the parent of `ascend4'.
11325 # and $subdir_root is relative to the parent of `generic'.
11326 # * Substitute the value of $subdir_root into `subdir_output'
11327 # and set the result to <package>_makefiles: the list of
11328 # Makefiles for configure to generate.
11329 # * Each package needs to be able to find its way back to
11330 # ascend4/ConfigAscend; it needs to go back up the tree
11331 # however many levels deep it is---i.e., `foo/bar/baz' should
11332 # become `../../..' and this does it: sed 's,[^/][^/]*,..,g'
11333 # but we need to quote the [] from m4, so we get this bizarre
11334 # thing: sed 's,[[^/][^/]]*,..,g' Set <package>_topbuilddir
11335 # to this result.
11336 # * Exit the loop.
11337 #--------------------------------------------------------------------
11338
11339 # Initialize variables
11340 tkdir_root=''
11341 tkdir_topbuilddir=''
11342
11343
11344 # Check whether --with-tkdir or --without-tkdir was given.
11345 if test "${with_tkdir+set}" = set; then
11346 withval="$with_tkdir"
11347
11348 else
11349 with_tkdir=yes
11350 fi;
11351 if test ! "X$with_tkdir" = "Xno" ; then
11352 subdir_file_exists='AscendRC'
11353 #AWW20041117: FIXME next line
11354 #AWW20041206: subdir_locations='ascend4/TK'
11355 subdir_target="TK"
11356 subdir_locations='../../tcltk98/TK'
11357 subdir_output='
11358 $subdir_target/Makefile:$subdir_root/Makefile.in
11359 $subdir_target/Makefile.Rules:$subdir_root/Makefile.Rules.in
11360 $subdir_target/bitmaps/Makefile:$subdir_root/bitmaps/Makefile.in
11361 $subdir_target/templates/Makefile:$subdir_root/templates/Makefile.in
11362 '
11363 for subdir_root in $subdir_locations ; do
11364 if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then
11365 #AWW20041208: tkdir_root="../$subdir_root"
11366 tkdir_root=$subdir_target
11367 tkdir_makefiles=`eval echo $subdir_output`
11368 tkdir_topbuilddir="$fullpathsrcdir/../../tcltk98/TK"
11369 break
11370 fi
11371 done
11372 fi
11373
11374 # Initialize variables
11375 models_dir_root=''
11376 models_topbuilddir=''
11377
11378
11379 # Check whether --with-models or --without-models was given.
11380 if test "${with_models+set}" = set; then
11381 withval="$with_models"
11382
11383 else
11384 with_models=yes
11385 fi;
11386 if test ! "X$with_models" = "Xno" ; then
11387 subdir_file_exists='system.a4l'
11388 #AWW20041117: FIXME next line
11389 #AWW20041206: subdir_locations='models ascend4/models'
11390 subdir_target="models"
11391 subdir_locations='models ../../models'
11392 subdir_output='
11393 $subdir_target/Makefile:$subdir_root/Makefile.in
11394 $subdir_target/Makefile.Rules:$subdir_root/Makefile.Rules.in
11395 $subdir_target/ben/Makefile:$subdir_root/ben/Makefile.in
11396 $subdir_target/johnpye/Makefile:$subdir_root/johnpye/Makefile.in
11397 '
11398 ## $subdir_root/examples/Makefile
11399 ## $subdir_root/examples/abbott/Makefile
11400 ## $subdir_root/examples/flexible_design/Makefile
11401 ## $subdir_root/libraries/Makefile
11402 ## $subdir_root/libraries/abbott/Makefile
11403 ## $subdir_root/pending/Makefile
11404 ## $subdir_root/pending/examples/Makefile
11405 ## $subdir_root/pending/libraries/Makefile
11406 for subdir_root in $subdir_locations ; do
11407 if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then
11408 #AWW20041208: models_dir_root="../$subdir_root"
11409 models_dir_root="$subdir_target"
11410 models_makefiles=`eval echo $subdir_output`
11411 models_topbuilddir="$fullpathsrcdir/../../models"
11412 break
11413 fi
11414 done
11415 fi
11416
11417
11418 # Initialize variables
11419 help_dir_root=''
11420 help_topbuilddir=''
11421
11422
11423
11424 #--------------------------------------------------------------------
11425 # The variables we substitute into the Makefile.in files
11426 # and the command to actually generate the Makefiles
11427 #--------------------------------------------------------------------
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469 #AWW20041113: AC_SUBST(OPTSQPLIB)
11470 #AWW20041113: AC_SUBST(make_rsqplib)
11471 #AWW20041113: AC_SUBST(HAVE_OPTSQP)
11472 #AWW20041113: dnl AC_SUBST(HARWELLLIB)
11473 #AWW20041113: dnl AC_SUBST(make_harwelllib)
11474 #AWW20041113: dnl AC_SUBST(HAVE_HARWELL)
11475 #AWW20041113: AC_SUBST(MINOSLIB)
11476 #AWW20041113: AC_SUBST(make_minoslib)
11477 #AWW20041113: AC_SUBST(HAVE_MINOS)
11478 #AWW20041113: AC_SUBST(CONOPTLIB)
11479 #AWW20041113: AC_SUBST(make_conoptlib)
11480 #AWW20041113: AC_SUBST(HAVE_CONOPT)
11481
11482
11483
11484
11485
11486
11487
11488 #AWW20041129: In the following macro, replace the following
11489 #AWW20041129: in the call.
11490 #AWW20041129:
11491 #AWW20041113: ascend4/ConfigAscend:ascend4/ConfigAscend.in
11492 #AWW20041113: ascend4/Makefile
11493 #AWW20041113: ascend4/bin/ascend4.sh
11494 #AWW20041113: ascend4/Makefile.Rules:ascend4/Makefile.Rules.in
11495 #AWW20041113: ascend4/archive/Makefile
11496 #AWW20041113: ascend4/bin/Makefile
11497 #AWW20041113: ascend4/compiler/Makefile
11498 #AWW20041113: ascend4/general/Makefile
11499 #AWW20041113: ascend4/interface/Makefile
11500 #AWW20041113: ascend4/lib/Makefile
11501 #AWW20041113: ascend4/packages/Makefile
11502 #AWW20041113: ascend4/solver/Makefile
11503 #AWW20041113: ascend4/utilities/Makefile
11504 #AWW20041129:
11505 #AWW20041129: and remove the following
11506 #AWW20041129:
11507 #AWW20041117: $rsqplib_makefile
11508 #AWW20041117: $conoptlib_makefile
11509 #AWW20041117: $minoslib_makefile
11510
11511 #AWW20041216: Mark suggested using the following - except for last
11512 #AWW20041216: except for last six items. Do they matter?
11513 ac_config_files="$ac_config_files ConfigAscend:../../base/generic/ConfigAscend.in Makefile:../../base/generic/Makefile.in bin/ascend4.sh:../../base/generic/bin/ascend4.sh.in Makefile.Rules:../../base/generic/Makefile.Rules.in archive/Makefile:../../base/generic/archive/Makefile.in bin/Makefile:../../base/generic/bin/Makefile.in compiler/Makefile:../../base/generic/compiler/Makefile.in general/Makefile:../../base/generic/general/Makefile.in interface/Makefile:../../tcltk98/generic/interface/Makefile.in lib/Makefile:../../base/generic/lib/Makefile.in packages/Makefile:../../base/generic/packages/Makefile.in solver/Makefile:../../base/generic/solver/Makefile.in utilities/Makefile:../../base/generic/utilities/Makefile.in ../../jam/Jamrules ../../tcltk98/generic/Jamrules_tcltk98 $tkdir_makefiles $models_makefiles $help_makefiles $blaslib_makefile $lpaklib_makefile $lsodlib_makefile"
11514
11515
11516 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11517 # Let make expand exec_prefix.
11518 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11519
11520 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11521 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11522 # trailing colons and then remove the whole line if VPATH becomes empty
11523 # (actually we leave an empty line to preserve line numbers).
11524 if test "x$srcdir" = x.; then
11525 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11526 s/:*\$(srcdir):*/:/;
11527 s/:*\${srcdir}:*/:/;
11528 s/:*@srcdir@:*/:/;
11529 s/^\([^=]*=[ ]*\):*/\1/;
11530 s/:*$//;
11531 s/^[^=]*=[ ]*$//;
11532 }'
11533 fi
11534
11535 # Transform confdefs.h into DEFS.
11536 # Protect against shell expansion while executing Makefile rules.
11537 # Protect against Makefile macro expansion.
11538 #
11539 # If the first sed substitution is executed (which looks for macros that
11540 # take arguments), then we branch to the quote section. Otherwise,
11541 # look for a macro that doesn't take arguments.
11542 cat >confdef2opt.sed <<\_ACEOF
11543 t clear
11544 : clear
11545 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
11546 t quote
11547 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
11548 t quote
11549 d
11550 : quote
11551 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
11552 s,\[,\\&,g
11553 s,\],\\&,g
11554 s,\$,$$,g
11555 p
11556 _ACEOF
11557 # We use echo to avoid assuming a particular line-breaking character.
11558 # The extra dot is to prevent the shell from consuming trailing
11559 # line-breaks from the sub-command output. A line-break within
11560 # single-quotes doesn't work because, if this script is created in a
11561 # platform that uses two characters for line-breaks (e.g., DOS), tr
11562 # would break.
11563 ac_LF_and_DOT=`echo; echo .`
11564 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
11565 rm -f confdef2opt.sed
11566
11567
11568 ac_libobjs=
11569 ac_ltlibobjs=
11570 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11571 # 1. Remove the extension, and $U if already installed.
11572 ac_i=`echo "$ac_i" |
11573 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11574 # 2. Add them.
11575 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11576 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11577 done
11578 LIBOBJS=$ac_libobjs
11579
11580 LTLIBOBJS=$ac_ltlibobjs
11581
11582
11583
11584 : ${CONFIG_STATUS=./config.status}
11585 ac_clean_files_save=$ac_clean_files
11586 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11587 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11588 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11589 cat >$CONFIG_STATUS <<_ACEOF
11590 #! $SHELL
11591 # Generated by $as_me.
11592 # Run this file to recreate the current configuration.
11593 # Compiler output produced by configure, useful for debugging
11594 # configure, is in config.log if it exists.
11595
11596 debug=false
11597 ac_cs_recheck=false
11598 ac_cs_silent=false
11599 SHELL=\${CONFIG_SHELL-$SHELL}
11600 _ACEOF
11601
11602 cat >>$CONFIG_STATUS <<\_ACEOF
11603 ## --------------------- ##
11604 ## M4sh Initialization. ##
11605 ## --------------------- ##
11606
11607 # Be Bourne compatible
11608 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11609 emulate sh
11610 NULLCMD=:
11611 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11612 # is contrary to our usage. Disable this feature.
11613 alias -g '${1+"$@"}'='"$@"'
11614 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11615 set -o posix
11616 fi
11617 DUALCASE=1; export DUALCASE # for MKS sh
11618
11619 # Support unset when possible.
11620 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11621 as_unset=unset
11622 else
11623 as_unset=false
11624 fi
11625
11626
11627 # Work around bugs in pre-3.0 UWIN ksh.
11628 $as_unset ENV MAIL MAILPATH
11629 PS1='$ '
11630 PS2='> '
11631 PS4='+ '
11632
11633 # NLS nuisances.
11634 for as_var in \
11635 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11636 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11637 LC_TELEPHONE LC_TIME
11638 do
11639 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11640 eval $as_var=C; export $as_var
11641 else
11642 $as_unset $as_var
11643 fi
11644 done
11645
11646 # Required to use basename.
11647 if expr a : '\(a\)' >/dev/null 2>&1; then
11648 as_expr=expr
11649 else
11650 as_expr=false
11651 fi
11652
11653 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11654 as_basename=basename
11655 else
11656 as_basename=false
11657 fi
11658
11659
11660 # Name of the executable.
11661 as_me=`$as_basename "$0" ||
11662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11663 X"$0" : 'X\(//\)$' \| \
11664 X"$0" : 'X\(/\)$' \| \
11665 . : '\(.\)' 2>/dev/null ||
11666 echo X/"$0" |
11667 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11668 /^X\/\(\/\/\)$/{ s//\1/; q; }
11669 /^X\/\(\/\).*/{ s//\1/; q; }
11670 s/.*/./; q'`
11671
11672
11673 # PATH needs CR, and LINENO needs CR and PATH.
11674 # Avoid depending upon Character Ranges.
11675 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11676 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11677 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11678 as_cr_digits='0123456789'
11679 as_cr_alnum=$as_cr_Letters$as_cr_digits
11680
11681 # The user is always right.
11682 if test "${PATH_SEPARATOR+set}" != set; then
11683 echo "#! /bin/sh" >conf$$.sh
11684 echo "exit 0" >>conf$$.sh
11685 chmod +x conf$$.sh
11686 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11687 PATH_SEPARATOR=';'
11688 else
11689 PATH_SEPARATOR=:
11690 fi
11691 rm -f conf$$.sh
11692 fi
11693
11694
11695 as_lineno_1=$LINENO
11696 as_lineno_2=$LINENO
11697 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11698 test "x$as_lineno_1" != "x$as_lineno_2" &&
11699 test "x$as_lineno_3" = "x$as_lineno_2" || {
11700 # Find who we are. Look in the path if we contain no path at all
11701 # relative or not.
11702 case $0 in
11703 *[\\/]* ) as_myself=$0 ;;
11704 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11706 do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11710 done
11711
11712 ;;
11713 esac
11714 # We did not find ourselves, most probably we were run as `sh COMMAND'
11715 # in which case we are not to be found in the path.
11716 if test "x$as_myself" = x; then
11717 as_myself=$0
11718 fi
11719 if test ! -f "$as_myself"; then
11720 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11721 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11722 { (exit 1); exit 1; }; }
11723 fi
11724 case $CONFIG_SHELL in
11725 '')
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11728 do
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
11731 for as_base in sh bash ksh sh5; do
11732 case $as_dir in
11733 /*)
11734 if ("$as_dir/$as_base" -c '
11735 as_lineno_1=$LINENO
11736 as_lineno_2=$LINENO
11737 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11738 test "x$as_lineno_1" != "x$as_lineno_2" &&
11739 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11740 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11741 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11742 CONFIG_SHELL=$as_dir/$as_base
11743 export CONFIG_SHELL
11744 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11745 fi;;
11746 esac
11747 done
11748 done
11749 ;;
11750 esac
11751
11752 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11753 # uniformly replaced by the line number. The first 'sed' inserts a
11754 # line-number line before each line; the second 'sed' does the real
11755 # work. The second script uses 'N' to pair each line-number line
11756 # with the numbered line, and appends trailing '-' during
11757 # substitution so that $LINENO is not a special case at line end.
11758 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11759 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11760 sed '=' <$as_myself |
11761 sed '
11762 N
11763 s,$,-,
11764 : loop
11765 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11766 t loop
11767 s,-$,,
11768 s,^['$as_cr_digits']*\n,,
11769 ' >$as_me.lineno &&
11770 chmod +x $as_me.lineno ||
11771 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11772 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11773 { (exit 1); exit 1; }; }
11774
11775 # Don't try to exec as it changes $[0], causing all sort of problems
11776 # (the dirname of $[0] is not the place where we might find the
11777 # original and so on. Autoconf is especially sensible to this).
11778 . ./$as_me.lineno
11779 # Exit status is that of the last command.
11780 exit
11781 }
11782
11783
11784 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11785 *c*,-n*) ECHO_N= ECHO_C='
11786 ' ECHO_T=' ' ;;
11787 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11788 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11789 esac
11790
11791 if expr a : '\(a\)' >/dev/null 2>&1; then
11792 as_expr=expr
11793 else
11794 as_expr=false
11795 fi
11796
11797 rm -f conf$$ conf$$.exe conf$$.file
11798 echo >conf$$.file
11799 if ln -s conf$$.file conf$$ 2>/dev/null; then
11800 # We could just check for DJGPP; but this test a) works b) is more generic
11801 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11802 if test -f conf$$.exe; then
11803 # Don't use ln at all; we don't have any links
11804 as_ln_s='cp -p'
11805 else
11806 as_ln_s='ln -s'
11807 fi
11808 elif ln conf$$.file conf$$ 2>/dev/null; then
11809 as_ln_s=ln
11810 else
11811 as_ln_s='cp -p'
11812 fi
11813 rm -f conf$$ conf$$.exe conf$$.file
11814
11815 if mkdir -p . 2>/dev/null; then
11816 as_mkdir_p=:
11817 else
11818 test -d ./-p && rmdir ./-p
11819 as_mkdir_p=false
11820 fi
11821
11822 as_executable_p="test -f"
11823
11824 # Sed expression to map a string onto a valid CPP name.
11825 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11826
11827 # Sed expression to map a string onto a valid variable name.
11828 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11829
11830
11831 # IFS
11832 # We need space, tab and new line, in precisely that order.
11833 as_nl='
11834 '
11835 IFS=" $as_nl"
11836
11837 # CDPATH.
11838 $as_unset CDPATH
11839
11840 exec 6>&1
11841
11842 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11843 # report actual input values of CONFIG_FILES etc. instead of their
11844 # values after options handling. Logging --version etc. is OK.
11845 exec 5>>config.log
11846 {
11847 echo
11848 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11849 ## Running $as_me. ##
11850 _ASBOX
11851 } >&5
11852 cat >&5 <<_CSEOF
11853
11854 This file was extended by $as_me, which was
11855 generated by GNU Autoconf 2.59. Invocation command line was
11856
11857 CONFIG_FILES = $CONFIG_FILES
11858 CONFIG_HEADERS = $CONFIG_HEADERS
11859 CONFIG_LINKS = $CONFIG_LINKS
11860 CONFIG_COMMANDS = $CONFIG_COMMANDS
11861 $ $0 $@
11862
11863 _CSEOF
11864 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11865 echo >&5
11866 _ACEOF
11867
11868 # Files that config.status was made for.
11869 if test -n "$ac_config_files"; then
11870 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11871 fi
11872
11873 if test -n "$ac_config_headers"; then
11874 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11875 fi
11876
11877 if test -n "$ac_config_links"; then
11878 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11879 fi
11880
11881 if test -n "$ac_config_commands"; then
11882 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11883 fi
11884
11885 cat >>$CONFIG_STATUS <<\_ACEOF
11886
11887 ac_cs_usage="\
11888 \`$as_me' instantiates files from templates according to the
11889 current configuration.
11890
11891 Usage: $0 [OPTIONS] [FILE]...
11892
11893 -h, --help print this help, then exit
11894 -V, --version print version number, then exit
11895 -q, --quiet do not print progress messages
11896 -d, --debug don't remove temporary files
11897 --recheck update $as_me by reconfiguring in the same conditions
11898 --file=FILE[:TEMPLATE]
11899 instantiate the configuration file FILE
11900
11901 Configuration files:
11902 $config_files
11903
11904 Report bugs to <bug-autoconf@gnu.org>."
11905 _ACEOF
11906
11907 cat >>$CONFIG_STATUS <<_ACEOF
11908 ac_cs_version="\\
11909 config.status
11910 configured by $0, generated by GNU Autoconf 2.59,
11911 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11912
11913 Copyright (C) 2003 Free Software Foundation, Inc.
11914 This config.status script is free software; the Free Software Foundation
11915 gives unlimited permission to copy, distribute and modify it."
11916 srcdir=$srcdir
11917 INSTALL="$INSTALL"
11918 _ACEOF
11919
11920 cat >>$CONFIG_STATUS <<\_ACEOF
11921 # If no file are specified by the user, then we need to provide default
11922 # value. By we need to know if files were specified by the user.
11923 ac_need_defaults=:
11924 while test $# != 0
11925 do
11926 case $1 in
11927 --*=*)
11928 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11929 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11930 ac_shift=:
11931 ;;
11932 -*)
11933 ac_option=$1
11934 ac_optarg=$2
11935 ac_shift=shift
11936 ;;
11937 *) # This is not an option, so the user has probably given explicit
11938 # arguments.
11939 ac_option=$1
11940 ac_need_defaults=false;;
11941 esac
11942
11943 case $ac_option in
11944 # Handling of the options.
11945 _ACEOF
11946 cat >>$CONFIG_STATUS <<\_ACEOF
11947 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11948 ac_cs_recheck=: ;;
11949 --version | --vers* | -V )
11950 echo "$ac_cs_version"; exit 0 ;;
11951 --he | --h)
11952 # Conflict between --help and --header
11953 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11954 Try \`$0 --help' for more information." >&5
11955 echo "$as_me: error: ambiguous option: $1
11956 Try \`$0 --help' for more information." >&2;}
11957 { (exit 1); exit 1; }; };;
11958 --help | --hel | -h )
11959 echo "$ac_cs_usage"; exit 0 ;;
11960 --debug | --d* | -d )
11961 debug=: ;;
11962 --file | --fil | --fi | --f )
11963 $ac_shift
11964 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11965 ac_need_defaults=false;;
11966 --header | --heade | --head | --hea )
11967 $ac_shift
11968 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11969 ac_need_defaults=false;;
11970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11971 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11972 ac_cs_silent=: ;;
11973
11974 # This is an error.
11975 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11976 Try \`$0 --help' for more information." >&5
11977 echo "$as_me: error: unrecognized option: $1
11978 Try \`$0 --help' for more information." >&2;}
11979 { (exit 1); exit 1; }; } ;;
11980
11981 *) ac_config_targets="$ac_config_targets $1" ;;
11982
11983 esac
11984 shift
11985 done
11986
11987 ac_configure_extra_args=
11988
11989 if $ac_cs_silent; then
11990 exec 6>/dev/null
11991 ac_configure_extra_args="$ac_configure_extra_args --silent"
11992 fi
11993
11994 _ACEOF
11995 cat >>$CONFIG_STATUS <<_ACEOF
11996 if \$ac_cs_recheck; then
11997 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11998 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11999 fi
12000
12001 _ACEOF
12002
12003
12004
12005
12006
12007 cat >>$CONFIG_STATUS <<\_ACEOF
12008 for ac_config_target in $ac_config_targets
12009 do
12010 case "$ac_config_target" in
12011 # Handling of arguments.
12012 "ConfigAscend" ) CONFIG_FILES="$CONFIG_FILES ConfigAscend:../../base/generic/ConfigAscend.in" ;;
12013 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:../../base/generic/Makefile.in" ;;
12014 "bin/ascend4.sh" ) CONFIG_FILES="$CONFIG_FILES bin/ascend4.sh:../../base/generic/bin/ascend4.sh.in" ;;
12015 "Makefile.Rules" ) CONFIG_FILES="$CONFIG_FILES Makefile.Rules:../../base/generic/Makefile.Rules.in" ;;
12016 "archive/Makefile" ) CONFIG_FILES="$CONFIG_FILES archive/Makefile:../../base/generic/archive/Makefile.in" ;;
12017 "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile:../../base/generic/bin/Makefile.in" ;;
12018 "compiler/Makefile" ) CONFIG_FILES="$CONFIG_FILES compiler/Makefile:../../base/generic/compiler/Makefile.in" ;;
12019 "general/Makefile" ) CONFIG_FILES="$CONFIG_FILES general/Makefile:../../base/generic/general/Makefile.in" ;;
12020 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile:../../tcltk98/generic/interface/Makefile.in" ;;
12021 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile:../../base/generic/lib/Makefile.in" ;;
12022 "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile:../../base/generic/packages/Makefile.in" ;;
12023 "solver/Makefile" ) CONFIG_FILES="$CONFIG_FILES solver/Makefile:../../base/generic/solver/Makefile.in" ;;
12024 "utilities/Makefile" ) CONFIG_FILES="$CONFIG_FILES utilities/Makefile:../../base/generic/utilities/Makefile.in" ;;
12025 "../../jam/Jamrules" ) CONFIG_FILES="$CONFIG_FILES ../../jam/Jamrules" ;;
12026 "../../tcltk98/generic/Jamrules_tcltk98" ) CONFIG_FILES="$CONFIG_FILES ../../tcltk98/generic/Jamrules_tcltk98" ;;
12027 "$tkdir_makefiles" ) CONFIG_FILES="$CONFIG_FILES $tkdir_makefiles" ;;
12028 "$models_makefiles" ) CONFIG_FILES="$CONFIG_FILES $models_makefiles" ;;
12029 "$help_makefiles" ) CONFIG_FILES="$CONFIG_FILES $help_makefiles" ;;
12030 "$blaslib_makefile" ) CONFIG_FILES="$CONFIG_FILES $blaslib_makefile" ;;
12031 "$lpaklib_makefile" ) CONFIG_FILES="$CONFIG_FILES $lpaklib_makefile" ;;
12032 "$lsodlib_makefile" ) CONFIG_FILES="$CONFIG_FILES $lsodlib_makefile" ;;
12033 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12034 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12035 { (exit 1); exit 1; }; };;
12036 esac
12037 done
12038
12039 # If the user did not use the arguments to specify the items to instantiate,
12040 # then the envvar interface is used. Set only those that are not.
12041 # We use the long form for the default assignment because of an extremely
12042 # bizarre bug on SunOS 4.1.3.
12043 if $ac_need_defaults; then
12044 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12045 fi
12046
12047 # Have a temporary directory for convenience. Make it in the build tree
12048 # simply because there is no reason to put it here, and in addition,
12049 # creating and moving files from /tmp can sometimes cause problems.
12050 # Create a temporary directory, and hook for its removal unless debugging.
12051 $debug ||
12052 {
12053 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12054 trap '{ (exit 1); exit 1; }' 1 2 13 15
12055 }
12056
12057 # Create a (secure) tmp directory for tmp files.
12058
12059 {
12060 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12061 test -n "$tmp" && test -d "$tmp"
12062 } ||
12063 {
12064 tmp=./confstat$$-$RANDOM
12065 (umask 077 && mkdir $tmp)
12066 } ||
12067 {
12068 echo "$me: cannot create a temporary directory in ." >&2
12069 { (exit 1); exit 1; }
12070 }
12071
12072 _ACEOF
12073
12074 cat >>$CONFIG_STATUS <<_ACEOF
12075
12076 #
12077 # CONFIG_FILES section.
12078 #
12079
12080 # No need to generate the scripts if there are no CONFIG_FILES.
12081 # This happens for instance when ./config.status config.h
12082 if test -n "\$CONFIG_FILES"; then
12083 # Protect against being on the right side of a sed subst in config.status.
12084 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12085 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12086 s,@SHELL@,$SHELL,;t t
12087 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12088 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12089 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12090 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12091 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12092 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12093 s,@exec_prefix@,$exec_prefix,;t t
12094 s,@prefix@,$prefix,;t t
12095 s,@program_transform_name@,$program_transform_name,;t t
12096 s,@bindir@,$bindir,;t t
12097 s,@sbindir@,$sbindir,;t t
12098 s,@libexecdir@,$libexecdir,;t t
12099 s,@datadir@,$datadir,;t t
12100 s,@sysconfdir@,$sysconfdir,;t t
12101 s,@sharedstatedir@,$sharedstatedir,;t t
12102 s,@localstatedir@,$localstatedir,;t t
12103 s,@libdir@,$libdir,;t t
12104 s,@includedir@,$includedir,;t t
12105 s,@oldincludedir@,$oldincludedir,;t t
12106 s,@infodir@,$infodir,;t t
12107 s,@mandir@,$mandir,;t t
12108 s,@build_alias@,$build_alias,;t t
12109 s,@host_alias@,$host_alias,;t t
12110 s,@target_alias@,$target_alias,;t t
12111 s,@DEFS@,$DEFS,;t t
12112 s,@ECHO_C@,$ECHO_C,;t t
12113 s,@ECHO_N@,$ECHO_N,;t t
12114 s,@ECHO_T@,$ECHO_T,;t t
12115 s,@LIBS@,$LIBS,;t t
12116 s,@RANLIB@,$RANLIB,;t t
12117 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12118 s,@LN_S@,$LN_S,;t t
12119 s,@SET_MAKE@,$SET_MAKE,;t t
12120 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12121 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12122 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12123 s,@build@,$build,;t t
12124 s,@build_cpu@,$build_cpu,;t t
12125 s,@build_vendor@,$build_vendor,;t t
12126 s,@build_os@,$build_os,;t t
12127 s,@host@,$host,;t t
12128 s,@host_cpu@,$host_cpu,;t t
12129 s,@host_vendor@,$host_vendor,;t t
12130 s,@host_os@,$host_os,;t t
12131 s,@CC@,$CC,;t t
12132 s,@CFLAGS@,$CFLAGS,;t t
12133 s,@LDFLAGS@,$LDFLAGS,;t t
12134 s,@CPPFLAGS@,$CPPFLAGS,;t t
12135 s,@ac_ct_CC@,$ac_ct_CC,;t t
12136 s,@EXEEXT@,$EXEEXT,;t t
12137 s,@OBJEXT@,$OBJEXT,;t t
12138 s,@asc_cc1@,$asc_cc1,;t t
12139 s,@asc_cc2@,$asc_cc2,;t t
12140 s,@asc_cc3@,$asc_cc3,;t t
12141 s,@CPP@,$CPP,;t t
12142 s,@DEBUG_LIBS@,$DEBUG_LIBS,;t t
12143 s,@EGREP@,$EGREP,;t t
12144 s,@YACC@,$YACC,;t t
12145 s,@LEX@,$LEX,;t t
12146 s,@LEXLIB@,$LEXLIB,;t t
12147 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
12148 s,@LIBOBJS@,$LIBOBJS,;t t
12149 s,@TCL_LIB@,$TCL_LIB,;t t
12150 s,@TCL_HDR@,$TCL_HDR,;t t
12151 s,@TK_LIB@,$TK_LIB,;t t
12152 s,@TK_HDR@,$TK_HDR,;t t
12153 s,@TKTABLE_LIB@,$TKTABLE_LIB,;t t
12154 s,@F77@,$F77,;t t
12155 s,@BLASLIB@,$BLASLIB,;t t
12156 s,@LPAKLIB@,$LPAKLIB,;t t
12157 s,@LSODLIB@,$LSODLIB,;t t
12158 s,@ascpwd@,$ascpwd,;t t
12159 s,@fullpathsrcdir@,$fullpathsrcdir,;t t
12160 s,@asc_include@,$asc_include,;t t
12161 s,@scanner_src@,$scanner_src,;t t
12162 s,@typer_src@,$typer_src,;t t
12163 s,@MATH_LIBS@,$MATH_LIBS,;t t
12164 s,@X11_INCLUDES@,$X11_INCLUDES,;t t
12165 s,@X11_LIBRARIES@,$X11_LIBRARIES,;t t
12166 s,@X11_RUN_PATH@,$X11_RUN_PATH,;t t
12167 s,@X11_EXTRA_LIBS@,$X11_EXTRA_LIBS,;t t
12168 s,@DL_LIBS@,$DL_LIBS,;t t
12169 s,@LD_FLAGS@,$LD_FLAGS,;t t
12170 s,@LD_SEARCH_FLAGS@,$LD_SEARCH_FLAGS,;t t
12171 s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
12172 s,@SHLIB_LD@,$SHLIB_LD,;t t
12173 s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t
12174 s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
12175 s,@ASC_LIB_SUFFIX@,$ASC_LIB_SUFFIX,;t t
12176 s,@ASC_TK_LIBRARY@,$ASC_TK_LIBRARY,;t t
12177 s,@ASC_TCL_LIBRARY@,$ASC_TCL_LIBRARY,;t t
12178 s,@HAVE_TKTABLE@,$HAVE_TKTABLE,;t t
12179 s,@asc_subdirs@,$asc_subdirs,;t t
12180 s,@F77LIBS@,$F77LIBS,;t t
12181 s,@make_blaslib@,$make_blaslib,;t t
12182 s,@make_lpaklib@,$make_lpaklib,;t t
12183 s,@make_lsodlib@,$make_lsodlib,;t t
12184 s,@HAVE_LSOD@,$HAVE_LSOD,;t t
12185 s,@tkdir_root@,$tkdir_root,;t t
12186 s,@tkdir_topbuilddir@,$tkdir_topbuilddir,;t t
12187 s,@models_dir_root@,$models_dir_root,;t t
12188 s,@models_topbuilddir@,$models_topbuilddir,;t t
12189 s,@help_dir_root@,$help_dir_root,;t t
12190 s,@help_topbuilddir@,$help_topbuilddir,;t t
12191 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12192 CEOF
12193
12194 _ACEOF
12195
12196 cat >>$CONFIG_STATUS <<\_ACEOF
12197 # Split the substitutions into bite-sized pieces for seds with
12198 # small command number limits, like on Digital OSF/1 and HP-UX.
12199 ac_max_sed_lines=48
12200 ac_sed_frag=1 # Number of current file.
12201 ac_beg=1 # First line for current file.
12202 ac_end=$ac_max_sed_lines # Line after last line for current file.
12203 ac_more_lines=:
12204 ac_sed_cmds=
12205 while $ac_more_lines; do
12206 if test $ac_beg -gt 1; then
12207 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12208 else
12209 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12210 fi
12211 if test ! -s $tmp/subs.frag; then
12212 ac_more_lines=false
12213 else
12214 # The purpose of the label and of the branching condition is to
12215 # speed up the sed processing (if there are no `@' at all, there
12216 # is no need to browse any of the substitutions).
12217 # These are the two extra sed commands mentioned above.
12218 (echo ':t
12219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12220 if test -z "$ac_sed_cmds"; then
12221 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12222 else
12223 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12224 fi
12225 ac_sed_frag=`expr $ac_sed_frag + 1`
12226 ac_beg=$ac_end
12227 ac_end=`expr $ac_end + $ac_max_sed_lines`
12228 fi
12229 done
12230 if test -z "$ac_sed_cmds"; then
12231 ac_sed_cmds=cat
12232 fi
12233 fi # test -n "$CONFIG_FILES"
12234
12235 _ACEOF
12236 cat >>$CONFIG_STATUS <<\_ACEOF
12237 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12238 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12239 case $ac_file in
12240 - | *:- | *:-:* ) # input from stdin
12241 cat >$tmp/stdin
12242 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12243 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12244 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12245 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12246 * ) ac_file_in=$ac_file.in ;;
12247 esac
12248
12249 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12250 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12251 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12252 X"$ac_file" : 'X\(//\)[^/]' \| \
12253 X"$ac_file" : 'X\(//\)$' \| \
12254 X"$ac_file" : 'X\(/\)' \| \
12255 . : '\(.\)' 2>/dev/null ||
12256 echo X"$ac_file" |
12257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12259 /^X\(\/\/\)$/{ s//\1/; q; }
12260 /^X\(\/\).*/{ s//\1/; q; }
12261 s/.*/./; q'`
12262 { if $as_mkdir_p; then
12263 mkdir -p "$ac_dir"
12264 else
12265 as_dir="$ac_dir"
12266 as_dirs=
12267 while test ! -d "$as_dir"; do
12268 as_dirs="$as_dir $as_dirs"
12269 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12270 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12271 X"$as_dir" : 'X\(//\)[^/]' \| \
12272 X"$as_dir" : 'X\(//\)$' \| \
12273 X"$as_dir" : 'X\(/\)' \| \
12274 . : '\(.\)' 2>/dev/null ||
12275 echo X"$as_dir" |
12276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12278 /^X\(\/\/\)$/{ s//\1/; q; }
12279 /^X\(\/\).*/{ s//\1/; q; }
12280 s/.*/./; q'`
12281 done
12282 test ! -n "$as_dirs" || mkdir $as_dirs
12283 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12284 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12285 { (exit 1); exit 1; }; }; }
12286
12287 ac_builddir=.
12288
12289 if test "$ac_dir" != .; then
12290 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12291 # A "../" for each directory in $ac_dir_suffix.
12292 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12293 else
12294 ac_dir_suffix= ac_top_builddir=
12295 fi
12296
12297 case $srcdir in
12298 .) # No --srcdir option. We are building in place.
12299 ac_srcdir=.
12300 if test -z "$ac_top_builddir"; then
12301 ac_top_srcdir=.
12302 else
12303 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12304 fi ;;
12305 [\\/]* | ?:[\\/]* ) # Absolute path.
12306 ac_srcdir=$srcdir$ac_dir_suffix;
12307 ac_top_srcdir=$srcdir ;;
12308 *) # Relative path.
12309 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12310 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12311 esac
12312
12313 # Do not use `cd foo && pwd` to compute absolute paths, because
12314 # the directories may not exist.
12315 case `pwd` in
12316 .) ac_abs_builddir="$ac_dir";;
12317 *)
12318 case "$ac_dir" in
12319 .) ac_abs_builddir=`pwd`;;
12320 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12321 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12322 esac;;
12323 esac
12324 case $ac_abs_builddir in
12325 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12326 *)
12327 case ${ac_top_builddir}. in
12328 .) ac_abs_top_builddir=$ac_abs_builddir;;
12329 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12330 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12331 esac;;
12332 esac
12333 case $ac_abs_builddir in
12334 .) ac_abs_srcdir=$ac_srcdir;;
12335 *)
12336 case $ac_srcdir in
12337 .) ac_abs_srcdir=$ac_abs_builddir;;
12338 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12339 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12340 esac;;
12341 esac
12342 case $ac_abs_builddir in
12343 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12344 *)
12345 case $ac_top_srcdir in
12346 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12347 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12348 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12349 esac;;
12350 esac
12351
12352
12353 case $INSTALL in
12354 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12355 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12356 esac
12357
12358 if test x"$ac_file" != x-; then
12359 { echo "$as_me:$LINENO: creating $ac_file" >&5
12360 echo "$as_me: creating $ac_file" >&6;}
12361 rm -f "$ac_file"
12362 fi
12363 # Let's still pretend it is `configure' which instantiates (i.e., don't
12364 # use $as_me), people would be surprised to read:
12365 # /* config.h. Generated by config.status. */
12366 if test x"$ac_file" = x-; then
12367 configure_input=
12368 else
12369 configure_input="$ac_file. "
12370 fi
12371 configure_input=$configure_input"Generated from `echo $ac_file_in |
12372 sed 's,.*/,,'` by configure."
12373
12374 # First look for the input files in the build tree, otherwise in the
12375 # src tree.
12376 ac_file_inputs=`IFS=:
12377 for f in $ac_file_in; do
12378 case $f in
12379 -) echo $tmp/stdin ;;
12380 [\\/$]*)
12381 # Absolute (can't be DOS-style, as IFS=:)
12382 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12383 echo "$as_me: error: cannot find input file: $f" >&2;}
12384 { (exit 1); exit 1; }; }
12385 echo "$f";;
12386 *) # Relative
12387 if test -f "$f"; then
12388 # Build tree
12389 echo "$f"
12390 elif test -f "$srcdir/$f"; then
12391 # Source tree
12392 echo "$srcdir/$f"
12393 else
12394 # /dev/null tree
12395 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12396 echo "$as_me: error: cannot find input file: $f" >&2;}
12397 { (exit 1); exit 1; }; }
12398 fi;;
12399 esac
12400 done` || { (exit 1); exit 1; }
12401 _ACEOF
12402 cat >>$CONFIG_STATUS <<_ACEOF
12403 sed "$ac_vpsub
12404 $extrasub
12405 _ACEOF
12406 cat >>$CONFIG_STATUS <<\_ACEOF
12407 :t
12408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12409 s,@configure_input@,$configure_input,;t t
12410 s,@srcdir@,$ac_srcdir,;t t
12411 s,@abs_srcdir@,$ac_abs_srcdir,;t t
12412 s,@top_srcdir@,$ac_top_srcdir,;t t
12413 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12414 s,@builddir@,$ac_builddir,;t t
12415 s,@abs_builddir@,$ac_abs_builddir,;t t
12416 s,@top_builddir@,$ac_top_builddir,;t t
12417 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12418 s,@INSTALL@,$ac_INSTALL,;t t
12419 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12420 rm -f $tmp/stdin
12421 if test x"$ac_file" != x-; then
12422 mv $tmp/out $ac_file
12423 else
12424 cat $tmp/out
12425 rm -f $tmp/out
12426 fi
12427
12428 done
12429 _ACEOF
12430
12431 cat >>$CONFIG_STATUS <<\_ACEOF
12432
12433 { (exit 0); exit 0; }
12434 _ACEOF
12435 chmod +x $CONFIG_STATUS
12436 ac_clean_files=$ac_clean_files_save
12437
12438
12439 # configure is writing to config.log, and then calls config.status.
12440 # config.status does its own redirection, appending to config.log.
12441 # Unfortunately, on DOS this fails, as config.log is still kept open
12442 # by configure, so config.status won't be able to write to it; its
12443 # output is simply discarded. So we exec the FD to /dev/null,
12444 # effectively closing config.log, so it can be properly (re)opened and
12445 # appended to by config.status. When coming back to configure, we
12446 # need to make the FD available again.
12447 if test "$no_create" != yes; then
12448 ac_cs_success=:
12449 ac_config_status_args=
12450 test "$silent" = yes &&
12451 ac_config_status_args="$ac_config_status_args --quiet"
12452 exec 5>/dev/null
12453 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12454 exec 5>>config.log
12455 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12456 # would make configure fail if this is the last instruction.
12457 $ac_cs_success || { (exit 1); exit 1; }
12458 fi
12459
12460
12461 #AC_OUTPUT(
12462 # ../../base/generic/ConfigAscend:../../base/generic/ConfigAscend.in
12463 # ../../base/generic/Makefile
12464 # ../../base/generic/bin/ascend4.sh
12465 # ../../base/generic/Makefile.Rules:../../base/generic/Makefile.Rules.in
12466 # ../../base/generic/archive/Makefile
12467 # ../../base/generic/bin/Makefile
12468 # ../../base/generic/compiler/Makefile
12469 # ../../base/generic/general/Makefile
12470 # ../../tcltk98/generic/interface/Makefile
12471 # ../../base/generic/lib/Makefile
12472 # ../../base/generic/packages/Makefile
12473 # ../../base/generic/solver/Makefile
12474 # ../../base/generic/utilities/Makefile
12475 # $tkdir_makefiles
12476 # $models_makefiles
12477 # $help_makefiles
12478 # $blaslib_makefile
12479 # $lpaklib_makefile
12480 # $lsodlib_makefile
12481 # )

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22