activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r551234 - /activemq/activemq-cpp/trunk/configure.ac
Date Wed, 27 Jun 2007 17:29:16 GMT
Author: tabish
Date: Wed Jun 27 10:29:15 2007
New Revision: 551234

URL: http://svn.apache.org/viewvc?view=rev&rev=551234
Log:
http://issues.apache.org/activemq/browse/AMQCPP-115

Attempting to get shared libraries building on Unix systems.

Modified:
    activemq/activemq-cpp/trunk/configure.ac

Modified: activemq/activemq-cpp/trunk/configure.ac
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/configure.ac?view=diff&rev=551234&r1=551233&r2=551234
==============================================================================
--- activemq/activemq-cpp/trunk/configure.ac (original)
+++ activemq/activemq-cpp/trunk/configure.ac Wed Jun 27 10:29:15 2007
@@ -59,6 +59,11 @@
 AM_SANITY_CHECK
 AC_LANG_CPLUSPLUS
 
+AC_FUNC_MEMCMP
+AC_FUNC_VPRINTF
+AC_HEADER_STDC
+AC_C_CONST
+AC_TYPE_SIZE_T
 AC_C_BIGENDIAN
 AC_CHECK_SIZEOF(short)
 AC_CHECK_SIZEOF(int)
@@ -119,6 +124,31 @@
 
 CXXFLAGS="$CXXFLAGS $PLAT_CXXFLAGS -W -Wall -fPIC -fstrict-aliasing -Wstrict-aliasing=2 -Wno-long-long"
 LIBS="$LIBS $PLAT_LIBS"
+
+AC_DEFUN([AMQCPP_CHECK_VISIBILITY], [
+    AC_MSG_CHECKING([whether -fvisibility flags work])
+    OLDCXXFLAGS="$CXXFLAGS"
+    CXXFLAGS="$CXXFLAGS -Werror -fvisibility=hidden -fvisibility-inlines-hidden"
+
+    AC_TRY_COMPILE([],
+      [
+         int i = 0;
+         do {
+            i++
+         } while(0)
+      ],
+      [
+        AC_MSG_RESULT(yes)
+        AC_DEFINE([HAVE_VISIBILITY_OPTIONS],[], [define if you have -fvisibility options])
+      ],
+      [
+        AC_MSG_RESULT(no)
+      ])
+
+    CXXFLAGS="$OLDCXXFLAGS"
+])
+
+AMQCPP_CHECK_VISIBILITY
 
 ##
 ## Not all platforms define addrinfo and related functions



Mime
View raw message