Commit 62c9aa5f by Zack Weinberg

configure.in: Check whether it is necessary to link against libm to use ldexp.

	* configure.in: Check whether it is necessary to link against
	libm to use ldexp.
	* configure: Regenerate.
	* Makefile.in: Add LDEXP_LIB substitution variable.
	* java/Make-lang.in: Link jcf-dump against $(LDEXP_LIB).

From-SVN: r64749
parent 93b3986a
...@@ -695,6 +695,9 @@ LIBS = $(INTLLIBS) @LIBS@ $(LIBIBERTY) ...@@ -695,6 +695,9 @@ LIBS = $(INTLLIBS) @LIBS@ $(LIBIBERTY)
# Any system libraries needed just for GNAT. # Any system libraries needed just for GNAT.
SYSLIBS = @GNAT_LIBEXC@ SYSLIBS = @GNAT_LIBEXC@
# Libs needed (at present) just for jcf-dump.
LDEXP_LIB = @LDEXP_LIB@
# Likewise, for use in the tools that must run on this machine # Likewise, for use in the tools that must run on this machine
# even if we are cross-building GCC. # even if we are cross-building GCC.
BUILD_LIBS = $(BUILD_LIBIBERTY) BUILD_LIBS = $(BUILD_LIBIBERTY)
......
...@@ -752,6 +752,15 @@ GNAT_LIBEXC="$LIBS" ...@@ -752,6 +752,15 @@ GNAT_LIBEXC="$LIBS"
LIBS="$save_LIBS" LIBS="$save_LIBS"
AC_SUBST(GNAT_LIBEXC) AC_SUBST(GNAT_LIBEXC)
# Some systems put ldexp and frexp in libm instead of libc; assume
# they're both in the same place. jcf-dump needs them.
save_LIBS="$LIBS"
LIBS=
AC_SEARCH_LIBS(ldexp, m)
LDEXP_LIB="$LIBS"
LIBS="$save_LIBS"
AC_SUBST(LDEXP_LIB)
# See if the stage1 system preprocessor understands the ANSI C # See if the stage1 system preprocessor understands the ANSI C
# preprocessor stringification operator. (Used by symcat.h.) # preprocessor stringification operator. (Used by symcat.h.)
AC_C_STRINGIZE AC_C_STRINGIZE
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -142,7 +142,8 @@ jv-scan$(exeext): $(JVSCAN_OBJS) $(LIBDEPS) ...@@ -142,7 +142,8 @@ jv-scan$(exeext): $(JVSCAN_OBJS) $(LIBDEPS)
jcf-dump$(exeext): $(JCFDUMP_OBJS) $(LIBDEPS) jcf-dump$(exeext): $(JCFDUMP_OBJS) $(LIBDEPS)
rm -f $@ rm -f $@
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JCFDUMP_OBJS) $(ZLIB) $(LIBS) $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(JCFDUMP_OBJS) \
$(ZLIB) $(LDEXP_LIB) $(LIBS)
jvgenmain$(exeext): $(JVGENMAIN_OBJS) $(LIBDEPS) jvgenmain$(exeext): $(JVGENMAIN_OBJS) $(LIBDEPS)
rm -f $@ rm -f $@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment