summaryrefslogtreecommitdiff
path: root/libjava/configure
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/configure')
-rwxr-xr-xlibjava/configure29
1 files changed, 26 insertions, 3 deletions
diff --git a/libjava/configure b/libjava/configure
index 80a59d6eeff..8ffc640c1c4 100755
--- a/libjava/configure
+++ b/libjava/configure
@@ -753,6 +753,7 @@ GCJDEPMODE
GCJFLAGS
ac_ct_GCJ
GCJ
+lt_host_flags
CXXCPP
CPP
OTOOL64
@@ -13354,7 +13355,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 13357 "configure"
+#line 13358 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -13460,7 +13461,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 13463 "configure"
+#line 13464 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -16726,6 +16727,28 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
+
+
+case $host in
+ *-cygwin* | *-mingw*)
+ # 'host' will be top-level target in the case of a target lib,
+ # we must compare to with_cross_host to decide if this is a native
+ # or cross-compiler and select where to install dlls appropriately.
+ if test -n "$with_cross_host" &&
+ test x"$with_cross_host" != x"no"; then
+ lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
+ else
+ lt_host_flags='-no-undefined -bindir "$(bindir)"';
+ fi
+ ;;
+ *)
+ lt_host_flags=
+ ;;
+esac
+
+
+
+
if test -n "$ac_tool_prefix"; then
for ac_prog in gcj
do
@@ -19439,7 +19462,7 @@ if test "${enable_sjlj_exceptions+set}" = set; then :
enableval=$enable_sjlj_exceptions; :
else
cat > conftest.$ac_ext << EOF
-#line 19442 "configure"
+#line 19465 "configure"
struct S { ~S(); };
void bar();
void foo()