--- gforth/configure.in 2007/07/03 21:41:29 1.195 +++ gforth/configure.in 2007/12/16 15:22:05 1.199 @@ -619,7 +619,7 @@ AC_MSG_RESULT($MAYBE_UNUSED) #try if m4 understands -s AC_MSG_CHECKING([how to invoke m4]) -if m4 -s /dev/null; then +if m4 -s /dev/null >/dev/null 2>&1; then M4="m4 -s" else M4=m4 @@ -795,10 +795,14 @@ AC_PROG_LN_S AC_PROG_INSTALL AC_CHECK_PROGS(TEXI2DVI,texi2dvi4a2ps texi2dvi) +dnl MacOS X has a libtool that does something else +AC_CHECK_PROGS(GNU_LIBTOOL,glibtool libtool) + dnl Checks for library functions dnl This check is just for making later checks link with libm. dnl using sin here is no good idea since it is built-into gcc and typechecked AC_CHECK_LIB(m,asin) +AC_CHECK_LIB(ltdl,lt_dlinit) AC_CHECK_LIB(dl,dlopen) dnl check for libffi 2.x AC_CHECK_LIB(ffi,ffi_call) @@ -872,6 +876,6 @@ chmod +x vmgen chmod +x build-ec test -d kernel||mkdir kernel $srcdir/mkinstalldirs include/gforth/$PACKAGE_VERSION -ln -s ../../../engine/config.h ../../../engine/libcc.h include/gforth/$PACKAGE_VERSION]],[[PACKAGE_VERSION=$PACKAGE_VERSION]]) +ln -sf ../../../engine/config.h ../../../engine/libcc.h include/gforth/$PACKAGE_VERSION]],[[PACKAGE_VERSION=$PACKAGE_VERSION]]) AC_OUTPUT