# HG changeset patch # User jwe # Date 779596367 0 # Node ID 45764610984ad0d6d43e58c3918c22676cc52f12 # Parent 0a81458ef677098624bd732e73aba5262316355b [project @ 1994-09-15 02:32:47 by jwe] diff --git a/Makeconf.in b/Makeconf.in --- a/Makeconf.in +++ b/Makeconf.in @@ -23,6 +23,10 @@ DEFAULT_PAGER = @DEFAULT_PAGER@ +WITH_DLD = @use_dld@ + +OCTAVE_LITE = @lite_kernel@ + # Fortran to C translator and associated flags. F2C = @F2C@ diff --git a/acconfig.h b/acconfig.h --- a/acconfig.h +++ b/acconfig.h @@ -54,9 +54,9 @@ /* Define if you don't have NPSOL. */ #undef NPSOL_MISSING -/* Define to make Octave look for info files and function files in the - directory tree as the sources. */ -#undef RUN_IN_PLACE +/* Define to compile smaller kernel. Only works if some form of + dynamic linking is also supported and used. */ +#undef OCTAVE_LITE /* Define if this is Octave. */ #undef OCTAVE_SOURCE @@ -64,6 +64,13 @@ /* Define if you don't have QPSOL. */ #undef QPSOL_MISSING +/* Define to make Octave look for info files and function files in the + directory tree as the sources. */ +#undef RUN_IN_PLACE + +/* To quiet autoheader. */ +#undef SMART_PUTENV + /* Define if using -fexternal-templates with g++. */ #undef USE_EXTERNAL_TEMPLATES diff --git a/configure.in b/configure.in --- a/configure.in +++ b/configure.in @@ -21,7 +21,7 @@ dnl along with Octave; see the file COPYING. If not, write to the Free dnl Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. dnl -AC_REVISION($Revision: 1.44 $)dnl +AC_REVISION($Revision: 1.45 $)dnl AC_PREREQ(1.8)dnl AC_INIT(src/octave.cc) AC_CONFIG_HEADER(config.h kpathsea/c-auto.h) @@ -72,6 +72,16 @@ dnl Allow the user to experiment with dynamic linking using GNU dld. dnl AC_ENABLE(dld, use_dld=true, use_dld=false)dnl +AC_SUBST(use_dld)dnl +dnl +dnl Allow compilation of smaller kernel. This only works if some form +dnl of dynamic linking is also supported and used. +dnl +AC_ENABLE(lite-kernel, lite_kernel=true, lite_kernel=false)dnl +if $lite_kernel; then + AC_DEFINE(OCTAVE_LITE, 1)dnl +fi +AC_SUBST(lite_kernel)dnl dnl dnl some defaults dnl @@ -169,7 +179,11 @@ DYNAMIC_LD_OBJ='dynamic-ld.o' DLD_DIR=dld LIBDLD='../libdld.a' - LIBOCTDLD= # don't link them in if doing dynamic linking +# don't link them in only if doing dynamic linking and small kernel +# requested. + if $lite_kernel; then + LIBOCTDLD= + fi LD_STATIC_FLAG=-static AC_DEFINE(WITH_DLD, 1)dnl fi