Update of /cvsroot/monetdb/buildtools/conf
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1924/conf

Modified Files:
        MonetDB.m4 
Log Message:

fixed bug
[ 1789365 ] M5: unable to compile on Solaris/Sparc
http://sourceforge.net/tracker/index.php?func=detail&aid=1789365&group_id=56967&atid=482468

The interface if the CPC library to access hardware counters on Solaris/Sparc
seems to have changes between Solaris 8 & Solaris 10.
In particular a type "cpc_event_t" that used to be provided by libcpc.h
has apparently become obsolete and removed.
Since our code (at list for the time being) only supports the old interface,
we have configure test for the exitence of type "cpc_event_t" (in addition
to the checks for header file "libcpc.h" and library "cpc", and thus
prevent compilation problems in case (only) the new interface is available.

(Refrained from checking this in to the MonetDB_1-18 stable branch,
 since that one will become obsolete in a couple of days.)

[Yep, sometimes "informative" checking messages are indeed longer than the
 actual code changes ...]


Index: MonetDB.m4
===================================================================
RCS file: /cvsroot/monetdb/buildtools/conf/MonetDB.m4,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- MonetDB.m4  11 Sep 2007 12:42:30 -0000      1.35
+++ MonetDB.m4  11 Sep 2007 16:50:47 -0000      1.36
@@ -2135,11 +2135,14 @@
        ;;
    solaris*)
        AC_CHECK_HEADERS( libcpc.h ,
-        AC_CHECK_LIB( cpc, cpc_access , 
-         [ HWCOUNTERS_LIBS="$HWCOUNTERS_LIBS -lcpc" 
-           AC_DEFINE(HAVE_LIBCPC, 1, [Define if you have the cpc library])
-           have_hwcounters=yes
-         ]
+        AC_CHECK_TYPE( cpc_event_t, 
+         AC_CHECK_LIB( cpc, cpc_access , 
+          [ HWCOUNTERS_LIBS="$HWCOUNTERS_LIBS -lcpc" 
+            AC_DEFINE(HAVE_LIBCPC, 1, [Define if you have the cpc library])
+            have_hwcounters=yes
+          ]
+         )
+         , , [#include <libcpc.h>]
         )
        )
        if test "x$have_hwcounters" != xyes; then


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to