OSDN Git Service

2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
[pf3gnuchains/gcc-fork.git] / lto-plugin / configure
index 8b94622..495d9e9 100755 (executable)
@@ -602,6 +602,7 @@ am__EXEEXT_TRUE
 LTLIBOBJS
 LIBOBJS
 target_noncanonical
+lt_host_flags
 CPP
 OTOOL64
 OTOOL
@@ -10505,7 +10506,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10508 "configure"
+#line 10509 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -10611,7 +10612,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 10614 "configure"
+#line 10615 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -10849,24 +10850,28 @@ CC="$lt_save_CC"
 
 
 
-# Trying to get this information from gcc's config is tricky.
-case $target in
-  x86_64*-mingw*)
 
-$as_echo "#define SYM_STYLE ss_none" >>confdefs.h
 
+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=
     ;;
-  *-cygwin* | i?86*-mingw* )
+esac
 
-$as_echo "#define SYM_STYLE ss_win32" >>confdefs.h
 
-    ;;
-  *)
 
-$as_echo "#define SYM_STYLE ss_none" >>confdefs.h
 
-    ;;
-esac
 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
 case $ac_cv_c_int64_t in #(
   no|yes) ;; #(