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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

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