modified the test for papi library
[charm.git] / src / scripts / configure.in
index e93e101046bcd71a1230fbe2558c06a559bec8cb..2cf0b0307718a4b439c0b8537d70dccf76ed089f 100644 (file)
@@ -1518,8 +1518,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