2013-01-10 21:35:06 +01:00
|
|
|
From: Tony Jones <tonyj@suse.de>
|
|
|
|
Subject: enable pfm detection for 32bit ppc
|
|
|
|
Upstream: no
|
|
|
|
|
|
|
|
---
|
|
|
|
configure.ac | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2013-08-07 22:56:13 +02:00
|
|
|
@@ -184,7 +184,7 @@ AC_DEFINE_UNQUOTED(HAVE_PERF_EVENTS, $HA
|
|
|
|
AC_CANONICAL_HOST
|
2013-01-10 21:35:06 +01:00
|
|
|
if test "$HAVE_PERF_EVENTS" = "1"; then
|
|
|
|
PFM_LIB=
|
2013-08-07 22:56:13 +02:00
|
|
|
- if test "$host_cpu" = "powerpc64"; then
|
|
|
|
+ if test "$host_cpu" = "powerpc64" || test "$host_cpu" = "powerpc32"; then
|
2013-01-10 21:35:06 +01:00
|
|
|
AC_CHECK_HEADER(perfmon/pfmlib.h,,[AC_MSG_ERROR([pfmlib.h not found; usually provided in papi devel package])])
|
2013-08-07 22:56:13 +02:00
|
|
|
AC_CHECK_LIB(pfm,pfm_get_os_event_encoding, HAVE_LIBPFM3='0'; HAVE_LIBPFM='1', [
|
|
|
|
AC_CHECK_LIB(pfm, pfm_get_event_name, HAVE_LIBPFM3='1'; HAVE_LIBPFM='1',
|