comparison configure.in @ 702:45764610984a

[project @ 1994-09-15 02:32:47 by jwe]
author jwe
date Thu, 15 Sep 1994 02:32:47 +0000
parents 4e67ff861c84
children 164e497d6039
comparison
equal deleted inserted replaced
701:0a81458ef677 702:45764610984a
19 dnl 19 dnl
20 dnl You should have received a copy of the GNU General Public License 20 dnl You should have received a copy of the GNU General Public License
21 dnl along with Octave; see the file COPYING. If not, write to the Free 21 dnl along with Octave; see the file COPYING. If not, write to the Free
22 dnl Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 22 dnl Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
23 dnl 23 dnl
24 AC_REVISION($Revision: 1.44 $)dnl 24 AC_REVISION($Revision: 1.45 $)dnl
25 AC_PREREQ(1.8)dnl 25 AC_PREREQ(1.8)dnl
26 AC_INIT(src/octave.cc) 26 AC_INIT(src/octave.cc)
27 AC_CONFIG_HEADER(config.h kpathsea/c-auto.h) 27 AC_CONFIG_HEADER(config.h kpathsea/c-auto.h)
28 dnl 28 dnl
29 AC_DEFINE(OCTAVE_SOURCE, 1)dnl 29 AC_DEFINE(OCTAVE_SOURCE, 1)dnl
70 AC_WITH(f2c, use_f2c=true, use_f2c=false)dnl 70 AC_WITH(f2c, use_f2c=true, use_f2c=false)dnl
71 dnl 71 dnl
72 dnl Allow the user to experiment with dynamic linking using GNU dld. 72 dnl Allow the user to experiment with dynamic linking using GNU dld.
73 dnl 73 dnl
74 AC_ENABLE(dld, use_dld=true, use_dld=false)dnl 74 AC_ENABLE(dld, use_dld=true, use_dld=false)dnl
75 AC_SUBST(use_dld)dnl
76 dnl
77 dnl Allow compilation of smaller kernel. This only works if some form
78 dnl of dynamic linking is also supported and used.
79 dnl
80 AC_ENABLE(lite-kernel, lite_kernel=true, lite_kernel=false)dnl
81 if $lite_kernel; then
82 AC_DEFINE(OCTAVE_LITE, 1)dnl
83 fi
84 AC_SUBST(lite_kernel)dnl
75 dnl 85 dnl
76 dnl some defaults 86 dnl some defaults
77 dnl 87 dnl
78 exec_prefix='$(prefix)' 88 exec_prefix='$(prefix)'
79 bindir='$(exec_prefix)/bin' 89 bindir='$(exec_prefix)/bin'
167 LD_STATIC_FLAG= 177 LD_STATIC_FLAG=
168 if $use_dld; then 178 if $use_dld; then
169 DYNAMIC_LD_OBJ='dynamic-ld.o' 179 DYNAMIC_LD_OBJ='dynamic-ld.o'
170 DLD_DIR=dld 180 DLD_DIR=dld
171 LIBDLD='../libdld.a' 181 LIBDLD='../libdld.a'
172 LIBOCTDLD= # don't link them in if doing dynamic linking 182 # don't link them in only if doing dynamic linking and small kernel
183 # requested.
184 if $lite_kernel; then
185 LIBOCTDLD=
186 fi
173 LD_STATIC_FLAG=-static 187 LD_STATIC_FLAG=-static
174 AC_DEFINE(WITH_DLD, 1)dnl 188 AC_DEFINE(WITH_DLD, 1)dnl
175 fi 189 fi
176 if test -n "$DYNAMIC_LD_OBJ"; then 190 if test -n "$DYNAMIC_LD_OBJ"; then
177 AC_VERBOSE([setting DYNAMIC_LD_OBJ to $DYNAMIC_LD_OBJ]) 191 AC_VERBOSE([setting DYNAMIC_LD_OBJ to $DYNAMIC_LD_OBJ])