activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r597096 - /activemq/activemq-cpp/decaf/trunk/configure.ac
Date Wed, 21 Nov 2007 14:13:46 GMT
Author: tabish
Date: Wed Nov 21 06:13:46 2007
New Revision: 597096

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

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

Modified: activemq/activemq-cpp/decaf/trunk/configure.ac
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/decaf/trunk/configure.ac?rev=597096&r1=597095&r2=597096&view=diff
==============================================================================
--- activemq/activemq-cpp/decaf/trunk/configure.ac (original)
+++ activemq/activemq-cpp/decaf/trunk/configure.ac Wed Nov 21 06:13:46 2007
@@ -128,8 +128,16 @@
     AC_CHECK_LIB(pthread, pthread_create,[have_pthread="yes"],
                 AC_MSG_ERROR([libpthread not found!]))
 
-    PLAT_CXXFLAGS="-ansi -pedantic"
     PLAT_LIBS="-lm -lpthread -luuid -lsocket -lrt"
+
+    if test "$GCC" = "yes"; then
+       PLAT_CXXFLAGS="-ansi -pedantic"
+    else
+       # Assuming Sun Compiler and adding in optimization
+       # because autoconf can't seem to figure it out.
+       PLAT_CXXFLAGS="-mt -w -O5"
+       PLAT_LIBS+="-library=stlport4"
+    fi
     ;;
 
   *) ## Unix configuration
@@ -142,13 +150,23 @@
 esac
 
 ## Flags for building the decaf cpp library
-DECAF_CXXFLAGS="$PLAT_CXXFLAGS $APR_CPPFLAGS $APR_INCLUDES $APU_INCLUDES -W -Wall -fPIC -fstrict-aliasing
-Wstrict-aliasing=2 -Wno-long-long"
+if test "$GCC" = "yes"; then
+   DECAF_CXXFLAGS="$PLAT_CXXFLAGS $APR_CPPFLAGS $APR_INCLUDES $APU_INCLUDES -W -Wall -fPIC
-fstrict-aliasing -Wstrict-aliasing=2 -Wno-long-long"
+else
+   DECAF_CXXFLAGS="$PLAT_CXXFLAGS $APR_CPPFLAGS $APR_INCLUDES $APU_INCLUDES -PIC"
+fi
+
 DECAF_LIBS="$PLAT_LIBS $APR_LIBS $APR_LDFLAGS $APU_LIBS $APU_LDFLAGS"
 AC_SUBST([DECAF_CXXFLAGS])
 AC_SUBST([DECAF_LIBS])
 
 ## Flags for building the test applications.
-DECAF_TEST_CXXFLAGS="$DECAF_CXXFLAGS $APR_CPPFLAGS $APR_INCLUDES $APU_INCLUDES -Wno-non-virtual-dtor
-Wno-unused-parameter -Wno-uninitialized"
+if test "$GCC" = "yes"; then
+   DECAF_TEST_CXXFLAGS="$DECAF_CXXFLAGS $APR_CPPFLAGS $APR_INCLUDES $APU_INCLUDES -Wno-non-virtual-dtor
-Wno-unused-parameter -Wno-uninitialized"
+else
+   DECAF_TEST_CXXFLAGS="$DECAF_CXXFLAGS $APR_CPPFLAGS $APR_INCLUDES $APU_INCLUDES"
+fi
+
 DECAF_TEST_LIBS="../main/libdecaf.la"
 AC_SUBST([DECAF_TEST_CXXFLAGS])
 AC_SUBST([DECAF_TEST_LIBS])



Mime
View raw message