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

Contents of /trunk/base/autotools/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 624 - (show annotations) (download)
Thu May 18 15:39:38 2006 UTC (18 years, 10 months ago) by ben.allan
File size: 275866 byte(s)
Summary: most of the recent complaints about autotools build fixed,
but the buildbot might find a problem with the scons build/install/rpmbuild.


Details:

configure,Driver.c,utilities/config.h.in:
The choice of INSTALL_DATA as a configure variable name
has been repaired (renamed INSTALL_SHARE); INSTALL_DATA is the unix
canonical name for the program 'install' handling a data file.
Both autotools and scons builds have been updated to reflect this,
in the process correcting the definition from prefix/share to
prefix/share/ascend. 

autotools build:
Added --with-quiet option to make the install of already installed and
unchanged files less verbose.
Put in a workaround for the '' problem in tkConfig.sh seen by KC/JP.
Added --datadir support to autotools configure. If you configure
the autotools --datadir=PREFIX/share/ascend you get the same behavior
as the Pye packaging; by default you get the CMU packaging convention instead.
Added utilities/env.c to build.

compiler:
Turned off AWAL in anontype.c.
Noodling away at blackboxes continues...

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="../generic/compiler/ascParse.y"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 # include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 # include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 # include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS RANLIB ac_ct_RANLIB LN_S SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP DEBUG_LIBS EGREP YACC parser_src LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS TCLINCLUDE NOTCLCONFIG TCLCONFIG TCLLIB TCLDYNAMICLINKING TKINCLUDE TKLIB TKDYNAMICLINKING F77 BLASLIB LPAKLIB LSODLIB QUIET_INSTALL DEFAULT_ASCENDLIBRARY ASCEND_DEFAULTLIBRARY ascpwd fullpathsrcdir asc_include scanner_src typer_src MATH_LIBS X11_INCLUDES X11_LIBRARIES X11_RUN_PATH X11_EXTRA_LIBS DL_LIBS LD_FLAGS LD_SEARCH_FLAGS SHLIB_CFLAGS SHLIB_LD SHLIB_LD_LIBS SHLIB_SUFFIX ASC_LIB_SUFFIX TK_LIB TK_HDR TKTABLE_LIB ASC_TK_LIBRARY ASC_TCL_LIBRARY ASC_DISTDIR_REL_BIN INSTALL_SHARE ASC_ENV_TK_DEFAULT TK_LD_HACK HAVE_TKTABLE asc_subdirs F77LIBS make_blaslib make_lpaklib make_lsodlib HAVE_LSOD tkdir_root tkdir_topbuilddir models_dir_root models_topbuilddir help_dir_root help_topbuilddir LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
366 case $ac_option in
367
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371 bindir=$ac_optarg ;;
372
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
387
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
392 datadir=$ac_optarg ;;
393
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
402
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412 *) ac_optarg=yes ;;
413 esac
414 eval "enable_$ac_feature='$ac_optarg'" ;;
415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
435
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
440
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
456 libdir=$ac_optarg ;;
457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477 mandir=$ac_optarg ;;
478
479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
499
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503 prefix=$ac_optarg ;;
504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
544 sbindir=$ac_optarg ;;
545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
555 sharedstatedir=$ac_optarg ;;
556
557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
560 site=$ac_optarg ;;
561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565 srcdir=$ac_optarg ;;
566
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
573
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
584
585 -with-* | --with-*)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594 *) ac_optarg=yes ;;
595 esac
596 eval "with_$ac_package='$ac_optarg'" ;;
597
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
624
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
628 ;;
629
630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
640 *)
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646 ;;
647
648 esac
649 done
650
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
665 esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671 do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
677 esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724 else
725 ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
731 else
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
734 fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
779 cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802 cat <<_ACEOF
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
829 _ACEOF
830
831 cat <<\_ACEOF
832
833 X features:
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
836
837 System types:
838 --build=BUILD configure for building on BUILD [guessed]
839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844
845 cat <<\_ACEOF
846
847 Optional Features:
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --enable-optimization optimize the C code while building ascend
851 --enable-dynamic-packages
852 Enable dynamic linking of ASCEND external packages
853 (default is YES for Linux, Cygwin and MinGW; NO for
854 any other platform)
855
856 --enable-relation-debugging
857 Enable debug output for relation compilation
858 (default is NO)
859
860 --enable-compiler-timing
861 Enable timing of the compiler (default is NO)
862
863
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --without-yacc do not generate parser from yacc file
868 --with-x use the X Window System
869 --without-tcl Disable Tcl
870 --with-tclconfig=path Set directory location of tclConfig.sh
871 --with-tcl=path Set location of Tcl package
872 --with-tclincl=path Set location of Tcl include directory
873 --with-tcllib=path Set location of Tcl library directory
874 --without-tk Disable Tk
875 --with-tkconfig=path Set directory location of tkConfig.sh
876 --with-tk=path Set location of Tk package
877 --with-tkincl=path Set location of Tk include directory
878 --with-tklib=path Set location of Tk library directory
879 Fortran compiler and libraries:
880 --with-fortran=F77,F77LIBS
881 The location of your Fortran compiler and its
882 library files. For example, under SunOS:
883 --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'
884 To specify only the compiler or libraries, leave off
885 whatever is not needed:
886 --with-fortran=',-L/usr/lang/lib -lF77 -lM77'
887 Use '--without-fortran' to not link against
888 any Fortran libraries
889 --with-blas=BLASLIB The full path to the blas library.
890 Use '--with-blas=build' to build the blas library
891 from the sources that come with the distribution.
892 --with-linpack=LPAKLIB The full path to the linpack library.
893 Use '--with-linpack=build' to build the library
894 from the sources that come with the distribution.
895 --with-lsod=LSODLIB The full path to the lsod library.
896 Use '--with-lsod=build' to build the lsod library
897 from the sources that come with the distribution.
898 Generation of Makefiles:
899 --without-tkdir do not generate Makefiles in the TK subdir
900 --without-models do not generate Makefiles in the models subdir
901 --with-quiet Much less whining if reinstalling the tk,models subdirs
902
903 Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CPP C preprocessor
911
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
914
915 _ACEOF
916 fi
917
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
920 ac_popdir=`pwd`
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
924
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 else
930 ac_dir_suffix= ac_top_builddir=
931 fi
932
933 case $srcdir in
934 .) # No --srcdir option. We are building in place.
935 ac_srcdir=.
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 esac
948 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
949 # absolute.
950 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
951 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
952 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
953 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
954
955 cd $ac_dir
956 # Check for guested configure; otherwise get Cygnus style configure.
957 if test -f $ac_srcdir/configure.gnu; then
958 echo
959 $SHELL $ac_srcdir/configure.gnu --help=recursive
960 elif test -f $ac_srcdir/configure; then
961 echo
962 $SHELL $ac_srcdir/configure --help=recursive
963 elif test -f $ac_srcdir/configure.ac ||
964 test -f $ac_srcdir/configure.in; then
965 echo
966 $ac_configure --help
967 else
968 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
969 fi
970 cd $ac_popdir
971 done
972 fi
973
974 test -n "$ac_init_help" && exit 0
975 if $ac_init_version; then
976 cat <<\_ACEOF
977
978 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
979 Free Software Foundation, Inc.
980 This configure script is free software; the Free Software Foundation
981 gives unlimited permission to copy, distribute and modify it.
982 _ACEOF
983 exit 0
984 fi
985 exec 5>config.log
986 cat >&5 <<_ACEOF
987 This file contains any messages produced by compilers while
988 running configure, to aid debugging if configure makes a mistake.
989
990 It was created by $as_me, which was
991 generated by GNU Autoconf 2.57. Invocation command line was
992
993 $ $0 $@
994
995 _ACEOF
996 {
997 cat <<_ASUNAME
998 ## --------- ##
999 ## Platform. ##
1000 ## --------- ##
1001
1002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1007
1008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1010
1011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1014 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018
1019 _ASUNAME
1020
1021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022 for as_dir in $PATH
1023 do
1024 IFS=$as_save_IFS
1025 test -z "$as_dir" && as_dir=.
1026 echo "PATH: $as_dir"
1027 done
1028
1029 } >&5
1030
1031 cat >&5 <<_ACEOF
1032
1033
1034 ## ----------- ##
1035 ## Core tests. ##
1036 ## ----------- ##
1037
1038 _ACEOF
1039
1040
1041 # Keep a trace of the command line.
1042 # Strip out --no-create and --no-recursion so they do not pile up.
1043 # Strip out --silent because we don't want to record it for future runs.
1044 # Also quote any args containing shell meta-characters.
1045 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_configure_args=
1047 ac_configure_args0=
1048 ac_configure_args1=
1049 ac_sep=
1050 ac_must_keep_next=false
1051 for ac_pass in 1 2
1052 do
1053 for ac_arg
1054 do
1055 case $ac_arg in
1056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 continue ;;
1060 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1061 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1062 esac
1063 case $ac_pass in
1064 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1065 2)
1066 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1067 if test $ac_must_keep_next = true; then
1068 ac_must_keep_next=false # Got value, back to normal.
1069 else
1070 case $ac_arg in
1071 *=* | --config-cache | -C | -disable-* | --disable-* \
1072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1074 | -with-* | --with-* | -without-* | --without-* | --x)
1075 case "$ac_configure_args0 " in
1076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1077 esac
1078 ;;
1079 -* ) ac_must_keep_next=true ;;
1080 esac
1081 fi
1082 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1083 # Get rid of the leading space.
1084 ac_sep=" "
1085 ;;
1086 esac
1087 done
1088 done
1089 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1090 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1091
1092 # When interrupted or exit'd, cleanup temporary files, and complete
1093 # config.log. We remove comments because anyway the quotes in there
1094 # would cause problems or look ugly.
1095 # WARNING: Be sure not to use single quotes in there, as some shells,
1096 # such as our DU 5.0 friend, will then `close' the trap.
1097 trap 'exit_status=$?
1098 # Save into config.log some information that might help in debugging.
1099 {
1100 echo
1101
1102 cat <<\_ASBOX
1103 ## ---------------- ##
1104 ## Cache variables. ##
1105 ## ---------------- ##
1106 _ASBOX
1107 echo
1108 # The following way of writing the cache mishandles newlines in values,
1109 {
1110 (set) 2>&1 |
1111 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1112 *ac_space=\ *)
1113 sed -n \
1114 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116 ;;
1117 *)
1118 sed -n \
1119 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120 ;;
1121 esac;
1122 }
1123 echo
1124
1125 cat <<\_ASBOX
1126 ## ----------------- ##
1127 ## Output variables. ##
1128 ## ----------------- ##
1129 _ASBOX
1130 echo
1131 for ac_var in $ac_subst_vars
1132 do
1133 eval ac_val=$`echo $ac_var`
1134 echo "$ac_var='"'"'$ac_val'"'"'"
1135 done | sort
1136 echo
1137
1138 if test -n "$ac_subst_files"; then
1139 cat <<\_ASBOX
1140 ## ------------- ##
1141 ## Output files. ##
1142 ## ------------- ##
1143 _ASBOX
1144 echo
1145 for ac_var in $ac_subst_files
1146 do
1147 eval ac_val=$`echo $ac_var`
1148 echo "$ac_var='"'"'$ac_val'"'"'"
1149 done | sort
1150 echo
1151 fi
1152
1153 if test -s confdefs.h; then
1154 cat <<\_ASBOX
1155 ## ----------- ##
1156 ## confdefs.h. ##
1157 ## ----------- ##
1158 _ASBOX
1159 echo
1160 sed "/^$/d" confdefs.h | sort
1161 echo
1162 fi
1163 test "$ac_signal" != 0 &&
1164 echo "$as_me: caught signal $ac_signal"
1165 echo "$as_me: exit $exit_status"
1166 } >&5
1167 rm -f core core.* *.core &&
1168 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1169 exit $exit_status
1170 ' 0
1171 for ac_signal in 1 2 13 15; do
1172 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173 done
1174 ac_signal=0
1175
1176 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1177 rm -rf conftest* confdefs.h
1178 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1179 echo >confdefs.h
1180
1181 # Predefined preprocessor variables.
1182
1183 cat >>confdefs.h <<_ACEOF
1184 #define PACKAGE_NAME "$PACKAGE_NAME"
1185 _ACEOF
1186
1187
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190 _ACEOF
1191
1192
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1195 _ACEOF
1196
1197
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_STRING "$PACKAGE_STRING"
1200 _ACEOF
1201
1202
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205 _ACEOF
1206
1207
1208 # Let the site file select an alternate cache file if it wants to.
1209 # Prefer explicitly selected file to automatically selected ones.
1210 if test -z "$CONFIG_SITE"; then
1211 if test "x$prefix" != xNONE; then
1212 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1213 else
1214 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1215 fi
1216 fi
1217 for ac_site_file in $CONFIG_SITE; do
1218 if test -r "$ac_site_file"; then
1219 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1220 echo "$as_me: loading site script $ac_site_file" >&6;}
1221 sed 's/^/| /' "$ac_site_file" >&5
1222 . "$ac_site_file"
1223 fi
1224 done
1225
1226
1227 # Check that the precious variables saved in the cache have kept the same
1228 # value.
1229 ac_cache_corrupted=false
1230 for ac_var in `(set) 2>&1 |
1231 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1232 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1233 eval ac_new_set=\$ac_env_${ac_var}_set
1234 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1235 eval ac_new_val="\$ac_env_${ac_var}_value"
1236 case $ac_old_set,$ac_new_set in
1237 set,)
1238 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1239 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1240 ac_cache_corrupted=: ;;
1241 ,set)
1242 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1243 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1244 ac_cache_corrupted=: ;;
1245 ,);;
1246 *)
1247 if test "x$ac_old_val" != "x$ac_new_val"; then
1248 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1249 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1250 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1251 echo "$as_me: former value: $ac_old_val" >&2;}
1252 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1253 echo "$as_me: current value: $ac_new_val" >&2;}
1254 ac_cache_corrupted=:
1255 fi;;
1256 esac
1257 # Pass precious variables to config.status.
1258 if test "$ac_new_set" = set; then
1259 case $ac_new_val in
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 *) ac_arg=$ac_var=$ac_new_val ;;
1263 esac
1264 case " $ac_configure_args " in
1265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1266 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1267 esac
1268 fi
1269 done
1270 if $ac_cache_corrupted; then
1271 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1272 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1273 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1274 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1275 { (exit 1); exit 1; }; }
1276 fi
1277
1278 ac_ext=c
1279 ac_cpp='$CPP $CPPFLAGS'
1280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304 #--------------------------------------------------------------------
1305 # CVS Most Recent Revision Data
1306 # Put this data after AC_INIT since we want this information
1307 # to also appear in configure and autoconf, when creating
1308 # configure, strips all comments that appear in configure.in
1309 # before AC_INIT
1310 # $Revision: 1.38 $
1311 # $Date: 2003/11/23 19:36:39 $
1312 # $Author: ballan $
1313 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $
1314 #--------------------------------------------------------------------
1315
1316
1317 #--------------------------------------------------------------------
1318 # Where configure should look for files it needs.
1319 #--------------------------------------------------------------------
1320 ac_aux_dir=
1321 for ac_dir in config $srcdir/config; do
1322 if test -f $ac_dir/install-sh; then
1323 ac_aux_dir=$ac_dir
1324 ac_install_sh="$ac_aux_dir/install-sh -c"
1325 break
1326 elif test -f $ac_dir/install.sh; then
1327 ac_aux_dir=$ac_dir
1328 ac_install_sh="$ac_aux_dir/install.sh -c"
1329 break
1330 elif test -f $ac_dir/shtool; then
1331 ac_aux_dir=$ac_dir
1332 ac_install_sh="$ac_aux_dir/shtool install -c"
1333 break
1334 fi
1335 done
1336 if test -z "$ac_aux_dir"; then
1337 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1338 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1339 { (exit 1); exit 1; }; }
1340 fi
1341 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1342 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1343 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1344
1345
1346 #--------------------------------------------------------------------
1347 # Set the output variables prefix and exec_prefix that
1348 # determine where things will be installed.
1349 #--------------------------------------------------------------------
1350 if test "${prefix}" = "NONE"; then
1351 prefix=/usr/local
1352 fi
1353 if test "${exec_prefix}" = "NONE"; then
1354 exec_prefix=$prefix
1355 fi
1356
1357
1358 #--------------------------------------------------------------------
1359 # For the Fortran support libraries and the TCL/TK libraries
1360 # and header files, we unfortunately need the full path to
1361 # these files. The problem with having the full path is that
1362 # if the user moves the source tree, things will break unless
1363 # the user re-runs configure.
1364 #--------------------------------------------------------------------
1365
1366 #--------------------------------------------------------------------
1367 ##AWW
1368 ##AWW We put the .o files when compiling into a tree structure
1369 ##AWW relative to the directory in which we currently reside,
1370 ##AWW while the .c and .h files are in a similar tree structure
1371 ##AWW relative to the configure instruction we invoke. This
1372 ##AWW allows one to have separate .o files in their own tree when
1373 ##AWW compiling for different operating systems.
1374 ##AWW
1375 ##AWW Example 1 (same directories)
1376 ##AWW Current directory one is in: /home/me/trunk/base/unixAC213
1377 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1378 ##AWW Command to invoke configure: ./configure
1379 ##AWW $ascpwd will be: /home/me/trunk/base/unixAC213
1380 ##AWW $srcdir will be: .
1381 ##AWW
1382 ##AWW Example 2 (different directories, abs path for command)
1383 ##AWW Current directory one is in: /home/me/trunk/base/newTree
1384 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
1385 ##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure
1386 ##AWW $ascpwd will be: /home/me/trunk/base/newTree
1387 ##AWW $srcdir will be: /home/me/trunk/base/unixAC213
1388 ##AWW
1389 ##AWW Example 3 (different directories, rel path for command)
1390 ##AWW Same as Example 2
1391 ##AWW Command to invoke configure: ../unixAC213/configure
1392 ##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2)
1393 ##AWW $srcdir will be: ../unixAC213
1394 ##AWW
1395 ##AWW Key elements of the source tree are:
1396 ##AWW code/trunk/trunk/base/unixAC213/configure
1397 ##AWW code/trunk/trunk/base/generic
1398 ##AWW code/trunk/tcltk
1399 ##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder
1400 ##AWW containing "configure"
1401 ##AWW
1402 ##AWW Configure is located at:
1403 ##AWW $srcdir/configure
1404 ##AWW while the .c/.h files one wants are in:
1405 ##AWW $srcdir/../generic/compiler
1406 ##AWW $srcdir/../generic/general
1407 ##AWW $srcdir/../generic/packages
1408 ##AWW $srcdir/../generic/solver
1409 ##AWW $srcdir/../generic/utilities
1410 ##AWW $srcdir/../../tcltk/generic/interface
1411 ##AWW
1412 ##AWW Each of these directories contain Makefiles and possible
1413 ##AWW need to find .h files in the other directories. For example
1414 ##AWW the include statements are always of the form
1415 ##AWW #include compiler/slv3.h or
1416 ##AWW #include interface/SlvProc.h
1417 ##AWW
1418 ##AWW A safe include path should assume one is a directory with any
1419 ##AWW of these .h and .c files and one needs to find a .h file in
1420 ##AWW any other of them. The following paths should do it.
1421 ##AWW
1422 ##AWW If in compiler, general, packages, solver, utilities
1423 ##AWW .. for general, packages, etc
1424 ##AWW ../../../tcltk/generic for interface
1425 ##AWW If in interface
1426 ##AWW .. for interface
1427 ##AWW ../../../base/generic for compiler, general, ..
1428 ##AWW
1429 #--------------------------------------------------------------------
1430 # The asc_include variable is (directory) path to the ascend4
1431 # SOURCE directory relative to the immediate subdirectories of
1432 # the ascend4 OBJECT directory. --rewrite - not clear.
1433 #AWW To compile a new ASCEND executable, one should move into the
1434 #AWW directory in which one wants the ASCEND object/executable
1435 #AWW to reside (call this objTree) and from there run
1436 #AWW ../base/unixAC213/configure.
1437 #AWW In the following code asc_include is set to the path from
1438 #JP I think that the current recommendation is to install from
1439 #JP run ./configure (ie from this directory)
1440
1441 ascpwd=`pwd`
1442 fullpathsrcdir=`cd $srcdir ; pwd`
1443
1444 case "$srcdir" in
1445 .)
1446 asc_include="../$srcdir"
1447 ;;
1448 /*)
1449 asc_include="$srcdir/../generic"
1450 ;;
1451 *)
1452 asc_include="$srcdir/../generic"
1453 ;;
1454 esac
1455
1456
1457 #--------------------------------------------------------------------
1458 # Do basic checks to determine
1459 # * if we have `ranlib'
1460 # * if we can create symbolic links
1461 # * if `make' sets the MAKE macro
1462 # * a bsd-compatible `install' program
1463 # If we use the install-sh script that comes with configure,
1464 # prefix it with the current directory so it'll work in
1465 # subdirectories. Unfortunately, it won't work if the user
1466 # moves the source tree.
1467 #--------------------------------------------------------------------
1468 if test -n "$ac_tool_prefix"; then
1469 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1470 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1471 echo "$as_me:$LINENO: checking for $ac_word" >&5
1472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1473 if test "${ac_cv_prog_RANLIB+set}" = set; then
1474 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 else
1476 if test -n "$RANLIB"; then
1477 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1478 else
1479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1480 for as_dir in $PATH
1481 do
1482 IFS=$as_save_IFS
1483 test -z "$as_dir" && as_dir=.
1484 for ac_exec_ext in '' $ac_executable_extensions; do
1485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1486 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1488 break 2
1489 fi
1490 done
1491 done
1492
1493 fi
1494 fi
1495 RANLIB=$ac_cv_prog_RANLIB
1496 if test -n "$RANLIB"; then
1497 echo "$as_me:$LINENO: result: $RANLIB" >&5
1498 echo "${ECHO_T}$RANLIB" >&6
1499 else
1500 echo "$as_me:$LINENO: result: no" >&5
1501 echo "${ECHO_T}no" >&6
1502 fi
1503
1504 fi
1505 if test -z "$ac_cv_prog_RANLIB"; then
1506 ac_ct_RANLIB=$RANLIB
1507 # Extract the first word of "ranlib", so it can be a program name with args.
1508 set dummy ranlib; ac_word=$2
1509 echo "$as_me:$LINENO: checking for $ac_word" >&5
1510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1512 echo $ECHO_N "(cached) $ECHO_C" >&6
1513 else
1514 if test -n "$ac_ct_RANLIB"; then
1515 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1516 else
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1518 for as_dir in $PATH
1519 do
1520 IFS=$as_save_IFS
1521 test -z "$as_dir" && as_dir=.
1522 for ac_exec_ext in '' $ac_executable_extensions; do
1523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1524 ac_cv_prog_ac_ct_RANLIB="ranlib"
1525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1526 break 2
1527 fi
1528 done
1529 done
1530
1531 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1532 fi
1533 fi
1534 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1535 if test -n "$ac_ct_RANLIB"; then
1536 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1537 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1538 else
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1541 fi
1542
1543 RANLIB=$ac_ct_RANLIB
1544 else
1545 RANLIB="$ac_cv_prog_RANLIB"
1546 fi
1547
1548 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1549 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1550 LN_S=$as_ln_s
1551 if test "$LN_S" = "ln -s"; then
1552 echo "$as_me:$LINENO: result: yes" >&5
1553 echo "${ECHO_T}yes" >&6
1554 else
1555 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1556 echo "${ECHO_T}no, using $LN_S" >&6
1557 fi
1558
1559 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1560 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1561 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1562 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564 else
1565 cat >conftest.make <<\_ACEOF
1566 all:
1567 @echo 'ac_maketemp="$(MAKE)"'
1568 _ACEOF
1569 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1570 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1571 if test -n "$ac_maketemp"; then
1572 eval ac_cv_prog_make_${ac_make}_set=yes
1573 else
1574 eval ac_cv_prog_make_${ac_make}_set=no
1575 fi
1576 rm -f conftest.make
1577 fi
1578 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1579 echo "$as_me:$LINENO: result: yes" >&5
1580 echo "${ECHO_T}yes" >&6
1581 SET_MAKE=
1582 else
1583 echo "$as_me:$LINENO: result: no" >&5
1584 echo "${ECHO_T}no" >&6
1585 SET_MAKE="MAKE=${MAKE-make}"
1586 fi
1587
1588 # Find a good install program. We prefer a C program (faster),
1589 # so one script is as good as another. But avoid the broken or
1590 # incompatible versions:
1591 # SysV /etc/install, /usr/sbin/install
1592 # SunOS /usr/etc/install
1593 # IRIX /sbin/install
1594 # AIX /bin/install
1595 # AmigaOS /C/install, which installs bootblocks on floppy discs
1596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1599 # ./install, which can be erroneously created by make from ./install.sh.
1600 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1601 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1602 if test -z "$INSTALL"; then
1603 if test "${ac_cv_path_install+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 # Account for people who put trailing slashes in PATH elements.
1612 case $as_dir/ in
1613 ./ | .// | /cC/* | \
1614 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1615 /usr/ucb/* ) ;;
1616 *)
1617 # OSF1 and SCO ODT 3.0 have their own names for install.
1618 # Don't use installbsd from OSF since it installs stuff as root
1619 # by default.
1620 for ac_prog in ginstall scoinst install; do
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1623 if test $ac_prog = install &&
1624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1625 # AIX install. It has an incompatible calling convention.
1626 :
1627 elif test $ac_prog = install &&
1628 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1629 # program-specific install script used by HP pwplus--don't use.
1630 :
1631 else
1632 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1633 break 3
1634 fi
1635 fi
1636 done
1637 done
1638 ;;
1639 esac
1640 done
1641
1642
1643 fi
1644 if test "${ac_cv_path_install+set}" = set; then
1645 INSTALL=$ac_cv_path_install
1646 else
1647 # As a last resort, use the slow shell script. We don't cache a
1648 # path for INSTALL within a source directory, because that will
1649 # break other packages using the cache if that directory is
1650 # removed, or if the path is relative.
1651 INSTALL=$ac_install_sh
1652 fi
1653 fi
1654 echo "$as_me:$LINENO: result: $INSTALL" >&5
1655 echo "${ECHO_T}$INSTALL" >&6
1656
1657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1658 # It thinks the first close brace ends the variable substitution.
1659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1660
1661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1662
1663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1664
1665
1666 case "X$INSTALL" in
1667 X/*)
1668 ;;
1669 *)
1670 INSTALL="$ascpwd/$INSTALL"
1671 ;;
1672 esac
1673
1674
1675 #--------------------------------------------------------------------
1676 # Get the host type for various checks along the way
1677 #--------------------------------------------------------------------
1678 # Make sure we can run config.sub.
1679 $ac_config_sub sun4 >/dev/null 2>&1 ||
1680 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1681 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1682 { (exit 1); exit 1; }; }
1683
1684 echo "$as_me:$LINENO: checking build system type" >&5
1685 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1686 if test "${ac_cv_build+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1688 else
1689 ac_cv_build_alias=$build_alias
1690 test -z "$ac_cv_build_alias" &&
1691 ac_cv_build_alias=`$ac_config_guess`
1692 test -z "$ac_cv_build_alias" &&
1693 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1694 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1695 { (exit 1); exit 1; }; }
1696 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1697 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1698 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1699 { (exit 1); exit 1; }; }
1700
1701 fi
1702 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1703 echo "${ECHO_T}$ac_cv_build" >&6
1704 build=$ac_cv_build
1705 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1706 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1707 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1708
1709
1710 echo "$as_me:$LINENO: checking host system type" >&5
1711 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1712 if test "${ac_cv_host+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1714 else
1715 ac_cv_host_alias=$host_alias
1716 test -z "$ac_cv_host_alias" &&
1717 ac_cv_host_alias=$ac_cv_build_alias
1718 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1719 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1720 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1721 { (exit 1); exit 1; }; }
1722
1723 fi
1724 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1725 echo "${ECHO_T}$ac_cv_host" >&6
1726 host=$ac_cv_host
1727 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1728 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1729 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1730
1731
1732
1733 #--------------------------------------------------------------------
1734 # Check for the C compiler: set CC and CFLAGS.
1735 # If the user does NOT specify `--enable-gcc' on the configure
1736 # command command line, set CC to either the envar CC or `cc'.
1737 # Call AC_PROG_CC which will use the value of CC (perhaps set
1738 # immediately above) or will check for `gcc' and then for `cc'
1739 # if `gcc' is not found.
1740 #
1741 # If we are using GCC, then assume it groks ANSI. Otherwise,
1742 # try to compile a small program using ANSI constructs with
1743 # CC. If this fails, try to locate each of the following:
1744 # c89 xlc acc
1745 # and if successful, see if it compiles an ANSI C program.
1746 # (Doing this in a loop would be ideal, but configure caches
1747 # the result of AC_CHECK_PROG and uses the cached value for
1748 # all but the first pass through the loop. This is also the
1749 # reason we have to use a different variable asc_cc1, asc_cc2
1750 # for each call to AC_CHECK_PROG.
1751 #
1752 # If we do not find an ANSI C compiler, print a warning and
1753 # use the first value of CC we tried.
1754 #--------------------------------------------------------------------
1755 #JP removed the lengthy CC tests, since ANSI C is pretty universal
1756 #JP these days, and GCC can pretty much be assumed if we're using
1757 #JP Autotools.
1758
1759 ac_ext=c
1760 ac_cpp='$CPP $CPPFLAGS'
1761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1764 if test -n "$ac_tool_prefix"; then
1765 for ac_prog in gcc
1766 do
1767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1769 echo "$as_me:$LINENO: checking for $ac_word" >&5
1770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1771 if test "${ac_cv_prog_CC+set}" = set; then
1772 echo $ECHO_N "(cached) $ECHO_C" >&6
1773 else
1774 if test -n "$CC"; then
1775 ac_cv_prog_CC="$CC" # Let the user override the test.
1776 else
1777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1778 for as_dir in $PATH
1779 do
1780 IFS=$as_save_IFS
1781 test -z "$as_dir" && as_dir=.
1782 for ac_exec_ext in '' $ac_executable_extensions; do
1783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1786 break 2
1787 fi
1788 done
1789 done
1790
1791 fi
1792 fi
1793 CC=$ac_cv_prog_CC
1794 if test -n "$CC"; then
1795 echo "$as_me:$LINENO: result: $CC" >&5
1796 echo "${ECHO_T}$CC" >&6
1797 else
1798 echo "$as_me:$LINENO: result: no" >&5
1799 echo "${ECHO_T}no" >&6
1800 fi
1801
1802 test -n "$CC" && break
1803 done
1804 fi
1805 if test -z "$CC"; then
1806 ac_ct_CC=$CC
1807 for ac_prog in gcc
1808 do
1809 # Extract the first word of "$ac_prog", so it can be a program name with args.
1810 set dummy $ac_prog; ac_word=$2
1811 echo "$as_me:$LINENO: checking for $ac_word" >&5
1812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815 else
1816 if test -n "$ac_ct_CC"; then
1817 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1818 else
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 for as_dir in $PATH
1821 do
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_ac_ct_CC="$ac_prog"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 break 2
1829 fi
1830 done
1831 done
1832
1833 fi
1834 fi
1835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1836 if test -n "$ac_ct_CC"; then
1837 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1838 echo "${ECHO_T}$ac_ct_CC" >&6
1839 else
1840 echo "$as_me:$LINENO: result: no" >&5
1841 echo "${ECHO_T}no" >&6
1842 fi
1843
1844 test -n "$ac_ct_CC" && break
1845 done
1846
1847 CC=$ac_ct_CC
1848 fi
1849
1850
1851 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1852 See \`config.log' for more details." >&5
1853 echo "$as_me: error: no acceptable C compiler found in \$PATH
1854 See \`config.log' for more details." >&2;}
1855 { (exit 1); exit 1; }; }
1856
1857 # Provide some information about the compiler.
1858 echo "$as_me:$LINENO:" \
1859 "checking for C compiler version" >&5
1860 ac_compiler=`set X $ac_compile; echo $2`
1861 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1862 (eval $ac_compiler --version </dev/null >&5) 2>&5
1863 ac_status=$?
1864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865 (exit $ac_status); }
1866 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1867 (eval $ac_compiler -v </dev/null >&5) 2>&5
1868 ac_status=$?
1869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1870 (exit $ac_status); }
1871 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1872 (eval $ac_compiler -V </dev/null >&5) 2>&5
1873 ac_status=$?
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }
1876
1877 cat >conftest.$ac_ext <<_ACEOF
1878 #line $LINENO "configure"
1879 /* confdefs.h. */
1880 _ACEOF
1881 cat confdefs.h >>conftest.$ac_ext
1882 cat >>conftest.$ac_ext <<_ACEOF
1883 /* end confdefs.h. */
1884
1885 int
1886 main ()
1887 {
1888
1889 ;
1890 return 0;
1891 }
1892 _ACEOF
1893 ac_clean_files_save=$ac_clean_files
1894 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1895 # Try to create an executable without -o first, disregard a.out.
1896 # It will help us diagnose broken compilers, and finding out an intuition
1897 # of exeext.
1898 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1899 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1900 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1901 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1902 (eval $ac_link_default) 2>&5
1903 ac_status=$?
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }; then
1906 # Find the output, starting from the most likely. This scheme is
1907 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1908 # resort.
1909
1910 # Be careful to initialize this variable, since it used to be cached.
1911 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1912 ac_cv_exeext=
1913 # b.out is created by i960 compilers.
1914 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1915 do
1916 test -f "$ac_file" || continue
1917 case $ac_file in
1918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1919 ;;
1920 conftest.$ac_ext )
1921 # This is the source file.
1922 ;;
1923 [ab].out )
1924 # We found the default executable, but exeext='' is most
1925 # certainly right.
1926 break;;
1927 *.* )
1928 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1929 # FIXME: I believe we export ac_cv_exeext for Libtool,
1930 # but it would be cool to find out if it's true. Does anybody
1931 # maintain Libtool? --akim.
1932 export ac_cv_exeext
1933 break;;
1934 * )
1935 break;;
1936 esac
1937 done
1938 else
1939 echo "$as_me: failed program was:" >&5
1940 sed 's/^/| /' conftest.$ac_ext >&5
1941
1942 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: C compiler cannot create executables
1945 See \`config.log' for more details." >&2;}
1946 { (exit 77); exit 77; }; }
1947 fi
1948
1949 ac_exeext=$ac_cv_exeext
1950 echo "$as_me:$LINENO: result: $ac_file" >&5
1951 echo "${ECHO_T}$ac_file" >&6
1952
1953 # Check the compiler produces executables we can run. If not, either
1954 # the compiler is broken, or we cross compile.
1955 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1956 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1957 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1958 # If not cross compiling, check that we can run a simple program.
1959 if test "$cross_compiling" != yes; then
1960 if { ac_try='./$ac_file'
1961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962 (eval $ac_try) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; }; then
1966 cross_compiling=no
1967 else
1968 if test "$cross_compiling" = maybe; then
1969 cross_compiling=yes
1970 else
1971 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1972 If you meant to cross compile, use \`--host'.
1973 See \`config.log' for more details." >&5
1974 echo "$as_me: error: cannot run C compiled programs.
1975 If you meant to cross compile, use \`--host'.
1976 See \`config.log' for more details." >&2;}
1977 { (exit 1); exit 1; }; }
1978 fi
1979 fi
1980 fi
1981 echo "$as_me:$LINENO: result: yes" >&5
1982 echo "${ECHO_T}yes" >&6
1983
1984 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1985 ac_clean_files=$ac_clean_files_save
1986 # Check the compiler produces executables we can run. If not, either
1987 # the compiler is broken, or we cross compile.
1988 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1989 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1990 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1991 echo "${ECHO_T}$cross_compiling" >&6
1992
1993 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1994 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1996 (eval $ac_link) 2>&5
1997 ac_status=$?
1998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999 (exit $ac_status); }; then
2000 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2001 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2002 # work properly (i.e., refer to `conftest.exe'), while it won't with
2003 # `rm'.
2004 for ac_file in conftest.exe conftest conftest.*; do
2005 test -f "$ac_file" || continue
2006 case $ac_file in
2007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2008 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2009 export ac_cv_exeext
2010 break;;
2011 * ) break;;
2012 esac
2013 done
2014 else
2015 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2016 See \`config.log' for more details." >&5
2017 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2018 See \`config.log' for more details." >&2;}
2019 { (exit 1); exit 1; }; }
2020 fi
2021
2022 rm -f conftest$ac_cv_exeext
2023 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2024 echo "${ECHO_T}$ac_cv_exeext" >&6
2025
2026 rm -f conftest.$ac_ext
2027 EXEEXT=$ac_cv_exeext
2028 ac_exeext=$EXEEXT
2029 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2030 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2031 if test "${ac_cv_objext+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 else
2034 cat >conftest.$ac_ext <<_ACEOF
2035 #line $LINENO "configure"
2036 /* confdefs.h. */
2037 _ACEOF
2038 cat confdefs.h >>conftest.$ac_ext
2039 cat >>conftest.$ac_ext <<_ACEOF
2040 /* end confdefs.h. */
2041
2042 int
2043 main ()
2044 {
2045
2046 ;
2047 return 0;
2048 }
2049 _ACEOF
2050 rm -f conftest.o conftest.obj
2051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2052 (eval $ac_compile) 2>&5
2053 ac_status=$?
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; then
2056 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2057 case $ac_file in
2058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2059 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2060 break;;
2061 esac
2062 done
2063 else
2064 echo "$as_me: failed program was:" >&5
2065 sed 's/^/| /' conftest.$ac_ext >&5
2066
2067 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2070 See \`config.log' for more details." >&2;}
2071 { (exit 1); exit 1; }; }
2072 fi
2073
2074 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2075 fi
2076 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2077 echo "${ECHO_T}$ac_cv_objext" >&6
2078 OBJEXT=$ac_cv_objext
2079 ac_objext=$OBJEXT
2080 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2081 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2082 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2084 else
2085 cat >conftest.$ac_ext <<_ACEOF
2086 #line $LINENO "configure"
2087 /* confdefs.h. */
2088 _ACEOF
2089 cat confdefs.h >>conftest.$ac_ext
2090 cat >>conftest.$ac_ext <<_ACEOF
2091 /* end confdefs.h. */
2092
2093 int
2094 main ()
2095 {
2096 #ifndef __GNUC__
2097 choke me
2098 #endif
2099
2100 ;
2101 return 0;
2102 }
2103 _ACEOF
2104 rm -f conftest.$ac_objext
2105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2106 (eval $ac_compile) 2>&5
2107 ac_status=$?
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
2110 { ac_try='test -s conftest.$ac_objext'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 (eval $ac_try) 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; }; then
2116 ac_compiler_gnu=yes
2117 else
2118 echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.$ac_ext >&5
2120
2121 ac_compiler_gnu=no
2122 fi
2123 rm -f conftest.$ac_objext conftest.$ac_ext
2124 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2125
2126 fi
2127 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2128 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2129 GCC=`test $ac_compiler_gnu = yes && echo yes`
2130 ac_test_CFLAGS=${CFLAGS+set}
2131 ac_save_CFLAGS=$CFLAGS
2132 CFLAGS="-g"
2133 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2134 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2135 if test "${ac_cv_prog_cc_g+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 else
2138 cat >conftest.$ac_ext <<_ACEOF
2139 #line $LINENO "configure"
2140 /* confdefs.h. */
2141 _ACEOF
2142 cat confdefs.h >>conftest.$ac_ext
2143 cat >>conftest.$ac_ext <<_ACEOF
2144 /* end confdefs.h. */
2145
2146 int
2147 main ()
2148 {
2149
2150 ;
2151 return 0;
2152 }
2153 _ACEOF
2154 rm -f conftest.$ac_objext
2155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2156 (eval $ac_compile) 2>&5
2157 ac_status=$?
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); } &&
2160 { ac_try='test -s conftest.$ac_objext'
2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162 (eval $ac_try) 2>&5
2163 ac_status=$?
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; }; then
2166 ac_cv_prog_cc_g=yes
2167 else
2168 echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 ac_cv_prog_cc_g=no
2172 fi
2173 rm -f conftest.$ac_objext conftest.$ac_ext
2174 fi
2175 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2176 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2177 if test "$ac_test_CFLAGS" = set; then
2178 CFLAGS=$ac_save_CFLAGS
2179 elif test $ac_cv_prog_cc_g = yes; then
2180 if test "$GCC" = yes; then
2181 CFLAGS="-g -O2"
2182 else
2183 CFLAGS="-g"
2184 fi
2185 else
2186 if test "$GCC" = yes; then
2187 CFLAGS="-O2"
2188 else
2189 CFLAGS=
2190 fi
2191 fi
2192 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2193 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2194 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197 ac_cv_prog_cc_stdc=no
2198 ac_save_CC=$CC
2199 cat >conftest.$ac_ext <<_ACEOF
2200 #line $LINENO "configure"
2201 /* confdefs.h. */
2202 _ACEOF
2203 cat confdefs.h >>conftest.$ac_ext
2204 cat >>conftest.$ac_ext <<_ACEOF
2205 /* end confdefs.h. */
2206 #include <stdarg.h>
2207 #include <stdio.h>
2208 #include <sys/types.h>
2209 #include <sys/stat.h>
2210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2211 struct buf { int x; };
2212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2213 static char *e (p, i)
2214 char **p;
2215 int i;
2216 {
2217 return p[i];
2218 }
2219 static char *f (char * (*g) (char **, int), char **p, ...)
2220 {
2221 char *s;
2222 va_list v;
2223 va_start (v,p);
2224 s = g (p, va_arg (v,int));
2225 va_end (v);
2226 return s;
2227 }
2228 int test (int i, double x);
2229 struct s1 {int (*f) (int a);};
2230 struct s2 {int (*f) (double a);};
2231 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2232 int argc;
2233 char **argv;
2234 int
2235 main ()
2236 {
2237 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2238 ;
2239 return 0;
2240 }
2241 _ACEOF
2242 # Don't try gcc -ansi; that turns off useful extensions and
2243 # breaks some systems' header files.
2244 # AIX -qlanglvl=ansi
2245 # Ultrix and OSF/1 -std1
2246 # HP-UX 10.20 and later -Ae
2247 # HP-UX older versions -Aa -D_HPUX_SOURCE
2248 # SVR4 -Xc -D__EXTENSIONS__
2249 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2250 do
2251 CC="$ac_save_CC $ac_arg"
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>&5
2255 ac_status=$?
2256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2257 (exit $ac_status); } &&
2258 { ac_try='test -s conftest.$ac_objext'
2259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260 (eval $ac_try) 2>&5
2261 ac_status=$?
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263 (exit $ac_status); }; }; then
2264 ac_cv_prog_cc_stdc=$ac_arg
2265 break
2266 else
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 fi
2271 rm -f conftest.$ac_objext
2272 done
2273 rm -f conftest.$ac_ext conftest.$ac_objext
2274 CC=$ac_save_CC
2275
2276 fi
2277
2278 case "x$ac_cv_prog_cc_stdc" in
2279 x|xno)
2280 echo "$as_me:$LINENO: result: none needed" >&5
2281 echo "${ECHO_T}none needed" >&6 ;;
2282 *)
2283 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2284 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2285 CC="$CC $ac_cv_prog_cc_stdc" ;;
2286 esac
2287
2288 # Some people use a C++ compiler to compile C. Since we use `exit',
2289 # in C++ we need to declare it. In case someone uses the same compiler
2290 # for both compiling C and C++ we need to have the C++ compiler decide
2291 # the declaration of exit, since it's the most demanding environment.
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #ifndef __cplusplus
2294 choke me
2295 #endif
2296 _ACEOF
2297 rm -f conftest.$ac_objext
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2300 ac_status=$?
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); } &&
2303 { ac_try='test -s conftest.$ac_objext'
2304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2305 (eval $ac_try) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; }; then
2309 for ac_declaration in \
2310 ''\
2311 '#include <stdlib.h>' \
2312 'extern "C" void std::exit (int) throw (); using std::exit;' \
2313 'extern "C" void std::exit (int); using std::exit;' \
2314 'extern "C" void exit (int) throw ();' \
2315 'extern "C" void exit (int);' \
2316 'void exit (int);'
2317 do
2318 cat >conftest.$ac_ext <<_ACEOF
2319 #line $LINENO "configure"
2320 /* confdefs.h. */
2321 _ACEOF
2322 cat confdefs.h >>conftest.$ac_ext
2323 cat >>conftest.$ac_ext <<_ACEOF
2324 /* end confdefs.h. */
2325 #include <stdlib.h>
2326 $ac_declaration
2327 int
2328 main ()
2329 {
2330 exit (42);
2331 ;
2332 return 0;
2333 }
2334 _ACEOF
2335 rm -f conftest.$ac_objext
2336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2337 (eval $ac_compile) 2>&5
2338 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340 (exit $ac_status); } &&
2341 { ac_try='test -s conftest.$ac_objext'
2342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343 (eval $ac_try) 2>&5
2344 ac_status=$?
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); }; }; then
2347 :
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2351
2352 continue
2353 fi
2354 rm -f conftest.$ac_objext conftest.$ac_ext
2355 cat >conftest.$ac_ext <<_ACEOF
2356 #line $LINENO "configure"
2357 /* confdefs.h. */
2358 _ACEOF
2359 cat confdefs.h >>conftest.$ac_ext
2360 cat >>conftest.$ac_ext <<_ACEOF
2361 /* end confdefs.h. */
2362 $ac_declaration
2363 int
2364 main ()
2365 {
2366 exit (42);
2367 ;
2368 return 0;
2369 }
2370 _ACEOF
2371 rm -f conftest.$ac_objext
2372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373 (eval $ac_compile) 2>&5
2374 ac_status=$?
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); } &&
2377 { ac_try='test -s conftest.$ac_objext'
2378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 (eval $ac_try) 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }; }; then
2383 break
2384 else
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2387
2388 fi
2389 rm -f conftest.$ac_objext conftest.$ac_ext
2390 done
2391 rm -f conftest*
2392 if test -n "$ac_declaration"; then
2393 echo '#ifdef __cplusplus' >>confdefs.h
2394 echo $ac_declaration >>confdefs.h
2395 echo '#endif' >>confdefs.h
2396 fi
2397
2398 else
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2401
2402 fi
2403 rm -f conftest.$ac_objext conftest.$ac_ext
2404 ac_ext=c
2405 ac_cpp='$CPP $CPPFLAGS'
2406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2409
2410
2411 #--------------------------------------------------------------------
2412 # Do other misc checks with CC and CFLAGS.
2413 #
2414 # Determine how to run the C preprocessor.
2415 #
2416 # If the user specifies --enable-optimization, remove `-g'
2417 # from CFLAGS, add `-O' to CFLAGS, and define `NDEBUG'. If
2418 # we are not building optimized, check for special libraries
2419 # needed for building a debugging binary (currenly only
2420 # /usr/lib/end.o under HPUX).
2421 #
2422 # Check if we're running on AIX; if so, add `-D_ALL_SOURCE'
2423 # to CFLAGS.
2424 #
2425 # Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'
2426 # to CFLAGS unless the C preprocessor goes it for us.
2427 #--------------------------------------------------------------------
2428
2429 ac_ext=c
2430 ac_cpp='$CPP $CPPFLAGS'
2431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2434 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2435 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2436 # On Suns, sometimes $CPP names a directory.
2437 if test -n "$CPP" && test -d "$CPP"; then
2438 CPP=
2439 fi
2440 if test -z "$CPP"; then
2441 if test "${ac_cv_prog_CPP+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 else
2444 # Double quotes because CPP needs to be expanded
2445 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2446 do
2447 ac_preproc_ok=false
2448 for ac_c_preproc_warn_flag in '' yes
2449 do
2450 # Use a header file that comes with gcc, so configuring glibc
2451 # with a fresh cross-compiler works.
2452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2453 # <limits.h> exists even on freestanding compilers.
2454 # On the NeXT, cc -E runs the code through the compiler's parser,
2455 # not just through cpp. "Syntax error" is here to catch this case.
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line $LINENO "configure"
2458 /* confdefs.h. */
2459 _ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2463 #ifdef __STDC__
2464 # include <limits.h>
2465 #else
2466 # include <assert.h>
2467 #endif
2468 Syntax error
2469 _ACEOF
2470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2472 ac_status=$?
2473 grep -v '^ *+' conftest.er1 >conftest.err
2474 rm -f conftest.er1
2475 cat conftest.err >&5
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); } >/dev/null; then
2478 if test -s conftest.err; then
2479 ac_cpp_err=$ac_c_preproc_warn_flag
2480 else
2481 ac_cpp_err=
2482 fi
2483 else
2484 ac_cpp_err=yes
2485 fi
2486 if test -z "$ac_cpp_err"; then
2487 :
2488 else
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 # Broken: fails on valid input.
2493 continue
2494 fi
2495 rm -f conftest.err conftest.$ac_ext
2496
2497 # OK, works on sane cases. Now check whether non-existent headers
2498 # can be detected and how.
2499 cat >conftest.$ac_ext <<_ACEOF
2500 #line $LINENO "configure"
2501 /* confdefs.h. */
2502 _ACEOF
2503 cat confdefs.h >>conftest.$ac_ext
2504 cat >>conftest.$ac_ext <<_ACEOF
2505 /* end confdefs.h. */
2506 #include <ac_nonexistent.h>
2507 _ACEOF
2508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2510 ac_status=$?
2511 grep -v '^ *+' conftest.er1 >conftest.err
2512 rm -f conftest.er1
2513 cat conftest.err >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); } >/dev/null; then
2516 if test -s conftest.err; then
2517 ac_cpp_err=$ac_c_preproc_warn_flag
2518 else
2519 ac_cpp_err=
2520 fi
2521 else
2522 ac_cpp_err=yes
2523 fi
2524 if test -z "$ac_cpp_err"; then
2525 # Broken: success on invalid input.
2526 continue
2527 else
2528 echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2530
2531 # Passes both tests.
2532 ac_preproc_ok=:
2533 break
2534 fi
2535 rm -f conftest.err conftest.$ac_ext
2536
2537 done
2538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2539 rm -f conftest.err conftest.$ac_ext
2540 if $ac_preproc_ok; then
2541 break
2542 fi
2543
2544 done
2545 ac_cv_prog_CPP=$CPP
2546
2547 fi
2548 CPP=$ac_cv_prog_CPP
2549 else
2550 ac_cv_prog_CPP=$CPP
2551 fi
2552 echo "$as_me:$LINENO: result: $CPP" >&5
2553 echo "${ECHO_T}$CPP" >&6
2554 ac_preproc_ok=false
2555 for ac_c_preproc_warn_flag in '' yes
2556 do
2557 # Use a header file that comes with gcc, so configuring glibc
2558 # with a fresh cross-compiler works.
2559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2560 # <limits.h> exists even on freestanding compilers.
2561 # On the NeXT, cc -E runs the code through the compiler's parser,
2562 # not just through cpp. "Syntax error" is here to catch this case.
2563 cat >conftest.$ac_ext <<_ACEOF
2564 #line $LINENO "configure"
2565 /* confdefs.h. */
2566 _ACEOF
2567 cat confdefs.h >>conftest.$ac_ext
2568 cat >>conftest.$ac_ext <<_ACEOF
2569 /* end confdefs.h. */
2570 #ifdef __STDC__
2571 # include <limits.h>
2572 #else
2573 # include <assert.h>
2574 #endif
2575 Syntax error
2576 _ACEOF
2577 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2578 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2579 ac_status=$?
2580 grep -v '^ *+' conftest.er1 >conftest.err
2581 rm -f conftest.er1
2582 cat conftest.err >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } >/dev/null; then
2585 if test -s conftest.err; then
2586 ac_cpp_err=$ac_c_preproc_warn_flag
2587 else
2588 ac_cpp_err=
2589 fi
2590 else
2591 ac_cpp_err=yes
2592 fi
2593 if test -z "$ac_cpp_err"; then
2594 :
2595 else
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 # Broken: fails on valid input.
2600 continue
2601 fi
2602 rm -f conftest.err conftest.$ac_ext
2603
2604 # OK, works on sane cases. Now check whether non-existent headers
2605 # can be detected and how.
2606 cat >conftest.$ac_ext <<_ACEOF
2607 #line $LINENO "configure"
2608 /* confdefs.h. */
2609 _ACEOF
2610 cat confdefs.h >>conftest.$ac_ext
2611 cat >>conftest.$ac_ext <<_ACEOF
2612 /* end confdefs.h. */
2613 #include <ac_nonexistent.h>
2614 _ACEOF
2615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2617 ac_status=$?
2618 grep -v '^ *+' conftest.er1 >conftest.err
2619 rm -f conftest.er1
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } >/dev/null; then
2623 if test -s conftest.err; then
2624 ac_cpp_err=$ac_c_preproc_warn_flag
2625 else
2626 ac_cpp_err=
2627 fi
2628 else
2629 ac_cpp_err=yes
2630 fi
2631 if test -z "$ac_cpp_err"; then
2632 # Broken: success on invalid input.
2633 continue
2634 else
2635 echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638 # Passes both tests.
2639 ac_preproc_ok=:
2640 break
2641 fi
2642 rm -f conftest.err conftest.$ac_ext
2643
2644 done
2645 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2646 rm -f conftest.err conftest.$ac_ext
2647 if $ac_preproc_ok; then
2648 :
2649 else
2650 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2651 See \`config.log' for more details." >&5
2652 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2653 See \`config.log' for more details." >&2;}
2654 { (exit 1); exit 1; }; }
2655 fi
2656
2657 ac_ext=c
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662
2663
2664 # Check whether --enable-optimization or --disable-optimization was given.
2665 if test "${enable_optimization+set}" = set; then
2666 enableval="$enable_optimization"
2667 asc_do_opt="$enableval"
2668 else
2669 asc_do_opt=no
2670 fi;
2671
2672 if test "$asc_do_opt" = yes; then
2673 CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`
2674 cat >>confdefs.h <<\_ACEOF
2675 #define NDEBUG 1
2676 _ACEOF
2677
2678 else
2679 # Extract the first word of "end.o", so it can be a program name with args.
2680 set dummy end.o; ac_word=$2
2681 echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683 if test "${ac_cv_path_DEBUG_LIBS+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 case $DEBUG_LIBS in
2687 [\\/]* | ?:[\\/]*)
2688 ac_cv_path_DEBUG_LIBS="$DEBUG_LIBS" # Let the user override the test with a path.
2689 ;;
2690 *)
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in /usr/lib
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2698 ac_cv_path_DEBUG_LIBS="$as_dir/$ac_word$ac_exec_ext"
2699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 break 2
2701 fi
2702 done
2703 done
2704
2705 ;;
2706 esac
2707 fi
2708 DEBUG_LIBS=$ac_cv_path_DEBUG_LIBS
2709
2710 if test -n "$DEBUG_LIBS"; then
2711 echo "$as_me:$LINENO: result: $DEBUG_LIBS" >&5
2712 echo "${ECHO_T}$DEBUG_LIBS" >&6
2713 else
2714 echo "$as_me:$LINENO: result: no" >&5
2715 echo "${ECHO_T}no" >&6
2716 fi
2717
2718 fi
2719
2720 echo "$as_me:$LINENO: checking for AIX" >&5
2721 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2722
2723
2724 echo "$as_me:$LINENO: checking for egrep" >&5
2725 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2726 if test "${ac_cv_prog_egrep+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728 else
2729 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2730 then ac_cv_prog_egrep='grep -E'
2731 else ac_cv_prog_egrep='egrep'
2732 fi
2733 fi
2734 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2735 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2736 EGREP=$ac_cv_prog_egrep
2737
2738
2739 cat >conftest.$ac_ext <<_ACEOF
2740 #line $LINENO "configure"
2741 /* confdefs.h. */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2746
2747 #ifdef _AIX
2748 yes
2749 #endif
2750
2751 _ACEOF
2752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2753 $EGREP "yes" >/dev/null 2>&1; then
2754 asc_aix=yes ; cat >>confdefs.h <<\_ACEOF
2755 #define _ALL_SOURCE 1
2756 _ACEOF
2757
2758 else
2759 asc_aix=no
2760 fi
2761 rm -f conftest*
2762
2763 echo "$as_me:$LINENO: result: $asc_aix" >&5
2764 echo "${ECHO_T}$asc_aix" >&6
2765
2766 echo "$as_me:$LINENO: checking whether -D_HPUX_SOURCE is needed" >&5
2767 echo $ECHO_N "checking whether -D_HPUX_SOURCE is needed... $ECHO_C" >&6
2768 cat >conftest.$ac_ext <<_ACEOF
2769 #line $LINENO "configure"
2770 /* confdefs.h. */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2775
2776 #ifdef __hpux
2777 #ifndef _HPUX_SOURCE
2778 yes
2779 #endif
2780 #endif
2781
2782 _ACEOF
2783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2784 $EGREP "yes" >/dev/null 2>&1; then
2785 asc_hpux=yes ; cat >>confdefs.h <<\_ACEOF
2786 #define _HPUX_SOURCE 1
2787 _ACEOF
2788
2789 else
2790 asc_hpux=no
2791 fi
2792 rm -f conftest*
2793
2794 echo "$as_me:$LINENO: result: $asc_hpux" >&5
2795 echo "${ECHO_T}$asc_hpux" >&6
2796
2797 # Check the size of pointers; if cross compiling, assume 32 bit pointers
2798 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2799 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2800 if test "${ac_cv_header_stdc+set}" = set; then
2801 echo $ECHO_N "(cached) $ECHO_C" >&6
2802 else
2803 cat >conftest.$ac_ext <<_ACEOF
2804 #line $LINENO "configure"
2805 /* confdefs.h. */
2806 _ACEOF
2807 cat confdefs.h >>conftest.$ac_ext
2808 cat >>conftest.$ac_ext <<_ACEOF
2809 /* end confdefs.h. */
2810 #include <stdlib.h>
2811 #include <stdarg.h>
2812 #include <string.h>
2813 #include <float.h>
2814
2815 int
2816 main ()
2817 {
2818
2819 ;
2820 return 0;
2821 }
2822 _ACEOF
2823 rm -f conftest.$ac_objext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -s conftest.$ac_objext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2835 ac_cv_header_stdc=yes
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2839
2840 ac_cv_header_stdc=no
2841 fi
2842 rm -f conftest.$ac_objext conftest.$ac_ext
2843
2844 if test $ac_cv_header_stdc = yes; then
2845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2846 cat >conftest.$ac_ext <<_ACEOF
2847 #line $LINENO "configure"
2848 /* confdefs.h. */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h. */
2853 #include <string.h>
2854
2855 _ACEOF
2856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2857 $EGREP "memchr" >/dev/null 2>&1; then
2858 :
2859 else
2860 ac_cv_header_stdc=no
2861 fi
2862 rm -f conftest*
2863
2864 fi
2865
2866 if test $ac_cv_header_stdc = yes; then
2867 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2868 cat >conftest.$ac_ext <<_ACEOF
2869 #line $LINENO "configure"
2870 /* confdefs.h. */
2871 _ACEOF
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2875 #include <stdlib.h>
2876
2877 _ACEOF
2878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 $EGREP "free" >/dev/null 2>&1; then
2880 :
2881 else
2882 ac_cv_header_stdc=no
2883 fi
2884 rm -f conftest*
2885
2886 fi
2887
2888 if test $ac_cv_header_stdc = yes; then
2889 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2890 if test "$cross_compiling" = yes; then
2891 :
2892 else
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line $LINENO "configure"
2895 /* confdefs.h. */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2900 #include <ctype.h>
2901 #if ((' ' & 0x0FF) == 0x020)
2902 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2903 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2904 #else
2905 # define ISLOWER(c) \
2906 (('a' <= (c) && (c) <= 'i') \
2907 || ('j' <= (c) && (c) <= 'r') \
2908 || ('s' <= (c) && (c) <= 'z'))
2909 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2910 #endif
2911
2912 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2913 int
2914 main ()
2915 {
2916 int i;
2917 for (i = 0; i < 256; i++)
2918 if (XOR (islower (i), ISLOWER (i))
2919 || toupper (i) != TOUPPER (i))
2920 exit(2);
2921 exit (0);
2922 }
2923 _ACEOF
2924 rm -f conftest$ac_exeext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2926 (eval $ac_link) 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 (eval $ac_try) 2>&5
2932 ac_status=$?
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); }; }; then
2935 :
2936 else
2937 echo "$as_me: program exited with status $ac_status" >&5
2938 echo "$as_me: failed program was:" >&5
2939 sed 's/^/| /' conftest.$ac_ext >&5
2940
2941 ( exit $ac_status )
2942 ac_cv_header_stdc=no
2943 fi
2944 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2945 fi
2946 fi
2947 fi
2948 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2949 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2950 if test $ac_cv_header_stdc = yes; then
2951
2952 cat >>confdefs.h <<\_ACEOF
2953 #define STDC_HEADERS 1
2954 _ACEOF
2955
2956 fi
2957
2958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2969 inttypes.h stdint.h unistd.h
2970 do
2971 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2972 echo "$as_me:$LINENO: checking for $ac_header" >&5
2973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2975 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 else
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #line $LINENO "configure"
2979 /* confdefs.h. */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2984 $ac_includes_default
2985
2986 #include <$ac_header>
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>&5
2991 ac_status=$?
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } &&
2994 { ac_try='test -s conftest.$ac_objext'
2995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996 (eval $ac_try) 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }; }; then
3000 eval "$as_ac_Header=yes"
3001 else
3002 echo "$as_me: failed program was:" >&5
3003 sed 's/^/| /' conftest.$ac_ext >&5
3004
3005 eval "$as_ac_Header=no"
3006 fi
3007 rm -f conftest.$ac_objext conftest.$ac_ext
3008 fi
3009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3012 cat >>confdefs.h <<_ACEOF
3013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3014 _ACEOF
3015
3016 fi
3017
3018 done
3019
3020
3021 echo "$as_me:$LINENO: checking for void *" >&5
3022 echo $ECHO_N "checking for void *... $ECHO_C" >&6
3023 if test "${ac_cv_type_void_p+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3025 else
3026 cat >conftest.$ac_ext <<_ACEOF
3027 #line $LINENO "configure"
3028 /* confdefs.h. */
3029 _ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3033 $ac_includes_default
3034 int
3035 main ()
3036 {
3037 if ((void * *) 0)
3038 return 0;
3039 if (sizeof (void *))
3040 return 0;
3041 ;
3042 return 0;
3043 }
3044 _ACEOF
3045 rm -f conftest.$ac_objext
3046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047 (eval $ac_compile) 2>&5
3048 ac_status=$?
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -s conftest.$ac_objext'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 (eval $ac_try) 2>&5
3054 ac_status=$?
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; }; then
3057 ac_cv_type_void_p=yes
3058 else
3059 echo "$as_me: failed program was:" >&5
3060 sed 's/^/| /' conftest.$ac_ext >&5
3061
3062 ac_cv_type_void_p=no
3063 fi
3064 rm -f conftest.$ac_objext conftest.$ac_ext
3065 fi
3066 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
3067 echo "${ECHO_T}$ac_cv_type_void_p" >&6
3068
3069 echo "$as_me:$LINENO: checking size of void *" >&5
3070 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
3071 if test "${ac_cv_sizeof_void_p+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 else
3074 if test "$ac_cv_type_void_p" = yes; then
3075 # The cast to unsigned long works around a bug in the HP C Compiler
3076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3078 # This bug is HP SR number 8606223364.
3079 if test "$cross_compiling" = yes; then
3080 # Depending upon the size, compute the lo and hi bounds.
3081 cat >conftest.$ac_ext <<_ACEOF
3082 #line $LINENO "configure"
3083 /* confdefs.h. */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088 $ac_includes_default
3089 int
3090 main ()
3091 {
3092 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
3093 test_array [0] = 0
3094
3095 ;
3096 return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3101 (eval $ac_compile) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_lo=0 ac_mid=0
3112 while :; do
3113 cat >conftest.$ac_ext <<_ACEOF
3114 #line $LINENO "configure"
3115 /* confdefs.h. */
3116 _ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 $ac_includes_default
3121 int
3122 main ()
3123 {
3124 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3125 test_array [0] = 0
3126
3127 ;
3128 return 0;
3129 }
3130 _ACEOF
3131 rm -f conftest.$ac_objext
3132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3133 (eval $ac_compile) 2>&5
3134 ac_status=$?
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -s conftest.$ac_objext'
3138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139 (eval $ac_try) 2>&5
3140 ac_status=$?
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); }; }; then
3143 ac_hi=$ac_mid; break
3144 else
3145 echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3147
3148 ac_lo=`expr $ac_mid + 1`
3149 if test $ac_lo -le $ac_mid; then
3150 ac_lo= ac_hi=
3151 break
3152 fi
3153 ac_mid=`expr 2 '*' $ac_mid + 1`
3154 fi
3155 rm -f conftest.$ac_objext conftest.$ac_ext
3156 done
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3160
3161 cat >conftest.$ac_ext <<_ACEOF
3162 #line $LINENO "configure"
3163 /* confdefs.h. */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 $ac_includes_default
3169 int
3170 main ()
3171 {
3172 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
3173 test_array [0] = 0
3174
3175 ;
3176 return 0;
3177 }
3178 _ACEOF
3179 rm -f conftest.$ac_objext
3180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3181 (eval $ac_compile) 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); } &&
3185 { ac_try='test -s conftest.$ac_objext'
3186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3187 (eval $ac_try) 2>&5
3188 ac_status=$?
3189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190 (exit $ac_status); }; }; then
3191 ac_hi=-1 ac_mid=-1
3192 while :; do
3193 cat >conftest.$ac_ext <<_ACEOF
3194 #line $LINENO "configure"
3195 /* confdefs.h. */
3196 _ACEOF
3197 cat confdefs.h >>conftest.$ac_ext
3198 cat >>conftest.$ac_ext <<_ACEOF
3199 /* end confdefs.h. */
3200 $ac_includes_default
3201 int
3202 main ()
3203 {
3204 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
3205 test_array [0] = 0
3206
3207 ;
3208 return 0;
3209 }
3210 _ACEOF
3211 rm -f conftest.$ac_objext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213 (eval $ac_compile) 2>&5
3214 ac_status=$?
3215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216 (exit $ac_status); } &&
3217 { ac_try='test -s conftest.$ac_objext'
3218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3219 (eval $ac_try) 2>&5
3220 ac_status=$?
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); }; }; then
3223 ac_lo=$ac_mid; break
3224 else
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3227
3228 ac_hi=`expr '(' $ac_mid ')' - 1`
3229 if test $ac_mid -le $ac_hi; then
3230 ac_lo= ac_hi=
3231 break
3232 fi
3233 ac_mid=`expr 2 '*' $ac_mid`
3234 fi
3235 rm -f conftest.$ac_objext conftest.$ac_ext
3236 done
3237 else
3238 echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 ac_lo= ac_hi=
3242 fi
3243 rm -f conftest.$ac_objext conftest.$ac_ext
3244 fi
3245 rm -f conftest.$ac_objext conftest.$ac_ext
3246 # Binary search between lo and hi bounds.
3247 while test "x$ac_lo" != "x$ac_hi"; do
3248 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3249 cat >conftest.$ac_ext <<_ACEOF
3250 #line $LINENO "configure"
3251 /* confdefs.h. */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3256 $ac_includes_default
3257 int
3258 main ()
3259 {
3260 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
3261 test_array [0] = 0
3262
3263 ;
3264 return 0;
3265 }
3266 _ACEOF
3267 rm -f conftest.$ac_objext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269 (eval $ac_compile) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } &&
3273 { ac_try='test -s conftest.$ac_objext'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; }; then
3279 ac_hi=$ac_mid
3280 else
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284 ac_lo=`expr '(' $ac_mid ')' + 1`
3285 fi
3286 rm -f conftest.$ac_objext conftest.$ac_ext
3287 done
3288 case $ac_lo in
3289 ?*) ac_cv_sizeof_void_p=$ac_lo;;
3290 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3291 See \`config.log' for more details." >&5
3292 echo "$as_me: error: cannot compute sizeof (void *), 77
3293 See \`config.log' for more details." >&2;}
3294 { (exit 1); exit 1; }; } ;;
3295 esac
3296 else
3297 if test "$cross_compiling" = yes; then
3298 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3299 See \`config.log' for more details." >&5
3300 echo "$as_me: error: cannot run test program while cross compiling
3301 See \`config.log' for more details." >&2;}
3302 { (exit 1); exit 1; }; }
3303 else
3304 cat >conftest.$ac_ext <<_ACEOF
3305 #line $LINENO "configure"
3306 /* confdefs.h. */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h. */
3311 $ac_includes_default
3312 long longval () { return (long) (sizeof (void *)); }
3313 unsigned long ulongval () { return (long) (sizeof (void *)); }
3314 #include <stdio.h>
3315 #include <stdlib.h>
3316 int
3317 main ()
3318 {
3319
3320 FILE *f = fopen ("conftest.val", "w");
3321 if (! f)
3322 exit (1);
3323 if (((long) (sizeof (void *))) < 0)
3324 {
3325 long i = longval ();
3326 if (i != ((long) (sizeof (void *))))
3327 exit (1);
3328 fprintf (f, "%ld\n", i);
3329 }
3330 else
3331 {
3332 unsigned long i = ulongval ();
3333 if (i != ((long) (sizeof (void *))))
3334 exit (1);
3335 fprintf (f, "%lu\n", i);
3336 }
3337 exit (ferror (f) || fclose (f) != 0);
3338
3339 ;
3340 return 0;
3341 }
3342 _ACEOF
3343 rm -f conftest$ac_exeext
3344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3345 (eval $ac_link) 2>&5
3346 ac_status=$?
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 (eval $ac_try) 2>&5
3351 ac_status=$?
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_cv_sizeof_void_p=`cat conftest.val`
3355 else
3356 echo "$as_me: program exited with status $ac_status" >&5
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 ( exit $ac_status )
3361 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
3362 See \`config.log' for more details." >&5
3363 echo "$as_me: error: cannot compute sizeof (void *), 77
3364 See \`config.log' for more details." >&2;}
3365 { (exit 1); exit 1; }; }
3366 fi
3367 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3368 fi
3369 fi
3370 rm -f conftest.val
3371 else
3372 ac_cv_sizeof_void_p=0
3373 fi
3374 fi
3375 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
3376 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
3377 cat >>confdefs.h <<_ACEOF
3378 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3379 _ACEOF
3380
3381
3382
3383
3384 #--------------------------------------------------------------------
3385 # Set YACC.
3386 # call the
3387 # autoconf macro which looks for `bison' and then for `yacc'.
3388 # note it isn't bright enough to check that yacc really exists,
3389 # so we allow the user to disable it.
3390 #--------------------------------------------------------------------
3391
3392 YACCSAVE="$YACC"
3393 for ac_prog in 'bison -y' byacc
3394 do
3395 # Extract the first word of "$ac_prog", so it can be a program name with args.
3396 set dummy $ac_prog; ac_word=$2
3397 echo "$as_me:$LINENO: checking for $ac_word" >&5
3398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3399 if test "${ac_cv_prog_YACC+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402 if test -n "$YACC"; then
3403 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_YACC="$ac_prog"
3413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418
3419 fi
3420 fi
3421 YACC=$ac_cv_prog_YACC
3422 if test -n "$YACC"; then
3423 echo "$as_me:$LINENO: result: $YACC" >&5
3424 echo "${ECHO_T}$YACC" >&6
3425 else
3426 echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3428 fi
3429
3430 test -n "$YACC" && break
3431 done
3432 test -n "$YACC" || YACC="yacc"
3433
3434
3435
3436 # Check whether --with-yacc or --without-yacc was given.
3437 if test "${with_yacc+set}" = set; then
3438 withval="$with_yacc"
3439
3440 else
3441 with_yacc=yes
3442 fi;
3443 if test ! "X$with_yacc" = "Xyes" ; then
3444 YACC=": configured without yacc"
3445 parser_src="ascParse.c.from.c"
3446 else
3447 parser_src="ascParse.c.from.yacc"
3448 fi
3449
3450
3451 #--------------------------------------------------------------------
3452 # Set LEX.
3453 # ASCEND requires a `flex' which understands -P (allows you to
3454 # specify a prefix other than `yy'). The -P flag was added at
3455 # the same time a -V (version) flag was added (version 2.4.1),
3456 # so if `flex' understands -V, it'll understand -P (checking
3457 # for -P directly requires a flex input file).
3458 #
3459 # 1. If `LEX' is not set, look for `flex' and set `LEX' to
3460 # `flex' if found.
3461 # 2. If `flex' was found, see if it understands -V. If so,
3462 # set `scanner_src' and `typer_src' to have `flex' generate
3463 # the C files from the flex input files
3464 # base/generic/compiler/scanner.l & tcltk/interface/typelex.l
3465 # We don't need to look for libfl.a since we define
3466 # yywrap() ourselves.
3467 # 3. If `flex' wasn't found or was found but isn't new enough:
3468 # a. Print a warning message
3469 # b. Set `scanner_src' and `typer_src' to use pre-generated
3470 # C files for the flex files mentioned in (2).
3471 # c. Set `LEX' to `lex'
3472 # d. Search for the lex library `libl.a' and set LEXLIB to
3473 # its location.
3474 #--------------------------------------------------------------------
3475
3476 # Extract the first word of "flex", so it can be a program name with args.
3477 set dummy flex; ac_word=$2
3478 echo "$as_me:$LINENO: checking for $ac_word" >&5
3479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3480 if test "${ac_cv_prog_LEX+set}" = set; then
3481 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 else
3483 if test -n "$LEX"; then
3484 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3485 else
3486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487 for as_dir in $PATH
3488 do
3489 IFS=$as_save_IFS
3490 test -z "$as_dir" && as_dir=.
3491 for ac_exec_ext in '' $ac_executable_extensions; do
3492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3493 ac_cv_prog_LEX="flex"
3494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497 done
3498 done
3499
3500 fi
3501 fi
3502 LEX=$ac_cv_prog_LEX
3503 if test -n "$LEX"; then
3504 echo "$as_me:$LINENO: result: $LEX" >&5
3505 echo "${ECHO_T}$LEX" >&6
3506 else
3507 echo "$as_me:$LINENO: result: no" >&5
3508 echo "${ECHO_T}no" >&6
3509 fi
3510
3511
3512 if test -n "$LEX" ; then
3513 echo "$as_me:$LINENO: checking whether $LEX is at least version 2.4.1" >&5
3514 echo $ECHO_N "checking whether $LEX is at least version 2.4.1... $ECHO_C" >&6
3515 echo "$LEX -V" 1>&5
3516 if $LEX -V 1>&5 2>&5 ; then
3517 echo "$as_me:$LINENO: result: yes" >&5
3518 echo "${ECHO_T}yes" >&6
3519 scanner_src="scanner.c.from.flex"
3520 typer_src="typelex.c.from.flex"
3521 else
3522 echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6
3524 LEX=''
3525 fi
3526 fi
3527
3528 if test -z "$LEX" ; then
3529 { echo "$as_me:$LINENO: WARNING: Cannot find a flex lexer version 2.4.1 or greater.
3530 Using pregenerated C files for base/generic/compiler/scanner.l
3531 and tcltk/interface/typelex.l. If you have flex 2.4.1
3532 or newer, set the LEX environment variable to its location
3533 and run configure again." >&5
3534 echo "$as_me: WARNING: Cannot find a flex lexer version 2.4.1 or greater.
3535 Using pregenerated C files for base/generic/compiler/scanner.l
3536 and tcltk/interface/typelex.l. If you have flex 2.4.1
3537 or newer, set the LEX environment variable to its location
3538 and run configure again." >&2;}
3539 scanner_src="scanner.c.from.c"
3540 typer_src="typelex.c.from.c"
3541
3542 # let configure set LEX and LEXLIB even though we won't be using them
3543 for ac_prog in flex lex
3544 do
3545 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy $ac_prog; ac_word=$2
3547 echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3549 if test "${ac_cv_prog_LEX+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3551 else
3552 if test -n "$LEX"; then
3553 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_LEX="$ac_prog"
3563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566 done
3567 done
3568
3569 fi
3570 fi
3571 LEX=$ac_cv_prog_LEX
3572 if test -n "$LEX"; then
3573 echo "$as_me:$LINENO: result: $LEX" >&5
3574 echo "${ECHO_T}$LEX" >&6
3575 else
3576 echo "$as_me:$LINENO: result: no" >&5
3577 echo "${ECHO_T}no" >&6
3578 fi
3579
3580 test -n "$LEX" && break
3581 done
3582 test -n "$LEX" || LEX=":"
3583
3584 if test -z "$LEXLIB"
3585 then
3586 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3587 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3588 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591 ac_check_lib_save_LIBS=$LIBS
3592 LIBS="-lfl $LIBS"
3593 cat >conftest.$ac_ext <<_ACEOF
3594 #line $LINENO "configure"
3595 /* confdefs.h. */
3596 _ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3600
3601 /* Override any gcc2 internal prototype to avoid an error. */
3602 #ifdef __cplusplus
3603 extern "C"
3604 #endif
3605 /* We use char because int might match the return type of a gcc2
3606 builtin and then its argument prototype would still apply. */
3607 char yywrap ();
3608 int
3609 main ()
3610 {
3611 yywrap ();
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 rm -f conftest.$ac_objext conftest$ac_exeext
3617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3618 (eval $ac_link) 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -s conftest$ac_exeext'
3623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624 (eval $ac_try) 2>&5
3625 ac_status=$?
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); }; }; then
3628 ac_cv_lib_fl_yywrap=yes
3629 else
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3632
3633 ac_cv_lib_fl_yywrap=no
3634 fi
3635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3636 LIBS=$ac_check_lib_save_LIBS
3637 fi
3638 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3639 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3640 if test $ac_cv_lib_fl_yywrap = yes; then
3641 LEXLIB="-lfl"
3642 else
3643 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3644 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3645 if test "${ac_cv_lib_l_yywrap+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648 ac_check_lib_save_LIBS=$LIBS
3649 LIBS="-ll $LIBS"
3650 cat >conftest.$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3652 /* confdefs.h. */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3657
3658 /* Override any gcc2 internal prototype to avoid an error. */
3659 #ifdef __cplusplus
3660 extern "C"
3661 #endif
3662 /* We use char because int might match the return type of a gcc2
3663 builtin and then its argument prototype would still apply. */
3664 char yywrap ();
3665 int
3666 main ()
3667 {
3668 yywrap ();
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 rm -f conftest.$ac_objext conftest$ac_exeext
3674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3675 (eval $ac_link) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); } &&
3679 { ac_try='test -s conftest$ac_exeext'
3680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3681 (eval $ac_try) 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); }; }; then
3685 ac_cv_lib_l_yywrap=yes
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 ac_cv_lib_l_yywrap=no
3691 fi
3692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3693 LIBS=$ac_check_lib_save_LIBS
3694 fi
3695 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3696 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3697 if test $ac_cv_lib_l_yywrap = yes; then
3698 LEXLIB="-ll"
3699 fi
3700
3701 fi
3702
3703 fi
3704
3705 if test "x$LEX" != "x:"; then
3706 echo "$as_me:$LINENO: checking lex output file root" >&5
3707 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3708 if test "${ac_cv_prog_lex_root+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 # The minimal lex program is just a single line: %%. But some broken lexes
3712 # (Solaris, I think it was) want two %% lines, so accommodate them.
3713 cat >conftest.l <<_ACEOF
3714 %%
3715 %%
3716 _ACEOF
3717 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3718 (eval $LEX conftest.l) 2>&5
3719 ac_status=$?
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }
3722 if test -f lex.yy.c; then
3723 ac_cv_prog_lex_root=lex.yy
3724 elif test -f lexyy.c; then
3725 ac_cv_prog_lex_root=lexyy
3726 else
3727 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3728 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3729 { (exit 1); exit 1; }; }
3730 fi
3731 fi
3732 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3733 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3734 rm -f conftest.l
3735 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3736
3737 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3738 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3739 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 # POSIX says lex can declare yytext either as a pointer or an array; the
3743 # default is implementation-dependent. Figure out which it is, since
3744 # not all implementations provide the %pointer and %array declarations.
3745 ac_cv_prog_lex_yytext_pointer=no
3746 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3747 ac_save_LIBS=$LIBS
3748 LIBS="$LIBS $LEXLIB"
3749 cat >conftest.$ac_ext <<_ACEOF
3750 `cat $LEX_OUTPUT_ROOT.c`
3751 _ACEOF
3752 rm -f conftest.$ac_objext conftest$ac_exeext
3753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3754 (eval $ac_link) 2>&5
3755 ac_status=$?
3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757 (exit $ac_status); } &&
3758 { ac_try='test -s conftest$ac_exeext'
3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3760 (eval $ac_try) 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }; }; then
3764 ac_cv_prog_lex_yytext_pointer=yes
3765 else
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769 fi
3770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3771 LIBS=$ac_save_LIBS
3772 rm -f "${LEX_OUTPUT_ROOT}.c"
3773
3774 fi
3775 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3776 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3777 if test $ac_cv_prog_lex_yytext_pointer = yes; then
3778
3779 cat >>confdefs.h <<\_ACEOF
3780 #define YYTEXT_POINTER 1
3781 _ACEOF
3782
3783 fi
3784
3785 fi
3786 fi
3787
3788
3789 #--------------------------------------------------------------------
3790 # Math libraries.
3791 # On a few very rare systems, all of the libm.a stuff is
3792 # already in libc.a. Set compiler flags accordingly.
3793 # Also, Linux requires the "ieee" library for math to work
3794 # right (and it must appear before "-lm").
3795 #
3796 # When building on HPUX with GCC, GCC cannot find `copysign'
3797 # because it lives in an odd place; see if we need to add
3798 # this odd place to MATH_LIBS.
3799 #
3800 # See if erf(), the error function, exists; if so, define
3801 # HAVE_ERF.
3802 #--------------------------------------------------------------------
3803 echo "$as_me:$LINENO: checking for sin" >&5
3804 echo $ECHO_N "checking for sin... $ECHO_C" >&6
3805 if test "${ac_cv_func_sin+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 else
3808 cat >conftest.$ac_ext <<_ACEOF
3809 #line $LINENO "configure"
3810 /* confdefs.h. */
3811 _ACEOF
3812 cat confdefs.h >>conftest.$ac_ext
3813 cat >>conftest.$ac_ext <<_ACEOF
3814 /* end confdefs.h. */
3815 /* System header to define __stub macros and hopefully few prototypes,
3816 which can conflict with char sin (); below.
3817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 <limits.h> exists even on freestanding compilers. */
3819 #ifdef __STDC__
3820 # include <limits.h>
3821 #else
3822 # include <assert.h>
3823 #endif
3824 /* Override any gcc2 internal prototype to avoid an error. */
3825 #ifdef __cplusplus
3826 extern "C"
3827 {
3828 #endif
3829 /* We use char because int might match the return type of a gcc2
3830 builtin and then its argument prototype would still apply. */
3831 char sin ();
3832 /* The GNU C library defines this for functions which it implements
3833 to always fail with ENOSYS. Some functions are actually named
3834 something starting with __ and the normal name is an alias. */
3835 #if defined (__stub_sin) || defined (__stub___sin)
3836 choke me
3837 #else
3838 char (*f) () = sin;
3839 #endif
3840 #ifdef __cplusplus
3841 }
3842 #endif
3843
3844 int
3845 main ()
3846 {
3847 return f != sin;
3848 ;
3849 return 0;
3850 }
3851 _ACEOF
3852 rm -f conftest.$ac_objext conftest$ac_exeext
3853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3854 (eval $ac_link) 2>&5
3855 ac_status=$?
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } &&
3858 { ac_try='test -s conftest$ac_exeext'
3859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860 (eval $ac_try) 2>&5
3861 ac_status=$?
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); }; }; then
3864 ac_cv_func_sin=yes
3865 else
3866 echo "$as_me: failed program was:" >&5
3867 sed 's/^/| /' conftest.$ac_ext >&5
3868
3869 ac_cv_func_sin=no
3870 fi
3871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3872 fi
3873 echo "$as_me:$LINENO: result: $ac_cv_func_sin" >&5
3874 echo "${ECHO_T}$ac_cv_func_sin" >&6
3875 if test $ac_cv_func_sin = yes; then
3876 MATH_LIBS=""
3877 else
3878 MATH_LIBS="-lm"
3879 fi
3880
3881
3882 echo "$as_me:$LINENO: checking for printf in -lieee" >&5
3883 echo $ECHO_N "checking for printf in -lieee... $ECHO_C" >&6
3884 if test "${ac_cv_lib_ieee_printf+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 ac_check_lib_save_LIBS=$LIBS
3888 LIBS="-lieee $LIBS"
3889 cat >conftest.$ac_ext <<_ACEOF
3890 #line $LINENO "configure"
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896
3897 /* Override any gcc2 internal prototype to avoid an error. */
3898 #ifdef __cplusplus
3899 extern "C"
3900 #endif
3901 /* We use char because int might match the return type of a gcc2
3902 builtin and then its argument prototype would still apply. */
3903 char printf ();
3904 int
3905 main ()
3906 {
3907 printf ();
3908 ;
3909 return 0;
3910 }
3911 _ACEOF
3912 rm -f conftest.$ac_objext conftest$ac_exeext
3913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3914 (eval $ac_link) 2>&5
3915 ac_status=$?
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } &&
3918 { ac_try='test -s conftest$ac_exeext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 ac_cv_lib_ieee_printf=yes
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 ac_cv_lib_ieee_printf=no
3930 fi
3931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3932 LIBS=$ac_check_lib_save_LIBS
3933 fi
3934 echo "$as_me:$LINENO: result: $ac_cv_lib_ieee_printf" >&5
3935 echo "${ECHO_T}$ac_cv_lib_ieee_printf" >&6
3936 if test $ac_cv_lib_ieee_printf = yes; then
3937 MATH_LIBS="-lieee $MATH_LIBS"
3938 fi
3939
3940
3941 if test -n "$MATH_LIBS" ; then
3942
3943 echo "$as_me:$LINENO: checking for copysign in -lm" >&5
3944 echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6
3945 if test "${ac_cv_lib_m_copysign+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 else
3948 ac_check_lib_save_LIBS=$LIBS
3949 LIBS="-lm $MATH_LIBS $LIBS"
3950 cat >conftest.$ac_ext <<_ACEOF
3951 #line $LINENO "configure"
3952 /* confdefs.h. */
3953 _ACEOF
3954 cat confdefs.h >>conftest.$ac_ext
3955 cat >>conftest.$ac_ext <<_ACEOF
3956 /* end confdefs.h. */
3957
3958 /* Override any gcc2 internal prototype to avoid an error. */
3959 #ifdef __cplusplus
3960 extern "C"
3961 #endif
3962 /* We use char because int might match the return type of a gcc2
3963 builtin and then its argument prototype would still apply. */
3964 char copysign ();
3965 int
3966 main ()
3967 {
3968 copysign ();
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 rm -f conftest.$ac_objext conftest$ac_exeext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3975 (eval $ac_link) 2>&5
3976 ac_status=$?
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } &&
3979 { ac_try='test -s conftest$ac_exeext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3981 (eval $ac_try) 2>&5
3982 ac_status=$?
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_cv_lib_m_copysign=yes
3986 else
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3989
3990 ac_cv_lib_m_copysign=no
3991 fi
3992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3993 LIBS=$ac_check_lib_save_LIBS
3994 fi
3995 echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5
3996 echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6
3997 if test $ac_cv_lib_m_copysign = yes; then
3998 cat >>confdefs.h <<_ACEOF
3999 #define HAVE_LIBM 1
4000 _ACEOF
4001
4002 LIBS="-lm $LIBS"
4003
4004 else
4005 echo "$as_me:$LINENO: checking for drem in -lm" >&5
4006 echo $ECHO_N "checking for drem in -lm... $ECHO_C" >&6
4007 if test "${ac_cv_lib_m_drem+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 else
4010 ac_check_lib_save_LIBS=$LIBS
4011 LIBS="-lm /lib/pa1.1/libM.a
4012 $LIBS"
4013 cat >conftest.$ac_ext <<_ACEOF
4014 #line $LINENO "configure"
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020
4021 /* Override any gcc2 internal prototype to avoid an error. */
4022 #ifdef __cplusplus
4023 extern "C"
4024 #endif
4025 /* We use char because int might match the return type of a gcc2
4026 builtin and then its argument prototype would still apply. */
4027 char drem ();
4028 int
4029 main ()
4030 {
4031 drem ();
4032 ;
4033 return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.$ac_objext conftest$ac_exeext
4037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4038 (eval $ac_link) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -s conftest$ac_exeext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 ac_cv_lib_m_drem=yes
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 ac_cv_lib_m_drem=no
4054 fi
4055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4056 LIBS=$ac_check_lib_save_LIBS
4057 fi
4058 echo "$as_me:$LINENO: result: $ac_cv_lib_m_drem" >&5
4059 echo "${ECHO_T}$ac_cv_lib_m_drem" >&6
4060 if test $ac_cv_lib_m_drem = yes; then
4061 MATH_LIBS="$MATH_LIBS /lib/pa1.1/libM.a"
4062
4063 fi
4064
4065 fi
4066
4067 fi
4068
4069 # store the current list of libraries, add the math libraries to LIBS,
4070 # check for erf(), then reset the value of LIBS.
4071 asc_keep_LIBS="$LIBS"
4072 LIBS="$LIBS $MATH_LIBS"
4073
4074 for ac_func in erf
4075 do
4076 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4077 echo "$as_me:$LINENO: checking for $ac_func" >&5
4078 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4079 if eval "test \"\${$as_ac_var+set}\" = set"; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 else
4082 cat >conftest.$ac_ext <<_ACEOF
4083 #line $LINENO "configure"
4084 /* confdefs.h. */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 /* System header to define __stub macros and hopefully few prototypes,
4090 which can conflict with char $ac_func (); below.
4091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4092 <limits.h> exists even on freestanding compilers. */
4093 #ifdef __STDC__
4094 # include <limits.h>
4095 #else
4096 # include <assert.h>
4097 #endif
4098 /* Override any gcc2 internal prototype to avoid an error. */
4099 #ifdef __cplusplus
4100 extern "C"
4101 {
4102 #endif
4103 /* We use char because int might match the return type of a gcc2
4104 builtin and then its argument prototype would still apply. */
4105 char $ac_func ();
4106 /* The GNU C library defines this for functions which it implements
4107 to always fail with ENOSYS. Some functions are actually named
4108 something starting with __ and the normal name is an alias. */
4109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4110 choke me
4111 #else
4112 char (*f) () = $ac_func;
4113 #endif
4114 #ifdef __cplusplus
4115 }
4116 #endif
4117
4118 int
4119 main ()
4120 {
4121 return f != $ac_func;
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 rm -f conftest.$ac_objext conftest$ac_exeext
4127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4128 (eval $ac_link) 2>&5
4129 ac_status=$?
4130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131 (exit $ac_status); } &&
4132 { ac_try='test -s conftest$ac_exeext'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134 (eval $ac_try) 2>&5
4135 ac_status=$?
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then
4138 eval "$as_ac_var=yes"
4139 else
4140 echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4142
4143 eval "$as_ac_var=no"
4144 fi
4145 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4146 fi
4147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4149 if test `eval echo '${'$as_ac_var'}'` = yes; then
4150 cat >>confdefs.h <<_ACEOF
4151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4152 _ACEOF
4153
4154 fi
4155 done
4156
4157 LIBS="$asc_keep_LIBS"
4158
4159 #----------------------------------------------
4160 # Check for 'vsnprintf' -- there seems to be a problem with it in
4161 # on cygwin.
4162
4163
4164
4165
4166
4167
4168 for ac_func in snprintf vsnprintf
4169 do
4170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4171 echo "$as_me:$LINENO: checking for $ac_func" >&5
4172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4173 if eval "test \"\${$as_ac_var+set}\" = set"; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176 cat >conftest.$ac_ext <<_ACEOF
4177 #line $LINENO "configure"
4178 /* confdefs.h. */
4179 _ACEOF
4180 cat confdefs.h >>conftest.$ac_ext
4181 cat >>conftest.$ac_ext <<_ACEOF
4182 /* end confdefs.h. */
4183 /* System header to define __stub macros and hopefully few prototypes,
4184 which can conflict with char $ac_func (); below.
4185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4186 <limits.h> exists even on freestanding compilers. */
4187 #ifdef __STDC__
4188 # include <limits.h>
4189 #else
4190 # include <assert.h>
4191 #endif
4192 /* Override any gcc2 internal prototype to avoid an error. */
4193 #ifdef __cplusplus
4194 extern "C"
4195 {
4196 #endif
4197 /* We use char because int might match the return type of a gcc2
4198 builtin and then its argument prototype would still apply. */
4199 char $ac_func ();
4200 /* The GNU C library defines this for functions which it implements
4201 to always fail with ENOSYS. Some functions are actually named
4202 something starting with __ and the normal name is an alias. */
4203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4204 choke me
4205 #else
4206 char (*f) () = $ac_func;
4207 #endif
4208 #ifdef __cplusplus
4209 }
4210 #endif
4211
4212 int
4213 main ()
4214 {
4215 return f != $ac_func;
4216 ;
4217 return 0;
4218 }
4219 _ACEOF
4220 rm -f conftest.$ac_objext conftest$ac_exeext
4221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4222 (eval $ac_link) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } &&
4226 { ac_try='test -s conftest$ac_exeext'
4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4228 (eval $ac_try) 2>&5
4229 ac_status=$?
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }; }; then
4232 eval "$as_ac_var=yes"
4233 else
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.$ac_ext >&5
4236
4237 eval "$as_ac_var=no"
4238 fi
4239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4240 fi
4241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4243 if test `eval echo '${'$as_ac_var'}'` = yes; then
4244 cat >>confdefs.h <<_ACEOF
4245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4246 _ACEOF
4247
4248 fi
4249 done
4250
4251 echo "$as_me:$LINENO: checking for working snprintf" >&5
4252 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
4253 if test "${ac_cv_have_working_snprintf+set}" = set; then
4254 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 else
4256 if test "$cross_compiling" = yes; then
4257 ac_cv_have_working_snprintf=cross
4258 else
4259 cat >conftest.$ac_ext <<_ACEOF
4260 #line $LINENO "configure"
4261 /* confdefs.h. */
4262 _ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <stdio.h>
4267
4268 int main(void)
4269 {
4270 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
4271 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
4272 int i;
4273 i = snprintf (bufs, 2, "%s", "111");
4274 if (strcmp (bufs, "1")) exit (1);
4275 if (i != 3) exit (1);
4276 i = snprintf (bufd, 2, "%d", 111);
4277 if (strcmp (bufd, "1")) exit (1);
4278 if (i != 3) exit (1);
4279 exit(0);
4280 }
4281 _ACEOF
4282 rm -f conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289 (eval $ac_try) 2>&5
4290 ac_status=$?
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; }; then
4293 ac_cv_have_working_snprintf=yes
4294 else
4295 echo "$as_me: program exited with status $ac_status" >&5
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299 ( exit $ac_status )
4300 ac_cv_have_working_snprintf=no
4301 fi
4302 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 fi
4305
4306 echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
4307 echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6
4308 echo "$as_me:$LINENO: checking for working vsnprintf" >&5
4309 echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
4310 if test "${ac_cv_have_working_vsnprintf+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313 if test "$cross_compiling" = yes; then
4314 ac_cv_have_working_vsnprintf=cross
4315 else
4316 cat >conftest.$ac_ext <<_ACEOF
4317 #line $LINENO "configure"
4318 /* confdefs.h. */
4319 _ACEOF
4320 cat confdefs.h >>conftest.$ac_ext
4321 cat >>conftest.$ac_ext <<_ACEOF
4322 /* end confdefs.h. */
4323 #include <stdio.h>
4324 #include <stdarg.h>
4325
4326 int my_vsnprintf (char *buf, const char *tmpl, ...)
4327 {
4328 int i;
4329 va_list args;
4330 va_start (args, tmpl);
4331 i = vsnprintf (buf, 2, tmpl, args);
4332 va_end (args);
4333 return i;
4334 }
4335
4336 int main(void)
4337 {
4338 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
4339 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
4340 int i;
4341 i = my_vsnprintf (bufs, "%s", "111");
4342 if (strcmp (bufs, "1")) exit (1);
4343 if (i != 3) exit (1);
4344 i = my_vsnprintf (bufd, "%d", 111);
4345 if (strcmp (bufd, "1")) exit (1);
4346 if (i != 3) exit (1);
4347 exit(0);
4348 }
4349 _ACEOF
4350 rm -f conftest$ac_exeext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4352 (eval $ac_link) 2>&5
4353 ac_status=$?
4354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 ac_cv_have_working_vsnprintf=yes
4362 else
4363 echo "$as_me: program exited with status $ac_status" >&5
4364 echo "$as_me: failed program was:" >&5
4365 sed 's/^/| /' conftest.$ac_ext >&5
4366
4367 ( exit $ac_status )
4368 ac_cv_have_working_vsnprintf=no
4369 fi
4370 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4371 fi
4372 fi
4373
4374 echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
4375 echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6
4376 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
4377 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
4378 { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
4379 echo "$as_me: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&2;}
4380
4381 cat >>confdefs.h <<\_ACEOF
4382 #define PREFER_PORTABLE_SNPRINTF 1
4383 _ACEOF
4384
4385 fi
4386
4387 #--------------------------------------------------------------------
4388 # Check for X11.
4389 # We'll use the simple autoconf builtin macro for finding
4390 # X11 until we find a reason not to.
4391 #
4392 # On Solaris and IRIX, add the path to the X library to the
4393 # run-time shared-library-search-path so the ASCEND binary
4394 # can find the X library without the user having to set
4395 # LD_LIBRARY_PATH
4396 #--------------------------------------------------------------------
4397 echo "$as_me:$LINENO: checking for X" >&5
4398 echo $ECHO_N "checking for X... $ECHO_C" >&6
4399
4400
4401 # Check whether --with-x or --without-x was given.
4402 if test "${with_x+set}" = set; then
4403 withval="$with_x"
4404
4405 fi;
4406 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4407 if test "x$with_x" = xno; then
4408 # The user explicitly disabled X.
4409 have_x=disabled
4410 else
4411 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
4412 # Both variables are already set.
4413 have_x=yes
4414 else
4415 if test "${ac_cv_have_x+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 # One or both of the vars are not set, and there is no cached value.
4419 ac_x_includes=no ac_x_libraries=no
4420 rm -fr conftest.dir
4421 if mkdir conftest.dir; then
4422 cd conftest.dir
4423 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
4424 cat >Imakefile <<'_ACEOF'
4425 acfindx:
4426 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4427 _ACEOF
4428 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4429 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4430 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4431 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4432 for ac_extension in a so sl; do
4433 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4434 test -f $ac_im_libdir/libX11.$ac_extension; then
4435 ac_im_usrlibdir=$ac_im_libdir; break
4436 fi
4437 done
4438 # Screen out bogus values from the imake configuration. They are
4439 # bogus both because they are the default anyway, and because
4440 # using them would break gcc on systems where it needs fixed includes.
4441 case $ac_im_incroot in
4442 /usr/include) ;;
4443 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4444 esac
4445 case $ac_im_usrlibdir in
4446 /usr/lib | /lib) ;;
4447 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4448 esac
4449 fi
4450 cd ..
4451 rm -fr conftest.dir
4452 fi
4453
4454 # Standard set of common directories for X headers.
4455 # Check X11 before X11Rn because it is often a symlink to the current release.
4456 ac_x_header_dirs='
4457 /usr/X11/include
4458 /usr/X11R6/include
4459 /usr/X11R5/include
4460 /usr/X11R4/include
4461
4462 /usr/include/X11
4463 /usr/include/X11R6
4464 /usr/include/X11R5
4465 /usr/include/X11R4
4466
4467 /usr/local/X11/include
4468 /usr/local/X11R6/include
4469 /usr/local/X11R5/include
4470 /usr/local/X11R4/include
4471
4472 /usr/local/include/X11
4473 /usr/local/include/X11R6
4474 /usr/local/include/X11R5
4475 /usr/local/include/X11R4
4476
4477 /usr/X386/include
4478 /usr/x386/include
4479 /usr/XFree86/include/X11
4480
4481 /usr/include
4482 /usr/local/include
4483 /usr/unsupported/include
4484 /usr/athena/include
4485 /usr/local/x11r5/include
4486 /usr/lpp/Xamples/include
4487
4488 /usr/openwin/include
4489 /usr/openwin/share/include'
4490
4491 if test "$ac_x_includes" = no; then
4492 # Guess where to find include files, by looking for Intrinsic.h.
4493 # First, try using that file with no special directory specified.
4494 cat >conftest.$ac_ext <<_ACEOF
4495 #line $LINENO "configure"
4496 /* confdefs.h. */
4497 _ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4501 #include <X11/Intrinsic.h>
4502 _ACEOF
4503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4505 ac_status=$?
4506 grep -v '^ *+' conftest.er1 >conftest.err
4507 rm -f conftest.er1
4508 cat conftest.err >&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } >/dev/null; then
4511 if test -s conftest.err; then
4512 ac_cpp_err=$ac_c_preproc_warn_flag
4513 else
4514 ac_cpp_err=
4515 fi
4516 else
4517 ac_cpp_err=yes
4518 fi
4519 if test -z "$ac_cpp_err"; then
4520 # We can compile using X headers with no special include directory.
4521 ac_x_includes=
4522 else
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526 for ac_dir in $ac_x_header_dirs; do
4527 if test -r "$ac_dir/X11/Intrinsic.h"; then
4528 ac_x_includes=$ac_dir
4529 break
4530 fi
4531 done
4532 fi
4533 rm -f conftest.err conftest.$ac_ext
4534 fi # $ac_x_includes = no
4535
4536 if test "$ac_x_libraries" = no; then
4537 # Check for the libraries.
4538 # See if we find them without any special options.
4539 # Don't add to $LIBS permanently.
4540 ac_save_LIBS=$LIBS
4541 LIBS="-lXt $LIBS"
4542 cat >conftest.$ac_ext <<_ACEOF
4543 #line $LINENO "configure"
4544 /* confdefs.h. */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 #include <X11/Intrinsic.h>
4550 int
4551 main ()
4552 {
4553 XtMalloc (0)
4554 ;
4555 return 0;
4556 }
4557 _ACEOF
4558 rm -f conftest.$ac_objext conftest$ac_exeext
4559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4560 (eval $ac_link) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); } &&
4564 { ac_try='test -s conftest$ac_exeext'
4565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 LIBS=$ac_save_LIBS
4571 # We can link X programs with no special library path.
4572 ac_x_libraries=
4573 else
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577 LIBS=$ac_save_LIBS
4578 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4579 do
4580 # Don't even attempt the hair of trying to link an X program!
4581 for ac_extension in a so sl; do
4582 if test -r $ac_dir/libXt.$ac_extension; then
4583 ac_x_libraries=$ac_dir
4584 break 2
4585 fi
4586 done
4587 done
4588 fi
4589 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4590 fi # $ac_x_libraries = no
4591
4592 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
4593 # Didn't find X anywhere. Cache the known absence of X.
4594 ac_cv_have_x="have_x=no"
4595 else
4596 # Record where we found X for the cache.
4597 ac_cv_have_x="have_x=yes \
4598 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
4599 fi
4600 fi
4601
4602 fi
4603 eval "$ac_cv_have_x"
4604 fi # $with_x != no
4605
4606 if test "$have_x" != yes; then
4607 echo "$as_me:$LINENO: result: $have_x" >&5
4608 echo "${ECHO_T}$have_x" >&6
4609 no_x=yes
4610 else
4611 # If each of the values was on the command line, it overrides each guess.
4612 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4613 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4614 # Update the cache value to reflect the command line values.
4615 ac_cv_have_x="have_x=yes \
4616 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
4617 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
4618 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
4619 fi
4620
4621 if test -n "$x_includes"; then
4622 X11_INCLUDES="-I$x_includes"
4623 fi
4624 if test -n "$x_libraries"; then
4625 X11_LIBRARIES="-L$x_libraries"
4626 case "$host" in
4627 sparc-sun-solaris*)
4628 X11_RUN_PATH="-R$x_libraries"
4629 ;;
4630 mips-sgi-irix*)
4631 X11_RUN_PATH="-rpath $x_libraries"
4632 ;;
4633 *)
4634 X11_RUN_PATH=""
4635 ;;
4636 esac
4637 fi
4638
4639
4640 #--------------------------------------------------------------------
4641 # Check for the existence of various libraries. The order here
4642 # is important, so that then end up in the right order in the
4643 # command line generated by make. The -lsocket and -lnsl
4644 # libraries require a couple of special tricks:
4645 # 1. Use "connect" and "accept" to check for -lsocket, and
4646 # "gethostbyname" to check for -lnsl.
4647 # 2. Use each function name only once: can't redo a check
4648 # because autoconf caches the results of the last check
4649 # and won't redo it.
4650 # 3. Use -lnsl and -lsocket only if they supply procedures that
4651 # aren't already present in the normal libraries. This is
4652 # because IRIX 5.2 has libraries, but they aren't needed and
4653 # they're bogus: they goof up name resolution if used.
4654 # 4. On some SVR4 systems, can't use -lsocket without -lnsl
4655 # too. To get around this problem, check for both libraries
4656 # together if -lsocket doesn't work by itself.
4657 #--------------------------------------------------------------------
4658
4659 asc_checkBoth=0
4660 echo "$as_me:$LINENO: checking for connect" >&5
4661 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4662 if test "${ac_cv_func_connect+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4664 else
4665 cat >conftest.$ac_ext <<_ACEOF
4666 #line $LINENO "configure"
4667 /* confdefs.h. */
4668 _ACEOF
4669 cat confdefs.h >>conftest.$ac_ext
4670 cat >>conftest.$ac_ext <<_ACEOF
4671 /* end confdefs.h. */
4672 /* System header to define __stub macros and hopefully few prototypes,
4673 which can conflict with char connect (); below.
4674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4675 <limits.h> exists even on freestanding compilers. */
4676 #ifdef __STDC__
4677 # include <limits.h>
4678 #else
4679 # include <assert.h>
4680 #endif
4681 /* Override any gcc2 internal prototype to avoid an error. */
4682 #ifdef __cplusplus
4683 extern "C"
4684 {
4685 #endif
4686 /* We use char because int might match the return type of a gcc2
4687 builtin and then its argument prototype would still apply. */
4688 char connect ();
4689 /* The GNU C library defines this for functions which it implements
4690 to always fail with ENOSYS. Some functions are actually named
4691 something starting with __ and the normal name is an alias. */
4692 #if defined (__stub_connect) || defined (__stub___connect)
4693 choke me
4694 #else
4695 char (*f) () = connect;
4696 #endif
4697 #ifdef __cplusplus
4698 }
4699 #endif
4700
4701 int
4702 main ()
4703 {
4704 return f != connect;
4705 ;
4706 return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest.$ac_objext conftest$ac_exeext
4710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4711 (eval $ac_link) 2>&5
4712 ac_status=$?
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -s conftest$ac_exeext'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 (eval $ac_try) 2>&5
4718 ac_status=$?
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; }; then
4721 ac_cv_func_connect=yes
4722 else
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4725
4726 ac_cv_func_connect=no
4727 fi
4728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4729 fi
4730 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4731 echo "${ECHO_T}$ac_cv_func_connect" >&6
4732 if test $ac_cv_func_connect = yes; then
4733 asc_checkSocket=0
4734 else
4735 asc_checkSocket=1
4736 fi
4737
4738 if test "$asc_checkSocket" = 1; then
4739 echo "$as_me:$LINENO: checking for printf in -lsocket" >&5
4740 echo $ECHO_N "checking for printf in -lsocket... $ECHO_C" >&6
4741 if test "${ac_cv_lib_socket_printf+set}" = set; then
4742 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 else
4744 ac_check_lib_save_LIBS=$LIBS
4745 LIBS="-lsocket $LIBS"
4746 cat >conftest.$ac_ext <<_ACEOF
4747 #line $LINENO "configure"
4748 /* confdefs.h. */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4753
4754 /* Override any gcc2 internal prototype to avoid an error. */
4755 #ifdef __cplusplus
4756 extern "C"
4757 #endif
4758 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4760 char printf ();
4761 int
4762 main ()
4763 {
4764 printf ();
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 rm -f conftest.$ac_objext conftest$ac_exeext
4770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4771 (eval $ac_link) 2>&5
4772 ac_status=$?
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } &&
4775 { ac_try='test -s conftest$ac_exeext'
4776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 (eval $ac_try) 2>&5
4778 ac_status=$?
4779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780 (exit $ac_status); }; }; then
4781 ac_cv_lib_socket_printf=yes
4782 else
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4785
4786 ac_cv_lib_socket_printf=no
4787 fi
4788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4789 LIBS=$ac_check_lib_save_LIBS
4790 fi
4791 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_printf" >&5
4792 echo "${ECHO_T}$ac_cv_lib_socket_printf" >&6
4793 if test $ac_cv_lib_socket_printf = yes; then
4794 X11_EXTRA_LIBS="-lsocket"
4795 else
4796 asc_checkBoth=1
4797 fi
4798
4799 fi
4800 if test "$asc_checkBoth" = 1; then
4801 asc_oldLibs=$LIBS
4802 X11_EXTRA_LIBS="-lsocket -lnsl"
4803 LIBS="$LIBS $X11_EXTRA_LIBS"
4804 echo "$as_me:$LINENO: checking for accept" >&5
4805 echo $ECHO_N "checking for accept... $ECHO_C" >&6
4806 if test "${ac_cv_func_accept+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4808 else
4809 cat >conftest.$ac_ext <<_ACEOF
4810 #line $LINENO "configure"
4811 /* confdefs.h. */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4816 /* System header to define __stub macros and hopefully few prototypes,
4817 which can conflict with char accept (); below.
4818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4819 <limits.h> exists even on freestanding compilers. */
4820 #ifdef __STDC__
4821 # include <limits.h>
4822 #else
4823 # include <assert.h>
4824 #endif
4825 /* Override any gcc2 internal prototype to avoid an error. */
4826 #ifdef __cplusplus
4827 extern "C"
4828 {
4829 #endif
4830 /* We use char because int might match the return type of a gcc2
4831 builtin and then its argument prototype would still apply. */
4832 char accept ();
4833 /* The GNU C library defines this for functions which it implements
4834 to always fail with ENOSYS. Some functions are actually named
4835 something starting with __ and the normal name is an alias. */
4836 #if defined (__stub_accept) || defined (__stub___accept)
4837 choke me
4838 #else
4839 char (*f) () = accept;
4840 #endif
4841 #ifdef __cplusplus
4842 }
4843 #endif
4844
4845 int
4846 main ()
4847 {
4848 return f != accept;
4849 ;
4850 return 0;
4851 }
4852 _ACEOF
4853 rm -f conftest.$ac_objext conftest$ac_exeext
4854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4855 (eval $ac_link) 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } &&
4859 { ac_try='test -s conftest$ac_exeext'
4860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4861 (eval $ac_try) 2>&5
4862 ac_status=$?
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; }; then
4865 ac_cv_func_accept=yes
4866 else
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4869
4870 ac_cv_func_accept=no
4871 fi
4872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4873 fi
4874 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
4875 echo "${ECHO_T}$ac_cv_func_accept" >&6
4876 if test $ac_cv_func_accept = yes; then
4877 asc_checkNsl=0
4878 else
4879 X11_EXTRA_LIBS=""
4880 fi
4881
4882 LIBS=$asc_oldLibs
4883 fi
4884 asc_oldLibs=$LIBS
4885 LIBS="$LIBS $X11_EXTRA_LIBS"
4886 echo "$as_me:$LINENO: checking for gethostbyname" >&5
4887 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4888 if test "${ac_cv_func_gethostbyname+set}" = set; then
4889 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891 cat >conftest.$ac_ext <<_ACEOF
4892 #line $LINENO "configure"
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 /* System header to define __stub macros and hopefully few prototypes,
4899 which can conflict with char gethostbyname (); below.
4900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 <limits.h> exists even on freestanding compilers. */
4902 #ifdef __STDC__
4903 # include <limits.h>
4904 #else
4905 # include <assert.h>
4906 #endif
4907 /* Override any gcc2 internal prototype to avoid an error. */
4908 #ifdef __cplusplus
4909 extern "C"
4910 {
4911 #endif
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4914 char gethostbyname ();
4915 /* The GNU C library defines this for functions which it implements
4916 to always fail with ENOSYS. Some functions are actually named
4917 something starting with __ and the normal name is an alias. */
4918 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4919 choke me
4920 #else
4921 char (*f) () = gethostbyname;
4922 #endif
4923 #ifdef __cplusplus
4924 }
4925 #endif
4926
4927 int
4928 main ()
4929 {
4930 return f != gethostbyname;
4931 ;
4932 return 0;
4933 }
4934 _ACEOF
4935 rm -f conftest.$ac_objext conftest$ac_exeext
4936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4937 (eval $ac_link) 2>&5
4938 ac_status=$?
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } &&
4941 { ac_try='test -s conftest$ac_exeext'
4942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4943 (eval $ac_try) 2>&5
4944 ac_status=$?
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); }; }; then
4947 ac_cv_func_gethostbyname=yes
4948 else
4949 echo "$as_me: failed program was:" >&5
4950 sed 's/^/| /' conftest.$ac_ext >&5
4951
4952 ac_cv_func_gethostbyname=no
4953 fi
4954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4955 fi
4956 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4957 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4958 if test $ac_cv_func_gethostbyname = yes; then
4959 :
4960 else
4961 echo "$as_me:$LINENO: checking for printf in -lnsl" >&5
4962 echo $ECHO_N "checking for printf in -lnsl... $ECHO_C" >&6
4963 if test "${ac_cv_lib_nsl_printf+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 ac_check_lib_save_LIBS=$LIBS
4967 LIBS="-lnsl $LIBS"
4968 cat >conftest.$ac_ext <<_ACEOF
4969 #line $LINENO "configure"
4970 /* confdefs.h. */
4971 _ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4975
4976 /* Override any gcc2 internal prototype to avoid an error. */
4977 #ifdef __cplusplus
4978 extern "C"
4979 #endif
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4982 char printf ();
4983 int
4984 main ()
4985 {
4986 printf ();
4987 ;
4988 return 0;
4989 }
4990 _ACEOF
4991 rm -f conftest.$ac_objext conftest$ac_exeext
4992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4993 (eval $ac_link) 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -s conftest$ac_exeext'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999 (eval $ac_try) 2>&5
5000 ac_status=$?
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; }; then
5003 ac_cv_lib_nsl_printf=yes
5004 else
5005 echo "$as_me: failed program was:" >&5
5006 sed 's/^/| /' conftest.$ac_ext >&5
5007
5008 ac_cv_lib_nsl_printf=no
5009 fi
5010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5011 LIBS=$ac_check_lib_save_LIBS
5012 fi
5013 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_printf" >&5
5014 echo "${ECHO_T}$ac_cv_lib_nsl_printf" >&6
5015 if test $ac_cv_lib_nsl_printf = yes; then
5016 X11_EXTRA_LIBS="$X11_EXTRA_LIBS -lnsl"
5017 fi
5018
5019 fi
5020
5021 LIBS=$asc_oldLibs
5022
5023
5024 #--------------------------------------------------------------------
5025 # The following comes directly from the configure.in file for
5026 # Tcl8.0.
5027 #
5028 # The statements below define a collection of symbols related to
5029 # dynamic loading and shared libraries:
5030 #
5031 # DL_OBJS - Name of the object file that implements dynamic
5032 # loading for ASCEND on this system.
5033 # DL_LIBS - Library file(s) to include in tclsh and other base
5034 # applications in order for the "load" command to work.
5035 # LD_FLAGS - Flags to pass to the compiler when linking object
5036 # files into an executable application binary such
5037 # as tclsh.
5038 # LD_SEARCH_FLAGS-Flags to pass to ld, such as "-R /usr/local/tcl/lib",
5039 # that tell the run-time dynamic linker where to look
5040 # for shared libraries such as libtcl.so. Depends on
5041 # the variable LIB_RUNTIME_DIR in the Makefile.
5042 # MAKE_LIB - Command to execute to build the ASCEND library;
5043 # differs depending on whether or not ASCEND is being
5044 # compiled as a shared library.
5045 # SHLIB_CFLAGS - Flags to pass to cc when compiling the components
5046 # of a shared library (may request position-independent
5047 # code, among other things).
5048 # SHLIB_LD - Base command to use for combining object files
5049 # into a shared library.
5050 # SHLIB_LD_LIBS - Dependent libraries for the linker to scan when
5051 # creating shared libraries. This symbol typically
5052 # goes at the end of the "ld" commands that build
5053 # shared libraries. The value of the symbol is
5054 # "${LIBS}" if all of the dependent libraries should
5055 # be specified when creating a shared library. If
5056 # dependent libraries should not be specified (as on
5057 # SunOS 4.x, where they cause the link to fail, or in
5058 # general if ASCEND and Tk aren't themselves shared
5059 # libraries), then this symbol has an empty string
5060 # as its value.
5061 # SHLIB_SUFFIX - Suffix to use for the names of dynamically loadable
5062 # extensions. An empty string means we don't know how
5063 # to use shared libraries on this platform.
5064 # ASC_LIB_FILE - Name of the file that contains the ASCEND library, such
5065 # as libtcl7.8.so or libtcl7.8.a.
5066 # ASC_LIB_SUFFIX -Specifies everything that comes after the "libtcl"
5067 # in the shared library name, using the $VERSION variable
5068 # to put the version in the right place. This is used
5069 # by platforms that need non-standard library names.
5070 # Examples: ${VERSION}.so.1.1 on NetBSD, since it needs
5071 # to have a version after the .so, and ${VERSION}.a
5072 # on AIX, since the ASCEND shared library needs to have
5073 # a .a extension whereas shared objects for loadable
5074 # extensions have a .so extension. Defaults to
5075 # ${VERSION}${SHLIB_SUFFIX}.
5076 #--------------------------------------------------------------------
5077
5078 # Step 1: set the variable "system" to hold the name and version number
5079 # for the system. This can usually be done via the "uname" command, but
5080 # there are a few systems, like Next, where this doesn't work.
5081
5082 # Changed this to use the "$host" variable from AC_CANONICAL_HOST
5083
5084 # Step 2: check for existence of -ldl library. This is needed because
5085 # Linux can use either -ldl or -ldld for dynamic loading.
5086
5087 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
5088 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5089 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092 ac_check_lib_save_LIBS=$LIBS
5093 LIBS="-ldl $LIBS"
5094 cat >conftest.$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5096 /* confdefs.h. */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101
5102 /* Override any gcc2 internal prototype to avoid an error. */
5103 #ifdef __cplusplus
5104 extern "C"
5105 #endif
5106 /* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
5108 char dlopen ();
5109 int
5110 main ()
5111 {
5112 dlopen ();
5113 ;
5114 return 0;
5115 }
5116 _ACEOF
5117 rm -f conftest.$ac_objext conftest$ac_exeext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5119 (eval $ac_link) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); } &&
5123 { ac_try='test -s conftest$ac_exeext'
5124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5125 (eval $ac_try) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); }; }; then
5129 ac_cv_lib_dl_dlopen=yes
5130 else
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5133
5134 ac_cv_lib_dl_dlopen=no
5135 fi
5136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5137 LIBS=$ac_check_lib_save_LIBS
5138 fi
5139 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
5140 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5141 if test $ac_cv_lib_dl_dlopen = yes; then
5142 have_dl=yes
5143 else
5144 have_dl=no
5145 fi
5146
5147
5148 # Step 3: set configuration options based on system name and version.
5149
5150 ASC_SHARED_LIB_SUFFIX=""
5151 ASC_UNSHARED_LIB_SUFFIX=""
5152 ASC_LIB_VERSIONS_OK=ok
5153 case $host in
5154 *-aix*)
5155 SHLIB_CFLAGS=""
5156 SHLIB_LD="$fullpathsrcdir/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512"
5157 SHLIB_LD_LIBS='${LIBS}'
5158 SHLIB_SUFFIX=".so"
5159 DL_OBJS=""
5160 DL_LIBS="-lld"
5161 LD_FLAGS=""
5162 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5163 ASC_SHARED_LIB_SUFFIX='${VERSION}.a'
5164 ;;
5165 *-bsdi*)
5166 SHLIB_CFLAGS=""
5167 SHLIB_LD="shlicc -r"
5168 SHLIB_LD_LIBS='${LIBS}'
5169 SHLIB_SUFFIX=".so"
5170 DL_OBJS=""
5171 DL_LIBS="-ldl"
5172 LD_FLAGS=""
5173 LD_SEARCH_FLAGS=""
5174 ;;
5175 *-dgux*)
5176 SHLIB_CFLAGS="-K PIC"
5177 SHLIB_LD="cc -G"
5178 SHLIB_LD_LIBS=""
5179 SHLIB_SUFFIX=".so"
5180 DL_OBJS=""
5181 DL_LIBS="-ldl"
5182 LD_FLAGS=""
5183 LD_SEARCH_FLAGS=""
5184 ;;
5185 *-hpux8*|*-hpux9*|*-hpux10*)
5186 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
5187 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5188 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 ac_check_lib_save_LIBS=$LIBS
5192 LIBS="-ldld $LIBS"
5193 cat >conftest.$ac_ext <<_ACEOF
5194 #line $LINENO "configure"
5195 /* confdefs.h. */
5196 _ACEOF
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5200
5201 /* Override any gcc2 internal prototype to avoid an error. */
5202 #ifdef __cplusplus
5203 extern "C"
5204 #endif
5205 /* We use char because int might match the return type of a gcc2
5206 builtin and then its argument prototype would still apply. */
5207 char shl_load ();
5208 int
5209 main ()
5210 {
5211 shl_load ();
5212 ;
5213 return 0;
5214 }
5215 _ACEOF
5216 rm -f conftest.$ac_objext conftest$ac_exeext
5217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5218 (eval $ac_link) 2>&5
5219 ac_status=$?
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); } &&
5222 { ac_try='test -s conftest$ac_exeext'
5223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 (eval $ac_try) 2>&5
5225 ac_status=$?
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); }; }; then
5228 ac_cv_lib_dld_shl_load=yes
5229 else
5230 echo "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5232
5233 ac_cv_lib_dld_shl_load=no
5234 fi
5235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5236 LIBS=$ac_check_lib_save_LIBS
5237 fi
5238 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
5239 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5240 if test $ac_cv_lib_dld_shl_load = yes; then
5241 tcl_ok=yes
5242 else
5243 tcl_ok=no
5244 fi
5245
5246 if test "$tcl_ok" = yes; then
5247 SHLIB_CFLAGS="+z"
5248 SHLIB_LD="ld -b"
5249 SHLIB_LD_LIBS=""
5250 SHLIB_SUFFIX=".sl"
5251 DL_OBJS=""
5252 DL_LIBS="-ldld"
5253 LD_FLAGS="-Wl,-E"
5254 LD_SEARCH_FLAGS='-Wl,+b,${LIB_RUNTIME_DIR}:.'
5255 fi
5256 ;;
5257 *-irix4*)
5258 SHLIB_CFLAGS="-G 0"
5259 SHLIB_SUFFIX=".a"
5260 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
5261 SHLIB_LD_LIBS='${LIBS}'
5262 DL_OBJS=""
5263 DL_LIBS=""
5264 LD_FLAGS="-Wl,-D,08000000"
5265 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5266 ASC_SHARED_LIB_SUFFIX='${VERSION}.a'
5267 ;;
5268 *-irix5*|*-irix6.*)
5269 SHLIB_CFLAGS=""
5270 SHLIB_LD="ld -shared -rdata_shared"
5271 SHLIB_LD_LIBS=""
5272 SHLIB_SUFFIX=".so"
5273 DL_OBJS=""
5274 DL_LIBS=""
5275 LD_FLAGS=""
5276 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
5277 ;;
5278 *-linux*)
5279 SHLIB_CFLAGS="-fPIC"
5280 SHLIB_LD_LIBS=""
5281 SHLIB_SUFFIX=".so"
5282 if test "$have_dl" = yes; then
5283 SHLIB_LD="${CC} -shared"
5284 DL_OBJS=""
5285 DL_LIBS="-ldl"
5286 LD_FLAGS="-rdynamic"
5287 LD_SEARCH_FLAGS=""
5288 else
5289 if test "${ac_cv_header_dld_h+set}" = set; then
5290 echo "$as_me:$LINENO: checking for dld.h" >&5
5291 echo $ECHO_N "checking for dld.h... $ECHO_C" >&6
5292 if test "${ac_cv_header_dld_h+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5294 fi
5295 echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
5296 echo "${ECHO_T}$ac_cv_header_dld_h" >&6
5297 else
5298 # Is the header compilable?
5299 echo "$as_me:$LINENO: checking dld.h usability" >&5
5300 echo $ECHO_N "checking dld.h usability... $ECHO_C" >&6
5301 cat >conftest.$ac_ext <<_ACEOF
5302 #line $LINENO "configure"
5303 /* confdefs.h. */
5304 _ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h. */
5308 $ac_includes_default
5309 #include <dld.h>
5310 _ACEOF
5311 rm -f conftest.$ac_objext
5312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5313 (eval $ac_compile) 2>&5
5314 ac_status=$?
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5319 (eval $ac_try) 2>&5
5320 ac_status=$?
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5323 ac_header_compiler=yes
5324 else
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_header_compiler=no
5329 fi
5330 rm -f conftest.$ac_objext conftest.$ac_ext
5331 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5332 echo "${ECHO_T}$ac_header_compiler" >&6
5333
5334 # Is the header present?
5335 echo "$as_me:$LINENO: checking dld.h presence" >&5
5336 echo $ECHO_N "checking dld.h presence... $ECHO_C" >&6
5337 cat >conftest.$ac_ext <<_ACEOF
5338 #line $LINENO "configure"
5339 /* confdefs.h. */
5340 _ACEOF
5341 cat confdefs.h >>conftest.$ac_ext
5342 cat >>conftest.$ac_ext <<_ACEOF
5343 /* end confdefs.h. */
5344 #include <dld.h>
5345 _ACEOF
5346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5348 ac_status=$?
5349 grep -v '^ *+' conftest.er1 >conftest.err
5350 rm -f conftest.er1
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } >/dev/null; then
5354 if test -s conftest.err; then
5355 ac_cpp_err=$ac_c_preproc_warn_flag
5356 else
5357 ac_cpp_err=
5358 fi
5359 else
5360 ac_cpp_err=yes
5361 fi
5362 if test -z "$ac_cpp_err"; then
5363 ac_header_preproc=yes
5364 else
5365 echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368 ac_header_preproc=no
5369 fi
5370 rm -f conftest.err conftest.$ac_ext
5371 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5372 echo "${ECHO_T}$ac_header_preproc" >&6
5373
5374 # So? What about this header?
5375 case $ac_header_compiler:$ac_header_preproc in
5376 yes:no )
5377 { echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
5378 echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5379 { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
5380 echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
5381 (
5382 cat <<\_ASBOX
5383 ## ------------------------------------ ##
5384 ## Report this to bug-autoconf@gnu.org. ##
5385 ## ------------------------------------ ##
5386 _ASBOX
5387 ) |
5388 sed "s/^/$as_me: WARNING: /" >&2
5389 ;;
5390 no:yes )
5391 { echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
5392 echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
5393 { echo "$as_me:$LINENO: WARNING: dld.h: check for missing prerequisite headers?" >&5
5394 echo "$as_me: WARNING: dld.h: check for missing prerequisite headers?" >&2;}
5395 { echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
5396 echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
5397 (
5398 cat <<\_ASBOX
5399 ## ------------------------------------ ##
5400 ## Report this to bug-autoconf@gnu.org. ##
5401 ## ------------------------------------ ##
5402 _ASBOX
5403 ) |
5404 sed "s/^/$as_me: WARNING: /" >&2
5405 ;;
5406 esac
5407 echo "$as_me:$LINENO: checking for dld.h" >&5
5408 echo $ECHO_N "checking for dld.h... $ECHO_C" >&6
5409 if test "${ac_cv_header_dld_h+set}" = set; then
5410 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412 ac_cv_header_dld_h=$ac_header_preproc
5413 fi
5414 echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
5415 echo "${ECHO_T}$ac_cv_header_dld_h" >&6
5416
5417 fi
5418 if test $ac_cv_header_dld_h = yes; then
5419
5420 SHLIB_LD="ld -shared"
5421 DL_OBJS=""
5422 DL_LIBS="-ldld"
5423 LD_FLAGS=""
5424 LD_SEARCH_FLAGS=""
5425 fi
5426
5427
5428 fi
5429 ;;
5430 MP-RAS-02*)
5431 SHLIB_CFLAGS="-K PIC"
5432 SHLIB_LD="cc -G"
5433 SHLIB_LD_LIBS=""
5434 SHLIB_SUFFIX=".so"
5435 DL_OBJS=""
5436 DL_LIBS="-ldl"
5437 LD_FLAGS=""
5438 LD_SEARCH_FLAGS=""
5439 ;;
5440 MP-RAS-*)
5441 SHLIB_CFLAGS="-K PIC"
5442 SHLIB_LD="cc -G"
5443 SHLIB_LD_LIBS=""
5444 SHLIB_SUFFIX=".so"
5445 DL_OBJS=""
5446 DL_LIBS="-ldl"
5447 LD_FLAGS="-Wl,-Bexport"
5448 LD_SEARCH_FLAGS=""
5449 ;;
5450 *-netbsd*|*-freebsd*|*-openbsd*)
5451 # Not available on all versions: check for include file.
5452 if test "${ac_cv_header_dlfcn_h+set}" = set; then
5453 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
5454 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
5455 if test "${ac_cv_header_dlfcn_h+set}" = set; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5457 fi
5458 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
5459 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
5460 else
5461 # Is the header compilable?
5462 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
5463 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
5464 cat >conftest.$ac_ext <<_ACEOF
5465 #line $LINENO "configure"
5466 /* confdefs.h. */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h. */
5471 $ac_includes_default
5472 #include <dlfcn.h>
5473 _ACEOF
5474 rm -f conftest.$ac_objext
5475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5476 (eval $ac_compile) 2>&5
5477 ac_status=$?
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -s conftest.$ac_objext'
5481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 (eval $ac_try) 2>&5
5483 ac_status=$?
5484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5485 (exit $ac_status); }; }; then
5486 ac_header_compiler=yes
5487 else
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.$ac_ext >&5
5490
5491 ac_header_compiler=no
5492 fi
5493 rm -f conftest.$ac_objext conftest.$ac_ext
5494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5495 echo "${ECHO_T}$ac_header_compiler" >&6
5496
5497 # Is the header present?
5498 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
5499 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
5500 cat >conftest.$ac_ext <<_ACEOF
5501 #line $LINENO "configure"
5502 /* confdefs.h. */
5503 _ACEOF
5504 cat confdefs.h >>conftest.$ac_ext
5505 cat >>conftest.$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #include <dlfcn.h>
5508 _ACEOF
5509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } >/dev/null; then
5517 if test -s conftest.err; then
5518 ac_cpp_err=$ac_c_preproc_warn_flag
5519 else
5520 ac_cpp_err=
5521 fi
5522 else
5523 ac_cpp_err=yes
5524 fi
5525 if test -z "$ac_cpp_err"; then
5526 ac_header_preproc=yes
5527 else
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5530
5531 ac_header_preproc=no
5532 fi
5533 rm -f conftest.err conftest.$ac_ext
5534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5535 echo "${ECHO_T}$ac_header_preproc" >&6
5536
5537 # So? What about this header?
5538 case $ac_header_compiler:$ac_header_preproc in
5539 yes:no )
5540 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
5541 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5542 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
5543 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
5544 (
5545 cat <<\_ASBOX
5546 ## ------------------------------------ ##
5547 ## Report this to bug-autoconf@gnu.org. ##
5548 ## ------------------------------------ ##
5549 _ASBOX
5550 ) |
5551 sed "s/^/$as_me: WARNING: /" >&2
5552 ;;
5553 no:yes )
5554 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
5555 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
5556 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
5557 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
5558 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
5559 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
5560 (
5561 cat <<\_ASBOX
5562 ## ------------------------------------ ##
5563 ## Report this to bug-autoconf@gnu.org. ##
5564 ## ------------------------------------ ##
5565 _ASBOX
5566 ) |
5567 sed "s/^/$as_me: WARNING: /" >&2
5568 ;;
5569 esac
5570 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
5571 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
5572 if test "${ac_cv_header_dlfcn_h+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 ac_cv_header_dlfcn_h=$ac_header_preproc
5576 fi
5577 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
5578 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
5579
5580 fi
5581 if test $ac_cv_header_dlfcn_h = yes; then
5582
5583 SHLIB_CFLAGS="-fpic"
5584 SHLIB_LD="ld -Bshareable -x"
5585 SHLIB_LD_LIBS=""
5586 SHLIB_SUFFIX=".so"
5587 DL_OBJS=""
5588 DL_LIBS=""
5589 LD_FLAGS=""
5590 LD_SEARCH_FLAGS=""
5591 ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0'
5592
5593 else
5594
5595 SHLIB_CFLAGS=""
5596 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
5597 SHLIB_LD_LIBS='${LIBS}'
5598 SHLIB_SUFFIX=".a"
5599 DL_OBJS=""
5600 DL_LIBS=""
5601 LD_FLAGS=""
5602 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5603 ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
5604
5605 fi
5606
5607
5608
5609 # FreeBSD doesn't handle version numbers with dots.
5610
5611 ASC_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
5612 ASC_LIB_VERSIONS_OK=nodots
5613 ;;
5614 *-riscos*)
5615 SHLIB_CFLAGS="-G 0"
5616 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
5617 SHLIB_LD_LIBS='${LIBS}'
5618 SHLIB_SUFFIX=".a"
5619 DL_OBJS=""
5620 DL_LIBS=""
5621 LD_FLAGS="-Wl,-D,08000000"
5622 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5623 ;;
5624 SCO_SV-3.2*)
5625 # Note, dlopen is available only on SCO 3.2.5 and greater. However,
5626 # this test works, since "uname -s" was non-standard in 3.2.4 and
5627 # below.
5628 SHLIB_CFLAGS="-Kpic -belf"
5629 SHLIB_LD="ld -G"
5630 SHLIB_LD_LIBS=""
5631 SHLIB_SUFFIX=".so"
5632 DL_OBJS=""
5633 DL_LIBS=""
5634 LD_FLAGS="-belf -Wl,-Bexport"
5635 LD_SEARCH_FLAGS=""
5636 ;;
5637 *-sni-sysv*)
5638 SHLIB_CFLAGS="-K PIC"
5639 SHLIB_LD="cc -G"
5640 SHLIB_LD_LIBS=""
5641 SHLIB_SUFFIX=".so"
5642 DL_OBJS=""
5643 DL_LIBS="-ldl"
5644 LD_FLAGS=""
5645 LD_SEARCH_FLAGS=""
5646 ;;
5647 *-sunos4*)
5648 SHLIB_CFLAGS="-PIC"
5649 SHLIB_LD="ld"
5650 SHLIB_LD_LIBS=""
5651 SHLIB_SUFFIX=".so"
5652 DL_OBJS=""
5653 DL_LIBS="-ldl"
5654 LD_FLAGS=""
5655 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
5656
5657 # SunOS can't handle version numbers with dots in them in library
5658 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it
5659 # requires an extra version number at the end of .so file names.
5660 # So, the library has to have a name like libtcl75.so.1.0
5661
5662 ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0'
5663 ASC_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
5664 ASC_LIB_VERSIONS_OK=nodots
5665 ;;
5666 *-solaris*)
5667 SHLIB_CFLAGS="-KPIC"
5668 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
5669
5670 # Note: need the LIBS below, otherwise Tk won't find ASCEND's
5671 # symbols when dynamically loaded into tclsh.
5672
5673 SHLIB_LD_LIBS='${LIBS}'
5674 SHLIB_SUFFIX=".so"
5675 DL_OBJS=""
5676 DL_LIBS="-ldl"
5677 LD_FLAGS=""
5678 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
5679 ;;
5680 mips-dde-sysv*)
5681 SHLIB_CFLAGS="-KPIC"
5682 SHLIB_LD="cc -G"
5683 SHLIB_LD_LIBS=""
5684 SHLIB_SUFFIX=".so"
5685 DL_OBJS=""
5686 DL_LIBS="-ldl"
5687 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
5688 # that don't grok the -Bexport option. Test that it does.
5689 hold_ldflags=$LDFLAGS
5690 echo "$as_me:$LINENO: checking for ld accepts -Bexport flag" >&5
5691 echo $ECHO_N "checking for ld accepts -Bexport flag... $ECHO_C" >&6
5692 LDFLAGS="${LDFLAGS} -Wl,-Bexport"
5693 cat >conftest.$ac_ext <<_ACEOF
5694 #line $LINENO "configure"
5695 /* confdefs.h. */
5696 _ACEOF
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700
5701 int
5702 main ()
5703 {
5704 int i;
5705 ;
5706 return 0;
5707 }
5708 _ACEOF
5709 rm -f conftest.$ac_objext conftest$ac_exeext
5710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5711 (eval $ac_link) 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } &&
5715 { ac_try='test -s conftest$ac_exeext'
5716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 (eval $ac_try) 2>&5
5718 ac_status=$?
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); }; }; then
5721 found=yes
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5725
5726 found=no
5727 fi
5728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5729 LDFLAGS=$hold_ldflags
5730 echo "$as_me:$LINENO: result: $found" >&5
5731 echo "${ECHO_T}$found" >&6
5732 if test "$found" = yes; then
5733 LD_FLAGS="-Wl,-Bexport"
5734 else
5735 LD_FLAGS=""
5736 fi
5737 LD_SEARCH_FLAGS=""
5738 ;;
5739 esac
5740
5741 #--------------------------------------------------------------------
5742 # Look for Tcl/Tk
5743 #--------------------------------------------------------------------
5744
5745 # moved to config, acsite setup
5746 # find tcl
5747 TCLINCLUDE=
5748 TCLLIB=
5749 TCLPACKAGE=
5750
5751 #--------------------------------------------------------------------
5752 # Look for Tcl
5753 #--------------------------------------------------------------------
5754
5755 TCLINCLUDE=
5756 TCLLIB=
5757 TCLPACKAGE=
5758
5759
5760 # Check whether --with-tclconfig or --without-tclconfig was given.
5761 if test "${with_tclconfig+set}" = set; then
5762 withval="$with_tclconfig"
5763 with_tclconfig="$withval"
5764 else
5765 with_tclconfig=
5766 fi;
5767
5768 # Check whether --with-tcl or --without-tcl was given.
5769 if test "${with_tcl+set}" = set; then
5770 withval="$with_tcl"
5771
5772 TCLPACKAGE="$withval"
5773 else
5774 TCLPACKAGE=yes
5775 fi;
5776
5777 # Check whether --with-tclincl or --without-tclincl was given.
5778 if test "${with_tclincl+set}" = set; then
5779 withval="$with_tclincl"
5780
5781 TCLINCLUDE="$ISYSTEM$withval"
5782 else
5783 TCLINCLUDE=
5784 fi;
5785
5786 # Check whether --with-tcllib or --without-tcllib was given.
5787 if test "${with_tcllib+set}" = set; then
5788 withval="$with_tcllib"
5789
5790 TCLLIB="-L$withval"
5791 else
5792 TCLLIB=
5793 fi;
5794
5795 # First, check for "--without-tcl" or "--with-tcl=no".
5796 if test x"${TCLPACKAGE}" = xno -o x"${with_alllang}" = xno; then
5797 { echo "$as_me:$LINENO: Disabling Tcl" >&5
5798 echo "$as_me: Disabling Tcl" >&6;}
5799 else
5800 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
5801 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
5802 # First check to see if --with-tclconfig was specified.
5803 if test x"${with_tclconfig}" != x ; then
5804 if test -f "${with_tclconfig}/tclConfig.sh" ; then
5805 TCLCONFIG=`(cd ${with_tclconfig}; pwd)`
5806 else
5807 { { echo "$as_me:$LINENO: error: ${with_tcl} directory doesn't contain tclConfig.sh" >&5
5808 echo "$as_me: error: ${with_tcl} directory doesn't contain tclConfig.sh" >&2;}
5809 { (exit 1); exit 1; }; }
5810 fi
5811 fi
5812 # check in a few common install locations
5813 if test x"${TCLCONFIG}" = x ; then
5814 for i in `ls -d /usr/lib 2>/dev/null` \
5815 `ls -d /usr/local/lib 2>/dev/null` ; do
5816 if test -f "$i/tclConfig.sh" ; then
5817 TCLCONFIG=`(cd $i; pwd)`
5818 break
5819 fi
5820 done
5821 fi
5822 if test x"${TCLCONFIG}" = x ; then
5823 echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5825 else
5826 echo "$as_me:$LINENO: result: found $TCLCONFIG/tclConfig.sh" >&5
5827 echo "${ECHO_T}found $TCLCONFIG/tclConfig.sh" >&6
5828 . $TCLCONFIG/tclConfig.sh
5829 if test -z "$TCLINCLUDE"; then
5830 TCLINCLUDE=$ISYSTEM$TCL_PREFIX/include
5831 fi
5832 if test -z "$TCLLIB"; then
5833 TCLLIB=$TCL_LIB_SPEC
5834 fi
5835 fi
5836
5837 if test -z "$TCLINCLUDE"; then
5838 if test "x$TCLPACKAGE" != xyes; then
5839 TCLINCLUDE="$ISYSTEM$TCLPACKAGE/include"
5840 fi
5841 fi
5842
5843 if test -z "$TCLLIB"; then
5844 if test "x$TCLPACKAGE" != xyes; then
5845 TCLLIB="-L$TCLPACKAGE/lib -ltcl"
5846 fi
5847 fi
5848
5849 echo "$as_me:$LINENO: checking for Tcl header files" >&5
5850 echo $ECHO_N "checking for Tcl header files... $ECHO_C" >&6
5851 if test -z "$TCLINCLUDE"; then
5852 cat >conftest.$ac_ext <<_ACEOF
5853 #line $LINENO "configure"
5854 /* confdefs.h. */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 #include <tcl.h>
5860 _ACEOF
5861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } >/dev/null; then
5869 if test -s conftest.err; then
5870 ac_cpp_err=$ac_c_preproc_warn_flag
5871 else
5872 ac_cpp_err=
5873 fi
5874 else
5875 ac_cpp_err=yes
5876 fi
5877 if test -z "$ac_cpp_err"; then
5878 :
5879 else
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5882
5883 TCLINCLUDE=""
5884 fi
5885 rm -f conftest.err conftest.$ac_ext
5886 if test -z "$TCLINCLUDE"; then
5887 dirs="/usr/local/include /usr/include /opt/local/include"
5888 for i in $dirs ; do
5889 if test -r $i/tcl.h; then
5890 echo "$as_me:$LINENO: result: $i" >&5
5891 echo "${ECHO_T}$i" >&6
5892 TCLINCLUDE="$ISYSTEM$i"
5893 break
5894 fi
5895 done
5896 fi
5897 if test -z "$TCLINCLUDE"; then
5898 echo "$as_me:$LINENO: result: not found" >&5
5899 echo "${ECHO_T}not found" >&6
5900 fi
5901 else
5902 echo "$as_me:$LINENO: result: $TCLINCLUDE" >&5
5903 echo "${ECHO_T}$TCLINCLUDE" >&6
5904 fi
5905
5906 echo "$as_me:$LINENO: checking for Tcl library" >&5
5907 echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
5908 if test -z "$TCLLIB"; then
5909 dirs="/usr/local/lib /usr/lib /opt/local/lib"
5910 for i in $dirs ; do
5911 if test -r $i/libtcl.a; then
5912 echo "$as_me:$LINENO: result: $i" >&5
5913 echo "${ECHO_T}$i" >&6
5914 TCLLIB="-L$i -ltcl"
5915 break
5916 fi
5917 done
5918 if test -z "$TCLLIB"; then
5919 echo "$as_me:$LINENO: result: not found" >&5
5920 echo "${ECHO_T}not found" >&6
5921 fi
5922 else
5923 echo "$as_me:$LINENO: result: $TCLLIB" >&5
5924 echo "${ECHO_T}$TCLLIB" >&6
5925 fi
5926
5927 # Cygwin (Windows) needs the library for dynamic linking
5928 case $host in
5929 *-*-cygwin* | *-*-mingw*) TCLDYNAMICLINKING="$TCLLIB";;
5930 *)TCLDYNAMICLINKING="";;
5931 esac
5932 fi
5933
5934 NOTCLCONFIG=
5935 if test x"${TCLCONFIG}" = x ; then
5936 NOTCLCONFIG="# tclConfig.sh dir not found"
5937 fi
5938
5939
5940
5941
5942
5943
5944
5945 # find tk
5946 TKINCLUDE=
5947 TKLIB=
5948 TKPACKAGE=
5949
5950 #--------------------------------------------------------------------
5951 # Look for Tk
5952 #--------------------------------------------------------------------
5953
5954 TKINCLUDE=
5955 TKLIB=
5956 TKPACKAGE=
5957
5958
5959 # Check whether --with-tkconfig or --without-tkconfig was given.
5960 if test "${with_tkconfig+set}" = set; then
5961 withval="$with_tkconfig"
5962 with_tkconfig="$withval"
5963 else
5964 with_tkconfig=
5965 fi;
5966
5967 # Check whether --with-tk or --without-tk was given.
5968 if test "${with_tk+set}" = set; then
5969 withval="$with_tk"
5970
5971 TKPACKAGE="$withval"
5972 else
5973 TKPACKAGE=yes
5974 fi;
5975
5976 # Check whether --with-tkincl or --without-tkincl was given.
5977 if test "${with_tkincl+set}" = set; then
5978 withval="$with_tkincl"
5979
5980 TKINCLUDE="$ISYSTEM$withval"
5981 else
5982 TKINCLUDE=
5983 fi;
5984
5985 # Check whether --with-tklib or --without-tklib was given.
5986 if test "${with_tklib+set}" = set; then
5987 withval="$with_tklib"
5988
5989 TKLIB="-L$withval"
5990 else
5991 TKLIB=
5992 fi;
5993
5994 # First, check for "--without-tk" or "--with-tk=no".
5995 if test x"${TKPACKAGE}" = xno -o x"${with_alllang}" = xno; then
5996 { echo "$as_me:$LINENO: Disabling Tk" >&5
5997 echo "$as_me: Disabling Tk" >&6;}
5998 else
5999 echo "$as_me:$LINENO: checking for Tk configuration" >&5
6000 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
6001 # First check to see if --with-tkconfig was specified.
6002 if test x"${with_tkconfig}" != x ; then
6003 if test -f "${with_tkconfig}/tkConfig.sh" ; then
6004 TKCONFIG=`(cd ${with_tkconfig}; pwd)`
6005 else
6006 { { echo "$as_me:$LINENO: error: ${with_tk} directory doesn't contain tkConfig.sh" >&5
6007 echo "$as_me: error: ${with_tk} directory doesn't contain tkConfig.sh" >&2;}
6008 { (exit 1); exit 1; }; }
6009 fi
6010 fi
6011 # check in a few common install locations
6012 if test x"${TKCONFIG}" = x ; then
6013 for i in `ls -d /usr/lib 2>/dev/null` \
6014 `ls -d /usr/local/lib 2>/dev/null` ; do
6015 if test -f "$i/tkConfig.sh" ; then
6016 TKCONFIG=`(cd $i; pwd)`
6017 break
6018 fi
6019 done
6020 fi
6021 if test x"${TKCONFIG}" = x ; then
6022 echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6024 else
6025 echo "$as_me:$LINENO: result: found $TKCONFIG/tkConfig.sh" >&5
6026 echo "${ECHO_T}found $TKCONFIG/tkConfig.sh" >&6
6027 . $TKCONFIG/tkConfig.sh
6028 if test -z "$TKINCLUDE"; then
6029 TKINCLUDE=$ISYSTEM$TK_PREFIX/include
6030 fi
6031 if test -z "$TKLIB"; then
6032 TKLIB=$TK_LIB_SPEC
6033 fi
6034 fi
6035
6036 if test -z "$TKINCLUDE"; then
6037 if test "x$TKPACKAGE" != xyes; then
6038 TKINCLUDE="$ISYSTEM$TKPACKAGE/include"
6039 fi
6040 fi
6041
6042 if test -z "$TKLIB"; then
6043 if test "x$TKPACKAGE" != xyes; then
6044 TKLIB="-L$TKPACKAGE/lib -ltk"
6045 fi
6046 fi
6047
6048 echo "$as_me:$LINENO: checking for Tk header files" >&5
6049 echo $ECHO_N "checking for Tk header files... $ECHO_C" >&6
6050 if test -z "$TKINCLUDE"; then
6051 cat >conftest.$ac_ext <<_ACEOF
6052 #line $LINENO "configure"
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #include <tk.h>
6059 _ACEOF
6060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } >/dev/null; then
6068 if test -s conftest.err; then
6069 ac_cpp_err=$ac_c_preproc_warn_flag
6070 else
6071 ac_cpp_err=
6072 fi
6073 else
6074 ac_cpp_err=yes
6075 fi
6076 if test -z "$ac_cpp_err"; then
6077 :
6078 else
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.$ac_ext >&5
6081
6082 TKINCLUDE=""
6083 fi
6084 rm -f conftest.err conftest.$ac_ext
6085 if test -z "$TKINCLUDE"; then
6086 dirs="/usr/local/include /usr/include /opt/local/include"
6087 for i in $dirs ; do
6088 if test -r $i/tk.h; then
6089 echo "$as_me:$LINENO: result: $i" >&5
6090 echo "${ECHO_T}$i" >&6
6091 TKINCLUDE="$ISYSTEM$i"
6092 break
6093 fi
6094 done
6095 fi
6096 if test -z "$TKINCLUDE"; then
6097 echo "$as_me:$LINENO: result: not found" >&5
6098 echo "${ECHO_T}not found" >&6
6099 fi
6100 else
6101 echo "$as_me:$LINENO: result: $TKINCLUDE" >&5
6102 echo "${ECHO_T}$TKINCLUDE" >&6
6103 fi
6104
6105 echo "$as_me:$LINENO: checking for Tk library" >&5
6106 echo $ECHO_N "checking for Tk library... $ECHO_C" >&6
6107 if test -z "$TKLIB"; then
6108 dirs="/usr/local/lib /usr/lib /opt/local/lib"
6109 for i in $dirs ; do
6110 if test -r $i/libtk.a; then
6111 echo "$as_me:$LINENO: result: $i" >&5
6112 echo "${ECHO_T}$i" >&6
6113 TKLIB="-L$i -ltk"
6114 break
6115 fi
6116 done
6117 if test -z "$TKLIB"; then
6118 echo "$as_me:$LINENO: result: not found" >&5
6119 echo "${ECHO_T}not found" >&6
6120 fi
6121 else
6122 echo "$as_me:$LINENO: result: $TKLIB" >&5
6123 echo "${ECHO_T}$TKLIB" >&6
6124 fi
6125
6126 # Cygwin (Windows) needs the library for dynamic linking
6127 case $host in
6128 *-*-cygwin* | *-*-mingw*) TKDYNAMICLINKING="$TKLIB";;
6129 *)TKDYNAMICLINKING="";;
6130 esac
6131 fi
6132
6133
6134
6135
6136
6137
6138 TK_LD_HACK="\$(TK_LD_SEARCH_FLAGS)"
6139 if test "x$TK_LD_SEARCH_FLAGS" = "x''"; then
6140 TK_LD_HACK=""
6141 fi
6142 if test "x$TK_LD_SEARCH_FLAGS" = "x"; then
6143 TK_LD_HACK=""
6144 fi
6145
6146
6147 #--------------------------------------------------------------------
6148 # FORTRAN
6149 #
6150 # ASCEND uses the LSOD integrator and is capable of working
6151 # with CONOPT and with MINOS. These libraries are written in
6152 # Fortran; to use them, configure needs to find a Fortran
6153 # compiler and the necessary Fortran libraries (e.g.,
6154 # libF77.a). LSOD, CONOPT, and MINOS also require the BLAS and
6155 # LINPACK libraries to avoid undefined symbols at link time.
6156 #
6157 # The builder can specify the location of
6158 # * the Fortran compiler and libraries using
6159 # --with-fortran=<compiler>,<libraries>
6160 # * the BLAS library using
6161 # --with-blas=<blas-library>
6162 # * the LINPACK library using
6163 # --with-linpack=<linpack-library>
6164 # * the LSOD library using
6165 # --with-blas=<lsod-library>
6166 # * the CONOPT library using
6167 # --with-conopt=<conopt-library>
6168 # * the MINOS library using
6169 # --with-minos=<minos-library> <===currently disabled
6170 # The builder can disable some parts of the fortran build using
6171 # the --without-<package> configure option.
6172 #
6173 # If the user does not specify the locations of the compiler
6174 # and the libraries and does not disable them, configure
6175 # attempts to find them.
6176 #
6177 # Building with LSOD, CONOPT, and/or MINOS is further
6178 # complicated by the dependencies between these libraries and
6179 # the BLAS and LINPACK libraries.
6180 #
6181 # If we cannot find a Fortran compiler, we disable all Fortran
6182 # code (LSOD, CONOPT, and MINOS). Otherwise, look for the
6183 # Fortran libraries (e.g., libF77.a) based on the type of
6184 # machine we are compiling on.
6185 #
6186 # If Fortran is enabled, we need to find a compiled BLAS
6187 # library or source code. Check for the machine's libblas.a
6188 # and ASCEND's libascblas.a; if those fail, check for the
6189 # libascblas.a source code; if that fails, we disable all
6190 # Fortran (LSOD, CONOPT, MINOS).
6191 #
6192 # If Fortran is enabled, we need to find a compiled LINPACK
6193 # library or source code. Check for the machine's liblpak.a
6194 # and ASCEND's libasclpak.a; if those fail, check for the
6195 # libasclpak.a source code; if that fails, we disable all
6196 # Fortran (LSOD, CONOPT, MINOS).
6197 #
6198 # If Fortran is enabled, we try to find a compiled LSOD library
6199 # or source code. Check for a libinteg.a; if that fails, check
6200 # for the libinteg.a source code; if that fails, we disable
6201 # LSOD. If we find LSOD, define STATIC_LSOD.
6202 #
6203 # If Fortran is enabled, we try to find a compiled OPTSQP
6204 # library or source code. Check for a librsqp.a; if that fails,
6205 # check for the librsqp.a source code; if that fails, we disable
6206 # OPTSQP. If we find RSQP, define STATIC_OPTSQP.
6207 #
6208 # If Fortran is enabled, we try to find a compiled CONOPT
6209 # library. Check for a libconsub.a; if that fails, we disable
6210 # CONOPT. If we find CONOPT, define STATIC_CONOPT; if not,
6211 # tell the user where to find CONOPT using the contact
6212 # information from the nonlinear programming FAQ:
6213 # http://www.mcs.anl.gov/home/otc/Guide/faq/nonlinear-programming-faq.html
6214 #
6215 # If Fortran is enabled, we try to find a compiled MINOS
6216 # library or source code. Check for a libminos54.a; if that
6217 # fails, check for the libminos54.a source code; if that fails,
6218 # we disable MINOS. If we find MINOS, define STATIC_MINOS; if
6219 # not, tell the user where to find MINOS using the contact
6220 # information from the nonlinear programming FAQ:
6221 # http://www.mcs.anl.gov/home/otc/Guide/faq/nonlinear-programming-faq.html
6222 #--------------------------------------------------------------------
6223 #
6224 # the list of directories to search for the fortran compiler
6225 asc_f77_prog_dirs="$PATH:/usr/lang:/opt/SUNWspro/bin"
6226 #
6227 # the list of directories to search for the required fortran libraries
6228 asc_f77_support_dirs="
6229 /lib
6230 /usr/lib
6231 /usr/local/lib
6232 /usr/contributed/lib
6233 /usr/local/lib/ascend/lib
6234 $ascpwd/blas
6235 $ascpwd/linpack
6236 $ascpwd/lsod
6237
6238 ##AWW There are folders two levels up from configure for these packages
6239 $fullpathsrcdir/../../blas
6240 $fullpathsrcdir/../../linpack
6241 $fullpathsrcdir/../../lsod
6242
6243 #AWW20041113: $ascpwd/conopt
6244 #AWW20041113: $ascpwd/rsqp
6245 #AWW20041113: $ascpwd/minos
6246 #AWW20041113: $ascpwd/ascend4/archive
6247 $ascpwd/archive
6248 /afs/cs/project/ascend/depot/@sys/lib
6249 /afs/cs/project/ascend/depot/build/obj/conopt
6250 "
6251 #
6252
6253 # Check whether --with-fortran or --without-fortran was given.
6254 if test "${with_fortran+set}" = set; then
6255 withval="$with_fortran"
6256
6257 else
6258 with_fortran=yes
6259 fi;
6260 case "$with_fortran" in
6261 no)
6262 # The user disabled all fortran using
6263 # the --without-fortran option.
6264 F77=
6265 F77LIBS=
6266 with_f77=no
6267 with_f77libs=no
6268 ;;
6269 yes|,|"")
6270 # The user didn't pass in the --with-fortran option
6271 # or didn't give us any useful information. We do
6272 # the search ourselves.
6273 with_f77=_searching
6274 with_f77libs=_searching
6275 ;;
6276 ,*)
6277 # The user passed in the libraries, search for the
6278 # compiler ourselves.
6279 with_f77=_searching
6280 F77LIBS=`echo $with_fortran | sed 's/^,//'`
6281 echo "user gave F77LIBS=$F77LIBS"
6282 ;;
6283 *,?*)
6284 # The user passed in both the compiler and the
6285 # libraries.
6286 F77=`echo $with_fortran | sed s'/,.*$//'`
6287 F77LIBS=`echo $with_fortran | sed 's/^.*,//'`
6288 echo "user gave F77=$F77"
6289 echo "user gave F77LIBS=$F77LIBS"
6290 ;;
6291 *)
6292 # The user passed in the compiler; search for the
6293 # libraries ourselves.
6294 F77=`echo $with_fortran | sed s'/,$//'`
6295 with_f77libs=_searching
6296 echo "user gave F77=$F77"
6297 ;;
6298 esac
6299
6300 if test "X$with_f77" = X_searching ; then
6301 # Search for the fortran compiler; print a warning if we can't
6302 # find it and disable all fortran.
6303 for ac_prog in f77 xlf g77
6304 do
6305 # Extract the first word of "$ac_prog", so it can be a program name with args.
6306 set dummy $ac_prog; ac_word=$2
6307 echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6309 if test "${ac_cv_path_F77+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 case $F77 in
6313 [\\/]* | ?:[\\/]*)
6314 ac_cv_path_F77="$F77" # Let the user override the test with a path.
6315 ;;
6316 *)
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $asc_f77_prog_dirs
6319 do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_path_F77="$as_dir/$ac_word$ac_exec_ext"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6327 fi
6328 done
6329 done
6330
6331 ;;
6332 esac
6333 fi
6334 F77=$ac_cv_path_F77
6335
6336 if test -n "$F77"; then
6337 echo "$as_me:$LINENO: result: $F77" >&5
6338 echo "${ECHO_T}$F77" >&6
6339 else
6340 echo "$as_me:$LINENO: result: no" >&5
6341 echo "${ECHO_T}no" >&6
6342 fi
6343
6344 test -n "$F77" && break
6345 done
6346
6347 if test -z "$F77" ; then
6348 with_fortran=no
6349 with_f77libs=no
6350 { echo "$as_me:$LINENO: WARNING: Cannot find your Fortran compiler. Building ASCEND
6351 without integration, MINOS, and CONOPT support. To bulid ASCEND with
6352 Fortran support, run configure with the option
6353 --with-fortran=F77,F77LIBS
6354 where F77 is the full path to your Fortran compiler and F77LIBS are
6355 its related libraries" >&5
6356 echo "$as_me: WARNING: Cannot find your Fortran compiler. Building ASCEND
6357 without integration, MINOS, and CONOPT support. To bulid ASCEND with
6358 Fortran support, run configure with the option
6359 --with-fortran=F77,F77LIBS
6360 where F77 is the full path to your Fortran compiler and F77LIBS are
6361 its related libraries" >&2;}
6362 fi
6363 fi
6364
6365 if test "X$with_f77libs" = X_searching ; then
6366 # We found a compiler, now search for the fortran libraries
6367 # based on the system type.
6368 echo "$as_me:$LINENO: result: checking for fortran libraries based on system type" >&5
6369 echo "${ECHO_T}checking for fortran libraries based on system type" >&6
6370 case "$host" in
6371 hppa1.1-hp-hpux*)
6372 echo "$as_me:$LINENO: checking for FTN_QATAN in -lcl" >&5
6373 echo $ECHO_N "checking for FTN_QATAN in -lcl... $ECHO_C" >&6
6374 if test "${ac_cv_lib_cl_FTN_QATAN+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377 ac_check_lib_save_LIBS=$LIBS
6378 LIBS="-lcl $F77LIBS $LIBS"
6379 cat >conftest.$ac_ext <<_ACEOF
6380 #line $LINENO "configure"
6381 /* confdefs.h. */
6382 _ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6386
6387 /* Override any gcc2 internal prototype to avoid an error. */
6388 #ifdef __cplusplus
6389 extern "C"
6390 #endif
6391 /* We use char because int might match the return type of a gcc2
6392 builtin and then its argument prototype would still apply. */
6393 char FTN_QATAN ();
6394 int
6395 main ()
6396 {
6397 FTN_QATAN ();
6398 ;
6399 return 0;
6400 }
6401 _ACEOF
6402 rm -f conftest.$ac_objext conftest$ac_exeext
6403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6404 (eval $ac_link) 2>&5
6405 ac_status=$?
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } &&
6408 { ac_try='test -s conftest$ac_exeext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6410 (eval $ac_try) 2>&5
6411 ac_status=$?
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_cv_lib_cl_FTN_QATAN=yes
6415 else
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6418
6419 ac_cv_lib_cl_FTN_QATAN=no
6420 fi
6421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6422 LIBS=$ac_check_lib_save_LIBS
6423 fi
6424 echo "$as_me:$LINENO: result: $ac_cv_lib_cl_FTN_QATAN" >&5
6425 echo "${ECHO_T}$ac_cv_lib_cl_FTN_QATAN" >&6
6426 if test $ac_cv_lib_cl_FTN_QATAN = yes; then
6427 F77LIBS="$F77LIBS -lcl"
6428 fi
6429
6430 ;;
6431 *-ibm-aix*)
6432 # need to add -lc before -lxlf on AIX to
6433 # avoid getting the wrong getenv
6434 F77LIBS="-lc $F77LIBS"
6435 echo "$as_me:$LINENO: checking for _xldabs in -lxlf" >&5
6436 echo $ECHO_N "checking for _xldabs in -lxlf... $ECHO_C" >&6
6437 if test "${ac_cv_lib_xlf__xldabs+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439 else
6440 ac_check_lib_save_LIBS=$LIBS
6441 LIBS="-lxlf $F77LIBS $LIBS"
6442 cat >conftest.$ac_ext <<_ACEOF
6443 #line $LINENO "configure"
6444 /* confdefs.h. */
6445 _ACEOF
6446 cat confdefs.h >>conftest.$ac_ext
6447 cat >>conftest.$ac_ext <<_ACEOF
6448 /* end confdefs.h. */
6449
6450 /* Override any gcc2 internal prototype to avoid an error. */
6451 #ifdef __cplusplus
6452 extern "C"
6453 #endif
6454 /* We use char because int might match the return type of a gcc2
6455 builtin and then its argument prototype would still apply. */
6456 char _xldabs ();
6457 int
6458 main ()
6459 {
6460 _xldabs ();
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 rm -f conftest.$ac_objext conftest$ac_exeext
6466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6467 (eval $ac_link) 2>&5
6468 ac_status=$?
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try='test -s conftest$ac_exeext'
6472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473 (eval $ac_try) 2>&5
6474 ac_status=$?
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_lib_xlf__xldabs=yes
6478 else
6479 echo "$as_me: failed program was:" >&5
6480 sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 ac_cv_lib_xlf__xldabs=no
6483 fi
6484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6485 LIBS=$ac_check_lib_save_LIBS
6486 fi
6487 echo "$as_me:$LINENO: result: $ac_cv_lib_xlf__xldabs" >&5
6488 echo "${ECHO_T}$ac_cv_lib_xlf__xldabs" >&6
6489 if test $ac_cv_lib_xlf__xldabs = yes; then
6490 F77LIBS="$F77LIBS -lxlf"
6491 fi
6492
6493 echo "$as_me:$LINENO: checking for srand_ in -lxlfutil" >&5
6494 echo $ECHO_N "checking for srand_ in -lxlfutil... $ECHO_C" >&6
6495 if test "${ac_cv_lib_xlfutil_srand_+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6497 else
6498 ac_check_lib_save_LIBS=$LIBS
6499 LIBS="-lxlfutil $F77LIBS $LIBS"
6500 cat >conftest.$ac_ext <<_ACEOF
6501 #line $LINENO "configure"
6502 /* confdefs.h. */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6507
6508 /* Override any gcc2 internal prototype to avoid an error. */
6509 #ifdef __cplusplus
6510 extern "C"
6511 #endif
6512 /* We use char because int might match the return type of a gcc2
6513 builtin and then its argument prototype would still apply. */
6514 char srand_ ();
6515 int
6516 main ()
6517 {
6518 srand_ ();
6519 ;
6520 return 0;
6521 }
6522 _ACEOF
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525 (eval $ac_link) 2>&5
6526 ac_status=$?
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -s conftest$ac_exeext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6531 (eval $ac_try) 2>&5
6532 ac_status=$?
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6535 ac_cv_lib_xlfutil_srand_=yes
6536 else
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 ac_cv_lib_xlfutil_srand_=no
6541 fi
6542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6543 LIBS=$ac_check_lib_save_LIBS
6544 fi
6545 echo "$as_me:$LINENO: result: $ac_cv_lib_xlfutil_srand_" >&5
6546 echo "${ECHO_T}$ac_cv_lib_xlfutil_srand_" >&6
6547 if test $ac_cv_lib_xlfutil_srand_ = yes; then
6548 F77LIBS="$F77LIBS -lxlfutil"
6549 fi
6550
6551 echo "$as_me:$LINENO: checking for printf in -lxlf90" >&5
6552 echo $ECHO_N "checking for printf in -lxlf90... $ECHO_C" >&6
6553 if test "${ac_cv_lib_xlf90_printf+set}" = set; then
6554 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 else
6556 ac_check_lib_save_LIBS=$LIBS
6557 LIBS="-lxlf90 $F77LIBS $LIBS"
6558 cat >conftest.$ac_ext <<_ACEOF
6559 #line $LINENO "configure"
6560 /* confdefs.h. */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6565
6566 /* Override any gcc2 internal prototype to avoid an error. */
6567 #ifdef __cplusplus
6568 extern "C"
6569 #endif
6570 /* We use char because int might match the return type of a gcc2
6571 builtin and then its argument prototype would still apply. */
6572 char printf ();
6573 int
6574 main ()
6575 {
6576 printf ();
6577 ;
6578 return 0;
6579 }
6580 _ACEOF
6581 rm -f conftest.$ac_objext conftest$ac_exeext
6582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6583 (eval $ac_link) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -s conftest$ac_exeext'
6588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6589 (eval $ac_try) 2>&5
6590 ac_status=$?
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); }; }; then
6593 ac_cv_lib_xlf90_printf=yes
6594 else
6595 echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6597
6598 ac_cv_lib_xlf90_printf=no
6599 fi
6600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6601 LIBS=$ac_check_lib_save_LIBS
6602 fi
6603 echo "$as_me:$LINENO: result: $ac_cv_lib_xlf90_printf" >&5
6604 echo "${ECHO_T}$ac_cv_lib_xlf90_printf" >&6
6605 if test $ac_cv_lib_xlf90_printf = yes; then
6606 F77LIBS="$F77LIBS -lxlf90"
6607 fi
6608
6609 ;;
6610 *-linux-*)
6611 echo "$as_me:$LINENO: checking for pow_dd in -lf2c" >&5
6612 echo $ECHO_N "checking for pow_dd in -lf2c... $ECHO_C" >&6
6613 if test "${ac_cv_lib_f2c_pow_dd+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616 ac_check_lib_save_LIBS=$LIBS
6617 LIBS="-lf2c $F77LIBS $LIBS"
6618 cat >conftest.$ac_ext <<_ACEOF
6619 #line $LINENO "configure"
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625
6626 /* Override any gcc2 internal prototype to avoid an error. */
6627 #ifdef __cplusplus
6628 extern "C"
6629 #endif
6630 /* We use char because int might match the return type of a gcc2
6631 builtin and then its argument prototype would still apply. */
6632 char pow_dd ();
6633 int
6634 main ()
6635 {
6636 pow_dd ();
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext conftest$ac_exeext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643 (eval $ac_link) 2>&5
6644 ac_status=$?
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -s conftest$ac_exeext'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6649 (eval $ac_try) 2>&5
6650 ac_status=$?
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; }; then
6653 ac_cv_lib_f2c_pow_dd=yes
6654 else
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658 ac_cv_lib_f2c_pow_dd=no
6659 fi
6660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6661 LIBS=$ac_check_lib_save_LIBS
6662 fi
6663 echo "$as_me:$LINENO: result: $ac_cv_lib_f2c_pow_dd" >&5
6664 echo "${ECHO_T}$ac_cv_lib_f2c_pow_dd" >&6
6665 if test $ac_cv_lib_f2c_pow_dd = yes; then
6666 F77LIBS="$F77LIBS -lf2c"
6667 fi
6668
6669 echo "$as_me:$LINENO: checking for pow_dd in -lg2c" >&5
6670 echo $ECHO_N "checking for pow_dd in -lg2c... $ECHO_C" >&6
6671 if test "${ac_cv_lib_g2c_pow_dd+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 ac_check_lib_save_LIBS=$LIBS
6675 LIBS="-lg2c $F77LIBS $LIBS"
6676 cat >conftest.$ac_ext <<_ACEOF
6677 #line $LINENO "configure"
6678 /* confdefs.h. */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683
6684 /* Override any gcc2 internal prototype to avoid an error. */
6685 #ifdef __cplusplus
6686 extern "C"
6687 #endif
6688 /* We use char because int might match the return type of a gcc2
6689 builtin and then its argument prototype would still apply. */
6690 char pow_dd ();
6691 int
6692 main ()
6693 {
6694 pow_dd ();
6695 ;
6696 return 0;
6697 }
6698 _ACEOF
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701 (eval $ac_link) 2>&5
6702 ac_status=$?
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -s conftest$ac_exeext'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6707 (eval $ac_try) 2>&5
6708 ac_status=$?
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; }; then
6711 ac_cv_lib_g2c_pow_dd=yes
6712 else
6713 echo "$as_me: failed program was:" >&5
6714 sed 's/^/| /' conftest.$ac_ext >&5
6715
6716 ac_cv_lib_g2c_pow_dd=no
6717 fi
6718 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6719 LIBS=$ac_check_lib_save_LIBS
6720 fi
6721 echo "$as_me:$LINENO: result: $ac_cv_lib_g2c_pow_dd" >&5
6722 echo "${ECHO_T}$ac_cv_lib_g2c_pow_dd" >&6
6723 if test $ac_cv_lib_g2c_pow_dd = yes; then
6724 F77LIBS="$F77LIBS -lg2c"
6725 fi
6726
6727 ;;
6728 sparc-sun-solaris*)
6729 if test -n "$GCC" ; then
6730 F77LIBS="-L/opt/SUNWspro/lib -R/opt/SUNWspro/lib"
6731 fi
6732 echo "$as_me:$LINENO: checking for d_sqrt_ in -lsunmath" >&5
6733 echo $ECHO_N "checking for d_sqrt_ in -lsunmath... $ECHO_C" >&6
6734 if test "${ac_cv_lib_sunmath_d_sqrt_+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737 ac_check_lib_save_LIBS=$LIBS
6738 LIBS="-lsunmath $LIBS"
6739 cat >conftest.$ac_ext <<_ACEOF
6740 #line $LINENO "configure"
6741 /* confdefs.h. */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746
6747 /* Override any gcc2 internal prototype to avoid an error. */
6748 #ifdef __cplusplus
6749 extern "C"
6750 #endif
6751 /* We use char because int might match the return type of a gcc2
6752 builtin and then its argument prototype would still apply. */
6753 char d_sqrt_ ();
6754 int
6755 main ()
6756 {
6757 d_sqrt_ ();
6758 ;
6759 return 0;
6760 }
6761 _ACEOF
6762 rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6764 (eval $ac_link) 2>&5
6765 ac_status=$?
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
6768 { ac_try='test -s conftest$ac_exeext'
6769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6770 (eval $ac_try) 2>&5
6771 ac_status=$?
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 ac_cv_lib_sunmath_d_sqrt_=yes
6775 else
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6778
6779 ac_cv_lib_sunmath_d_sqrt_=no
6780 fi
6781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6782 LIBS=$ac_check_lib_save_LIBS
6783 fi
6784 echo "$as_me:$LINENO: result: $ac_cv_lib_sunmath_d_sqrt_" >&5
6785 echo "${ECHO_T}$ac_cv_lib_sunmath_d_sqrt_" >&6
6786 if test $ac_cv_lib_sunmath_d_sqrt_ = yes; then
6787 MATH_LIBS="-lsunmath $MATH_LIBS"
6788 fi
6789
6790 echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5
6791 echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6
6792 if test "${ac_cv_lib_F77_f77_init+set}" = set; then
6793 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 else
6795 ac_check_lib_save_LIBS=$LIBS
6796 LIBS="-lF77 $F77LIBS $MATH_LIBS $LIBS"
6797 cat >conftest.$ac_ext <<_ACEOF
6798 #line $LINENO "configure"
6799 /* confdefs.h. */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h. */
6804
6805 /* Override any gcc2 internal prototype to avoid an error. */
6806 #ifdef __cplusplus
6807 extern "C"
6808 #endif
6809 /* We use char because int might match the return type of a gcc2
6810 builtin and then its argument prototype would still apply. */
6811 char f77_init ();
6812 int
6813 main ()
6814 {
6815 f77_init ();
6816 ;
6817 return 0;
6818 }
6819 _ACEOF
6820 rm -f conftest.$ac_objext conftest$ac_exeext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6822 (eval $ac_link) 2>&5
6823 ac_status=$?
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); } &&
6826 { ac_try='test -s conftest$ac_exeext'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6828 (eval $ac_try) 2>&5
6829 ac_status=$?
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; }; then
6832 ac_cv_lib_F77_f77_init=yes
6833 else
6834 echo "$as_me: failed program was:" >&5
6835 sed 's/^/| /' conftest.$ac_ext >&5
6836
6837 ac_cv_lib_F77_f77_init=no
6838 fi
6839 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6840 LIBS=$ac_check_lib_save_LIBS
6841 fi
6842 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5
6843 echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6
6844 if test $ac_cv_lib_F77_f77_init = yes; then
6845 F77LIBS="$F77LIBS -lF77"
6846 fi
6847
6848 echo "$as_me:$LINENO: checking for inmax_ in -lM77" >&5
6849 echo $ECHO_N "checking for inmax_ in -lM77... $ECHO_C" >&6
6850 if test "${ac_cv_lib_M77_inmax_+set}" = set; then
6851 echo $ECHO_N "(cached) $ECHO_C" >&6
6852 else
6853 ac_check_lib_save_LIBS=$LIBS
6854 LIBS="-lM77 $F77LIBS $MATH_LIBS $LIBS"
6855 cat >conftest.$ac_ext <<_ACEOF
6856 #line $LINENO "configure"
6857 /* confdefs.h. */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862
6863 /* Override any gcc2 internal prototype to avoid an error. */
6864 #ifdef __cplusplus
6865 extern "C"
6866 #endif
6867 /* We use char because int might match the return type of a gcc2
6868 builtin and then its argument prototype would still apply. */
6869 char inmax_ ();
6870 int
6871 main ()
6872 {
6873 inmax_ ();
6874 ;
6875 return 0;
6876 }
6877 _ACEOF
6878 rm -f conftest.$ac_objext conftest$ac_exeext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880 (eval $ac_link) 2>&5
6881 ac_status=$?
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -s conftest$ac_exeext'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6886 (eval $ac_try) 2>&5
6887 ac_status=$?
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6890 ac_cv_lib_M77_inmax_=yes
6891 else
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6894
6895 ac_cv_lib_M77_inmax_=no
6896 fi
6897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6898 LIBS=$ac_check_lib_save_LIBS
6899 fi
6900 echo "$as_me:$LINENO: result: $ac_cv_lib_M77_inmax_" >&5
6901 echo "${ECHO_T}$ac_cv_lib_M77_inmax_" >&6
6902 if test $ac_cv_lib_M77_inmax_ = yes; then
6903 F77LIBS="$F77LIBS -lM77"
6904 fi
6905
6906 ;;
6907 sparc-sun-sunos4*)
6908 if test -n "$GCC" ; then
6909 F77LIBS="-L/usr/lang/lib"
6910 fi
6911 echo "$as_me:$LINENO: checking for f77_init in -lF77" >&5
6912 echo $ECHO_N "checking for f77_init in -lF77... $ECHO_C" >&6
6913 if test "${ac_cv_lib_F77_f77_init+set}" = set; then
6914 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 else
6916 ac_check_lib_save_LIBS=$LIBS
6917 LIBS="-lF77 $F77LIBS $LIBS"
6918 cat >conftest.$ac_ext <<_ACEOF
6919 #line $LINENO "configure"
6920 /* confdefs.h. */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925
6926 /* Override any gcc2 internal prototype to avoid an error. */
6927 #ifdef __cplusplus
6928 extern "C"
6929 #endif
6930 /* We use char because int might match the return type of a gcc2
6931 builtin and then its argument prototype would still apply. */
6932 char f77_init ();
6933 int
6934 main ()
6935 {
6936 f77_init ();
6937 ;
6938 return 0;
6939 }
6940 _ACEOF
6941 rm -f conftest.$ac_objext conftest$ac_exeext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6943 (eval $ac_link) 2>&5
6944 ac_status=$?
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 (eval $ac_try) 2>&5
6950 ac_status=$?
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 ac_cv_lib_F77_f77_init=yes
6954 else
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 ac_cv_lib_F77_f77_init=no
6959 fi
6960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6961 LIBS=$ac_check_lib_save_LIBS
6962 fi
6963 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_f77_init" >&5
6964 echo "${ECHO_T}$ac_cv_lib_F77_f77_init" >&6
6965 if test $ac_cv_lib_F77_f77_init = yes; then
6966 F77LIBS="$F77LIBS -lF77"
6967 fi
6968
6969 echo "$as_me:$LINENO: checking for inmax_ in -lM77" >&5
6970 echo $ECHO_N "checking for inmax_ in -lM77... $ECHO_C" >&6
6971 if test "${ac_cv_lib_M77_inmax_+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 ac_check_lib_save_LIBS=$LIBS
6975 LIBS="-lM77 $F77LIBS $LIBS"
6976 cat >conftest.$ac_ext <<_ACEOF
6977 #line $LINENO "configure"
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983
6984 /* Override any gcc2 internal prototype to avoid an error. */
6985 #ifdef __cplusplus
6986 extern "C"
6987 #endif
6988 /* We use char because int might match the return type of a gcc2
6989 builtin and then its argument prototype would still apply. */
6990 char inmax_ ();
6991 int
6992 main ()
6993 {
6994 inmax_ ();
6995 ;
6996 return 0;
6997 }
6998 _ACEOF
6999 rm -f conftest.$ac_objext conftest$ac_exeext
7000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7001 (eval $ac_link) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } &&
7005 { ac_try='test -s conftest$ac_exeext'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007 (eval $ac_try) 2>&5
7008 ac_status=$?
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; }; then
7011 ac_cv_lib_M77_inmax_=yes
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 ac_cv_lib_M77_inmax_=no
7017 fi
7018 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7019 LIBS=$ac_check_lib_save_LIBS
7020 fi
7021 echo "$as_me:$LINENO: result: $ac_cv_lib_M77_inmax_" >&5
7022 echo "${ECHO_T}$ac_cv_lib_M77_inmax_" >&6
7023 if test $ac_cv_lib_M77_inmax_ = yes; then
7024 F77LIBS="$F77LIBS -lM77"
7025 fi
7026
7027 ;;
7028 mips-sgi-irix*)
7029 echo "$as_me:$LINENO: checking for s_copy in -lF77" >&5
7030 echo $ECHO_N "checking for s_copy in -lF77... $ECHO_C" >&6
7031 if test "${ac_cv_lib_F77_s_copy+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 ac_check_lib_save_LIBS=$LIBS
7035 LIBS="-lF77 $F77LIBS $LIBS"
7036 cat >conftest.$ac_ext <<_ACEOF
7037 #line $LINENO "configure"
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043
7044 /* Override any gcc2 internal prototype to avoid an error. */
7045 #ifdef __cplusplus
7046 extern "C"
7047 #endif
7048 /* We use char because int might match the return type of a gcc2
7049 builtin and then its argument prototype would still apply. */
7050 char s_copy ();
7051 int
7052 main ()
7053 {
7054 s_copy ();
7055 ;
7056 return 0;
7057 }
7058 _ACEOF
7059 rm -f conftest.$ac_objext conftest$ac_exeext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7061 (eval $ac_link) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } &&
7065 { ac_try='test -s conftest$ac_exeext'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 (eval $ac_try) 2>&5
7068 ac_status=$?
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7071 ac_cv_lib_F77_s_copy=yes
7072 else
7073 echo "$as_me: failed program was:" >&5
7074 sed 's/^/| /' conftest.$ac_ext >&5
7075
7076 ac_cv_lib_F77_s_copy=no
7077 fi
7078 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7079 LIBS=$ac_check_lib_save_LIBS
7080 fi
7081 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_s_copy" >&5
7082 echo "${ECHO_T}$ac_cv_lib_F77_s_copy" >&6
7083 if test $ac_cv_lib_F77_s_copy = yes; then
7084 F77LIBS="$F77LIBS -lF77"
7085 fi
7086
7087 echo "$as_me:$LINENO: checking for f_exit in -lI77" >&5
7088 echo $ECHO_N "checking for f_exit in -lI77... $ECHO_C" >&6
7089 if test "${ac_cv_lib_I77_f_exit+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 ac_check_lib_save_LIBS=$LIBS
7093 LIBS="-lI77 $F77LIBS $LIBS"
7094 cat >conftest.$ac_ext <<_ACEOF
7095 #line $LINENO "configure"
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101
7102 /* Override any gcc2 internal prototype to avoid an error. */
7103 #ifdef __cplusplus
7104 extern "C"
7105 #endif
7106 /* We use char because int might match the return type of a gcc2
7107 builtin and then its argument prototype would still apply. */
7108 char f_exit ();
7109 int
7110 main ()
7111 {
7112 f_exit ();
7113 ;
7114 return 0;
7115 }
7116 _ACEOF
7117 rm -f conftest.$ac_objext conftest$ac_exeext
7118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119 (eval $ac_link) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } &&
7123 { ac_try='test -s conftest$ac_exeext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7129 ac_cv_lib_I77_f_exit=yes
7130 else
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134 ac_cv_lib_I77_f_exit=no
7135 fi
7136 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7137 LIBS=$ac_check_lib_save_LIBS
7138 fi
7139 echo "$as_me:$LINENO: result: $ac_cv_lib_I77_f_exit" >&5
7140 echo "${ECHO_T}$ac_cv_lib_I77_f_exit" >&6
7141 if test $ac_cv_lib_I77_f_exit = yes; then
7142 F77LIBS="$F77LIBS -lI77"
7143 fi
7144
7145 echo "$as_me:$LINENO: checking for mkidxname in -lisam" >&5
7146 echo $ECHO_N "checking for mkidxname in -lisam... $ECHO_C" >&6
7147 if test "${ac_cv_lib_isam_mkidxname+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150 ac_check_lib_save_LIBS=$LIBS
7151 LIBS="-lisam $F77LIBS $LIBS"
7152 cat >conftest.$ac_ext <<_ACEOF
7153 #line $LINENO "configure"
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159
7160 /* Override any gcc2 internal prototype to avoid an error. */
7161 #ifdef __cplusplus
7162 extern "C"
7163 #endif
7164 /* We use char because int might match the return type of a gcc2
7165 builtin and then its argument prototype would still apply. */
7166 char mkidxname ();
7167 int
7168 main ()
7169 {
7170 mkidxname ();
7171 ;
7172 return 0;
7173 }
7174 _ACEOF
7175 rm -f conftest.$ac_objext conftest$ac_exeext
7176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7177 (eval $ac_link) 2>&5
7178 ac_status=$?
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } &&
7181 { ac_try='test -s conftest$ac_exeext'
7182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 (eval $ac_try) 2>&5
7184 ac_status=$?
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); }; }; then
7187 ac_cv_lib_isam_mkidxname=yes
7188 else
7189 echo "$as_me: failed program was:" >&5
7190 sed 's/^/| /' conftest.$ac_ext >&5
7191
7192 ac_cv_lib_isam_mkidxname=no
7193 fi
7194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7195 LIBS=$ac_check_lib_save_LIBS
7196 fi
7197 echo "$as_me:$LINENO: result: $ac_cv_lib_isam_mkidxname" >&5
7198 echo "${ECHO_T}$ac_cv_lib_isam_mkidxname" >&6
7199 if test $ac_cv_lib_isam_mkidxname = yes; then
7200 F77LIBS="$F77LIBS -lisam"
7201 fi
7202
7203 ;;
7204 *)
7205 echo "$as_me:$LINENO: checking for printf in -lF77" >&5
7206 echo $ECHO_N "checking for printf in -lF77... $ECHO_C" >&6
7207 if test "${ac_cv_lib_F77_printf+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210 ac_check_lib_save_LIBS=$LIBS
7211 LIBS="-lF77 $F77LIBS $LIBS"
7212 cat >conftest.$ac_ext <<_ACEOF
7213 #line $LINENO "configure"
7214 /* confdefs.h. */
7215 _ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7219
7220 /* Override any gcc2 internal prototype to avoid an error. */
7221 #ifdef __cplusplus
7222 extern "C"
7223 #endif
7224 /* We use char because int might match the return type of a gcc2
7225 builtin and then its argument prototype would still apply. */
7226 char printf ();
7227 int
7228 main ()
7229 {
7230 printf ();
7231 ;
7232 return 0;
7233 }
7234 _ACEOF
7235 rm -f conftest.$ac_objext conftest$ac_exeext
7236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7237 (eval $ac_link) 2>&5
7238 ac_status=$?
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } &&
7241 { ac_try='test -s conftest$ac_exeext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 (eval $ac_try) 2>&5
7244 ac_status=$?
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_cv_lib_F77_printf=yes
7248 else
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 ac_cv_lib_F77_printf=no
7253 fi
7254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7255 LIBS=$ac_check_lib_save_LIBS
7256 fi
7257 echo "$as_me:$LINENO: result: $ac_cv_lib_F77_printf" >&5
7258 echo "${ECHO_T}$ac_cv_lib_F77_printf" >&6
7259 if test $ac_cv_lib_F77_printf = yes; then
7260 F77LIBS="$F77LIBS -lF77"
7261 fi
7262
7263 echo "$as_me:$LINENO: checking for printf in -lM77" >&5
7264 echo $ECHO_N "checking for printf in -lM77... $ECHO_C" >&6
7265 if test "${ac_cv_lib_M77_printf+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 ac_check_lib_save_LIBS=$LIBS
7269 LIBS="-lM77 $F77LIBS $LIBS"
7270 cat >conftest.$ac_ext <<_ACEOF
7271 #line $LINENO "configure"
7272 /* confdefs.h. */
7273 _ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277
7278 /* Override any gcc2 internal prototype to avoid an error. */
7279 #ifdef __cplusplus
7280 extern "C"
7281 #endif
7282 /* We use char because int might match the return type of a gcc2
7283 builtin and then its argument prototype would still apply. */
7284 char printf ();
7285 int
7286 main ()
7287 {
7288 printf ();
7289 ;
7290 return 0;
7291 }
7292 _ACEOF
7293 rm -f conftest.$ac_objext conftest$ac_exeext
7294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7295 (eval $ac_link) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } &&
7299 { ac_try='test -s conftest$ac_exeext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_cv_lib_M77_printf=yes
7306 else
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7309
7310 ac_cv_lib_M77_printf=no
7311 fi
7312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7313 LIBS=$ac_check_lib_save_LIBS
7314 fi
7315 echo "$as_me:$LINENO: result: $ac_cv_lib_M77_printf" >&5
7316 echo "${ECHO_T}$ac_cv_lib_M77_printf" >&6
7317 if test $ac_cv_lib_M77_printf = yes; then
7318 F77LIBS="$F77LIBS -lM77"
7319 fi
7320
7321 echo "$as_me:$LINENO: checking for pow_dd in -lf2c" >&5
7322 echo $ECHO_N "checking for pow_dd in -lf2c... $ECHO_C" >&6
7323 if test "${ac_cv_lib_f2c_pow_dd+set}" = set; then
7324 echo $ECHO_N "(cached) $ECHO_C" >&6
7325 else
7326 ac_check_lib_save_LIBS=$LIBS
7327 LIBS="-lf2c $F77LIBS $LIBS"
7328 cat >conftest.$ac_ext <<_ACEOF
7329 #line $LINENO "configure"
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335
7336 /* Override any gcc2 internal prototype to avoid an error. */
7337 #ifdef __cplusplus
7338 extern "C"
7339 #endif
7340 /* We use char because int might match the return type of a gcc2
7341 builtin and then its argument prototype would still apply. */
7342 char pow_dd ();
7343 int
7344 main ()
7345 {
7346 pow_dd ();
7347 ;
7348 return 0;
7349 }
7350 _ACEOF
7351 rm -f conftest.$ac_objext conftest$ac_exeext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353 (eval $ac_link) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } &&
7357 { ac_try='test -s conftest$ac_exeext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_cv_lib_f2c_pow_dd=yes
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 ac_cv_lib_f2c_pow_dd=no
7369 fi
7370 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7371 LIBS=$ac_check_lib_save_LIBS
7372 fi
7373 echo "$as_me:$LINENO: result: $ac_cv_lib_f2c_pow_dd" >&5
7374 echo "${ECHO_T}$ac_cv_lib_f2c_pow_dd" >&6
7375 if test $ac_cv_lib_f2c_pow_dd = yes; then
7376 F77LIBS="$F77LIBS -lf2c"
7377 fi
7378
7379 echo "$as_me:$LINENO: checking for printf in -lf77" >&5
7380 echo $ECHO_N "checking for printf in -lf77... $ECHO_C" >&6
7381 if test "${ac_cv_lib_f77_printf+set}" = set; then
7382 echo $ECHO_N "(cached) $ECHO_C" >&6
7383 else
7384 ac_check_lib_save_LIBS=$LIBS
7385 LIBS="-lf77 $F77LIBS $LIBS"
7386 cat >conftest.$ac_ext <<_ACEOF
7387 #line $LINENO "configure"
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393
7394 /* Override any gcc2 internal prototype to avoid an error. */
7395 #ifdef __cplusplus
7396 extern "C"
7397 #endif
7398 /* We use char because int might match the return type of a gcc2
7399 builtin and then its argument prototype would still apply. */
7400 char printf ();
7401 int
7402 main ()
7403 {
7404 printf ();
7405 ;
7406 return 0;
7407 }
7408 _ACEOF
7409 rm -f conftest.$ac_objext conftest$ac_exeext
7410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7411 (eval $ac_link) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } &&
7415 { ac_try='test -s conftest$ac_exeext'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 (eval $ac_try) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; }; then
7421 ac_cv_lib_f77_printf=yes
7422 else
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426 ac_cv_lib_f77_printf=no
7427 fi
7428 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7429 LIBS=$ac_check_lib_save_LIBS
7430 fi
7431 echo "$as_me:$LINENO: result: $ac_cv_lib_f77_printf" >&5
7432 echo "${ECHO_T}$ac_cv_lib_f77_printf" >&6
7433 if test $ac_cv_lib_f77_printf = yes; then
7434 F77LIBS="$F77LIBS -lf77"
7435 fi
7436
7437 echo "$as_me:$LINENO: checking for printf in -lfor" >&5
7438 echo $ECHO_N "checking for printf in -lfor... $ECHO_C" >&6
7439 if test "${ac_cv_lib_for_printf+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 else
7442 ac_check_lib_save_LIBS=$LIBS
7443 LIBS="-lfor $F77LIBS $LIBS"
7444 cat >conftest.$ac_ext <<_ACEOF
7445 #line $LINENO "configure"
7446 /* confdefs.h. */
7447 _ACEOF
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451
7452 /* Override any gcc2 internal prototype to avoid an error. */
7453 #ifdef __cplusplus
7454 extern "C"
7455 #endif
7456 /* We use char because int might match the return type of a gcc2
7457 builtin and then its argument prototype would still apply. */
7458 char printf ();
7459 int
7460 main ()
7461 {
7462 printf ();
7463 ;
7464 return 0;
7465 }
7466 _ACEOF
7467 rm -f conftest.$ac_objext conftest$ac_exeext
7468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7469 (eval $ac_link) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } &&
7473 { ac_try='test -s conftest$ac_exeext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 (eval $ac_try) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7479 ac_cv_lib_for_printf=yes
7480 else
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484 ac_cv_lib_for_printf=no
7485 fi
7486 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7487 LIBS=$ac_check_lib_save_LIBS
7488 fi
7489 echo "$as_me:$LINENO: result: $ac_cv_lib_for_printf" >&5
7490 echo "${ECHO_T}$ac_cv_lib_for_printf" >&6
7491 if test $ac_cv_lib_for_printf = yes; then
7492 F77LIBS="$F77LIBS -lfor"
7493 fi
7494
7495 echo "$as_me:$LINENO: checking for printf in -lots" >&5
7496 echo $ECHO_N "checking for printf in -lots... $ECHO_C" >&6
7497 if test "${ac_cv_lib_ots_printf+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 else
7500 ac_check_lib_save_LIBS=$LIBS
7501 LIBS="-lots $F77LIBS $LIBS"
7502 cat >conftest.$ac_ext <<_ACEOF
7503 #line $LINENO "configure"
7504 /* confdefs.h. */
7505 _ACEOF
7506 cat confdefs.h >>conftest.$ac_ext
7507 cat >>conftest.$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509
7510 /* Override any gcc2 internal prototype to avoid an error. */
7511 #ifdef __cplusplus
7512 extern "C"
7513 #endif
7514 /* We use char because int might match the return type of a gcc2
7515 builtin and then its argument prototype would still apply. */
7516 char printf ();
7517 int
7518 main ()
7519 {
7520 printf ();
7521 ;
7522 return 0;
7523 }
7524 _ACEOF
7525 rm -f conftest.$ac_objext conftest$ac_exeext
7526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7527 (eval $ac_link) 2>&5
7528 ac_status=$?
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } &&
7531 { ac_try='test -s conftest$ac_exeext'
7532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533 (eval $ac_try) 2>&5
7534 ac_status=$?
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); }; }; then
7537 ac_cv_lib_ots_printf=yes
7538 else
7539 echo "$as_me: failed program was:" >&5
7540 sed 's/^/| /' conftest.$ac_ext >&5
7541
7542 ac_cv_lib_ots_printf=no
7543 fi
7544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7545 LIBS=$ac_check_lib_save_LIBS
7546 fi
7547 echo "$as_me:$LINENO: result: $ac_cv_lib_ots_printf" >&5
7548 echo "${ECHO_T}$ac_cv_lib_ots_printf" >&6
7549 if test $ac_cv_lib_ots_printf = yes; then
7550 F77LIBS="$F77LIBS -lots"
7551 fi
7552
7553 echo "$as_me:$LINENO: checking for printf in -lUfor" >&5
7554 echo $ECHO_N "checking for printf in -lUfor... $ECHO_C" >&6
7555 if test "${ac_cv_lib_Ufor_printf+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7557 else
7558 ac_check_lib_save_LIBS=$LIBS
7559 LIBS="-lUfor $F77LIBS $LIBS"
7560 cat >conftest.$ac_ext <<_ACEOF
7561 #line $LINENO "configure"
7562 /* confdefs.h. */
7563 _ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7567
7568 /* Override any gcc2 internal prototype to avoid an error. */
7569 #ifdef __cplusplus
7570 extern "C"
7571 #endif
7572 /* We use char because int might match the return type of a gcc2
7573 builtin and then its argument prototype would still apply. */
7574 char printf ();
7575 int
7576 main ()
7577 {
7578 printf ();
7579 ;
7580 return 0;
7581 }
7582 _ACEOF
7583 rm -f conftest.$ac_objext conftest$ac_exeext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7585 (eval $ac_link) 2>&5
7586 ac_status=$?
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } &&
7589 { ac_try='test -s conftest$ac_exeext'
7590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7591 (eval $ac_try) 2>&5
7592 ac_status=$?
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); }; }; then
7595 ac_cv_lib_Ufor_printf=yes
7596 else
7597 echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.$ac_ext >&5
7599
7600 ac_cv_lib_Ufor_printf=no
7601 fi
7602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7603 LIBS=$ac_check_lib_save_LIBS
7604 fi
7605 echo "$as_me:$LINENO: result: $ac_cv_lib_Ufor_printf" >&5
7606 echo "${ECHO_T}$ac_cv_lib_Ufor_printf" >&6
7607 if test $ac_cv_lib_Ufor_printf = yes; then
7608 F77LIBS="$F77LIBS -lUfor"
7609 fi
7610
7611 ;;
7612 esac
7613 fi
7614
7615 # asc_subdirs are the extra fortran subdirectories we have to visit
7616 # to build the fortran libraries. Initialize it to empty here.
7617 asc_subdirs=''
7618
7619 # Initialize the blas variables
7620 make_blaslib=''
7621
7622
7623 # Check whether --with-blas or --without-blas was given.
7624 if test "${with_blas+set}" = set; then
7625 withval="$with_blas"
7626
7627 else
7628 with_blas=yes
7629 fi;
7630 case "$with_fortran$with_blas" in
7631 no*)
7632 # Fortran is disabled; ignore this option (if present)
7633 BLASLIB=
7634 ;;
7635 *no)
7636 # It is an error if the user chooses to build without
7637 # the BLAS library if Fortran is enabled.
7638 { { echo "$as_me:$LINENO: error: Bad option '--without-blas'
7639 To support Fortran calls, ASCEND must be compiled with a blas library" >&5
7640 echo "$as_me: error: Bad option '--without-blas'
7641 To support Fortran calls, ASCEND must be compiled with a blas library" >&2;}
7642 { (exit 1); exit 1; }; }
7643 ;;
7644 *build)
7645 # Fortran is enabled and the user specified --with-blas=build
7646 # For a search for BLAS source code and tell the Makefile
7647 # to build it; useful for testing configure.
7648 #AWW20041206: blas_src_file="$srcdir/blas/dcopy.f"
7649 blas_src_file="$srcdir/../../blas/dcopy.f"
7650 echo "$as_me:$LINENO: checking for blas source file $blas_src_file " >&5
7651 echo $ECHO_N "checking for blas source file $blas_src_file ... $ECHO_C" >&6
7652 if test -f $blas_src_file ; then
7653 echo "$as_me:$LINENO: result: yes" >&5
7654 echo "${ECHO_T}yes" >&6
7655 #AWW20041119: BLASLIB="$ascpwd/ascend4/archive/libascblas.a"
7656 BLASLIB="$ascpwd/archive/libascblas.a"
7657 make_blaslib='make-blaslib'
7658 #AWW20041206: blaslib_makefile="blas/Makefile"
7659 blaslib_makefile="blas/Makefile:../../blas/Makefile.in"
7660 #AWW20041206: asc_subdirs="$asc_subdirs ../blas"
7661 asc_subdirs="$asc_subdirs blas"
7662 else
7663 echo "$as_me:$LINENO: result: no" >&5
7664 echo "${ECHO_T}no" >&6
7665 { { echo "$as_me:$LINENO: error: User specified '--with-blas=build' but
7666 configure cannot find the blas source file $blas_src_file" >&5
7667 echo "$as_me: error: User specified '--with-blas=build' but
7668 configure cannot find the blas source file $blas_src_file" >&2;}
7669 { (exit 1); exit 1; }; }
7670 fi
7671 ;;
7672 *yes)
7673 # Fortran in enabled and the user didn't give the --with-blas
7674 # option or didn't give the library's location.
7675 # Search for a compiled libblas.a or libascblas.a; if that
7676 # fails, look for BLAS source code; if that also fails,
7677 # disable all Fortran and print a warning.
7678 for ac_prog in libblas.a libascblas.a
7679 do
7680 # Extract the first word of "$ac_prog", so it can be a program name with args.
7681 set dummy $ac_prog; ac_word=$2
7682 echo "$as_me:$LINENO: checking for $ac_word" >&5
7683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7684 if test "${ac_cv_path_BLASLIB+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687 case $BLASLIB in
7688 [\\/]* | ?:[\\/]*)
7689 ac_cv_path_BLASLIB="$BLASLIB" # Let the user override the test with a path.
7690 ;;
7691 *)
7692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693 for as_dir in $asc_f77_support_dirs
7694 do
7695 IFS=$as_save_IFS
7696 test -z "$as_dir" && as_dir=.
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7699 ac_cv_path_BLASLIB="$as_dir/$ac_word$ac_exec_ext"
7700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 break 2
7702 fi
7703 done
7704 done
7705
7706 ;;
7707 esac
7708 fi
7709 BLASLIB=$ac_cv_path_BLASLIB
7710
7711 if test -n "$BLASLIB"; then
7712 echo "$as_me:$LINENO: result: $BLASLIB" >&5
7713 echo "${ECHO_T}$BLASLIB" >&6
7714 else
7715 echo "$as_me:$LINENO: result: no" >&5
7716 echo "${ECHO_T}no" >&6
7717 fi
7718
7719 test -n "$BLASLIB" && break
7720 done
7721
7722 blas_src_file="$srcdir/../../blas/dcopy.f"
7723 if test -z "$BLASLIB" -a -n "$blas_src_file" ; then
7724 echo "$as_me:$LINENO: checking for blas source file $blas_src_file " >&5
7725 echo $ECHO_N "checking for blas source file $blas_src_file ... $ECHO_C" >&6
7726 if test -f $blas_src_file ; then
7727 echo "$as_me:$LINENO: result: yes" >&5
7728 echo "${ECHO_T}yes" >&6
7729 #AWW20041119: BLASLIB="$ascpwd/ascend4/archive/libascblas.a"
7730 BLASLIB="$ascpwd/archive/libascblas.a"
7731 make_blaslib='make-blaslib'
7732 #AWW20041206: blaslib_makefile="blas/Makefile"
7733 blaslib_makefile="blas/Makefile:../../blas/Makefile.in"
7734 #AWW20041206: asc_subdirs="$asc_subdirs ../blas"
7735 asc_subdirs="$asc_subdirs blas"
7736 else
7737 echo "$as_me:$LINENO: result: no" >&5
7738 echo "${ECHO_T}no" >&6
7739 fi
7740 fi
7741 if test -z "$BLASLIB" ; then
7742 with_fortran=no
7743 { echo "$as_me:$LINENO: WARNING: Cannot find libblas.a, libascblas.a, nor blas
7744 source code. Building ASCEND without integration, MINOS, and CONOPT
7745 support. To specify a specific location for the blas library, run
7746 configure again with the argument:
7747 --with-blas=BLASLIB
7748 where BLASLIB is the full path to the blas library file." >&5
7749 echo "$as_me: WARNING: Cannot find libblas.a, libascblas.a, nor blas
7750 source code. Building ASCEND without integration, MINOS, and CONOPT
7751 support. To specify a specific location for the blas library, run
7752 configure again with the argument:
7753 --with-blas=BLASLIB
7754 where BLASLIB is the full path to the blas library file." >&2;}
7755 fi
7756 ;;
7757 *)
7758 # The user gave us --with-blas=BLASLIB, use that as the
7759 # location of the BLAS library.
7760 BLASLIB="$with_blas"
7761 ;;
7762 esac
7763
7764
7765 # Initialize the linpack variables
7766 make_lpaklib=''
7767
7768
7769 # Check whether --with-linpack or --without-linpack was given.
7770 if test "${with_linpack+set}" = set; then
7771 withval="$with_linpack"
7772
7773 else
7774 with_linpack=yes
7775 fi;
7776 case "$with_fortran$with_linpack" in
7777 no*)
7778 # Fortran is disabled; ignore this option (if present)
7779 LPAKLIB=
7780 ;;
7781 *no)
7782 # It is an error if the user chooses to build without
7783 # the LINPACK library if Fortran is enabled.
7784 { { echo "$as_me:$LINENO: error: Bad option '--without-linpack'
7785 To support Fortran calls, ASCEND must be compiled with a
7786 linpack library." >&5
7787 echo "$as_me: error: Bad option '--without-linpack'
7788 To support Fortran calls, ASCEND must be compiled with a
7789 linpack library." >&2;}
7790 { (exit 1); exit 1; }; }
7791 ;;
7792 *build)
7793 # Fortran is enabled and the user specified --with-linpack=build
7794 # For a search for LINPACK source code and tell the Makefile
7795 # to build it; useful for testing configure.
7796 lpak_src_file="$srcdir/../../linpack/d1mach.f"
7797 echo "$as_me:$LINENO: checking for linpack source file $lpak_src_file " >&5
7798 echo $ECHO_N "checking for linpack source file $lpak_src_file ... $ECHO_C" >&6
7799 if test -f $lpak_src_file ; then
7800 echo "$as_me:$LINENO: result: yes" >&5
7801 echo "${ECHO_T}yes" >&6
7802 #AWW20041119: LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a"
7803 LPAKLIB="$ascpwd/archive/libasclpak.a"
7804 make_lpaklib='make-lpaklib'
7805 #AWW20041206: lpaklib_makefile="linpack/Makefile"
7806 lpaklib_makefile="linpack/Makefile:../../linpack/Makefile.in"
7807 #AWW20041206: asc_subdirs="$asc_subdirs ../linpack"
7808 asc_subdirs="$asc_subdirs linpack"
7809 else
7810 echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6
7812 { { echo "$as_me:$LINENO: error: User specified '--with-linpack=build' but
7813 configure cannot find the linpack source file $lpak_src_file" >&5
7814 echo "$as_me: error: User specified '--with-linpack=build' but
7815 configure cannot find the linpack source file $lpak_src_file" >&2;}
7816 { (exit 1); exit 1; }; }
7817 fi
7818 ;;
7819 *yes)
7820 # Fortran in enabled and the user didn't give the --with-linpack
7821 # option or didn't give the library's location.
7822 # Search for a compiled liblpak.a or libasclpak.a; if that
7823 # fails, look for LINPACK source code; if that also fails,
7824 # disable all Fortran and print a warning.
7825 for ac_prog in liblpak.a libasclpak.a
7826 do
7827 # Extract the first word of "$ac_prog", so it can be a program name with args.
7828 set dummy $ac_prog; ac_word=$2
7829 echo "$as_me:$LINENO: checking for $ac_word" >&5
7830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7831 if test "${ac_cv_path_LPAKLIB+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7833 else
7834 case $LPAKLIB in
7835 [\\/]* | ?:[\\/]*)
7836 ac_cv_path_LPAKLIB="$LPAKLIB" # Let the user override the test with a path.
7837 ;;
7838 *)
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $asc_f77_support_dirs
7841 do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_path_LPAKLIB="$as_dir/$ac_word$ac_exec_ext"
7847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850 done
7851 done
7852
7853 ;;
7854 esac
7855 fi
7856 LPAKLIB=$ac_cv_path_LPAKLIB
7857
7858 if test -n "$LPAKLIB"; then
7859 echo "$as_me:$LINENO: result: $LPAKLIB" >&5
7860 echo "${ECHO_T}$LPAKLIB" >&6
7861 else
7862 echo "$as_me:$LINENO: result: no" >&5
7863 echo "${ECHO_T}no" >&6
7864 fi
7865
7866 test -n "$LPAKLIB" && break
7867 done
7868
7869 lpak_src_file="$srcdir/../../linpack/d1mach.f"
7870 if test -z "$LPAKLIB" -a -n "$lpak_src_file" ; then
7871 echo "$as_me:$LINENO: checking for linpack source file $lpak_src_file " >&5
7872 echo $ECHO_N "checking for linpack source file $lpak_src_file ... $ECHO_C" >&6
7873 if test -f $lpak_src_file ; then
7874 echo "$as_me:$LINENO: result: yes" >&5
7875 echo "${ECHO_T}yes" >&6
7876 #AWW20041119: LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a"
7877 LPAKLIB="$ascpwd/archive/libasclpak.a"
7878 make_lpaklib='make-lpaklib'
7879 #AWW20041206: lpaklib_makefile="linpack/Makefile"
7880 lpaklib_makefile="linpack/Makefile:../../linpack/Makefile.in"
7881 #AWW20041206: asc_subdirs="$asc_subdirs ../linpack"
7882 asc_subdirs="$asc_subdirs linpack"
7883 else
7884 echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6
7886 fi
7887 fi
7888 if test -z "$LPAKLIB" ; then
7889 with_fortran=no
7890 { echo "$as_me:$LINENO: WARNING: Cannot find liblpak.a, libasclpak.a, nor linpack
7891 source code. Building ASCEND without integration, MINOS, and CONOPT
7892 support. To specify a specific location for the linpack library, run
7893 configure again with the argument:
7894 --with-linpack=LPAKLIB
7895 where LPAKLIB is the full path to the linpack library file." >&5
7896 echo "$as_me: WARNING: Cannot find liblpak.a, libasclpak.a, nor linpack
7897 source code. Building ASCEND without integration, MINOS, and CONOPT
7898 support. To specify a specific location for the linpack library, run
7899 configure again with the argument:
7900 --with-linpack=LPAKLIB
7901 where LPAKLIB is the full path to the linpack library file." >&2;}
7902 fi
7903 ;;
7904 *)
7905 # The user gave us --with-linkpack=LINKPACKLIB, use that
7906 # as the location of the LINKPACK library.
7907 LPAKLIB="$with_linpack"
7908 ;;
7909 esac
7910
7911
7912 # Initialize the lsod variables
7913 make_lsodlib=''
7914 HAVE_LSOD=''
7915
7916
7917 # Check whether --with-lsod or --without-lsod was given.
7918 if test "${with_lsod+set}" = set; then
7919 withval="$with_lsod"
7920
7921 else
7922 with_lsod=yes
7923 fi;
7924 case "$with_fortran$with_lsod" in
7925 no*)
7926 # Fortran is disabled; ignore this option (if present)
7927 LSODLIB=
7928 with_lsod=no
7929 ;;
7930 *no)
7931 # Fortran is enabled but the user specified --without-lsod
7932 LSODLIB=
7933 ;;
7934 *build)
7935 # Fortran is enabled and the user specified --with-lsod=build
7936 # For a search for LSOD source code and tell the Makefile
7937 # to build it; useful for testing configure.
7938 lsod_src_file="$srcdir/../../lsod/lsode.f"
7939 echo "$as_me:$LINENO: checking for lsod source file $lsod_src_file " >&5
7940 echo $ECHO_N "checking for lsod source file $lsod_src_file ... $ECHO_C" >&6
7941 if test -f $lsod_src_file ; then
7942 echo "$as_me:$LINENO: result: yes" >&5
7943 echo "${ECHO_T}yes" >&6
7944 #AWW20041119: LSODLIB="$ascpwd/ascend4/archive/libinteg.a"
7945 LSODLIB="$ascpwd/archive/libinteg.a"
7946 make_lsodlib='make-lsodlib'
7947 #AWW20041206: lsodlib_makefile="lsod/Makefile"
7948 lsodlib_makefile="lsod/Makefile:../../lsod/Makefile.in"
7949 #AWW20041206: asc_subdirs="$asc_subdirs ../lsod"
7950 asc_subdirs="$asc_subdirs lsod"
7951 HAVE_LSOD='-DSTATIC_LSOD'
7952 else
7953 echo "$as_me:$LINENO: result: no" >&5
7954 echo "${ECHO_T}no" >&6
7955 { { echo "$as_me:$LINENO: error: User specified '--with-lsod=build' but
7956 configure cannot find the lsod source file $lsod_src_file" >&5
7957 echo "$as_me: error: User specified '--with-lsod=build' but
7958 configure cannot find the lsod source file $lsod_src_file" >&2;}
7959 { (exit 1); exit 1; }; }
7960 fi
7961 ;;
7962 *yes)
7963 # Fortran in enabled and the user didn't give the --with-lsod
7964 # option or didn't give the library's location.
7965 # Search for a compiled libinteg.a; if that fails, look
7966 # for LSOD source code; if that also fails, disable LSOD
7967 # and print a warning.
7968 for ac_prog in libinteg.a libasclsod.a
7969 do
7970 # Extract the first word of "$ac_prog", so it can be a program name with args.
7971 set dummy $ac_prog; ac_word=$2
7972 echo "$as_me:$LINENO: checking for $ac_word" >&5
7973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7974 if test "${ac_cv_path_LSODLIB+set}" = set; then
7975 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 else
7977 case $LSODLIB in
7978 [\\/]* | ?:[\\/]*)
7979 ac_cv_path_LSODLIB="$LSODLIB" # Let the user override the test with a path.
7980 ;;
7981 *)
7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983 for as_dir in $asc_f77_support_dirs
7984 do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7989 ac_cv_path_LSODLIB="$as_dir/$ac_word$ac_exec_ext"
7990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7991 break 2
7992 fi
7993 done
7994 done
7995
7996 ;;
7997 esac
7998 fi
7999 LSODLIB=$ac_cv_path_LSODLIB
8000
8001 if test -n "$LSODLIB"; then
8002 echo "$as_me:$LINENO: result: $LSODLIB" >&5
8003 echo "${ECHO_T}$LSODLIB" >&6
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006 echo "${ECHO_T}no" >&6
8007 fi
8008
8009 test -n "$LSODLIB" && break
8010 done
8011
8012 lsod_src_file="$srcdir/../../lsod/lsode.f"
8013 if test -z "$LSODLIB" -a -n "$lsod_src_file" ; then
8014 echo "$as_me:$LINENO: checking for lsod source file $lsod_src_file " >&5
8015 echo $ECHO_N "checking for lsod source file $lsod_src_file ... $ECHO_C" >&6
8016 if test -f $lsod_src_file ; then
8017 echo "$as_me:$LINENO: result: yes" >&5
8018 echo "${ECHO_T}yes" >&6
8019 #AWW20041119: LSODLIB="$ascpwd/ascend4/archive/libinteg.a"
8020 LSODLIB="$ascpwd/archive/libinteg.a"
8021 make_lsodlib='make-lsodlib'
8022 #AWW20041206: lsodlib_makefile="lsod/Makefile"
8023 lsodlib_makefile="lsod/Makefile:../../lsod/Makefile.in"
8024 #AWW20041206: asc_subdirs="$asc_subdirs ../lsod"
8025 asc_subdirs="$asc_subdirs lsod"
8026 else
8027 echo "$as_me:$LINENO: result: no" >&5
8028 echo "${ECHO_T}no" >&6
8029 fi
8030 fi
8031 if test -z "$LSODLIB" ; then
8032 with_lsod=no
8033 { echo "$as_me:$LINENO: WARNING: Cannot find libinteg.a nor the lsod
8034 source code. Building ASCEND without integration
8035 support. To specify a specific location for the lsod library, run
8036 configure again with the argument:
8037 --with-lsod=LSODLIB
8038 where LSODLIB is the full path to the lsod integration library file." >&5
8039 echo "$as_me: WARNING: Cannot find libinteg.a nor the lsod
8040 source code. Building ASCEND without integration
8041 support. To specify a specific location for the lsod library, run
8042 configure again with the argument:
8043 --with-lsod=LSODLIB
8044 where LSODLIB is the full path to the lsod integration library file." >&2;}
8045 else
8046 HAVE_LSOD='-DSTATIC_LSOD'
8047 fi
8048 ;;
8049 *)
8050 # The user gave us --with-lsod=LSODLIB, use that as the
8051 # location of the LSOD library and define -DSTATIC_LSOD.
8052 LSODLIB="$with_lsod"
8053 HAVE_LSOD='-DSTATIC_LSOD'
8054 ;;
8055 esac
8056
8057
8058 #--------------------------------------------------------------------
8059 # Other trees which may or may not be present. If present,
8060 # generate the Makefiles in the tree unless the user passes in
8061 # a --without-<package> argument.
8062 #
8063 # Valid <package> values are: TK, models, help
8064 #
8065 # We could have `configure' do this for us via
8066 # AC_CONFIG_SUBDIRS, but `configure' scripts in the trees can
8067 # only be one directory removed from this configure script.
8068 # For example, it would be nice to have `models' under
8069 # `ascend4', but `configure' doesn't like `ascend4/models' as
8070 # an argument to AC_CONFIG_SUBDIRS.
8071 #
8072 # To get around this problem, we do things by hand. :-)
8073 #
8074 # If the user gives a --without-<package> argument, we have
8075 # nothing to do for that package.
8076 #
8077 # Otherwise,
8078 # * Set `subdir_file_exists' to a file that should exist in the
8079 # subtree---this is how we know that the subtree is really
8080 # there.
8081 # * Set `subdir_locations' to the list of locations, relative
8082 # to this configure script, where the subtree may live.
8083 # * Set `subdir_output' to the list of makefiles to generate;
8084 # the variable `subdir_root' in this list will be replaced
8085 # with the correct value from `subdir_locations'.
8086 #
8087 # To see which (if any) of the values in `subdir_locations' is
8088 # the correct one, we set `subdir_root' to each value in
8089 # `subdir_locations' and check for the existence of
8090 # $fullpathsrcdir/$subdir_root/$subdir_file_exists, where
8091 # $fullpathsrcdir is the full path to the source directory. If
8092 # that file exists, we
8093 # * Set <package>_dir_root to ../$subdir_root. The "../" is
8094 #AWW20041208:# needed since this value is used in the `ascend4' directory
8095 # needed since this value is used in the `generic' directory
8096 #AWW20041208:# and $subdir_root is relative to the parent of `ascend4'.
8097 # and $subdir_root is relative to the parent of `generic'.
8098 # * Substitute the value of $subdir_root into `subdir_output'
8099 # and set the result to <package>_makefiles: the list of
8100 # Makefiles for configure to generate.
8101 # * Each package needs to be able to find its way back to
8102 # ascend4/ConfigAscend; it needs to go back up the tree
8103 # however many levels deep it is---i.e., `foo/bar/baz' should
8104 # become `../../..' and this does it: sed 's,[^/][^/]*,..,g'
8105 # but we need to quote the [] from m4, so we get this bizarre
8106 # thing: sed 's,[[^/][^/]]*,..,g' Set <package>_topbuilddir
8107 # to this result.
8108 # * Exit the loop.
8109 #--------------------------------------------------------------------
8110
8111 # Initialize variables
8112 tkdir_root=''
8113 tkdir_topbuilddir=''
8114
8115
8116 # Check whether --with-tkdir or --without-tkdir was given.
8117 if test "${with_tkdir+set}" = set; then
8118 withval="$with_tkdir"
8119
8120 else
8121 with_tkdir=yes
8122 fi;
8123 if test ! "X$with_tkdir" = "Xno" ; then
8124 subdir_file_exists='AscendRC'
8125 #AWW20041117: FIXME next line
8126 #AWW20041206: subdir_locations='ascend4/TK'
8127 subdir_target="TK"
8128 subdir_locations='../../tcltk/TK'
8129 subdir_output='
8130 $subdir_target/Makefile:$subdir_root/Makefile.in
8131 $subdir_target/Makefile.Rules:$subdir_root/Makefile.Rules.in
8132 $subdir_target/bitmaps/Makefile:$subdir_root/bitmaps/Makefile.in
8133 $subdir_target/templates/Makefile:$subdir_root/templates/Makefile.in
8134 '
8135 for subdir_root in $subdir_locations ; do
8136 if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then
8137 #AWW20041208: tkdir_root="../$subdir_root"
8138 tkdir_root=$subdir_target
8139 tkdir_makefiles=`eval echo $subdir_output`
8140 tkdir_topbuilddir="$fullpathsrcdir/../../tcltk/TK"
8141 break
8142 fi
8143 done
8144 fi
8145
8146 # Initialize variables
8147 models_dir_root=''
8148 models_topbuilddir=''
8149
8150
8151 # Check whether --with-models or --without-models was given.
8152 if test "${with_models+set}" = set; then
8153 withval="$with_models"
8154
8155 else
8156 with_models=yes
8157 fi;
8158 if test ! "X$with_models" = "Xno" ; then
8159 subdir_file_exists='system.a4l'
8160 #AWW20041117: FIXME next line
8161 #AWW20041206: subdir_locations='models ascend4/models'
8162 subdir_target="models"
8163 subdir_locations='models ../../models'
8164 subdir_output='
8165 $subdir_target/Makefile:$subdir_root/Makefile.in
8166 $subdir_target/Makefile.Rules:$subdir_root/Makefile.Rules.in
8167 $subdir_target/ben/Makefile:$subdir_root/ben/Makefile.in
8168 $subdir_target/johnpye/Makefile:$subdir_root/johnpye/Makefile.in
8169 '
8170 ## $subdir_root/examples/Makefile
8171 ## $subdir_root/examples/abbott/Makefile
8172 ## $subdir_root/examples/flexible_design/Makefile
8173 ## $subdir_root/libraries/Makefile
8174 ## $subdir_root/libraries/abbott/Makefile
8175 ## $subdir_root/pending/Makefile
8176 ## $subdir_root/pending/examples/Makefile
8177 ## $subdir_root/pending/libraries/Makefile
8178 for subdir_root in $subdir_locations ; do
8179 if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then
8180 #AWW20041208: models_dir_root="../$subdir_root"
8181 models_dir_root="$subdir_target"
8182 models_makefiles=`eval echo $subdir_output`
8183 models_topbuilddir="$fullpathsrcdir/../../models"
8184 break
8185 fi
8186 done
8187 fi
8188
8189
8190 # Check whether --with-quiet or --without-quiet was given.
8191 if test "${with_quiet+set}" = set; then
8192 withval="$with_quiet"
8193
8194 else
8195 with_quiet=no
8196 fi;
8197 if test ! "X$with_quiet" = "Xno" ; then
8198 QUIET_INSTALL=1
8199 else
8200 QUIET_INSTALL=0
8201 fi
8202
8203
8204 # Initialize variables
8205 help_dir_root=''
8206 help_topbuilddir=''
8207
8208
8209 #-----------------------------------------------
8210 # DYNAMIC_LINKING or STATIC_LINKING ?
8211
8212 echo "$as_me:$LINENO: checking for package linking" >&5
8213 echo $ECHO_N "checking for package linking... $ECHO_C" >&6
8214
8215 # Check whether --enable-dynamic-linking or --disable-dynamic-linking was given.
8216 if test "${enable_dynamic_linking+set}" = set; then
8217 enableval="$enable_dynamic_linking"
8218 if test $enableval; then
8219 dynlinking=1
8220 else
8221 dynlinking=0
8222 fi
8223
8224 else
8225 dynlinking="_def"
8226
8227 fi;
8228
8229 if test "X$dynlinking" = "X_def"; then
8230 case $host in
8231 *-*-cygwin* | *-*-mingw* | *linux* ) dynlinking=1;;
8232 *) dynlinking=0;;
8233 esac
8234 fi
8235
8236 if test "X$dynlinking" = "X1"; then
8237 echo "$as_me:$LINENO: result: DYNAMIC" >&5
8238 echo "${ECHO_T}DYNAMIC" >&6
8239 cat >>confdefs.h <<\_ACEOF
8240 #define DYNAMIC_PACKAGES 1
8241 _ACEOF
8242
8243 else
8244 echo "$as_me:$LINENO: result: STATIC" >&5
8245 echo "${ECHO_T}STATIC" >&6
8246 cat >>confdefs.h <<\_ACEOF
8247 #define STATIC_PACKAGES 1
8248 _ACEOF
8249
8250 fi
8251
8252 #-----------------------------------------------
8253 # DEBUG_RELS or not?
8254
8255 echo "$as_me:$LINENO: checking for relation debugging" >&5
8256 echo $ECHO_N "checking for relation debugging... $ECHO_C" >&6
8257
8258 # Check whether --enable-relation-debugging or --disable-relation-debugging was given.
8259 if test "${enable_relation_debugging+set}" = set; then
8260 enableval="$enable_relation_debugging"
8261 if test $enableval; then
8262 debugrels=1
8263 else
8264 debugrels=0
8265 fi
8266
8267 else
8268 debugrels=0
8269
8270 fi;
8271
8272 if test "X$debugrels" = "X1"; then
8273 echo "$as_me:$LINENO: result: YES" >&5
8274 echo "${ECHO_T}YES" >&6
8275 cat >>confdefs.h <<\_ACEOF
8276 #define DEBUG_RELS 1
8277 _ACEOF
8278
8279 else
8280 echo "$as_me:$LINENO: result: no" >&5
8281 echo "${ECHO_T}no" >&6
8282 fi
8283
8284 #-----------------------------------------------
8285 # TIME the compiler?
8286
8287 echo "$as_me:$LINENO: checking whether to time the compiler" >&5
8288 echo $ECHO_N "checking whether to time the compiler... $ECHO_C" >&6
8289
8290 # Check whether --enable-compiler-timing or --disable-compiler-timing was given.
8291 if test "${enable_compiler_timing+set}" = set; then
8292 enableval="$enable_compiler_timing"
8293 if test $enableval; then
8294 timecompiler=1
8295 else
8296 timecompiler=0
8297 fi
8298
8299 else
8300 timecompiler=0
8301
8302 fi;
8303
8304 if test "X$timecompiler" = "X1"; then
8305 echo "$as_me:$LINENO: result: YES" >&5
8306 echo "${ECHO_T}YES" >&6
8307 cat >>confdefs.h <<\_ACEOF
8308 #define TIMECOMPILER 1
8309 _ACEOF
8310
8311 else
8312 echo "$as_me:$LINENO: result: no" >&5
8313 echo "${ECHO_T}no" >&6
8314 fi
8315
8316 ASC_DISTDIR_REL_BIN=".."
8317 # Next we determine whether models and TK get installed in
8318 # prefix or datadir. If datadir not explicitly given, we
8319 # use prefix.
8320 if test "x$datadir" = 'x${prefix}/share'; then
8321 INSTALL_SHARE="$prefix"
8322 else
8323 INSTALL_SHARE="$datadir"
8324 fi
8325 DEFAULT_ASCENDLIBRARY="$INSTALL_SHARE/models"
8326 ASCEND_DEFAULTLIBRARY="$INSTALL_SHARE/models"
8327 ASC_ENV_TK_DEFAULT="$INSTALL_SHARE/TK"
8328
8329
8330 #--------------------------------------------------------------------
8331 # The variables we substitute into the Makefile.in files
8332 # and the command to actually generate the Makefiles
8333 #--------------------------------------------------------------------
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380 #AWW20041113: AC_SUBST(OPTSQPLIB)
8381 #AWW20041113: AC_SUBST(make_rsqplib)
8382 #AWW20041113: AC_SUBST(HAVE_OPTSQP)
8383 #AWW20041113: dnl AC_SUBST(HARWELLLIB)
8384 #AWW20041113: dnl AC_SUBST(make_harwelllib)
8385 #AWW20041113: dnl AC_SUBST(HAVE_HARWELL)
8386 #AWW20041113: AC_SUBST(MINOSLIB)
8387 #AWW20041113: AC_SUBST(make_minoslib)
8388 #AWW20041113: AC_SUBST(HAVE_MINOS)
8389 #AWW20041113: AC_SUBST(CONOPTLIB)
8390 #AWW20041113: AC_SUBST(make_conoptlib)
8391 #AWW20041113: AC_SUBST(HAVE_CONOPT)
8392
8393
8394
8395
8396
8397
8398
8399 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:../../tcltk/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 utilities/config.h:../../base/generic/utilities/config.h.in ../../jam/Jamrules ../../tcltk/generic/Jamrules_tcltk $tkdir_makefiles $models_makefiles $help_makefiles $blaslib_makefile $lpaklib_makefile $lsodlib_makefile"
8400
8401
8402 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8403 # Let make expand exec_prefix.
8404 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8405
8406 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8407 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8408 # trailing colons and then remove the whole line if VPATH becomes empty
8409 # (actually we leave an empty line to preserve line numbers).
8410 if test "x$srcdir" = x.; then
8411 ac_vpsub='/^[ ]*VPATH[ ]*=/{
8412 s/:*\$(srcdir):*/:/;
8413 s/:*\${srcdir}:*/:/;
8414 s/:*@srcdir@:*/:/;
8415 s/^\([^=]*=[ ]*\):*/\1/;
8416 s/:*$//;
8417 s/^[^=]*=[ ]*$//;
8418 }'
8419 fi
8420
8421 # Transform confdefs.h into DEFS.
8422 # Protect against shell expansion while executing Makefile rules.
8423 # Protect against Makefile macro expansion.
8424 #
8425 # If the first sed substitution is executed (which looks for macros that
8426 # take arguments), then we branch to the quote section. Otherwise,
8427 # look for a macro that doesn't take arguments.
8428 cat >confdef2opt.sed <<\_ACEOF
8429 t clear
8430 : clear
8431 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
8432 t quote
8433 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
8434 t quote
8435 d
8436 : quote
8437 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
8438 s,\[,\\&,g
8439 s,\],\\&,g
8440 s,\$,$$,g
8441 p
8442 _ACEOF
8443 # We use echo to avoid assuming a particular line-breaking character.
8444 # The extra dot is to prevent the shell from consuming trailing
8445 # line-breaks from the sub-command output. A line-break within
8446 # single-quotes doesn't work because, if this script is created in a
8447 # platform that uses two characters for line-breaks (e.g., DOS), tr
8448 # would break.
8449 ac_LF_and_DOT=`echo; echo .`
8450 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
8451 rm -f confdef2opt.sed
8452
8453
8454 ac_libobjs=
8455 ac_ltlibobjs=
8456 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8457 # 1. Remove the extension, and $U if already installed.
8458 ac_i=`echo "$ac_i" |
8459 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8460 # 2. Add them.
8461 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8462 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8463 done
8464 LIBOBJS=$ac_libobjs
8465
8466 LTLIBOBJS=$ac_ltlibobjs
8467
8468
8469
8470 : ${CONFIG_STATUS=./config.status}
8471 ac_clean_files_save=$ac_clean_files
8472 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8473 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8474 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8475 cat >$CONFIG_STATUS <<_ACEOF
8476 #! $SHELL
8477 # Generated by $as_me.
8478 # Run this file to recreate the current configuration.
8479 # Compiler output produced by configure, useful for debugging
8480 # configure, is in config.log if it exists.
8481
8482 debug=false
8483 ac_cs_recheck=false
8484 ac_cs_silent=false
8485 SHELL=\${CONFIG_SHELL-$SHELL}
8486 _ACEOF
8487
8488 cat >>$CONFIG_STATUS <<\_ACEOF
8489 ## --------------------- ##
8490 ## M4sh Initialization. ##
8491 ## --------------------- ##
8492
8493 # Be Bourne compatible
8494 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8495 emulate sh
8496 NULLCMD=:
8497 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8498 # is contrary to our usage. Disable this feature.
8499 alias -g '${1+"$@"}'='"$@"'
8500 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8501 set -o posix
8502 fi
8503
8504 # Support unset when possible.
8505 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8506 as_unset=unset
8507 else
8508 as_unset=false
8509 fi
8510
8511
8512 # Work around bugs in pre-3.0 UWIN ksh.
8513 $as_unset ENV MAIL MAILPATH
8514 PS1='$ '
8515 PS2='> '
8516 PS4='+ '
8517
8518 # NLS nuisances.
8519 for as_var in \
8520 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8521 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8522 LC_TELEPHONE LC_TIME
8523 do
8524 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8525 eval $as_var=C; export $as_var
8526 else
8527 $as_unset $as_var
8528 fi
8529 done
8530
8531 # Required to use basename.
8532 if expr a : '\(a\)' >/dev/null 2>&1; then
8533 as_expr=expr
8534 else
8535 as_expr=false
8536 fi
8537
8538 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8539 as_basename=basename
8540 else
8541 as_basename=false
8542 fi
8543
8544
8545 # Name of the executable.
8546 as_me=`$as_basename "$0" ||
8547 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8548 X"$0" : 'X\(//\)$' \| \
8549 X"$0" : 'X\(/\)$' \| \
8550 . : '\(.\)' 2>/dev/null ||
8551 echo X/"$0" |
8552 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8553 /^X\/\(\/\/\)$/{ s//\1/; q; }
8554 /^X\/\(\/\).*/{ s//\1/; q; }
8555 s/.*/./; q'`
8556
8557
8558 # PATH needs CR, and LINENO needs CR and PATH.
8559 # Avoid depending upon Character Ranges.
8560 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8561 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8562 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8563 as_cr_digits='0123456789'
8564 as_cr_alnum=$as_cr_Letters$as_cr_digits
8565
8566 # The user is always right.
8567 if test "${PATH_SEPARATOR+set}" != set; then
8568 echo "#! /bin/sh" >conf$$.sh
8569 echo "exit 0" >>conf$$.sh
8570 chmod +x conf$$.sh
8571 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8572 PATH_SEPARATOR=';'
8573 else
8574 PATH_SEPARATOR=:
8575 fi
8576 rm -f conf$$.sh
8577 fi
8578
8579
8580 as_lineno_1=$LINENO
8581 as_lineno_2=$LINENO
8582 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8583 test "x$as_lineno_1" != "x$as_lineno_2" &&
8584 test "x$as_lineno_3" = "x$as_lineno_2" || {
8585 # Find who we are. Look in the path if we contain no path at all
8586 # relative or not.
8587 case $0 in
8588 *[\\/]* ) as_myself=$0 ;;
8589 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in $PATH
8591 do
8592 IFS=$as_save_IFS
8593 test -z "$as_dir" && as_dir=.
8594 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8595 done
8596
8597 ;;
8598 esac
8599 # We did not find ourselves, most probably we were run as `sh COMMAND'
8600 # in which case we are not to be found in the path.
8601 if test "x$as_myself" = x; then
8602 as_myself=$0
8603 fi
8604 if test ! -f "$as_myself"; then
8605 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8606 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8607 { (exit 1); exit 1; }; }
8608 fi
8609 case $CONFIG_SHELL in
8610 '')
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8613 do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
8616 for as_base in sh bash ksh sh5; do
8617 case $as_dir in
8618 /*)
8619 if ("$as_dir/$as_base" -c '
8620 as_lineno_1=$LINENO
8621 as_lineno_2=$LINENO
8622 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8623 test "x$as_lineno_1" != "x$as_lineno_2" &&
8624 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8625 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8626 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8627 CONFIG_SHELL=$as_dir/$as_base
8628 export CONFIG_SHELL
8629 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8630 fi;;
8631 esac
8632 done
8633 done
8634 ;;
8635 esac
8636
8637 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8638 # uniformly replaced by the line number. The first 'sed' inserts a
8639 # line-number line before each line; the second 'sed' does the real
8640 # work. The second script uses 'N' to pair each line-number line
8641 # with the numbered line, and appends trailing '-' during
8642 # substitution so that $LINENO is not a special case at line end.
8643 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8644 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8645 sed '=' <$as_myself |
8646 sed '
8647 N
8648 s,$,-,
8649 : loop
8650 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8651 t loop
8652 s,-$,,
8653 s,^['$as_cr_digits']*\n,,
8654 ' >$as_me.lineno &&
8655 chmod +x $as_me.lineno ||
8656 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8657 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8658 { (exit 1); exit 1; }; }
8659
8660 # Don't try to exec as it changes $[0], causing all sort of problems
8661 # (the dirname of $[0] is not the place where we might find the
8662 # original and so on. Autoconf is especially sensible to this).
8663 . ./$as_me.lineno
8664 # Exit status is that of the last command.
8665 exit
8666 }
8667
8668
8669 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8670 *c*,-n*) ECHO_N= ECHO_C='
8671 ' ECHO_T=' ' ;;
8672 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8673 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8674 esac
8675
8676 if expr a : '\(a\)' >/dev/null 2>&1; then
8677 as_expr=expr
8678 else
8679 as_expr=false
8680 fi
8681
8682 rm -f conf$$ conf$$.exe conf$$.file
8683 echo >conf$$.file
8684 if ln -s conf$$.file conf$$ 2>/dev/null; then
8685 # We could just check for DJGPP; but this test a) works b) is more generic
8686 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8687 if test -f conf$$.exe; then
8688 # Don't use ln at all; we don't have any links
8689 as_ln_s='cp -p'
8690 else
8691 as_ln_s='ln -s'
8692 fi
8693 elif ln conf$$.file conf$$ 2>/dev/null; then
8694 as_ln_s=ln
8695 else
8696 as_ln_s='cp -p'
8697 fi
8698 rm -f conf$$ conf$$.exe conf$$.file
8699
8700 if mkdir -p . 2>/dev/null; then
8701 as_mkdir_p=:
8702 else
8703 as_mkdir_p=false
8704 fi
8705
8706 as_executable_p="test -f"
8707
8708 # Sed expression to map a string onto a valid CPP name.
8709 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8710
8711 # Sed expression to map a string onto a valid variable name.
8712 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8713
8714
8715 # IFS
8716 # We need space, tab and new line, in precisely that order.
8717 as_nl='
8718 '
8719 IFS=" $as_nl"
8720
8721 # CDPATH.
8722 $as_unset CDPATH
8723
8724 exec 6>&1
8725
8726 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8727 # report actual input values of CONFIG_FILES etc. instead of their
8728 # values after options handling. Logging --version etc. is OK.
8729 exec 5>>config.log
8730 {
8731 echo
8732 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8733 ## Running $as_me. ##
8734 _ASBOX
8735 } >&5
8736 cat >&5 <<_CSEOF
8737
8738 This file was extended by $as_me, which was
8739 generated by GNU Autoconf 2.57. Invocation command line was
8740
8741 CONFIG_FILES = $CONFIG_FILES
8742 CONFIG_HEADERS = $CONFIG_HEADERS
8743 CONFIG_LINKS = $CONFIG_LINKS
8744 CONFIG_COMMANDS = $CONFIG_COMMANDS
8745 $ $0 $@
8746
8747 _CSEOF
8748 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8749 echo >&5
8750 _ACEOF
8751
8752 # Files that config.status was made for.
8753 if test -n "$ac_config_files"; then
8754 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8755 fi
8756
8757 if test -n "$ac_config_headers"; then
8758 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8759 fi
8760
8761 if test -n "$ac_config_links"; then
8762 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8763 fi
8764
8765 if test -n "$ac_config_commands"; then
8766 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8767 fi
8768
8769 cat >>$CONFIG_STATUS <<\_ACEOF
8770
8771 ac_cs_usage="\
8772 \`$as_me' instantiates files from templates according to the
8773 current configuration.
8774
8775 Usage: $0 [OPTIONS] [FILE]...
8776
8777 -h, --help print this help, then exit
8778 -V, --version print version number, then exit
8779 -q, --quiet do not print progress messages
8780 -d, --debug don't remove temporary files
8781 --recheck update $as_me by reconfiguring in the same conditions
8782 --file=FILE[:TEMPLATE]
8783 instantiate the configuration file FILE
8784
8785 Configuration files:
8786 $config_files
8787
8788 Report bugs to <bug-autoconf@gnu.org>."
8789 _ACEOF
8790
8791 cat >>$CONFIG_STATUS <<_ACEOF
8792 ac_cs_version="\\
8793 config.status
8794 configured by $0, generated by GNU Autoconf 2.57,
8795 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8796
8797 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8798 Free Software Foundation, Inc.
8799 This config.status script is free software; the Free Software Foundation
8800 gives unlimited permission to copy, distribute and modify it."
8801 srcdir=$srcdir
8802 INSTALL="$INSTALL"
8803 _ACEOF
8804
8805 cat >>$CONFIG_STATUS <<\_ACEOF
8806 # If no file are specified by the user, then we need to provide default
8807 # value. By we need to know if files were specified by the user.
8808 ac_need_defaults=:
8809 while test $# != 0
8810 do
8811 case $1 in
8812 --*=*)
8813 ac_option=`expr "x$1" : 'x\([^=]*\)='`
8814 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8815 ac_shift=:
8816 ;;
8817 -*)
8818 ac_option=$1
8819 ac_optarg=$2
8820 ac_shift=shift
8821 ;;
8822 *) # This is not an option, so the user has probably given explicit
8823 # arguments.
8824 ac_option=$1
8825 ac_need_defaults=false;;
8826 esac
8827
8828 case $ac_option in
8829 # Handling of the options.
8830 _ACEOF
8831 cat >>$CONFIG_STATUS <<\_ACEOF
8832 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8833 ac_cs_recheck=: ;;
8834 --version | --vers* | -V )
8835 echo "$ac_cs_version"; exit 0 ;;
8836 --he | --h)
8837 # Conflict between --help and --header
8838 { { echo "$as_me:$LINENO: error: ambiguous option: $1
8839 Try \`$0 --help' for more information." >&5
8840 echo "$as_me: error: ambiguous option: $1
8841 Try \`$0 --help' for more information." >&2;}
8842 { (exit 1); exit 1; }; };;
8843 --help | --hel | -h )
8844 echo "$ac_cs_usage"; exit 0 ;;
8845 --debug | --d* | -d )
8846 debug=: ;;
8847 --file | --fil | --fi | --f )
8848 $ac_shift
8849 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8850 ac_need_defaults=false;;
8851 --header | --heade | --head | --hea )
8852 $ac_shift
8853 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8854 ac_need_defaults=false;;
8855 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8856 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8857 ac_cs_silent=: ;;
8858
8859 # This is an error.
8860 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8861 Try \`$0 --help' for more information." >&5
8862 echo "$as_me: error: unrecognized option: $1
8863 Try \`$0 --help' for more information." >&2;}
8864 { (exit 1); exit 1; }; } ;;
8865
8866 *) ac_config_targets="$ac_config_targets $1" ;;
8867
8868 esac
8869 shift
8870 done
8871
8872 ac_configure_extra_args=
8873
8874 if $ac_cs_silent; then
8875 exec 6>/dev/null
8876 ac_configure_extra_args="$ac_configure_extra_args --silent"
8877 fi
8878
8879 _ACEOF
8880 cat >>$CONFIG_STATUS <<_ACEOF
8881 if \$ac_cs_recheck; then
8882 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8883 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8884 fi
8885
8886 _ACEOF
8887
8888
8889
8890
8891
8892 cat >>$CONFIG_STATUS <<\_ACEOF
8893 for ac_config_target in $ac_config_targets
8894 do
8895 case "$ac_config_target" in
8896 # Handling of arguments.
8897 "ConfigAscend" ) CONFIG_FILES="$CONFIG_FILES ConfigAscend:../../base/generic/ConfigAscend.in" ;;
8898 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:../../base/generic/Makefile.in" ;;
8899 "bin/ascend4.sh" ) CONFIG_FILES="$CONFIG_FILES bin/ascend4.sh:../../base/generic/bin/ascend4.sh.in" ;;
8900 "Makefile.Rules" ) CONFIG_FILES="$CONFIG_FILES Makefile.Rules:../../base/generic/Makefile.Rules.in" ;;
8901 "archive/Makefile" ) CONFIG_FILES="$CONFIG_FILES archive/Makefile:../../base/generic/archive/Makefile.in" ;;
8902 "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile:../../base/generic/bin/Makefile.in" ;;
8903 "compiler/Makefile" ) CONFIG_FILES="$CONFIG_FILES compiler/Makefile:../../base/generic/compiler/Makefile.in" ;;
8904 "general/Makefile" ) CONFIG_FILES="$CONFIG_FILES general/Makefile:../../base/generic/general/Makefile.in" ;;
8905 "interface/Makefile" ) CONFIG_FILES="$CONFIG_FILES interface/Makefile:../../tcltk/generic/interface/Makefile.in" ;;
8906 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile:../../base/generic/lib/Makefile.in" ;;
8907 "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile:../../base/generic/packages/Makefile.in" ;;
8908 "solver/Makefile" ) CONFIG_FILES="$CONFIG_FILES solver/Makefile:../../base/generic/solver/Makefile.in" ;;
8909 "utilities/Makefile" ) CONFIG_FILES="$CONFIG_FILES utilities/Makefile:../../base/generic/utilities/Makefile.in" ;;
8910 "utilities/config.h" ) CONFIG_FILES="$CONFIG_FILES utilities/config.h:../../base/generic/utilities/config.h.in" ;;
8911 "../../jam/Jamrules" ) CONFIG_FILES="$CONFIG_FILES ../../jam/Jamrules" ;;
8912 "../../tcltk/generic/Jamrules_tcltk" ) CONFIG_FILES="$CONFIG_FILES ../../tcltk/generic/Jamrules_tcltk" ;;
8913 "$tkdir_makefiles" ) CONFIG_FILES="$CONFIG_FILES $tkdir_makefiles" ;;
8914 "$models_makefiles" ) CONFIG_FILES="$CONFIG_FILES $models_makefiles" ;;
8915 "$help_makefiles" ) CONFIG_FILES="$CONFIG_FILES $help_makefiles" ;;
8916 "$blaslib_makefile" ) CONFIG_FILES="$CONFIG_FILES $blaslib_makefile" ;;
8917 "$lpaklib_makefile" ) CONFIG_FILES="$CONFIG_FILES $lpaklib_makefile" ;;
8918 "$lsodlib_makefile" ) CONFIG_FILES="$CONFIG_FILES $lsodlib_makefile" ;;
8919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8920 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8921 { (exit 1); exit 1; }; };;
8922 esac
8923 done
8924
8925 # If the user did not use the arguments to specify the items to instantiate,
8926 # then the envvar interface is used. Set only those that are not.
8927 # We use the long form for the default assignment because of an extremely
8928 # bizarre bug on SunOS 4.1.3.
8929 if $ac_need_defaults; then
8930 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8931 fi
8932
8933 # Have a temporary directory for convenience. Make it in the build tree
8934 # simply because there is no reason to put it here, and in addition,
8935 # creating and moving files from /tmp can sometimes cause problems.
8936 # Create a temporary directory, and hook for its removal unless debugging.
8937 $debug ||
8938 {
8939 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8940 trap '{ (exit 1); exit 1; }' 1 2 13 15
8941 }
8942
8943 # Create a (secure) tmp directory for tmp files.
8944
8945 {
8946 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8947 test -n "$tmp" && test -d "$tmp"
8948 } ||
8949 {
8950 tmp=./confstat$$-$RANDOM
8951 (umask 077 && mkdir $tmp)
8952 } ||
8953 {
8954 echo "$me: cannot create a temporary directory in ." >&2
8955 { (exit 1); exit 1; }
8956 }
8957
8958 _ACEOF
8959
8960 cat >>$CONFIG_STATUS <<_ACEOF
8961
8962 #
8963 # CONFIG_FILES section.
8964 #
8965
8966 # No need to generate the scripts if there are no CONFIG_FILES.
8967 # This happens for instance when ./config.status config.h
8968 if test -n "\$CONFIG_FILES"; then
8969 # Protect against being on the right side of a sed subst in config.status.
8970 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8971 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8972 s,@SHELL@,$SHELL,;t t
8973 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8974 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8975 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8976 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8977 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8978 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8979 s,@exec_prefix@,$exec_prefix,;t t
8980 s,@prefix@,$prefix,;t t
8981 s,@program_transform_name@,$program_transform_name,;t t
8982 s,@bindir@,$bindir,;t t
8983 s,@sbindir@,$sbindir,;t t
8984 s,@libexecdir@,$libexecdir,;t t
8985 s,@datadir@,$datadir,;t t
8986 s,@sysconfdir@,$sysconfdir,;t t
8987 s,@sharedstatedir@,$sharedstatedir,;t t
8988 s,@localstatedir@,$localstatedir,;t t
8989 s,@libdir@,$libdir,;t t
8990 s,@includedir@,$includedir,;t t
8991 s,@oldincludedir@,$oldincludedir,;t t
8992 s,@infodir@,$infodir,;t t
8993 s,@mandir@,$mandir,;t t
8994 s,@build_alias@,$build_alias,;t t
8995 s,@host_alias@,$host_alias,;t t
8996 s,@target_alias@,$target_alias,;t t
8997 s,@DEFS@,$DEFS,;t t
8998 s,@ECHO_C@,$ECHO_C,;t t
8999 s,@ECHO_N@,$ECHO_N,;t t
9000 s,@ECHO_T@,$ECHO_T,;t t
9001 s,@LIBS@,$LIBS,;t t
9002 s,@RANLIB@,$RANLIB,;t t
9003 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9004 s,@LN_S@,$LN_S,;t t
9005 s,@SET_MAKE@,$SET_MAKE,;t t
9006 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9007 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9008 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9009 s,@build@,$build,;t t
9010 s,@build_cpu@,$build_cpu,;t t
9011 s,@build_vendor@,$build_vendor,;t t
9012 s,@build_os@,$build_os,;t t
9013 s,@host@,$host,;t t
9014 s,@host_cpu@,$host_cpu,;t t
9015 s,@host_vendor@,$host_vendor,;t t
9016 s,@host_os@,$host_os,;t t
9017 s,@CC@,$CC,;t t
9018 s,@CFLAGS@,$CFLAGS,;t t
9019 s,@LDFLAGS@,$LDFLAGS,;t t
9020 s,@CPPFLAGS@,$CPPFLAGS,;t t
9021 s,@ac_ct_CC@,$ac_ct_CC,;t t
9022 s,@EXEEXT@,$EXEEXT,;t t
9023 s,@OBJEXT@,$OBJEXT,;t t
9024 s,@CPP@,$CPP,;t t
9025 s,@DEBUG_LIBS@,$DEBUG_LIBS,;t t
9026 s,@EGREP@,$EGREP,;t t
9027 s,@YACC@,$YACC,;t t
9028 s,@parser_src@,$parser_src,;t t
9029 s,@LEX@,$LEX,;t t
9030 s,@LEXLIB@,$LEXLIB,;t t
9031 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9032 s,@LIBOBJS@,$LIBOBJS,;t t
9033 s,@TCLINCLUDE@,$TCLINCLUDE,;t t
9034 s,@NOTCLCONFIG@,$NOTCLCONFIG,;t t
9035 s,@TCLCONFIG@,$TCLCONFIG,;t t
9036 s,@TCLLIB@,$TCLLIB,;t t
9037 s,@TCLDYNAMICLINKING@,$TCLDYNAMICLINKING,;t t
9038 s,@TKINCLUDE@,$TKINCLUDE,;t t
9039 s,@TKLIB@,$TKLIB,;t t
9040 s,@TKDYNAMICLINKING@,$TKDYNAMICLINKING,;t t
9041 s,@F77@,$F77,;t t
9042 s,@BLASLIB@,$BLASLIB,;t t
9043 s,@LPAKLIB@,$LPAKLIB,;t t
9044 s,@LSODLIB@,$LSODLIB,;t t
9045 s,@QUIET_INSTALL@,$QUIET_INSTALL,;t t
9046 s,@DEFAULT_ASCENDLIBRARY@,$DEFAULT_ASCENDLIBRARY,;t t
9047 s,@ASCEND_DEFAULTLIBRARY@,$ASCEND_DEFAULTLIBRARY,;t t
9048 s,@ascpwd@,$ascpwd,;t t
9049 s,@fullpathsrcdir@,$fullpathsrcdir,;t t
9050 s,@asc_include@,$asc_include,;t t
9051 s,@scanner_src@,$scanner_src,;t t
9052 s,@typer_src@,$typer_src,;t t
9053 s,@MATH_LIBS@,$MATH_LIBS,;t t
9054 s,@X11_INCLUDES@,$X11_INCLUDES,;t t
9055 s,@X11_LIBRARIES@,$X11_LIBRARIES,;t t
9056 s,@X11_RUN_PATH@,$X11_RUN_PATH,;t t
9057 s,@X11_EXTRA_LIBS@,$X11_EXTRA_LIBS,;t t
9058 s,@DL_LIBS@,$DL_LIBS,;t t
9059 s,@LD_FLAGS@,$LD_FLAGS,;t t
9060 s,@LD_SEARCH_FLAGS@,$LD_SEARCH_FLAGS,;t t
9061 s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
9062 s,@SHLIB_LD@,$SHLIB_LD,;t t
9063 s,@SHLIB_LD_LIBS@,$SHLIB_LD_LIBS,;t t
9064 s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
9065 s,@ASC_LIB_SUFFIX@,$ASC_LIB_SUFFIX,;t t
9066 s,@TK_LIB@,$TK_LIB,;t t
9067 s,@TK_HDR@,$TK_HDR,;t t
9068 s,@TKTABLE_LIB@,$TKTABLE_LIB,;t t
9069 s,@ASC_TK_LIBRARY@,$ASC_TK_LIBRARY,;t t
9070 s,@ASC_TCL_LIBRARY@,$ASC_TCL_LIBRARY,;t t
9071 s,@ASC_DISTDIR_REL_BIN@,$ASC_DISTDIR_REL_BIN,;t t
9072 s,@INSTALL_SHARE@,$INSTALL_SHARE,;t t
9073 s,@ASC_ENV_TK_DEFAULT@,$ASC_ENV_TK_DEFAULT,;t t
9074 s,@TK_LD_HACK@,$TK_LD_HACK,;t t
9075 s,@HAVE_TKTABLE@,$HAVE_TKTABLE,;t t
9076 s,@asc_subdirs@,$asc_subdirs,;t t
9077 s,@F77LIBS@,$F77LIBS,;t t
9078 s,@make_blaslib@,$make_blaslib,;t t
9079 s,@make_lpaklib@,$make_lpaklib,;t t
9080 s,@make_lsodlib@,$make_lsodlib,;t t
9081 s,@HAVE_LSOD@,$HAVE_LSOD,;t t
9082 s,@tkdir_root@,$tkdir_root,;t t
9083 s,@tkdir_topbuilddir@,$tkdir_topbuilddir,;t t
9084 s,@models_dir_root@,$models_dir_root,;t t
9085 s,@models_topbuilddir@,$models_topbuilddir,;t t
9086 s,@help_dir_root@,$help_dir_root,;t t
9087 s,@help_topbuilddir@,$help_topbuilddir,;t t
9088 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9089 CEOF
9090
9091 _ACEOF
9092
9093 cat >>$CONFIG_STATUS <<\_ACEOF
9094 # Split the substitutions into bite-sized pieces for seds with
9095 # small command number limits, like on Digital OSF/1 and HP-UX.
9096 ac_max_sed_lines=48
9097 ac_sed_frag=1 # Number of current file.
9098 ac_beg=1 # First line for current file.
9099 ac_end=$ac_max_sed_lines # Line after last line for current file.
9100 ac_more_lines=:
9101 ac_sed_cmds=
9102 while $ac_more_lines; do
9103 if test $ac_beg -gt 1; then
9104 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9105 else
9106 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9107 fi
9108 if test ! -s $tmp/subs.frag; then
9109 ac_more_lines=false
9110 else
9111 # The purpose of the label and of the branching condition is to
9112 # speed up the sed processing (if there are no `@' at all, there
9113 # is no need to browse any of the substitutions).
9114 # These are the two extra sed commands mentioned above.
9115 (echo ':t
9116 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9117 if test -z "$ac_sed_cmds"; then
9118 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9119 else
9120 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9121 fi
9122 ac_sed_frag=`expr $ac_sed_frag + 1`
9123 ac_beg=$ac_end
9124 ac_end=`expr $ac_end + $ac_max_sed_lines`
9125 fi
9126 done
9127 if test -z "$ac_sed_cmds"; then
9128 ac_sed_cmds=cat
9129 fi
9130 fi # test -n "$CONFIG_FILES"
9131
9132 _ACEOF
9133 cat >>$CONFIG_STATUS <<\_ACEOF
9134 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9135 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9136 case $ac_file in
9137 - | *:- | *:-:* ) # input from stdin
9138 cat >$tmp/stdin
9139 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9140 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9141 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9142 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9143 * ) ac_file_in=$ac_file.in ;;
9144 esac
9145
9146 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9147 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9148 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9149 X"$ac_file" : 'X\(//\)[^/]' \| \
9150 X"$ac_file" : 'X\(//\)$' \| \
9151 X"$ac_file" : 'X\(/\)' \| \
9152 . : '\(.\)' 2>/dev/null ||
9153 echo X"$ac_file" |
9154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9155 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9156 /^X\(\/\/\)$/{ s//\1/; q; }
9157 /^X\(\/\).*/{ s//\1/; q; }
9158 s/.*/./; q'`
9159 { if $as_mkdir_p; then
9160 mkdir -p "$ac_dir"
9161 else
9162 as_dir="$ac_dir"
9163 as_dirs=
9164 while test ! -d "$as_dir"; do
9165 as_dirs="$as_dir $as_dirs"
9166 as_dir=`(dirname "$as_dir") 2>/dev/null ||
9167 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9168 X"$as_dir" : 'X\(//\)[^/]' \| \
9169 X"$as_dir" : 'X\(//\)$' \| \
9170 X"$as_dir" : 'X\(/\)' \| \
9171 . : '\(.\)' 2>/dev/null ||
9172 echo X"$as_dir" |
9173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9175 /^X\(\/\/\)$/{ s//\1/; q; }
9176 /^X\(\/\).*/{ s//\1/; q; }
9177 s/.*/./; q'`
9178 done
9179 test ! -n "$as_dirs" || mkdir $as_dirs
9180 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9181 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9182 { (exit 1); exit 1; }; }; }
9183
9184 ac_builddir=.
9185
9186 if test "$ac_dir" != .; then
9187 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9188 # A "../" for each directory in $ac_dir_suffix.
9189 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9190 else
9191 ac_dir_suffix= ac_top_builddir=
9192 fi
9193
9194 case $srcdir in
9195 .) # No --srcdir option. We are building in place.
9196 ac_srcdir=.
9197 if test -z "$ac_top_builddir"; then
9198 ac_top_srcdir=.
9199 else
9200 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9201 fi ;;
9202 [\\/]* | ?:[\\/]* ) # Absolute path.
9203 ac_srcdir=$srcdir$ac_dir_suffix;
9204 ac_top_srcdir=$srcdir ;;
9205 *) # Relative path.
9206 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9207 ac_top_srcdir=$ac_top_builddir$srcdir ;;
9208 esac
9209 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9210 # absolute.
9211 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9212 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9213 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9214 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9215
9216
9217 case $INSTALL in
9218 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9219 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9220 esac
9221
9222 if test x"$ac_file" != x-; then
9223 { echo "$as_me:$LINENO: creating $ac_file" >&5
9224 echo "$as_me: creating $ac_file" >&6;}
9225 rm -f "$ac_file"
9226 fi
9227 # Let's still pretend it is `configure' which instantiates (i.e., don't
9228 # use $as_me), people would be surprised to read:
9229 # /* config.h. Generated by config.status. */
9230 if test x"$ac_file" = x-; then
9231 configure_input=
9232 else
9233 configure_input="$ac_file. "
9234 fi
9235 configure_input=$configure_input"Generated from `echo $ac_file_in |
9236 sed 's,.*/,,'` by configure."
9237
9238 # First look for the input files in the build tree, otherwise in the
9239 # src tree.
9240 ac_file_inputs=`IFS=:
9241 for f in $ac_file_in; do
9242 case $f in
9243 -) echo $tmp/stdin ;;
9244 [\\/$]*)
9245 # Absolute (can't be DOS-style, as IFS=:)
9246 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9247 echo "$as_me: error: cannot find input file: $f" >&2;}
9248 { (exit 1); exit 1; }; }
9249 echo $f;;
9250 *) # Relative
9251 if test -f "$f"; then
9252 # Build tree
9253 echo $f
9254 elif test -f "$srcdir/$f"; then
9255 # Source tree
9256 echo $srcdir/$f
9257 else
9258 # /dev/null tree
9259 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9260 echo "$as_me: error: cannot find input file: $f" >&2;}
9261 { (exit 1); exit 1; }; }
9262 fi;;
9263 esac
9264 done` || { (exit 1); exit 1; }
9265 _ACEOF
9266 cat >>$CONFIG_STATUS <<_ACEOF
9267 sed "$ac_vpsub
9268 $extrasub
9269 _ACEOF
9270 cat >>$CONFIG_STATUS <<\_ACEOF
9271 :t
9272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9273 s,@configure_input@,$configure_input,;t t
9274 s,@srcdir@,$ac_srcdir,;t t
9275 s,@abs_srcdir@,$ac_abs_srcdir,;t t
9276 s,@top_srcdir@,$ac_top_srcdir,;t t
9277 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9278 s,@builddir@,$ac_builddir,;t t
9279 s,@abs_builddir@,$ac_abs_builddir,;t t
9280 s,@top_builddir@,$ac_top_builddir,;t t
9281 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9282 s,@INSTALL@,$ac_INSTALL,;t t
9283 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9284 rm -f $tmp/stdin
9285 if test x"$ac_file" != x-; then
9286 mv $tmp/out $ac_file
9287 else
9288 cat $tmp/out
9289 rm -f $tmp/out
9290 fi
9291
9292 done
9293 _ACEOF
9294
9295 cat >>$CONFIG_STATUS <<\_ACEOF
9296
9297 { (exit 0); exit 0; }
9298 _ACEOF
9299 chmod +x $CONFIG_STATUS
9300 ac_clean_files=$ac_clean_files_save
9301
9302
9303 # configure is writing to config.log, and then calls config.status.
9304 # config.status does its own redirection, appending to config.log.
9305 # Unfortunately, on DOS this fails, as config.log is still kept open
9306 # by configure, so config.status won't be able to write to it; its
9307 # output is simply discarded. So we exec the FD to /dev/null,
9308 # effectively closing config.log, so it can be properly (re)opened and
9309 # appended to by config.status. When coming back to configure, we
9310 # need to make the FD available again.
9311 if test "$no_create" != yes; then
9312 ac_cs_success=:
9313 ac_config_status_args=
9314 test "$silent" = yes &&
9315 ac_config_status_args="$ac_config_status_args --quiet"
9316 exec 5>/dev/null
9317 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9318 exec 5>>config.log
9319 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9320 # would make configure fail if this is the last instruction.
9321 $ac_cs_success || { (exit 1); exit 1; }
9322 fi

Properties

Name Value
svn:executable *

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