Commit 9e7823cc by H.J. Lu Committed by H.J. Lu

configure.in (--with-newlib): New option: Check ${with_newlib} instead of…

configure.in (--with-newlib): New option: Check ${with_newlib} instead of ${with_cross_host} for newlib.

2002-06-04  H.J. Lu  (hjl@gnu.org)

	* configure.in (--with-newlib): New option:
	Check ${with_newlib} instead of ${with_cross_host} for newlib.
	(HAVE_PROC_SELF_EXE): Defined to 1 only for cross compiling to
	Linux.
	* configure: Regenerated.

From-SVN: r54262
parent c02ebb18
2002-06-04 H.J. Lu (hjl@gnu.org)
* configure.in (--with-newlib): New option:
Check ${with_newlib} instead of ${with_cross_host} for newlib.
(HAVE_PROC_SELF_EXE): Defined to 1 only for cross compiling to
Linux.
* configure: Regenerated.
2002-06-04 Tom Tromey <tromey@redhat.com> 2002-06-04 Tom Tromey <tromey@redhat.com>
* java/util/natTimeZone.cc: Include <stdio.h>. * java/util/natTimeZone.cc: Include <stdio.h>.
......
...@@ -16,6 +16,9 @@ AC_ARG_WITH(target-subdir, ...@@ -16,6 +16,9 @@ AC_ARG_WITH(target-subdir,
AC_ARG_WITH(cross-host, AC_ARG_WITH(cross-host,
[ --with-cross-host=HOST configuring with a cross compiler]) [ --with-cross-host=HOST configuring with a cross compiler])
AC_ARG_WITH(newlib,
[ --with-newlib Configuring with newlib])
LIBGCJ_CONFIGURE(.) LIBGCJ_CONFIGURE(.)
AM_CONFIG_HEADER(include/config.h gcj/libgcj-config.h) AM_CONFIG_HEADER(include/config.h gcj/libgcj-config.h)
...@@ -465,7 +468,7 @@ changequote([,])dnl ...@@ -465,7 +468,7 @@ changequote([,])dnl
AC_SUBST(tool_include_dir) AC_SUBST(tool_include_dir)
AC_SUBST(gcc_version) AC_SUBST(gcc_version)
if test -n "${with_cross_host}"; then if test "x${with_newlib}" = "xyes"; then
# We are being configured with a cross compiler. AC_REPLACE_FUNCS # We are being configured with a cross compiler. AC_REPLACE_FUNCS
# may not work correctly, because the compiler may not be able to # may not work correctly, because the compiler may not be able to
# link executables. # link executables.
...@@ -519,8 +522,16 @@ else ...@@ -519,8 +522,16 @@ else
AC_CHECK_LIB(dl, dladdr, [ AC_CHECK_LIB(dl, dladdr, [
AC_DEFINE(HAVE_DLADDR)]) AC_DEFINE(HAVE_DLADDR)])
AC_CHECK_FILES(/proc/self/exe, [ if test x"$build" = x"$host"; then
AC_DEFINE(HAVE_PROC_SELF_EXE)]) AC_CHECK_FILES(/proc/self/exe, [
AC_DEFINE(HAVE_PROC_SELF_EXE)])
else
case $host in
*-linux*)
AC_DEFINE(HAVE_PROC_SELF_EXE)
;;
esac
fi
AM_ICONV AM_ICONV
AM_LC_MESSAGES AM_LC_MESSAGES
......
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