Merge branch 'charm' of charmgit:charm into charm
[charm.git] / src / scripts / configure.in
index 782c285959a0524a220b8b13d2ee0fd7dba10be9..1d1ee50b7dbd6e521fe301c978d0bd0b80a4ff58 100644 (file)
@@ -1534,8 +1534,7 @@ cat > $t <<EOT
 #include <papi.h>
                                                                                 
 int main() {
-    int Events[[1]] = { PAPI_TOT_CYC };
-    if (PAPI_start_counters(Events, 1) != PAPI_OK) return 1;
+    if (PAPI_library_init(PAPI_VER_CURRENT) != PAPI_VER_CURRENT) return 1;
     return 0;
 }
 EOT