diff options
| author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-04 21:01:44 +0000 |
|---|---|---|
| committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-04 21:01:44 +0000 |
| commit | f632ca0d7046548099240bf6f60ca2fac1008637 (patch) | |
| tree | af6ea4dc421b349c904756ac220b0cbb31c9cda5 /libjava/configure.in | |
| parent | e6ec293d610cde9e28de78abff8a011c62241b07 (diff) | |
| download | ppe42-gcc-f632ca0d7046548099240bf6f60ca2fac1008637.tar.gz ppe42-gcc-f632ca0d7046548099240bf6f60ca2fac1008637.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54262 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/configure.in')
| -rw-r--r-- | libjava/configure.in | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/libjava/configure.in b/libjava/configure.in index 2e7aa6a57ed..6c279aa0f44 100644 --- a/libjava/configure.in +++ b/libjava/configure.in @@ -16,6 +16,9 @@ AC_ARG_WITH(target-subdir, AC_ARG_WITH(cross-host, [ --with-cross-host=HOST configuring with a cross compiler]) +AC_ARG_WITH(newlib, +[ --with-newlib Configuring with newlib]) + LIBGCJ_CONFIGURE(.) AM_CONFIG_HEADER(include/config.h gcj/libgcj-config.h) @@ -465,7 +468,7 @@ changequote([,])dnl AC_SUBST(tool_include_dir) 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 # may not work correctly, because the compiler may not be able to # link executables. @@ -519,8 +522,16 @@ else AC_CHECK_LIB(dl, dladdr, [ AC_DEFINE(HAVE_DLADDR)]) - AC_CHECK_FILES(/proc/self/exe, [ - AC_DEFINE(HAVE_PROC_SELF_EXE)]) + if test x"$build" = x"$host"; then + 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_LC_MESSAGES |

