Fix visibility checks
authorMatthias Clasen <matthiasc@src.gnome.org>
Fri, 18 May 2007 14:04:27 +0000 (14:04 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 18 May 2007 14:04:27 +0000 (14:04 +0000)
svn path=/trunk/; revision=5504

ChangeLog
configure.in

index 9473fe29763551d5047a746281b1bb89534f082f..b4eb51c3821e8b8b2cac8a6dcd30f1b177a5a2fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-18  Matthias Clasen  <mclasen@redhat.com>
+
+       * configure.in: Try again to move the compiler-dependency
+       of G_GNUC_INTERNAL to runtime.
+
 2007-05-18  Matthias Clasen  <mclasen@redhat.com>
 
        * configure.in: Don't let PERL_PATH be ''.  (#356769, Joseph Sacco)
index 6cd4bdb63fbed10d3c387af50af81a4351a6f59c..a115da4f80f887426caa11d356c73059e8164111 100644 (file)
@@ -2509,11 +2509,15 @@ _______EOF
 
        fi
 
+       if test x$g_have_gnuc_visibility = xyes; then
+               cat >>$outfile <<_______EOF
+#define G_HAVE_GNUC_VISIBILITY 1
+_______EOF
+       fi
                cat >>$outfile <<_______EOF
 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
 #define G_GNUC_INTERNAL
 #elif defined (__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303)
-#define G_HAVE_GNUC_VISIBILITY 1
 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
 #define G_GNUC_INTERNAL __hidden