60 |
# if the user moves the source tree, things will break unless |
# if the user moves the source tree, things will break unless |
61 |
# the user re-runs configure. |
# the user re-runs configure. |
62 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
|
##AWW20041113: FIXME - I think this is okay |
|
|
##AWW ascpwd will be set to the path for the directory one is in |
|
|
##AWW when invoking configure (which may not be where configure |
|
|
##AWW is located. So if one invokes it using the instruction |
|
|
##AWW from /home/me/a4/tmp and invokes ../asc4/configure, ascpwd |
|
|
##AWW would be set to /home/me/a4/tmp. |
|
|
ascpwd=`pwd` |
|
|
fullpathsrcdir=`cd $srcdir ; pwd` |
|
|
|
|
63 |
|
|
64 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
|
# When one invokes configure from where one is, it is done |
|
|
# with the path $srcdir/configure. For example, if one is |
|
|
# in the directory containing configure, one would invoke |
|
|
# ./configure and $srcdir would have the value ".". |
|
|
# |
|
65 |
# The asc_include variable is (directory) path to the ascend4 |
# The asc_include variable is (directory) path to the ascend4 |
66 |
# SOURCE directory relative to the immediate subdirectories of |
# SOURCE directory relative to the immediate subdirectories of |
67 |
# the ascend4 OBJECT directory. |
# the ascend4 OBJECT directory. |
68 |
# -- If we are building in the source directory ($srcdir is "." |
##AWW |
69 |
# asc_include is simply "../." |
##AWW We put the .o files when compiling into a tree structure |
70 |
# -- If the user gives us a full path to the configure script, |
##AWW relative to the directory in which we currently reside, |
71 |
# we just append "../generic" to that full path: |
##AWW while the .c and .h files are in a similar tree structure |
72 |
# "$scrdir/../generic" |
##AWW relative to the configure instruction we invoke. This |
73 |
# -- For any other value of $srcdir (like ../src/), we go up |
##AWW allows one to have separate .o files in their own tree when |
74 |
# two directories (to get to the top of the OBJECT tree, |
##AWW compiling for different operating systems. |
75 |
# insert the source directory, and then go back down one |
##AWW |
76 |
# level to the ascend4 directory: "../../$srcdir/../generic" |
##AWW Example 1 (same directories) |
77 |
|
##AWW Current directory one is in: /home/me/a4/asc4 |
78 |
|
##AWW Directory containing configure: /home/me/a4/asc4 |
79 |
|
##AWW Command to invoke configure: ./configure |
80 |
|
##AWW $ascpwd will be: /home/me/a4/asc4 |
81 |
|
##AWW $srcdir will be: . |
82 |
|
##AWW |
83 |
|
##AWW Example 2 (different directories, abs path for command) |
84 |
|
##AWW Current directory one is in: /home/me/a4/tmp |
85 |
|
##AWW Directory containing configure: /home/me/a4/asc4 |
86 |
|
##AWW Command to invoke configure: /home/me/a4/asc4/configure |
87 |
|
##AWW $ascpwd will be: /home/me/a4/tmp |
88 |
|
##AWW $srcdir will be: /home/me/a4/asc4 |
89 |
|
##AWW |
90 |
|
##AWW Example 3 (different directories, rel path for command) |
91 |
|
##AWW Same as Example 2 |
92 |
|
##AWW Command to invoke configure: ../asc4/configure |
93 |
|
##AWW $ascpwd will be: /home/me/a4/tmp (same as in Example 2) |
94 |
|
##AWW $srcdir will be: ../asc4 |
95 |
#-------------------------------------------------------------------- |
#-------------------------------------------------------------------- |
96 |
##AWW20041113: FIXME?? |
|
97 |
|
ascpwd=`pwd` |
98 |
|
fullpathsrcdir=`cd $srcdir ; pwd` |
99 |
|
|
100 |
case "$srcdir" in |
case "$srcdir" in |
101 |
.) |
.) |
102 |
asc_include="../$srcdir" |
asc_include="../$srcdir" |
127 |
AC_PROG_LN_S |
AC_PROG_LN_S |
128 |
AC_PROG_MAKE_SET |
AC_PROG_MAKE_SET |
129 |
AC_PROG_INSTALL |
AC_PROG_INSTALL |
130 |
##AWW20041113: FIXME?? No fixing seems necessary. |
##AWW20041113: No fixing seems necessary. |
131 |
case "X$INSTALL" in |
case "X$INSTALL" in |
132 |
X/*) |
X/*) |
133 |
;; |
;; |
1311 |
$ascpwd/blas |
$ascpwd/blas |
1312 |
$ascpwd/linpack |
$ascpwd/linpack |
1313 |
$ascpwd/lsod |
$ascpwd/lsod |
1314 |
|
|
1315 |
|
##AWW There are folders two levels up from configure for these packages |
1316 |
|
$fullpathsrcdir/../../blas |
1317 |
|
$fullpathsrcdir/../../linpack |
1318 |
|
$fullpathsrcdir/../../lsod |
1319 |
|
|
1320 |
#AWW20041113: $ascpwd/conopt |
#AWW20041113: $ascpwd/conopt |
1321 |
#AWW20041113: $ascpwd/rsqp |
#AWW20041113: $ascpwd/rsqp |
1322 |
#AWW20041113: $ascpwd/minos |
#AWW20041113: $ascpwd/minos |
1323 |
#AWW20041113: $ascpwd/ascend4/archive |
#AWW20041113: $ascpwd/ascend4/archive |
1324 |
$srcdir/generic/archive |
$ascpwd/generic/archive |
1325 |
/afs/cs/project/ascend/depot/@sys/lib |
/afs/cs/project/ascend/depot/@sys/lib |
1326 |
/afs/cs/project/ascend/depot/build/obj/conopt |
/afs/cs/project/ascend/depot/build/obj/conopt |
1327 |
" |
" |
1490 |
AC_MSG_CHECKING([for blas source file $blas_src_file ]) |
AC_MSG_CHECKING([for blas source file $blas_src_file ]) |
1491 |
if test -f $blas_src_file ; then |
if test -f $blas_src_file ; then |
1492 |
AC_MSG_RESULT(yes) |
AC_MSG_RESULT(yes) |
1493 |
BLASLIB="$ascpwd/ascend4/archive/libascblas.a" |
#AWW20041119: BLASLIB="$ascpwd/ascend4/archive/libascblas.a" |
1494 |
|
BLASLIB="$ascpwd/../generic/archive/libascblas.a" |
1495 |
make_blaslib='make-blaslib' |
make_blaslib='make-blaslib' |
1496 |
blaslib_makefile="blas/Makefile" |
blaslib_makefile="blas/Makefile" |
1497 |
asc_subdirs="$asc_subdirs ../blas" |
asc_subdirs="$asc_subdirs ../blas" |
1513 |
AC_MSG_CHECKING([for blas source file $blas_src_file ]) |
AC_MSG_CHECKING([for blas source file $blas_src_file ]) |
1514 |
if test -f $blas_src_file ; then |
if test -f $blas_src_file ; then |
1515 |
AC_MSG_RESULT(yes) |
AC_MSG_RESULT(yes) |
1516 |
BLASLIB="$ascpwd/ascend4/archive/libascblas.a" |
#AWW20031119: BLASLIB="$ascpwd/ascend4/archive/libascblas.a" |
1517 |
|
BLASLIB="$ascpwd/../generic/archive/libascblas.a" |
1518 |
make_blaslib='make-blaslib' |
make_blaslib='make-blaslib' |
1519 |
blaslib_makefile="blas/Makefile" |
blaslib_makefile="blas/Makefile" |
1520 |
asc_subdirs="$asc_subdirs ../blas" |
asc_subdirs="$asc_subdirs ../blas" |
1568 |
AC_MSG_CHECKING([for linpack source file $lpak_src_file ]) |
AC_MSG_CHECKING([for linpack source file $lpak_src_file ]) |
1569 |
if test -f $lpak_src_file ; then |
if test -f $lpak_src_file ; then |
1570 |
AC_MSG_RESULT(yes) |
AC_MSG_RESULT(yes) |
1571 |
LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a" |
#AWW20041119: LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a" |
1572 |
|
LPAKLIB="$ascpwd/../generic/archive/libasclpak.a" |
1573 |
make_lpaklib='make-lpaklib' |
make_lpaklib='make-lpaklib' |
1574 |
lpaklib_makefile="linpack/Makefile" |
lpaklib_makefile="linpack/Makefile" |
1575 |
asc_subdirs="$asc_subdirs ../linpack" |
asc_subdirs="$asc_subdirs ../linpack" |
1591 |
AC_MSG_CHECKING([for linpack source file $lpak_src_file ]) |
AC_MSG_CHECKING([for linpack source file $lpak_src_file ]) |
1592 |
if test -f $lpak_src_file ; then |
if test -f $lpak_src_file ; then |
1593 |
AC_MSG_RESULT(yes) |
AC_MSG_RESULT(yes) |
1594 |
LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a" |
#AWW20041119: LPAKLIB="$ascpwd/ascend4/archive/libasclpak.a" |
1595 |
|
LPAKLIB="$ascpwd/../generic/archive/libasclpak.a" |
1596 |
make_lpaklib='make-lpaklib' |
make_lpaklib='make-lpaklib' |
1597 |
lpaklib_makefile="linpack/Makefile" |
lpaklib_makefile="linpack/Makefile" |
1598 |
asc_subdirs="$asc_subdirs ../linpack" |
asc_subdirs="$asc_subdirs ../linpack" |
1645 |
AC_MSG_CHECKING([for lsod source file $lsod_src_file ]) |
AC_MSG_CHECKING([for lsod source file $lsod_src_file ]) |
1646 |
if test -f $lsod_src_file ; then |
if test -f $lsod_src_file ; then |
1647 |
AC_MSG_RESULT(yes) |
AC_MSG_RESULT(yes) |
1648 |
LSODLIB="$ascpwd/ascend4/archive/libinteg.a" |
#AWW20041119: LSODLIB="$ascpwd/ascend4/archive/libinteg.a" |
1649 |
|
LSODLIB="$ascpwd/../generic/archive/libinteg.a" |
1650 |
make_lsodlib='make-lsodlib' |
make_lsodlib='make-lsodlib' |
1651 |
lsodlib_makefile="lsod/Makefile" |
lsodlib_makefile="lsod/Makefile" |
1652 |
asc_subdirs="$asc_subdirs ../lsod" |
asc_subdirs="$asc_subdirs ../lsod" |
1669 |
AC_MSG_CHECKING([for lsod source file $lsod_src_file ]) |
AC_MSG_CHECKING([for lsod source file $lsod_src_file ]) |
1670 |
if test -f $lsod_src_file ; then |
if test -f $lsod_src_file ; then |
1671 |
AC_MSG_RESULT(yes) |
AC_MSG_RESULT(yes) |
1672 |
LSODLIB="$ascpwd/ascend4/archive/libinteg.a" |
#AWW20041119: LSODLIB="$ascpwd/ascend4/archive/libinteg.a" |
1673 |
|
LSODLIB="$ascpwd/../generic/archive/libinteg.a" |
1674 |
make_lsodlib='make-lsodlib' |
make_lsodlib='make-lsodlib' |
1675 |
lsodlib_makefile="lsod/Makefile" |
lsodlib_makefile="lsod/Makefile" |
1676 |
asc_subdirs="$asc_subdirs ../lsod" |
asc_subdirs="$asc_subdirs ../lsod" |
1760 |
, [with_tkdir=yes]) |
, [with_tkdir=yes]) |
1761 |
if test ! "X$with_tkdir" = "Xno" ; then |
if test ! "X$with_tkdir" = "Xno" ; then |
1762 |
subdir_file_exists='AscendRC' |
subdir_file_exists='AscendRC' |
1763 |
|
#AWW20041117: FIXME next line |
1764 |
subdir_locations='ascend4/TK' |
subdir_locations='ascend4/TK' |
1765 |
subdir_output=' |
subdir_output=' |
1766 |
$subdir_root/Makefile |
$subdir_root/Makefile |
1787 |
, [with_models=yes]) |
, [with_models=yes]) |
1788 |
if test ! "X$with_models" = "Xno" ; then |
if test ! "X$with_models" = "Xno" ; then |
1789 |
subdir_file_exists='system.a4l' |
subdir_file_exists='system.a4l' |
1790 |
|
#AWW20041117: FIXME next line |
1791 |
subdir_locations='models ascend4/models' |
subdir_locations='models ascend4/models' |
1792 |
subdir_output=' |
subdir_output=' |
1793 |
$subdir_root/Makefile |
$subdir_root/Makefile |
1884 |
AC_SUBST(LSODLIB) |
AC_SUBST(LSODLIB) |
1885 |
AC_SUBST(make_lsodlib) |
AC_SUBST(make_lsodlib) |
1886 |
AC_SUBST(HAVE_LSOD) |
AC_SUBST(HAVE_LSOD) |
1887 |
AC_SUBST(OPTSQPLIB) |
#AWW20041113: AC_SUBST(OPTSQPLIB) |
1888 |
AC_SUBST(make_rsqplib) |
#AWW20041113: AC_SUBST(make_rsqplib) |
1889 |
AC_SUBST(HAVE_OPTSQP) |
#AWW20041113: AC_SUBST(HAVE_OPTSQP) |
1890 |
dnl AC_SUBST(HARWELLLIB) |
#AWW20041113: dnl AC_SUBST(HARWELLLIB) |
1891 |
dnl AC_SUBST(make_harwelllib) |
#AWW20041113: dnl AC_SUBST(make_harwelllib) |
1892 |
dnl AC_SUBST(HAVE_HARWELL) |
#AWW20041113: dnl AC_SUBST(HAVE_HARWELL) |
1893 |
AC_SUBST(MINOSLIB) |
#AWW20041113: AC_SUBST(MINOSLIB) |
1894 |
AC_SUBST(make_minoslib) |
#AWW20041113: AC_SUBST(make_minoslib) |
1895 |
AC_SUBST(HAVE_MINOS) |
#AWW20041113: AC_SUBST(HAVE_MINOS) |
1896 |
AC_SUBST(CONOPTLIB) |
#AWW20041113: AC_SUBST(CONOPTLIB) |
1897 |
AC_SUBST(make_conoptlib) |
#AWW20041113: AC_SUBST(make_conoptlib) |
1898 |
AC_SUBST(HAVE_CONOPT) |
#AWW20041113: AC_SUBST(HAVE_CONOPT) |
1899 |
AC_SUBST(tkdir_root) |
AC_SUBST(tkdir_root) |
1900 |
AC_SUBST(tkdir_topbuilddir) |
AC_SUBST(tkdir_topbuilddir) |
1901 |
AC_SUBST(models_dir_root) |
AC_SUBST(models_dir_root) |
1904 |
AC_SUBST(help_topbuilddir) |
AC_SUBST(help_topbuilddir) |
1905 |
|
|
1906 |
AC_OUTPUT( |
AC_OUTPUT( |
1907 |
ascend4/ConfigAscend:ascend4/ConfigAscend.in |
#AWW20041113: ascend4/ConfigAscend:ascend4/ConfigAscend.in |
1908 |
ascend4/Makefile |
#AWW20041113: ascend4/Makefile |
1909 |
ascend4/bin/ascend4.sh |
#AWW20041113: ascend4/bin/ascend4.sh |
1910 |
ascend4/Makefile.Rules:ascend4/Makefile.Rules.in |
#AWW20041113: ascend4/Makefile.Rules:ascend4/Makefile.Rules.in |
1911 |
ascend4/archive/Makefile |
#AWW20041113: ascend4/archive/Makefile |
1912 |
ascend4/bin/Makefile |
#AWW20041113: ascend4/bin/Makefile |
1913 |
ascend4/compiler/Makefile |
#AWW20041113: ascend4/compiler/Makefile |
1914 |
ascend4/general/Makefile |
#AWW20041113: ascend4/general/Makefile |
1915 |
ascend4/interface/Makefile |
#AWW20041113: ascend4/interface/Makefile |
1916 |
ascend4/lib/Makefile |
#AWW20041113: ascend4/lib/Makefile |
1917 |
ascend4/packages/Makefile |
#AWW20041113: ascend4/packages/Makefile |
1918 |
ascend4/solver/Makefile |
#AWW20041113: ascend4/solver/Makefile |
1919 |
ascend4/utilities/Makefile |
#AWW20041113: ascend4/utilities/Makefile |
1920 |
|
../generic/ConfigAscend:../generic/ConfigAscend.in |
1921 |
|
../generic/Makefile |
1922 |
|
../generic/bin/../generic.sh |
1923 |
|
../generic/Makefile.Rules:../generic/Makefile.Rules.in |
1924 |
|
../generic/archive/Makefile |
1925 |
|
../generic/bin/Makefile |
1926 |
|
../generic/compiler/Makefile |
1927 |
|
../generic/general/Makefile |
1928 |
|
../generic/interface/Makefile |
1929 |
|
../generic/lib/Makefile |
1930 |
|
../generic/packages/Makefile |
1931 |
|
../generic/solver/Makefile |
1932 |
|
../generic/utilities/Makefile |
1933 |
$tkdir_makefiles |
$tkdir_makefiles |
1934 |
$models_makefiles |
$models_makefiles |
1935 |
$help_makefiles |
$help_makefiles |
1936 |
$blaslib_makefile |
$blaslib_makefile |
1937 |
$lpaklib_makefile |
$lpaklib_makefile |
1938 |
$lsodlib_makefile |
$lsodlib_makefile |
1939 |
$rsqplib_makefile |
#AWW20041117: $rsqplib_makefile |
1940 |
$conoptlib_makefile |
#AWW20041117: $conoptlib_makefile |
1941 |
$minoslib_makefile |
#AWW20041117: $minoslib_makefile |
1942 |
) |
) |