diff --git a/src/configure b/src/configure index fe7b2e09c..a22ae80e8 100755 --- a/src/configure +++ b/src/configure @@ -4604,16 +4604,16 @@ ECL_MODULES="" if test ${boehm} = "no" ; then EXTRA_OBJS="${EXTRA_OBJS} alloc.${OBJEXT} gbc.${OBJEXT}" else - if test ${system_boehm} = "no"; then + if test ${system_boehm} = "yes"; then + BOEHM_HEADERS="" + CLIBS="-lgc ${CLIBS}" + else SUBDIR="${SUBDIR} gc" BOEHM_HEADERS="-I../include" STATICLIBS="-leclgc" if test ${shared} = "no"; then LIBRARIES="${LIBRARIES} ${LIBPREFIX}eclgc.${LIBEXT}" fi - else - BOEHM_HEADERS="" - CLIBS="-lgc ${CLIBS}" fi EXTRA_OBJS="${EXTRA_OBJS} alloc_2.${OBJEXT}" cat >>confdefs.h <<\_ACEOF @@ -4631,14 +4631,15 @@ else LSP_LIBRARIES="${LIBPREFIX}ecl.${LIBEXT}" LDRPATH='~*' fi -if test ${system_gmp} = "no" ; then +echo ${system_gmp} +if test "${system_gmp}" = "yes" ; then + CLIBS="-lgmp ${CLIBS}" +else SUBDIR="${SUBDIR} gmp" STATICLIBS="-leclgmp ${STATICLIBS}" if test ${shared} = "no"; then LIBRARIES="${LIBRARIES} ${LIBPREFIX}eclgmp.${LIBEXT}" fi -else - CLIBS="-lgmp ${CLIBS}" fi if test ${runtime} ; then cat >>confdefs.h <<\_ACEOF @@ -5146,7 +5147,7 @@ esac echo "$as_me:$LINENO: checking for gmp..." >&5 echo $ECHO_N "checking for gmp...... $ECHO_C" >&6 -if test ${system_gmp} = "yes" ; then +if test "${system_gmp}" = "yes" ; then echo "$as_me:$LINENO: result: already installed" >&5 echo "${ECHO_T}already installed" >&6 else @@ -5165,7 +5166,7 @@ echo $ECHO_N "checking for Boehm-Weiser gc...... $ECHO_C" >&6 if test ${boehm} = "no"; then echo "$as_me:$LINENO: result: use small collector instead" >&5 echo "${ECHO_T}use small collector instead" >&6 -elif test "${system_boehm}" = "no" ; then +elif test "${system_boehm}" != "yes" ; then echo "$as_me:$LINENO: result: configuring local copy" >&5 echo "${ECHO_T}configuring local copy" >&6 test -d gc && rm -rf gc diff --git a/src/configure.in b/src/configure.in index ff064a3c3..33b6eaf00 100644 --- a/src/configure.in +++ b/src/configure.in @@ -191,7 +191,7 @@ dnl AC_SUBST(INFOEXT) AC_SUBST(INSTALL_INFO) AC_PATH_PROG([INSTALL_INFO], [install-info], [foo], [$PATH:/sbin:/usr/sbin:/usr/etc]) -if which gzip; then +if test -z `which gzip`; then INFOEXT=info.gz else INFOEXT=info @@ -210,16 +210,16 @@ ECL_MODULES="" if test ${boehm} = "no" ; then EXTRA_OBJS="${EXTRA_OBJS} alloc.${OBJEXT} gbc.${OBJEXT}" else - if test ${system_boehm} = "no"; then + if test ${system_boehm} = "yes"; then + BOEHM_HEADERS="" + CLIBS="-lgc ${CLIBS}" + else SUBDIR="${SUBDIR} gc" BOEHM_HEADERS="-I../include" STATICLIBS="-leclgc" if test ${shared} = "no"; then LIBRARIES="${LIBRARIES} ${LIBPREFIX}eclgc.${LIBEXT}" fi - else - BOEHM_HEADERS="" - CLIBS="-lgc ${CLIBS}" fi EXTRA_OBJS="${EXTRA_OBJS} alloc_2.${OBJEXT}" AC_DEFINE(GBC_BOEHM) @@ -231,14 +231,14 @@ else LSP_LIBRARIES="${LIBPREFIX}ecl.${LIBEXT}" LDRPATH='~*' fi -if test ${system_gmp} = "no" ; then +if test "${system_gmp}" = "yes" ; then + CLIBS="-lgmp ${CLIBS}" +else SUBDIR="${SUBDIR} gmp" STATICLIBS="-leclgmp ${STATICLIBS}" if test ${shared} = "no"; then LIBRARIES="${LIBRARIES} ${LIBPREFIX}eclgmp.${LIBEXT}" fi -else - CLIBS="-lgmp ${CLIBS}" fi if test ${runtime} ; then AC_DEFINE(RUNTIME) @@ -378,7 +378,7 @@ dnl --------------------------------------------------------------------- dnl GNU multiprecision library dnl AC_MSG_CHECKING(for gmp...) -if test ${system_gmp} = "yes" ; then +if test "${system_gmp}" = "yes" ; then AC_MSG_RESULT(already installed) else AC_MSG_RESULT(configuring local copy) @@ -396,7 +396,7 @@ dnl AC_MSG_CHECKING(for Boehm-Weiser gc...) if test ${boehm} = "no"; then AC_MSG_RESULT(use small collector instead) -elif test "${system_boehm}" = "no" ; then +elif test "${system_boehm}" != "yes" ; then AC_MSG_RESULT(configuring local copy) test -d gc && rm -rf gc if mkdir gc; then