--- gforth/configure.in 2003/08/28 16:08:30 1.133 +++ gforth/configure.in 2003/09/08 13:03:06 1.135 @@ -42,6 +42,12 @@ AC_ARG_ENABLE(force-reg, but also incorrect code with some gcc versions on some processors (default disabled).], AC_DEFINE(FORCE_REG,,[Define if you want to use explicit register declarations for better performance or for more convenient CODE words (does not work with all GCC versions on all machines)])) +AC_SUBST(PROFEXES) +AC_SUBST(PROFOBJS) +AC_ARG_ENABLE(prof, +[ --enable-prof Build gforth-prof, which outputs frequently occuring + sequences of primitives.], +PROFEXES="gforth-prof\$(EXE)"; PROFOBJS="engine-prof.o main-prof.o profile.o") AC_ARG_WITH(debug, [ --with-debug specifies option -g to compile with debug info @@ -134,13 +140,9 @@ case "$host_cpu" in machine=hppa $srcdir/mkinstalldirs arch/hppa AC_LIBOBJ(../arch/hppa/cache) - #LDFLAGS="$LDFLAGS -Xlinker -N" + #-N needed for --dynamic + LDFLAGS="$LDFLAGS -Xlinker -N" LIBS="$LIBS -L/lib/pa1.1/" - #executing dynamically generated code produced segfaults on - #the only HPPA machine that could waste code space, so - #disable it by default - no_dynamic_default=1 - AC_MSG_WARN(Disabling dynamic native code generation by default (speed penalty factor ~2)) ;; sparc*) machine=sparc