PATCH: uname(1) on UnixWare (Solaris)

Marcus Meissner marcus at jet.franken.de
Wed Jun 6 12:38:03 CDT 2001


Hi,

to end that $OSNAME and `uname` thread, here a patch which just gets rid
of the OS names and uses the commandline flags.

Ciao, Marcus

Changelog:
	replaced check messages for shared libraries by non OS specific ones.

Index: configure.in
===================================================================
RCS file: /home/wine/wine/configure.in,v
retrieving revision 1.204
diff -u -r1.204 configure.in
--- configure.in	2001/05/31 21:35:15	1.204
+++ configure.in	2001/06/06 18:35:26
@@ -593,19 +629,19 @@
 LDDLLFLAGS=""
 if test "$LIBEXT" = "so"
 then
-  AC_CACHE_CHECK("whether we can build a Linux dll",
-                 ac_cv_c_dll_linux,
+  AC_CACHE_CHECK("whether we can use -Bsymbolic",
+                 ac_cv_c_dll_gnustyle,
   [saved_cflags=$CFLAGS
   CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
   AC_TRY_LINK(,[return 1],ac_cv_c_dll_linux="yes",ac_cv_c_dll_linux="no")
   CFLAGS=$saved_cflags
   ])
-  if test "$ac_cv_c_dll_linux" = "yes"
+  if test "$ac_cv_c_dll_gnustyle" = "yes"
   then
     LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%) -Wl,-rpath,\$(libdir)"
     LDDLLFLAGS="-Wl,-Bsymbolic"
   else
-    AC_CACHE_CHECK(whether we can build a UnixWare (Solaris) dll,
+    AC_CACHE_CHECK("whether we can use -G -B symbolic",
                  ac_cv_c_dll_unixware,
     [saved_cflags=$CFLAGS
     CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
@@ -617,7 +653,7 @@
       LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,\$(libdir)/%)"
       LDDLLFLAGS="-Wl,-B,symbolic"
     else
-      AC_CACHE_CHECK("whether we can build a NetBSD a.out dll",
+      AC_CACHE_CHECK("whether we can use -Bshareable -Bforcearchive",
                    ac_cv_c_dll_netbsd,
       [saved_cflags=$CFLAGS
       CFLAGS="$CFLAGS -fPIC -Wl,-Bshareable,-Bforcearchive"
@@ -631,7 +667,7 @@
       fi
     fi
   fi
-  if test "$ac_cv_c_dll_linux" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
+  if test "$ac_cv_c_dll_gnustyle" = "no" -a "$ac_cv_c_dll_unixware" = "no" -a "$ac_cv_c_dll_netbsd" = "no"
   then
     LIBEXT="a"
     if test "$DLLWRAP" = "dllwrap"; then




More information about the wine-patches mailing list