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

Contents of /trunk/base/autotools/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1075 - (show annotations) (download)
Tue Jan 9 03:15:50 2007 UTC (13 years, 8 months ago) by johnpye
File size: 57657 byte(s)
Attempts to fix utilities/config.h and ASC_WITH_CONOPT issues with autotools build
1 #--------------------------------------------------------------------
2 # A configure.in file for ASCEND.
3 #
4 # Process `configure.in' file with `autoconf' to produce
5 # a `configure' script. This `configure.in' was prepared
6 # for AutoConf v2.59.
7 #--------------------------------------------------------------------
8
9 #--------------------------------------------------------------------
10 # Disable caching since it seems to get in the way
11 # more times than it helps us.
12 #--------------------------------------------------------------------
13 define([AC_CACHE_LOAD], )dnl
14 define([AC_CACHE_SAVE], )dnl
15
16 AC_PREREQ(2.57)
17 #--------------------------------------------------------------------
18 # This file must exist for configure to continue. It's
19 # how we know we're in the right place.
20 #--------------------------------------------------------------------
21 AC_INIT(../generic/compiler/ascParse.y)
22
23
24 #--------------------------------------------------------------------
25 # CVS Most Recent Revision Data
26 # Put this data after AC_INIT since we want this information
27 # to also appear in configure and autoconf, when creating
28 # configure, strips all comments that appear in configure.in
29 # before AC_INIT
30 # $Revision: 1.38 $
31 # $Date: 2003/11/23 19:36:39 $
32 # $Author: ballan $
33 # $Source: /afs/cs.cmu.edu/project/ascend/Repository/configure.in,v $
34 #--------------------------------------------------------------------
35
36
37 #--------------------------------------------------------------------
38 # Where configure should look for files it needs.
39 #--------------------------------------------------------------------
40 AC_CONFIG_AUX_DIR(config)
41
42 #--------------------------------------------------------------------
43 # Set the output variables prefix and exec_prefix that
44 # determine where things will be installed.
45 #--------------------------------------------------------------------
46 if test "${prefix}" = "NONE"; then
47 prefix=/usr/local
48 fi
49 if test "${exec_prefix}" = "NONE"; then
50 exec_prefix=$prefix
51 fi
52
53
54 #--------------------------------------------------------------------
55 # For the Fortran support libraries and the TCL/TK libraries
56 # and header files, we unfortunately need the full path to
57 # these files. The problem with having the full path is that
58 # if the user moves the source tree, things will break unless
59 # the user re-runs configure.
60 #--------------------------------------------------------------------
61
62 #--------------------------------------------------------------------
63 ##AWW
64 ##AWW We put the .o files when compiling into a tree structure
65 ##AWW relative to the directory in which we currently reside,
66 ##AWW while the .c and .h files are in a similar tree structure
67 ##AWW relative to the configure instruction we invoke. This
68 ##AWW allows one to have separate .o files in their own tree when
69 ##AWW compiling for different operating systems.
70 ##AWW
71 ##AWW Example 1 (same directories)
72 ##AWW Current directory one is in: /home/me/trunk/base/unixAC213
73 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
74 ##AWW Command to invoke configure: ./configure
75 ##AWW $ascpwd will be: /home/me/trunk/base/unixAC213
76 ##AWW $srcdir will be: .
77 ##AWW
78 ##AWW Example 2 (different directories, abs path for command)
79 ##AWW Current directory one is in: /home/me/trunk/base/newTree
80 ##AWW Directory containing configure: /home/me/trunk/base/unixAC213
81 ##AWW Command to invoke configure: /home/me/trunk/base/unixAC213/configure
82 ##AWW $ascpwd will be: /home/me/trunk/base/newTree
83 ##AWW $srcdir will be: /home/me/trunk/base/unixAC213
84 ##AWW
85 ##AWW Example 3 (different directories, rel path for command)
86 ##AWW Same as Example 2
87 ##AWW Command to invoke configure: ../unixAC213/configure
88 ##AWW $ascpwd will be: /home/me/trunk/base/newTree (same as in Example 2)
89 ##AWW $srcdir will be: ../unixAC213
90 ##AWW
91 ##AWW Key elements of the source tree are:
92 ##AWW code/trunk/trunk/base/unixAC213/configure
93 ##AWW code/trunk/trunk/base/generic
94 ##AWW code/trunk/tcltk
95 ##AWW where $srcdir is pointing to /home/me/trunk/base/unixAC213, the folder
96 ##AWW containing "configure"
97 ##AWW
98 ##AWW Configure is located at:
99 ##AWW $srcdir/configure
100 ##AWW while the .c/.h files one wants are in:
101 ##AWW $srcdir/../generic/compiler
102 ##AWW $srcdir/../generic/general
103 ##AWW $srcdir/../generic/packages
104 ##AWW $srcdir/../generic/solver
105 ##AWW $srcdir/../generic/utilities
106 ##AWW $srcdir/../../tcltk/generic/interface
107 ##AWW
108 ##AWW Each of these directories contain Makefiles and possible
109 ##AWW need to find .h files in the other directories. For example
110 ##AWW the include statements are always of the form
111 ##AWW #include compiler/slv3.h or
112 ##AWW #include interface/SlvProc.h
113 ##AWW
114 ##AWW A safe include path should assume one is a directory with any
115 ##AWW of these .h and .c files and one needs to find a .h file in
116 ##AWW any other of them. The following paths should do it.
117 ##AWW
118 ##AWW If in compiler, general, packages, solver, utilities
119 ##AWW .. for general, packages, etc
120 ##AWW ../../../tcltk/generic for interface
121 ##AWW If in interface
122 ##AWW .. for interface
123 ##AWW ../../../base/generic for compiler, general, ..
124 ##AWW
125 #--------------------------------------------------------------------
126 # The asc_include variable is (directory) path to the ascend4
127 # SOURCE directory relative to the immediate subdirectories of
128 # the ascend4 OBJECT directory. --rewrite - not clear.
129 #AWW To compile a new ASCEND executable, one should move into the
130 #AWW directory in which one wants the ASCEND object/executable
131 #AWW to reside (call this objTree) and from there run
132 #AWW ../base/unixAC213/configure.
133 #AWW In the following code asc_include is set to the path from
134 #JP I think that the current recommendation is to install from
135 #JP run ./configure (ie from this directory)
136
137 ascpwd=`pwd`
138 fullpathsrcdir=`cd $srcdir ; pwd`
139
140 case "$srcdir" in
141 .)
142 asc_include="../$srcdir"
143 ;;
144 /*)
145 asc_include="$srcdir/../generic"
146 ;;
147 *)
148 asc_include="$srcdir/../generic"
149 ;;
150 esac
151
152
153 #--------------------------------------------------------------------
154 # Do basic checks to determine
155 # * if we have `ranlib'
156 # * if we can create symbolic links
157 # * if `make' sets the MAKE macro
158 # * a bsd-compatible `install' program
159 # If we use the install-sh script that comes with configure,
160 # prefix it with the current directory so it'll work in
161 # subdirectories. Unfortunately, it won't work if the user
162 # moves the source tree.
163 #--------------------------------------------------------------------
164 AC_PROG_RANLIB
165 AC_PROG_LN_S
166 AC_PROG_MAKE_SET
167 AC_PROG_INSTALL
168
169 case "X$INSTALL" in
170 X/*)
171 ;;
172 *)
173 INSTALL="$ascpwd/$INSTALL"
174 ;;
175 esac
176
177
178 #--------------------------------------------------------------------
179 # Get the host type for various checks along the way
180 #--------------------------------------------------------------------
181 AC_CANONICAL_HOST
182
183 #--------------------------------------------------------------------
184 # Check for the C compiler: set CC and CFLAGS.
185 # If the user does NOT specify `--enable-gcc' on the configure
186 # command command line, set CC to either the envar CC or `cc'.
187 # Call AC_PROG_CC which will use the value of CC (perhaps set
188 # immediately above) or will check for `gcc' and then for `cc'
189 # if `gcc' is not found.
190 #
191 # If we are using GCC, then assume it groks ANSI. Otherwise,
192 # try to compile a small program using ANSI constructs with
193 # CC. If this fails, try to locate each of the following:
194 # c89 xlc acc
195 # and if successful, see if it compiles an ANSI C program.
196 # (Doing this in a loop would be ideal, but configure caches
197 # the result of AC_CHECK_PROG and uses the cached value for
198 # all but the first pass through the loop. This is also the
199 # reason we have to use a different variable asc_cc1, asc_cc2
200 # for each call to AC_CHECK_PROG.
201 #
202 # If we do not find an ANSI C compiler, print a warning and
203 # use the first value of CC we tried.
204 #--------------------------------------------------------------------
205 #JP removed the lengthy CC tests, since ANSI C is pretty universal
206 #JP these days, and GCC can pretty much be assumed if we're using
207 #JP Autotools.
208
209 AC_PROG_CC(gcc)
210 # if gcc, -fno-strict-aliasing mandatory to work around compiler bugs
211 if test "x$ac_compiler_gnu" = "xyes"; then
212 CFLAGS="$CFLAGS -fno-strict-aliasing"
213 fi
214
215 #--------------------------------------------------------------------
216 # Do other misc checks with CC and CFLAGS.
217 #
218 # Determine how to run the C preprocessor.
219 #
220 # If the user specifies --enable-optimization, remove `-g'
221 # from CFLAGS, add `-O' to CFLAGS, and define `NDEBUG'. If
222 # we are not building optimized, check for special libraries
223 # needed for building a debugging binary (currenly only
224 # /usr/lib/end.o under HPUX).
225 #
226 # Check if we're running on AIX; if so, add `-D_ALL_SOURCE'
227 # to CFLAGS.
228 #
229 # Check if we're running on HPUX; if so, add -D_HPUX_SOURCE'
230 # to CFLAGS unless the C preprocessor goes it for us.
231 #--------------------------------------------------------------------
232
233 AC_PROG_CPP
234 AC_ARG_ENABLE(optimization,
235 [ --enable-optimization optimize the C code while building ascend],
236 [asc_do_opt="$enableval"], [asc_do_opt=no])
237
238 if test "$asc_do_opt" = yes; then
239 CFLAGS=`echo "-O $CFLAGS " | sed 's/ -g / /g'`
240 AC_DEFINE(NDEBUG)
241 else
242 AC_PATH_PROG(DEBUG_LIBS, end.o, , /usr/lib)
243 fi
244
245 AC_MSG_CHECKING([for AIX])
246 AC_EGREP_CPP(yes, [
247 #ifdef _AIX
248 yes
249 #endif
250 ], [ asc_aix=yes ; AC_DEFINE(_ALL_SOURCE) ], [asc_aix=no])
251 AC_MSG_RESULT($asc_aix)
252
253 AC_MSG_CHECKING([whether -D_HPUX_SOURCE is needed])
254 AC_EGREP_CPP(yes, [
255 #ifdef __hpux
256 #ifndef _HPUX_SOURCE
257 yes
258 #endif
259 #endif
260 ], [ asc_hpux=yes ; AC_DEFINE(_HPUX_SOURCE) ], [asc_hpux=no])
261 AC_MSG_RESULT($asc_hpux)
262
263 # Check the size of pointers; if cross compiling, assume 32 bit pointers
264 AC_CHECK_SIZEOF(void *, 4)
265
266
267 #--------------------------------------------------------------------
268 # Set YACC.
269 # call the
270 # autoconf macro which looks for `bison' and then for `yacc'.
271 # note it isn't bright enough to check that yacc really exists,
272 # so we allow the user to disable it.
273 #--------------------------------------------------------------------
274
275 YACCSAVE="$YACC"
276 AC_PROG_YACC
277
278 AC_ARG_WITH(yacc,
279 [ --without-yacc do not generate parser from yacc file],
280 , [with_yacc=yes])
281 if test ! "X$with_yacc" = "Xyes" ; then
282 YACC=": configured without yacc"
283 parser_src="ascParse.c.from.c"
284 else
285 parser_src="ascParse.c.from.yacc"
286 fi
287 AC_SUBST(parser_src)
288
289 #--------------------------------------------------------------------
290 # Set LEX.
291 # ASCEND requires a `flex' which understands -P (allows you to
292 # specify a prefix other than `yy'). The -P flag was added at
293 # the same time a -V (version) flag was added (version 2.4.1),
294 # so if `flex' understands -V, it'll understand -P (checking
295 # for -P directly requires a flex input file).
296 #
297 # 1. If `LEX' is not set, look for `flex' and set `LEX' to
298 # `flex' if found.
299 # 2. If `flex' was found, see if it understands -V. If so,
300 # set `scanner_src' and `typer_src' to have `flex' generate
301 # the C files from the flex input files
302 # base/generic/compiler/scanner.l & tcltk/interface/typelex.l
303 # We don't need to look for libfl.a since we define
304 # yywrap() ourselves.
305 # 3. If `flex' wasn't found or was found but isn't new enough:
306 # a. Print a warning message
307 # b. Set `scanner_src' and `typer_src' to use pre-generated
308 # C files for the flex files mentioned in (2).
309 # c. Set `LEX' to `lex'
310 # d. Search for the lex library `libl.a' and set LEXLIB to
311 # its location.
312 #--------------------------------------------------------------------
313
314 AC_CHECK_PROG(LEX, flex, flex)
315
316 if test -n "$LEX" ; then
317 AC_MSG_CHECKING([whether $LEX is at least version 2.4.1])
318 echo "$LEX -V" 1>&5
319 if $LEX -V 1>&5 2>&5 ; then
320 AC_MSG_RESULT(yes)
321 scanner_src="scanner.c.from.flex"
322 typer_src="typelex.c.from.flex"
323 else
324 AC_MSG_RESULT(no)
325 LEX=''
326 fi
327 fi
328
329 if test -z "$LEX" ; then
330 AC_MSG_WARN([Cannot find a flex lexer version 2.4.1 or greater.
331 Using pregenerated C files for base/generic/compiler/scanner.l
332 and tcltk/interface/typelex.l. If you have flex 2.4.1
333 or newer, set the LEX environment variable to its location
334 and run configure again.])
335 scanner_src="scanner.c.from.c"
336 typer_src="typelex.c.from.c"
337
338 # let configure set LEX and LEXLIB even though we won't be using them
339 AC_PROG_LEX
340 fi
341
342
343 #--------------------------------------------------------------------
344 # Math libraries.
345 # On a few very rare systems, all of the libm.a stuff is
346 # already in libc.a. Set compiler flags accordingly.
347 # Also, Linux requires the "ieee" library for math to work
348 # right (and it must appear before "-lm").
349 #
350 # When building on HPUX with GCC, GCC cannot find `copysign'
351 # because it lives in an odd place; see if we need to add
352 # this odd place to MATH_LIBS.
353 #
354 # See if erf(), the error function, exists; if so, define
355 # HAVE_ERF.
356 #--------------------------------------------------------------------
357 AC_CHECK_FUNC(sin, MATH_LIBS="", MATH_LIBS="-lm")
358
359 AC_CHECK_LIB(ieee, printf, [MATH_LIBS="-lieee $MATH_LIBS"])
360
361 if test -n "$MATH_LIBS" ; then
362 AC_CHECK_LIB(m, copysign, ,
363 AC_CHECK_LIB(m, drem, [MATH_LIBS="$MATH_LIBS /lib/pa1.1/libM.a"]
364 , , /lib/pa1.1/libM.a
365 ),
366 $MATH_LIBS)
367 fi
368
369 # store the current list of libraries, add the math libraries to LIBS,
370 # check for erf(), then reset the value of LIBS.
371 asc_keep_LIBS="$LIBS"
372 LIBS="$LIBS $MATH_LIBS"
373 AC_CHECK_FUNCS(erf)
374 LIBS="$asc_keep_LIBS"
375
376 #----------------------------------------------
377 # Check for 'vsnprintf' -- there seems to be a problem with it in
378 # on cygwin.
379
380 dnl -------------------------------------
381 dnl Macro to sniff for the 'vsnprintf' function
382 dnl
383 dnl This function appears to be problematic under cygwin, hence the addition
384 dnl of this macro.
385 dnl -------------------------------------
386
387 AC_DEFUN([AC_FUNC_SNPRINTF],
388 [AC_CHECK_FUNCS(snprintf vsnprintf)
389 AC_MSG_CHECKING(for working snprintf)
390 AC_CACHE_VAL(ac_cv_have_working_snprintf,
391 [AC_TRY_RUN(
392 [#include <stdio.h>
393
394 int main(void)
395 {
396 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
397 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
398 int i;
399 i = snprintf (bufs, 2, "%s", "111");
400 if (strcmp (bufs, "1")) exit (1);
401 if (i != 3) exit (1);
402 i = snprintf (bufd, 2, "%d", 111);
403 if (strcmp (bufd, "1")) exit (1);
404 if (i != 3) exit (1);
405 exit(0);
406 }], ac_cv_have_working_snprintf=yes, ac_cv_have_working_snprintf=no, ac_cv_have_working_snprintf=cross)])
407 AC_MSG_RESULT([$ac_cv_have_working_snprintf])
408 AC_MSG_CHECKING(for working vsnprintf)
409 AC_CACHE_VAL(ac_cv_have_working_vsnprintf,
410 [AC_TRY_RUN(
411 [#include <stdio.h>
412 #include <stdarg.h>
413
414 int my_vsnprintf (char *buf, const char *tmpl, ...)
415 {
416 int i;
417 va_list args;
418 va_start (args, tmpl);
419 i = vsnprintf (buf, 2, tmpl, args);
420 va_end (args);
421 return i;
422 }
423
424 int main(void)
425 {
426 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
427 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
428 int i;
429 i = my_vsnprintf (bufs, "%s", "111");
430 if (strcmp (bufs, "1")) exit (1);
431 if (i != 3) exit (1);
432 i = my_vsnprintf (bufd, "%d", 111);
433 if (strcmp (bufd, "1")) exit (1);
434 if (i != 3) exit (1);
435 exit(0);
436 }], ac_cv_have_working_vsnprintf=yes, ac_cv_have_working_vsnprintf=no, ac_cv_have_working_vsnprintf=cross)])
437 AC_MSG_RESULT([$ac_cv_have_working_vsnprintf])
438 if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
439 AC_LIBOBJ(snprintf)
440 AC_MSG_WARN([Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/.])
441 AC_DEFINE(PREFER_PORTABLE_SNPRINTF, 1, "enable replacement (v)snprintf if system (v)snprintf is broken")
442 fi])
443
444 AC_FUNC_SNPRINTF
445
446 #--------------------------------------------------------------------
447 # Check for X11.
448 # We'll use the simple autoconf builtin macro for finding
449 # X11 until we find a reason not to.
450 #
451 # On Solaris and IRIX, add the path to the X library to the
452 # run-time shared-library-search-path so the ASCEND binary
453 # can find the X library without the user having to set
454 # LD_LIBRARY_PATH
455 #--------------------------------------------------------------------
456 AC_PATH_X
457 if test -n "$x_includes"; then
458 X11_INCLUDES="-I$x_includes"
459 fi
460 if test -n "$x_libraries"; then
461 X11_LIBRARIES="-L$x_libraries"
462 case "$host" in
463 sparc-sun-solaris*)
464 X11_RUN_PATH="-R$x_libraries"
465 ;;
466 mips-sgi-irix*)
467 X11_RUN_PATH="-rpath $x_libraries"
468 ;;
469 *)
470 X11_RUN_PATH=""
471 ;;
472 esac
473 fi
474
475
476 #--------------------------------------------------------------------
477 # Check for the existence of various libraries. The order here
478 # is important, so that then end up in the right order in the
479 # command line generated by make. The -lsocket and -lnsl
480 # libraries require a couple of special tricks:
481 # 1. Use "connect" and "accept" to check for -lsocket, and
482 # "gethostbyname" to check for -lnsl.
483 # 2. Use each function name only once: can't redo a check
484 # because autoconf caches the results of the last check
485 # and won't redo it.
486 # 3. Use -lnsl and -lsocket only if they supply procedures that
487 # aren't already present in the normal libraries. This is
488 # because IRIX 5.2 has libraries, but they aren't needed and
489 # they're bogus: they goof up name resolution if used.
490 # 4. On some SVR4 systems, can't use -lsocket without -lnsl
491 # too. To get around this problem, check for both libraries
492 # together if -lsocket doesn't work by itself.
493 #--------------------------------------------------------------------
494 dnl AC_CHECK_LIB(Xbsd, printf, [LIBS="$LIBS -lXbsd"])
495
496 asc_checkBoth=0
497 AC_CHECK_FUNC(connect, [asc_checkSocket=0], [asc_checkSocket=1])
498 if test "$asc_checkSocket" = 1; then
499 AC_CHECK_LIB(socket, printf, [X11_EXTRA_LIBS="-lsocket"],[asc_checkBoth=1])
500 fi
501 if test "$asc_checkBoth" = 1; then
502 asc_oldLibs=$LIBS
503 X11_EXTRA_LIBS="-lsocket -lnsl"
504 LIBS="$LIBS $X11_EXTRA_LIBS"
505 AC_CHECK_FUNC(accept, asc_checkNsl=0, [X11_EXTRA_LIBS=""])
506 LIBS=$asc_oldLibs
507 fi
508 asc_oldLibs=$LIBS
509 LIBS="$LIBS $X11_EXTRA_LIBS"
510 AC_CHECK_FUNC(gethostbyname, ,
511 AC_CHECK_LIB(nsl, printf, [X11_EXTRA_LIBS="$X11_EXTRA_LIBS -lnsl"]))
512 LIBS=$asc_oldLibs
513
514
515 #--------------------------------------------------------------------
516 # The following comes directly from the configure.in file for
517 # Tcl8.0.
518 #
519 # The statements below define a collection of symbols related to
520 # dynamic loading and shared libraries:
521 #
522 # DL_OBJS - Name of the object file that implements dynamic
523 # loading for ASCEND on this system.
524 # DL_LIBS - Library file(s) to include in tclsh and other base
525 # applications in order for the "load" command to work.
526 # LD_FLAGS - Flags to pass to the compiler when linking object
527 # files into an executable application binary such
528 # as tclsh.
529 # LD_SEARCH_FLAGS-Flags to pass to ld, such as "-R /usr/local/tcl/lib",
530 # that tell the run-time dynamic linker where to look
531 # for shared libraries such as libtcl.so. Depends on
532 # the variable LIB_RUNTIME_DIR in the Makefile.
533 # MAKE_LIB - Command to execute to build the ASCEND library;
534 # differs depending on whether or not ASCEND is being
535 # compiled as a shared library.
536 # SHLIB_CFLAGS - Flags to pass to cc when compiling the components
537 # of a shared library (may request position-independent
538 # code, among other things).
539 # SHLIB_LD - Base command to use for combining object files
540 # into a shared library.
541 # SHLIB_LD_LIBS - Dependent libraries for the linker to scan when
542 # creating shared libraries. This symbol typically
543 # goes at the end of the "ld" commands that build
544 # shared libraries. The value of the symbol is
545 # "${LIBS}" if all of the dependent libraries should
546 # be specified when creating a shared library. If
547 # dependent libraries should not be specified (as on
548 # SunOS 4.x, where they cause the link to fail, or in
549 # general if ASCEND and Tk aren't themselves shared
550 # libraries), then this symbol has an empty string
551 # as its value.
552 # SHLIB_SUFFIX - Suffix to use for the names of dynamically loadable
553 # extensions. An empty string means we don't know how
554 # to use shared libraries on this platform.
555 # ASC_LIB_FILE - Name of the file that contains the ASCEND library, such
556 # as libtcl7.8.so or libtcl7.8.a.
557 # ASC_LIB_SUFFIX -Specifies everything that comes after the "libtcl"
558 # in the shared library name, using the $VERSION variable
559 # to put the version in the right place. This is used
560 # by platforms that need non-standard library names.
561 # Examples: ${VERSION}.so.1.1 on NetBSD, since it needs
562 # to have a version after the .so, and ${VERSION}.a
563 # on AIX, since the ASCEND shared library needs to have
564 # a .a extension whereas shared objects for loadable
565 # extensions have a .so extension. Defaults to
566 # ${VERSION}${SHLIB_SUFFIX}.
567 #--------------------------------------------------------------------
568
569 # Step 1: set the variable "system" to hold the name and version number
570 # for the system. This can usually be done via the "uname" command, but
571 # there are a few systems, like Next, where this doesn't work.
572
573 # Changed this to use the "$host" variable from AC_CANONICAL_HOST
574
575 # Step 2: check for existence of -ldl library. This is needed because
576 # Linux can use either -ldl or -ldld for dynamic loading.
577
578 AC_CHECK_LIB(dl, dlopen, have_dl=yes, have_dl=no)
579
580 # Step 3: set configuration options based on system name and version.
581
582 ASC_SHARED_LIB_SUFFIX=""
583 ASC_UNSHARED_LIB_SUFFIX=""
584 ASC_LIB_VERSIONS_OK=ok
585 case $host in
586 *-aix*)
587 SHLIB_CFLAGS=""
588 SHLIB_LD="$fullpathsrcdir/ldAix /bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512"
589 SHLIB_LD_LIBS='${LIBS}'
590 SHLIB_SUFFIX=".so"
591 DL_OBJS=""
592 DL_LIBS="-lld"
593 LD_FLAGS=""
594 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
595 ASC_SHARED_LIB_SUFFIX='${VERSION}.a'
596 ;;
597 *-bsdi*)
598 SHLIB_CFLAGS=""
599 SHLIB_LD="shlicc -r"
600 SHLIB_LD_LIBS='${LIBS}'
601 SHLIB_SUFFIX=".so"
602 DL_OBJS=""
603 DL_LIBS="-ldl"
604 LD_FLAGS=""
605 LD_SEARCH_FLAGS=""
606 ;;
607 *-dgux*)
608 SHLIB_CFLAGS="-K PIC"
609 SHLIB_LD="cc -G"
610 SHLIB_LD_LIBS=""
611 SHLIB_SUFFIX=".so"
612 DL_OBJS=""
613 DL_LIBS="-ldl"
614 LD_FLAGS=""
615 LD_SEARCH_FLAGS=""
616 ;;
617 *-hpux8*|*-hpux9*|*-hpux10*)
618 AC_CHECK_LIB(dld, shl_load, tcl_ok=yes, tcl_ok=no)
619 if test "$tcl_ok" = yes; then
620 SHLIB_CFLAGS="+z"
621 SHLIB_LD="ld -b"
622 SHLIB_LD_LIBS=""
623 SHLIB_SUFFIX=".sl"
624 DL_OBJS=""
625 DL_LIBS="-ldld"
626 LD_FLAGS="-Wl,-E"
627 LD_SEARCH_FLAGS='-Wl,+b,${LIB_RUNTIME_DIR}:.'
628 fi
629 ;;
630 *-irix4*)
631 SHLIB_CFLAGS="-G 0"
632 SHLIB_SUFFIX=".a"
633 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
634 SHLIB_LD_LIBS='${LIBS}'
635 DL_OBJS=""
636 DL_LIBS=""
637 LD_FLAGS="-Wl,-D,08000000"
638 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
639 ASC_SHARED_LIB_SUFFIX='${VERSION}.a'
640 ;;
641 *-irix5*|*-irix6.*)
642 SHLIB_CFLAGS=""
643 SHLIB_LD="ld -shared -rdata_shared"
644 SHLIB_LD_LIBS=""
645 SHLIB_SUFFIX=".so"
646 DL_OBJS=""
647 DL_LIBS=""
648 LD_FLAGS=""
649 LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}'
650 ;;
651 *-linux*)
652 SHLIB_CFLAGS="-fPIC"
653 SHLIB_LD_LIBS=""
654 SHLIB_SUFFIX=".so"
655 if test "$have_dl" = yes; then
656 SHLIB_LD="${CC} -shared"
657 DL_OBJS=""
658 DL_LIBS="-ldl"
659 LD_FLAGS="-rdynamic"
660 LD_SEARCH_FLAGS=""
661 else
662 AC_CHECK_HEADER(dld.h, [
663 SHLIB_LD="ld -shared"
664 DL_OBJS=""
665 DL_LIBS="-ldld"
666 LD_FLAGS=""
667 LD_SEARCH_FLAGS=""])
668 fi
669 ;;
670 MP-RAS-02*)
671 SHLIB_CFLAGS="-K PIC"
672 SHLIB_LD="cc -G"
673 SHLIB_LD_LIBS=""
674 SHLIB_SUFFIX=".so"
675 DL_OBJS=""
676 DL_LIBS="-ldl"
677 LD_FLAGS=""
678 LD_SEARCH_FLAGS=""
679 ;;
680 MP-RAS-*)
681 SHLIB_CFLAGS="-K PIC"
682 SHLIB_LD="cc -G"
683 SHLIB_LD_LIBS=""
684 SHLIB_SUFFIX=".so"
685 DL_OBJS=""
686 DL_LIBS="-ldl"
687 LD_FLAGS="-Wl,-Bexport"
688 LD_SEARCH_FLAGS=""
689 ;;
690 *-netbsd*|*-freebsd*|*-openbsd*)
691 # Not available on all versions: check for include file.
692 AC_CHECK_HEADER(dlfcn.h, [
693 SHLIB_CFLAGS="-fpic"
694 SHLIB_LD="ld -Bshareable -x"
695 SHLIB_LD_LIBS=""
696 SHLIB_SUFFIX=".so"
697 DL_OBJS=""
698 DL_LIBS=""
699 LD_FLAGS=""
700 LD_SEARCH_FLAGS=""
701 ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0'
702 ], [
703 SHLIB_CFLAGS=""
704 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
705 SHLIB_LD_LIBS='${LIBS}'
706 SHLIB_SUFFIX=".a"
707 DL_OBJS=""
708 DL_LIBS=""
709 LD_FLAGS=""
710 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
711 ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
712 ])
713
714 # FreeBSD doesn't handle version numbers with dots.
715
716 ASC_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
717 ASC_LIB_VERSIONS_OK=nodots
718 ;;
719 *-riscos*)
720 SHLIB_CFLAGS="-G 0"
721 SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
722 SHLIB_LD_LIBS='${LIBS}'
723 SHLIB_SUFFIX=".a"
724 DL_OBJS=""
725 DL_LIBS=""
726 LD_FLAGS="-Wl,-D,08000000"
727 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
728 ;;
729 SCO_SV-3.2*)
730 # Note, dlopen is available only on SCO 3.2.5 and greater. However,
731 # this test works, since "uname -s" was non-standard in 3.2.4 and
732 # below.
733 SHLIB_CFLAGS="-Kpic -belf"
734 SHLIB_LD="ld -G"
735 SHLIB_LD_LIBS=""
736 SHLIB_SUFFIX=".so"
737 DL_OBJS=""
738 DL_LIBS=""
739 LD_FLAGS="-belf -Wl,-Bexport"
740 LD_SEARCH_FLAGS=""
741 ;;
742 *-sni-sysv*)
743 SHLIB_CFLAGS="-K PIC"
744 SHLIB_LD="cc -G"
745 SHLIB_LD_LIBS=""
746 SHLIB_SUFFIX=".so"
747 DL_OBJS=""
748 DL_LIBS="-ldl"
749 LD_FLAGS=""
750 LD_SEARCH_FLAGS=""
751 ;;
752 *-sunos4*)
753 SHLIB_CFLAGS="-PIC"
754 SHLIB_LD="ld"
755 SHLIB_LD_LIBS=""
756 SHLIB_SUFFIX=".so"
757 DL_OBJS=""
758 DL_LIBS="-ldl"
759 LD_FLAGS=""
760 LD_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}'
761
762 # SunOS can't handle version numbers with dots in them in library
763 # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it
764 # requires an extra version number at the end of .so file names.
765 # So, the library has to have a name like libtcl75.so.1.0
766
767 ASC_SHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.so.1.0'
768 ASC_UNSHARED_LIB_SUFFIX='`echo ${VERSION} | tr -d .`.a'
769 ASC_LIB_VERSIONS_OK=nodots
770 ;;
771 *-solaris*)
772 SHLIB_CFLAGS="-KPIC"
773 SHLIB_LD="/usr/ccs/bin/ld -G -z text"
774
775 # Note: need the LIBS below, otherwise Tk won't find ASCEND's
776 # symbols when dynamically loaded into tclsh.
777
778 SHLIB_LD_LIBS='${LIBS}'
779 SHLIB_SUFFIX=".so"
780 DL_OBJS=""
781 DL_LIBS="-ldl"
782 LD_FLAGS=""
783 LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}'
784 ;;
785 mips-dde-sysv*)
786 SHLIB_CFLAGS="-KPIC"
787 SHLIB_LD="cc -G"
788 SHLIB_LD_LIBS=""
789 SHLIB_SUFFIX=".so"
790 DL_OBJS=""
791 DL_LIBS="-ldl"
792 # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers
793 # that don't grok the -Bexport option. Test that it does.
794 hold_ldflags=$LDFLAGS
795 AC_MSG_CHECKING([for ld accepts -Bexport flag])
796 LDFLAGS="${LDFLAGS} -Wl,-Bexport"
797 AC_TRY_LINK(, [int i;], found=yes, found=no)
798 LDFLAGS=$hold_ldflags
799 AC_MSG_RESULT($found)
800 if test "$found" = yes; then
801 LD_FLAGS="-Wl,-Bexport"
802 else
803 LD_FLAGS=""
804 fi
805 LD_SEARCH_FLAGS=""
806 ;;
807 esac
808
809 #--------------------------------------------------------------------
810 # Look for Tcl/Tk
811 #--------------------------------------------------------------------
812
813 # moved to config, acsite setup
814 # find tcl
815 TCLINCLUDE=
816 TCLLIB=
817 TCLPACKAGE=
818 ASC_TCL
819 # find tk
820 TKINCLUDE=
821 TKLIB=
822 TKPACKAGE=
823 ASC_TK
824 TK_LD_HACK="\$(TK_LD_SEARCH_FLAGS)"
825 if test "x$TK_LD_SEARCH_FLAGS" = "x''"; then
826 TK_LD_HACK=""
827 fi
828 if test "x$TK_LD_SEARCH_FLAGS" = "x"; then
829 TK_LD_HACK=""
830 fi
831
832
833 #--------------------------------------------------------------------
834 # FORTRAN
835 #
836 # ASCEND uses the LSOD integrator and is capable of working
837 # with CONOPT and with MINOS. These libraries are written in
838 # Fortran; to use them, configure needs to find a Fortran
839 # compiler and the necessary Fortran libraries (e.g.,
840 # libF77.a). LSOD, CONOPT, and MINOS also require the BLAS and
841 # LINPACK libraries to avoid undefined symbols at link time.
842 #
843 # The builder can specify the location of
844 # * the Fortran compiler and libraries using
845 # --with-fortran=<compiler>,<libraries>
846 # * the BLAS library using
847 # --with-blas=<blas-library>
848 # * the LINPACK library using
849 # --with-linpack=<linpack-library>
850 # * the LSOD library using
851 # --with-blas=<lsod-library>
852 # * the CONOPT library using
853 # --with-conopt=<conopt-library>
854 # * the MINOS library using
855 # --with-minos=<minos-library> <===currently disabled
856 # The builder can disable some parts of the fortran build using
857 # the --without-<package> configure option.
858 #
859 # If the user does not specify the locations of the compiler
860 # and the libraries and does not disable them, configure
861 # attempts to find them.
862 #
863 # Building with LSOD, CONOPT, and/or MINOS is further
864 # complicated by the dependencies between these libraries and
865 # the BLAS and LINPACK libraries.
866 #
867 # If we cannot find a Fortran compiler, we disable all Fortran
868 # code (LSOD, CONOPT, and MINOS). Otherwise, look for the
869 # Fortran libraries (e.g., libF77.a) based on the type of
870 # machine we are compiling on.
871 #
872 # If Fortran is enabled, we need to find a compiled BLAS
873 # library or source code. Check for the machine's libblas.a
874 # and ASCEND's libascblas.a; if those fail, check for the
875 # libascblas.a source code; if that fails, we disable all
876 # Fortran (LSOD, CONOPT, MINOS).
877 #
878 # If Fortran is enabled, we need to find a compiled LINPACK
879 # library or source code. Check for the machine's liblpak.a
880 # and ASCEND's libasclpak.a; if those fail, check for the
881 # libasclpak.a source code; if that fails, we disable all
882 # Fortran (LSOD, CONOPT, MINOS).
883 #
884 # If Fortran is enabled, we try to find a compiled LSOD library
885 # or source code. Check for a libinteg.a; if that fails, check
886 # for the libinteg.a source code; if that fails, we disable
887 # LSOD. If we find LSOD, define STATIC_LSOD.
888 #
889 # If Fortran is enabled, we try to find a compiled OPTSQP
890 # library or source code. Check for a librsqp.a; if that fails,
891 # check for the librsqp.a source code; if that fails, we disable
892 # OPTSQP. If we find RSQP, define STATIC_OPTSQP.
893 #
894 # If Fortran is enabled, we try to find a compiled CONOPT
895 # library. Check for a libconsub.a; if that fails, we disable
896 # CONOPT. If we find CONOPT, define STATIC_CONOPT; if not,
897 # tell the user where to find CONOPT using the contact
898 # information from the nonlinear programming FAQ:
899 # http://www.mcs.anl.gov/home/otc/Guide/faq/nonlinear-programming-faq.html
900 #
901 # If Fortran is enabled, we try to find a compiled MINOS
902 # library or source code. Check for a libminos54.a; if that
903 # fails, check for the libminos54.a source code; if that fails,
904 # we disable MINOS. If we find MINOS, define STATIC_MINOS; if
905 # not, tell the user where to find MINOS using the contact
906 # information from the nonlinear programming FAQ:
907 # http://www.mcs.anl.gov/home/otc/Guide/faq/nonlinear-programming-faq.html
908 #--------------------------------------------------------------------
909 #
910 # the list of directories to search for the fortran compiler
911 asc_f77_prog_dirs="$PATH:/usr/lang:/opt/SUNWspro/bin"
912 #
913 # the list of directories to search for the required fortran libraries
914 asc_f77_support_dirs="
915 /lib
916 /usr/lib
917 /usr/local/lib
918 /usr/contributed/lib
919 /usr/local/lib/ascend/lib
920 $ascpwd/blas
921 $ascpwd/linpack
922 $ascpwd/lsod
923
924 ##AWW There are folders two levels up from configure for these packages
925 $fullpathsrcdir/../../blas
926 $fullpathsrcdir/../../linpack
927 $fullpathsrcdir/../../lsod
928
929 #AWW20041113: $ascpwd/conopt
930 #AWW20041113: $ascpwd/rsqp
931 #AWW20041113: $ascpwd/minos
932 #AWW20041113: $ascpwd/ascend4/archive
933 $ascpwd/archive
934 /afs/cs/project/ascend/depot/@sys/lib
935 /afs/cs/project/ascend/depot/build/obj/conopt
936 "
937 #
938 AC_ARG_WITH(fortran,
939 [Fortran compiler and libraries:
940 --with-fortran=F77,F77LIBS
941 The location of your Fortran compiler and its
942 library files. For example, under SunOS:
943 --with-fortran='f77,-L/usr/lang/lib -lF77 -lM77'
944 To specify only the compiler or libraries, leave off
945 whatever is not needed:
946 --with-fortran=',-L/usr/lang/lib -lF77 -lM77'
947 Use '--without-fortran' to not link against
948 any Fortran libraries],
949 , [with_fortran=yes])
950 case "$with_fortran" in
951 no)
952 # The user disabled all fortran using
953 # the --without-fortran option.
954 F77=
955 F77LIBS=
956 with_f77=no
957 with_f77libs=no
958 ;;
959 yes|,|"")
960 # The user didn't pass in the --with-fortran option
961 # or didn't give us any useful information. We do
962 # the search ourselves.
963 with_f77=_searching
964 with_f77libs=_searching
965 ;;
966 ,*)
967 # The user passed in the libraries, search for the
968 # compiler ourselves.
969 with_f77=_searching
970 F77LIBS=`echo $with_fortran | sed 's/^,//'`
971 echo "user gave F77LIBS=$F77LIBS"
972 ;;
973 *,?*)
974 # The user passed in both the compiler and the
975 # libraries.
976 F77=`echo $with_fortran | sed s'/,.*$//'`
977 F77LIBS=`echo $with_fortran | sed 's/^.*,//'`
978 echo "user gave F77=$F77"
979 echo "user gave F77LIBS=$F77LIBS"
980 ;;
981 *)
982 # The user passed in the compiler; search for the
983 # libraries ourselves.
984 F77=`echo $with_fortran | sed s'/,$//'`
985 with_f77libs=_searching
986 echo "user gave F77=$F77"
987 ;;
988 esac
989
990 if test "X$with_f77" = X_searching ; then
991 # Search for the fortran compiler; print a warning if we can't
992 # find it and disable all fortran.
993 AC_PATH_PROGS(F77, f77 xlf g77, , $asc_f77_prog_dirs)
994 if test -z "$F77" ; then
995 with_fortran=no
996 with_f77libs=no
997 AC_MSG_WARN([Cannot find your Fortran compiler. Building ASCEND
998 without integration, MINOS, and CONOPT support. To bulid ASCEND with
999 Fortran support, run configure with the option
1000 --with-fortran=F77,F77LIBS
1001 where F77 is the full path to your Fortran compiler and F77LIBS are
1002 its related libraries])
1003 fi
1004 fi
1005
1006 if test "X$with_f77libs" = X_searching ; then
1007 # We found a compiler, now search for the fortran libraries
1008 # based on the system type.
1009 AC_MSG_RESULT([checking for fortran libraries based on system type])
1010 case "$host" in
1011 hppa1.1-hp-hpux*)
1012 AC_CHECK_LIB(cl, FTN_QATAN, [F77LIBS="$F77LIBS -lcl"], , $F77LIBS)
1013 ;;
1014 *-ibm-aix*)
1015 # need to add -lc before -lxlf on AIX to
1016 # avoid getting the wrong getenv
1017 F77LIBS="-lc $F77LIBS"
1018 AC_CHECK_LIB(xlf, _xldabs, [F77LIBS="$F77LIBS -lxlf"], , $F77LIBS)
1019 AC_CHECK_LIB(xlfutil, srand_, [F77LIBS="$F77LIBS -lxlfutil"], ,
1020 $F77LIBS)
1021 AC_CHECK_LIB(xlf90, printf,
1022 [F77LIBS="$F77LIBS -lxlf90"], , $F77LIBS)
1023 ;;
1024 *-linux-*)
1025 AC_CHECK_LIB(f2c, pow_dd, [F77LIBS="$F77LIBS -lf2c"], , $F77LIBS)
1026 AC_CHECK_LIB(g2c, pow_dd, [F77LIBS="$F77LIBS -lg2c"], , $F77LIBS)
1027 ;;
1028 sparc-sun-solaris*)
1029 if test -n "$GCC" ; then
1030 F77LIBS="-L/opt/SUNWspro/lib -R/opt/SUNWspro/lib"
1031 fi
1032 AC_CHECK_LIB(sunmath, d_sqrt_, [MATH_LIBS="-lsunmath $MATH_LIBS"])
1033 AC_CHECK_LIB(F77, f77_init,
1034 [F77LIBS="$F77LIBS -lF77"], , $F77LIBS $MATH_LIBS)
1035 AC_CHECK_LIB(M77, inmax_,
1036 [F77LIBS="$F77LIBS -lM77"], , $F77LIBS $MATH_LIBS)
1037 ;;
1038 sparc-sun-sunos4*)
1039 if test -n "$GCC" ; then
1040 F77LIBS="-L/usr/lang/lib"
1041 fi
1042 AC_CHECK_LIB(F77, f77_init, [F77LIBS="$F77LIBS -lF77"], , $F77LIBS)
1043 AC_CHECK_LIB(M77, inmax_, [F77LIBS="$F77LIBS -lM77"], , $F77LIBS)
1044 ;;
1045 mips-sgi-irix*)
1046 AC_CHECK_LIB(F77, s_copy, [F77LIBS="$F77LIBS -lF77"], , $F77LIBS)
1047 AC_CHECK_LIB(I77, f_exit, [F77LIBS="$F77LIBS -lI77"], , $F77LIBS)
1048 AC_CHECK_LIB(isam, mkidxname,
1049 [F77LIBS="$F77LIBS -lisam"], , $F77LIBS)
1050 ;;
1051 *)
1052 AC_CHECK_LIB(F77, printf, [F77LIBS="$F77LIBS -lF77"], , $F77LIBS)
1053 AC_CHECK_LIB(M77, printf, [F77LIBS="$F77LIBS -lM77"], , $F77LIBS)
1054 AC_CHECK_LIB(f2c, pow_dd, [F77LIBS="$F77LIBS -lf2c"], , $F77LIBS)
1055 AC_CHECK_LIB(f77, printf, [F77LIBS="$F77LIBS -lf77"], , $F77LIBS)
1056 AC_CHECK_LIB(for, printf, [F77LIBS="$F77LIBS -lfor"], , $F77LIBS)
1057 AC_CHECK_LIB(ots, printf, [F77LIBS="$F77LIBS -lots"], , $F77LIBS)
1058 AC_CHECK_LIB(Ufor, printf, [F77LIBS="$F77LIBS -lUfor"], , $F77LIBS)
1059 ;;
1060 esac
1061 fi
1062
1063 # asc_subdirs are the extra fortran subdirectories we have to visit
1064 # to build the fortran libraries. Initialize it to empty here.
1065 asc_subdirs=''
1066
1067 # Initialize the blas variables
1068 make_blaslib=''
1069
1070 AC_ARG_WITH(blas,
1071 [ --with-blas=BLASLIB The full path to the blas library.
1072 Use '--with-blas=build' to build the blas library
1073 from the sources that come with the distribution.],
1074 , [with_blas=yes] )
1075 case "$with_fortran$with_blas" in
1076 no*)
1077 # Fortran is disabled; ignore this option (if present)
1078 BLASLIB=
1079 ;;
1080 *no)
1081 # It is an error if the user chooses to build without
1082 # the BLAS library if Fortran is enabled.
1083 AC_MSG_ERROR([Bad option '--without-blas'
1084 To support Fortran calls, ASCEND must be compiled with a blas library])
1085 ;;
1086 *build)
1087 # Fortran is enabled and the user specified --with-blas=build
1088 # For a search for BLAS source code and tell the Makefile
1089 # to build it; useful for testing configure.
1090 #AWW20041206: blas_src_file="$srcdir/blas/dcopy.f"
1091 blas_src_file="$srcdir/../../blas/dcopy.f"
1092 AC_MSG_CHECKING([for blas source file $blas_src_file ])
1093 if test -f $blas_src_file ; then
1094 AC_MSG_RESULT(yes)
1095 #AWW20041119: BLASLIB="$ascpwd/ascend4/archive/libascblas.a"
1096 BLASLIB="$ascpwd/archive/libascblas.a"
1097 make_blaslib='make-blaslib'
1098 #AWW20041206: blaslib_makefile="blas/Makefile"
1099 blaslib_makefile="blas/Makefile:../../blas/Makefile.in"
1100 #AWW20041206: asc_subdirs="$asc_subdirs ../blas"
1101 asc_subdirs="$asc_subdirs blas"
1102 else
1103 AC_MSG_RESULT(no)
1104 AC_MSG_ERROR([User specified '--with-blas=build' but
1105 configure cannot find the blas source file $blas_src_file])
1106 fi
1107 ;;
1108 *yes)
1109 # Fortran in enabled and the user didn't give the --with-blas
1110 # option or didn't give the library's location.
1111 # Search for a compiled libblas.a or libascblas.a; if that
1112 # fails, look for BLAS source code; if that also fails,
1113 # disable all Fortran and print a warning.
1114 AC_PATH_PROGS(BLASLIB, libblas.a libascblas.a, , $asc_f77_support_dirs)
1115 blas_src_file="$srcdir/../../blas/dcopy.f"
1116 if test -z "$BLASLIB" -a -n "$blas_src_file" ; then
1117 AC_MSG_CHECKING([for blas source file $blas_src_file ])
1118 if test -f $blas_src_file ; then
1119 AC_MSG_RESULT(yes)
1120 #AWW20041119: BLASLIB="$ascpwd/ascend4/archive/libascblas.a"
1121 BLASLIB="$ascpwd/archive/libascblas.a"
1122 make_blaslib='make-blaslib'
1123 #AWW20041206: blaslib_makefile="blas/Makefile"
1124 blaslib_makefile="blas/Makefile:../../blas/Makefile.in"
1125 #AWW20041206: asc_subdirs="$asc_subdirs ../blas"
1126 asc_subdirs="$asc_subdirs blas"
1127 else
1128 AC_MSG_RESULT(no)
1129 fi
1130 fi
1131 if test -z "$BLASLIB" ; then
1132 with_fortran=no
1133 AC_MSG_WARN([Cannot find libblas.a, libascblas.a, nor blas
1134 source code. Building ASCEND without integration, MINOS, and CONOPT
1135 support. To specify a specific location for the blas library, run
1136 configure again with the argument:
1137 --with-blas=BLASLIB
1138 where BLASLIB is the full path to the blas library file.])
1139 fi
1140 ;;
1141 *)
1142 # The user gave us --with-blas=BLASLIB, use that as the
1143 # location of the BLAS library.
1144 BLASLIB="$with_blas"
1145 ;;
1146 esac
1147
1148
1149 # Initialize the linpack variables
1150 make_lpaklib=''
1151
1152 AC_ARG_WITH(linpack,
1153 [ --with-linpack=LPAKLIB The full path to the linpack library.
1154 Use '--with-linpack=build' to build the library
1155 from the sources that come with the distribution.],
1156 , [with_linpack=yes] )
1157 case "$with_fortran$with_linpack" in
1158 no*)
1159 # Fortran is disabled; ignore this option (if present)
1160 LPAKLIB=
1161 ;;
1162 *no)
1163 # It is an error if the user chooses to build without
1164 # the LINPACK library if Fortran is enabled.
1165 AC_MSG_ERROR([Bad option '--without-linpack'
1166 To support Fortran calls, ASCEND must be compiled with a
1167 linpack library.])
1168 ;;
1169 *build)
1170 # Fortran is enabled and the user specified --with-linpack=build
1171 # For a search for LINPACK source code and tell the Makefile
1172 # to build it; useful for testing configure.
1173 lpak_src_file="$srcdir/../../linpack/d1mach.f"
1174 AC_MSG_CHECKING([for linpack source file $lpak_src_file ])
1175 if test -f $lpak_src_file ; then
1176 AC_MSG_RESULT(yes)
1177 #AWW20041119: LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a"
1178 LPAKLIB="$ascpwd/archive/libasclpak.a"
1179 make_lpaklib='make-lpaklib'
1180 #AWW20041206: lpaklib_makefile="linpack/Makefile"
1181 lpaklib_makefile="linpack/Makefile:../../linpack/Makefile.in"
1182 #AWW20041206: asc_subdirs="$asc_subdirs ../linpack"
1183 asc_subdirs="$asc_subdirs linpack"
1184 else
1185 AC_MSG_RESULT(no)
1186 AC_MSG_ERROR([User specified '--with-linpack=build' but
1187 configure cannot find the linpack source file $lpak_src_file])
1188 fi
1189 ;;
1190 *yes)
1191 # Fortran in enabled and the user didn't give the --with-linpack
1192 # option or didn't give the library's location.
1193 # Search for a compiled liblpak.a or libasclpak.a; if that
1194 # fails, look for LINPACK source code; if that also fails,
1195 # disable all Fortran and print a warning.
1196 AC_PATH_PROGS(LPAKLIB, liblpak.a libasclpak.a, , $asc_f77_support_dirs)
1197 lpak_src_file="$srcdir/../../linpack/d1mach.f"
1198 if test -z "$LPAKLIB" -a -n "$lpak_src_file" ; then
1199 AC_MSG_CHECKING([for linpack source file $lpak_src_file ])
1200 if test -f $lpak_src_file ; then
1201 AC_MSG_RESULT(yes)
1202 #AWW20041119: LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a"
1203 LPAKLIB="$ascpwd/archive/libasclpak.a"
1204 make_lpaklib='make-lpaklib'
1205 #AWW20041206: lpaklib_makefile="linpack/Makefile"
1206 lpaklib_makefile="linpack/Makefile:../../linpack/Makefile.in"
1207 #AWW20041206: asc_subdirs="$asc_subdirs ../linpack"
1208 asc_subdirs="$asc_subdirs linpack"
1209 else
1210 AC_MSG_RESULT(no)
1211 fi
1212 fi
1213 if test -z "$LPAKLIB" ; then
1214 with_fortran=no
1215 AC_MSG_WARN([Cannot find liblpak.a, libasclpak.a, nor linpack
1216 source code. Building ASCEND without integration, MINOS, and CONOPT
1217 support. To specify a specific location for the linpack library, run
1218 configure again with the argument:
1219 --with-linpack=LPAKLIB
1220 where LPAKLIB is the full path to the linpack library file.])
1221 fi
1222 ;;
1223 *)
1224 # The user gave us --with-linkpack=LINKPACKLIB, use that
1225 # as the location of the LINKPACK library.
1226 LPAKLIB="$with_linpack"
1227 ;;
1228 esac
1229
1230
1231 # Initialize the lsod variables
1232 make_lsodlib=''
1233 HAVE_LSOD=''
1234
1235 AC_ARG_WITH(lsod,
1236 [ --with-lsod=LSODLIB The full path to the lsod library.
1237 Use '--with-lsod=build' to build the lsod library
1238 from the sources that come with the distribution.],
1239 , [with_lsod=yes] )
1240 case "$with_fortran$with_lsod" in
1241 no*)
1242 # Fortran is disabled; ignore this option (if present)
1243 LSODLIB=
1244 with_lsod=no
1245 ;;
1246 *no)
1247 # Fortran is enabled but the user specified --without-lsod
1248 LSODLIB=
1249 ;;
1250 *build)
1251 # Fortran is enabled and the user specified --with-lsod=build
1252 # For a search for LSOD source code and tell the Makefile
1253 # to build it; useful for testing configure.
1254 lsod_src_file="$srcdir/../../lsod/lsode.f"
1255 AC_MSG_CHECKING([for lsod source file $lsod_src_file ])
1256 if test -f $lsod_src_file ; then
1257 AC_MSG_RESULT(yes)
1258 #AWW20041119: LSODLIB="$ascpwd/ascend4/archive/libinteg.a"
1259 LSODLIB="$ascpwd/archive/libinteg.a"
1260 make_lsodlib='make-lsodlib'
1261 #AWW20041206: lsodlib_makefile="lsod/Makefile"
1262 lsodlib_makefile="lsod/Makefile:../../lsod/Makefile.in"
1263 #AWW20041206: asc_subdirs="$asc_subdirs ../lsod"
1264 asc_subdirs="$asc_subdirs lsod"
1265 HAVE_LSOD='-DSTATIC_LSOD'
1266 else
1267 AC_MSG_RESULT(no)
1268 AC_MSG_ERROR([User specified '--with-lsod=build' but
1269 configure cannot find the lsod source file $lsod_src_file])
1270 fi
1271 ;;
1272 *yes)
1273 # Fortran in enabled and the user didn't give the --with-lsod
1274 # option or didn't give the library's location.
1275 # Search for a compiled libinteg.a; if that fails, look
1276 # for LSOD source code; if that also fails, disable LSOD
1277 # and print a warning.
1278 AC_PATH_PROGS(LSODLIB, libinteg.a libasclsod.a, , $asc_f77_support_dirs)
1279 lsod_src_file="$srcdir/../../lsod/lsode.f"
1280 if test -z "$LSODLIB" -a -n "$lsod_src_file" ; then
1281 AC_MSG_CHECKING([for lsod source file $lsod_src_file ])
1282 if test -f $lsod_src_file ; then
1283 AC_MSG_RESULT(yes)
1284 #AWW20041119: LSODLIB="$ascpwd/ascend4/archive/libinteg.a"
1285 LSODLIB="$ascpwd/archive/libinteg.a"
1286 make_lsodlib='make-lsodlib'
1287 #AWW20041206: lsodlib_makefile="lsod/Makefile"
1288 lsodlib_makefile="lsod/Makefile:../../lsod/Makefile.in"
1289 #AWW20041206: asc_subdirs="$asc_subdirs ../lsod"
1290 asc_subdirs="$asc_subdirs lsod"
1291 else
1292 AC_MSG_RESULT(no)
1293 fi
1294 fi
1295 if test -z "$LSODLIB" ; then
1296 with_lsod=no
1297 AC_MSG_WARN([Cannot find libinteg.a nor the lsod
1298 source code. Building ASCEND without integration
1299 support. To specify a specific location for the lsod library, run
1300 configure again with the argument:
1301 --with-lsod=LSODLIB
1302 where LSODLIB is the full path to the lsod integration library file.])
1303 else
1304 HAVE_LSOD='-DSTATIC_LSOD'
1305 fi
1306 ;;
1307 *)
1308 # The user gave us --with-lsod=LSODLIB, use that as the
1309 # location of the LSOD library and define -DSTATIC_LSOD.
1310 LSODLIB="$with_lsod"
1311 HAVE_LSOD='-DSTATIC_LSOD'
1312 ;;
1313 esac
1314
1315
1316 #--------------------------------------------------------------------
1317 # Other trees which may or may not be present. If present,
1318 # generate the Makefiles in the tree unless the user passes in
1319 # a --without-<package> argument.
1320 #
1321 # Valid <package> values are: TK, models, help
1322 #
1323 # We could have `configure' do this for us via
1324 # AC_CONFIG_SUBDIRS, but `configure' scripts in the trees can
1325 # only be one directory removed from this configure script.
1326 # For example, it would be nice to have `models' under
1327 # `ascend4', but `configure' doesn't like `ascend4/models' as
1328 # an argument to AC_CONFIG_SUBDIRS.
1329 #
1330 # To get around this problem, we do things by hand. :-)
1331 #
1332 # If the user gives a --without-<package> argument, we have
1333 # nothing to do for that package.
1334 #
1335 # Otherwise,
1336 # * Set `subdir_file_exists' to a file that should exist in the
1337 # subtree---this is how we know that the subtree is really
1338 # there.
1339 # * Set `subdir_locations' to the list of locations, relative
1340 # to this configure script, where the subtree may live.
1341 # * Set `subdir_output' to the list of makefiles to generate;
1342 # the variable `subdir_root' in this list will be replaced
1343 # with the correct value from `subdir_locations'.
1344 #
1345 # To see which (if any) of the values in `subdir_locations' is
1346 # the correct one, we set `subdir_root' to each value in
1347 # `subdir_locations' and check for the existence of
1348 # $fullpathsrcdir/$subdir_root/$subdir_file_exists, where
1349 # $fullpathsrcdir is the full path to the source directory. If
1350 # that file exists, we
1351 # * Set <package>_dir_root to ../$subdir_root. The "../" is
1352 #AWW20041208:# needed since this value is used in the `ascend4' directory
1353 # needed since this value is used in the `generic' directory
1354 #AWW20041208:# and $subdir_root is relative to the parent of `ascend4'.
1355 # and $subdir_root is relative to the parent of `generic'.
1356 # * Substitute the value of $subdir_root into `subdir_output'
1357 # and set the result to <package>_makefiles: the list of
1358 # Makefiles for configure to generate.
1359 # * Each package needs to be able to find its way back to
1360 # ascend4/ConfigAscend; it needs to go back up the tree
1361 # however many levels deep it is---i.e., `foo/bar/baz' should
1362 # become `../../..' and this does it: sed 's,[^/][^/]*,..,g'
1363 # but we need to quote the [] from m4, so we get this bizarre
1364 # thing: sed 's,[[^/][^/]]*,..,g' Set <package>_topbuilddir
1365 # to this result.
1366 # * Exit the loop.
1367 #--------------------------------------------------------------------
1368
1369 # Initialize variables
1370 tkdir_root=''
1371 tkdir_topbuilddir=''
1372
1373 AC_ARG_WITH(tkdir,
1374 [Generation of Makefiles:
1375 --without-tkdir do not generate Makefiles in the TK subdir],
1376 , [with_tkdir=yes])
1377 if test ! "X$with_tkdir" = "Xno" ; then
1378 subdir_file_exists='AscendRC'
1379 #AWW20041117: FIXME next line
1380 #AWW20041206: subdir_locations='ascend4/TK'
1381 subdir_target="TK"
1382 subdir_locations='../../tcltk/TK'
1383 subdir_output='
1384 $subdir_target/Makefile:$subdir_root/Makefile.in
1385 $subdir_target/Makefile.Rules:$subdir_root/Makefile.Rules.in
1386 $subdir_target/bitmaps/Makefile:$subdir_root/bitmaps/Makefile.in
1387 $subdir_target/templates/Makefile:$subdir_root/templates/Makefile.in
1388 '
1389 for subdir_root in $subdir_locations ; do
1390 if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then
1391 #AWW20041208: tkdir_root="../$subdir_root"
1392 tkdir_root=$subdir_target
1393 tkdir_makefiles=`eval echo $subdir_output`
1394 tkdir_topbuilddir="$fullpathsrcdir/../../tcltk/TK"
1395 break
1396 fi
1397 done
1398 fi
1399
1400 # Initialize variables
1401 models_dir_root=''
1402 models_topbuilddir=''
1403
1404 AC_ARG_WITH(models,
1405 [ --without-models do not generate Makefiles in the models subdir],
1406 , [with_models=yes])
1407 if test ! "X$with_models" = "Xno" ; then
1408 subdir_file_exists='system.a4l'
1409 #AWW20041117: FIXME next line
1410 #AWW20041206: subdir_locations='models ascend4/models'
1411 subdir_target="models"
1412 subdir_locations='models ../../models'
1413 subdir_output='
1414 $subdir_target/Makefile:$subdir_root/Makefile.in
1415 $subdir_target/Makefile.Rules:$subdir_root/Makefile.Rules.in
1416 $subdir_target/ben/Makefile:$subdir_root/ben/Makefile.in
1417 $subdir_target/johnpye/Makefile:$subdir_root/johnpye/Makefile.in
1418 '
1419 ## $subdir_root/examples/Makefile
1420 ## $subdir_root/examples/abbott/Makefile
1421 ## $subdir_root/examples/flexible_design/Makefile
1422 ## $subdir_root/libraries/Makefile
1423 ## $subdir_root/libraries/abbott/Makefile
1424 ## $subdir_root/pending/Makefile
1425 ## $subdir_root/pending/examples/Makefile
1426 ## $subdir_root/pending/libraries/Makefile
1427 for subdir_root in $subdir_locations ; do
1428 if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then
1429 #AWW20041208: models_dir_root="../$subdir_root"
1430 models_dir_root="$subdir_target"
1431 models_makefiles=`eval echo $subdir_output`
1432 models_topbuilddir="$fullpathsrcdir/../../models"
1433 break
1434 fi
1435 done
1436 fi
1437
1438 AC_ARG_WITH(quiet,
1439 [ --with-quiet Much less whining if reinstalling the tk,models subdirs],
1440 , [with_quiet=no])
1441 if test ! "X$with_quiet" = "Xno" ; then
1442 QUIET_INSTALL=1
1443 else
1444 QUIET_INSTALL=0
1445 fi
1446 AC_SUBST(QUIET_INSTALL)
1447
1448 # Initialize variables
1449 help_dir_root=''
1450 help_topbuilddir=''
1451
1452 dnl >>>>AC_ARG_WITH(help,
1453 dnl >>>> [ --without-help do not generate Makefiles in the help subdir],
1454 dnl >>>> , [with_help=yes])
1455 dnl >>>>if test ! "X$with_help" = "Xno" ; then
1456 dnl >>>> subdir_file_exists='ascend-helpTOC.htm'
1457 dnl >>>> subdir_locations='help ascend4/help'
1458 dnl >>>> subdir_output='
1459 dnl >>>> $subdir_root/Makefile
1460 dnl >>>> $subdir_root/Makefile.Rules:$subdir_root/Makefile.Rules.in
1461 dnl >>>> $subdir_root/Screenshots/Makefile
1462 dnl >>>> '
1463 dnl >>>> for subdir_root in $subdir_locations ; do
1464 dnl >>>> if test -f $fullpathsrcdir/$subdir_root/$subdir_file_exists ; then
1465 dnl >>>> help_dir_root="../$subdir_root"
1466 dnl >>>> help_makefiles=`eval echo $subdir_output`
1467 dnl >>>> help_topbuilddir=`echo "$subdir_root" | sed 's,[[^/][^/]]*,..,g'`
1468 dnl >>>> break
1469 dnl >>>> fi
1470 dnl >>>> done
1471 dnl >>>>fi
1472
1473 #-----------------------------------------------
1474 # DYNAMIC_LINKING or STATIC_LINKING ?
1475
1476 AC_MSG_CHECKING([for package linking])
1477
1478 AC_ARG_ENABLE(dynamic-linking, AC_HELP_STRING([--enable-dynamic-packages],
1479 [Enable dynamic linking of ASCEND external packages (default is YES for Linux, Cygwin and MinGW; NO for any other platform)])
1480 ,
1481 if test $enableval; then
1482 dynlinking=1
1483 else
1484 dynlinking=0
1485 fi
1486 ,
1487 dynlinking="_def"
1488 )
1489
1490 if test "X$dynlinking" = "X_def"; then
1491 case $host in
1492 *-*-cygwin* | *-*-mingw* | *linux* ) dynlinking=1;;
1493 *) dynlinking=0;;
1494 esac
1495 fi
1496
1497 if test "X$dynlinking" = "X1"; then
1498 AC_MSG_RESULT([DYNAMIC])
1499 AC_DEFINE(DYNAMIC_PACKAGES)
1500 else
1501 AC_MSG_RESULT([STATIC])
1502 AC_DEFINE(STATIC_PACKAGES)
1503 fi
1504
1505 #-----------------------------------------------
1506 # DEBUG_RELS or not?
1507
1508 AC_MSG_CHECKING([for relation debugging])
1509
1510 AC_ARG_ENABLE(relation-debugging, AC_HELP_STRING([--enable-relation-debugging],
1511 [Enable debug output for relation compilation (default is NO)])
1512 ,
1513 if test $enableval; then
1514 debugrels=1
1515 else
1516 debugrels=0
1517 fi
1518 ,
1519 debugrels=0
1520 )
1521
1522 if test "X$debugrels" = "X1"; then
1523 AC_MSG_RESULT([YES])
1524 AC_DEFINE(DEBUG_RELS)
1525 else
1526 AC_MSG_RESULT([no])
1527 fi
1528
1529 #-----------------------------------------------
1530 # TIME the compiler?
1531
1532 AC_MSG_CHECKING([whether to time the compiler])
1533
1534 AC_ARG_ENABLE(compiler-timing, AC_HELP_STRING([--enable-compiler-timing],
1535 [Enable timing of the compiler (default is NO)])
1536 ,
1537 if test $enableval; then
1538 timecompiler=1
1539 else
1540 timecompiler=0
1541 fi
1542 ,
1543 timecompiler=0
1544 )
1545
1546 if test "X$timecompiler" = "X1"; then
1547 AC_MSG_RESULT([YES])
1548 AC_DEFINE(TIMECOMPILER)
1549 else
1550 AC_MSG_RESULT([no])
1551 fi
1552
1553 ASC_DISTDIR_REL_BIN=".."
1554 # Next we determine whether models and TK get installed in
1555 # prefix or datadir. If datadir not explicitly given, we
1556 # use prefix.
1557 if test "x$datadir" = 'x${prefix}/share'; then
1558 echo "--------PREFIX"
1559 INSTALL_ASCDATA="$prefix"
1560 else
1561 echo "--------DATADIR"
1562 INSTALL_ASCDATA="$datadir"
1563 fi
1564 DEFAULT_ASCENDLIBRARY="$INSTALL_ASCDATA/models"
1565 ASCEND_DEFAULTLIBRARY="$INSTALL_ASCDATA/models"
1566 ASC_ENV_TK_DEFAULT="\$ASCENDDIST/TK"
1567
1568 echo "INSTALL_ASCDATA--- $INSTALL_ASCDATA"
1569 echo "LIBRARY----------- $DEFAULT_ASCENDLIBRARY"
1570
1571 #--------------------------------------------------------------------
1572 # The variables we substitute into the Makefile.in files
1573 # and the command to actually generate the Makefiles
1574 #--------------------------------------------------------------------
1575 AC_SUBST(DEFAULT_ASCENDLIBRARY)
1576 AC_SUBST(ASCEND_DEFAULTLIBRARY)
1577 AC_SUBST(ascpwd)
1578 AC_SUBST(fullpathsrcdir)
1579 AC_SUBST(asc_include)
1580 AC_SUBST(CC)
1581 AC_SUBST(DEFS)
1582 AC_SUBST(CFLAGS)
1583 AC_SUBST(LEX)
1584 AC_SUBST(LEXLIB)
1585 AC_SUBST(scanner_src)
1586 AC_SUBST(typer_src)
1587 AC_SUBST(MATH_LIBS)
1588 AC_SUBST(DEBUG_LIBS)
1589 AC_SUBST(X11_INCLUDES)
1590 AC_SUBST(X11_LIBRARIES)
1591 AC_SUBST(X11_RUN_PATH)
1592 AC_SUBST(X11_EXTRA_LIBS)
1593 AC_SUBST(DL_LIBS)
1594 AC_SUBST(LD_FLAGS)
1595 AC_SUBST(LD_SEARCH_FLAGS)
1596 AC_SUBST(SHLIB_CFLAGS)
1597 AC_SUBST(SHLIB_LD)
1598 AC_SUBST(SHLIB_LD_LIBS)
1599 AC_SUBST(SHLIB_SUFFIX)
1600 AC_SUBST(ASC_LIB_SUFFIX)
1601 AC_SUBST(TK_LIB)
1602 AC_SUBST(TKTABLE_LIB)
1603 AC_SUBST(ASC_TK_LIBRARY)
1604 AC_SUBST(ASC_TCL_LIBRARY)
1605 AC_SUBST(ASC_DISTDIR_REL_BIN)
1606 AC_SUBST(INSTALL_ASCDATA)
1607 AC_SUBST(ASC_ENV_TK_DEFAULT)
1608 AC_SUBST(TK_LD_HACK)
1609 AC_SUBST(HAVE_TKTABLE)
1610 AC_SUBST(asc_subdirs)
1611 AC_SUBST(F77)
1612 AC_SUBST(F77LIBS)
1613 AC_SUBST(BLASLIB)
1614 AC_SUBST(make_blaslib)
1615 AC_SUBST(LPAKLIB)
1616 AC_SUBST(make_lpaklib)
1617 AC_SUBST(LSODLIB)
1618 AC_SUBST(make_lsodlib)
1619 AC_SUBST(HAVE_LSOD)
1620 #AWW20041113: AC_SUBST(OPTSQPLIB)
1621 #AWW20041113: AC_SUBST(make_rsqplib)
1622 #AWW20041113: AC_SUBST(HAVE_OPTSQP)
1623 #AWW20041113: dnl AC_SUBST(HARWELLLIB)
1624 #AWW20041113: dnl AC_SUBST(make_harwelllib)
1625 #AWW20041113: dnl AC_SUBST(HAVE_HARWELL)
1626 #AWW20041113: AC_SUBST(MINOSLIB)
1627 #AWW20041113: AC_SUBST(make_minoslib)
1628 #AWW20041113: AC_SUBST(HAVE_MINOS)
1629 #AWW20041113: AC_SUBST(CONOPTLIB)
1630 #AWW20041113: AC_SUBST(make_conoptlib)
1631 #AWW20041113: AC_SUBST(HAVE_CONOPT)
1632 AC_SUBST(tkdir_root)
1633 AC_SUBST(tkdir_topbuilddir)
1634 AC_SUBST(models_dir_root)
1635 AC_SUBST(models_topbuilddir)
1636 AC_SUBST(help_dir_root)
1637 AC_SUBST(help_topbuilddir)
1638
1639 AC_OUTPUT(
1640 ConfigAscend:../../base/generic/ConfigAscend.in
1641 Makefile:../../base/generic/Makefile.in
1642 bin/ascend4.sh:../../base/generic/bin/ascend4.sh.in
1643 Makefile.Rules:../../base/generic/Makefile.Rules.in
1644 archive/Makefile:../../base/generic/archive/Makefile.in
1645 bin/Makefile:../../base/generic/bin/Makefile.in
1646 compiler/Makefile:../../base/generic/compiler/Makefile.in
1647 general/Makefile:../../base/generic/general/Makefile.in
1648 interface/Makefile:../../tcltk/generic/interface/Makefile.in
1649 lib/Makefile:../../base/generic/lib/Makefile.in
1650 packages/Makefile:../../base/generic/packages/Makefile.in
1651 solver/Makefile:../../base/generic/solver/Makefile.in
1652 utilities/Makefile:../../base/generic/utilities/Makefile.in
1653 ../../base/generic/utilities/config.h
1654 ../../jam/Jamrules
1655 ../../tcltk/generic/Jamrules_tcltk
1656 $tkdir_makefiles
1657 $models_makefiles
1658 $help_makefiles
1659 $blaslib_makefile
1660 $lpaklib_makefile
1661 $lsodlib_makefile
1662 )

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