summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-02-27 21:24:04 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-02-27 21:24:04 +0000
commit05c344135e8c5dd165d97b1e117a9bdac77016bc (patch)
tree1ab7bf58d40da4e93711123a872d0d58c8800128 /configure.ac
parentabc71ba6a9d4364e7f7c2c52c7b5b8813d3f7a3d (diff)
define WITH_LL only if libllapi is found
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 13 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 9a830320c..fb2d84ebb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -994,7 +994,19 @@ AC_ARG_WITH([ll],
],
[AC_MSG_RESULT(--with-ll not specified)])
AM_CONDITIONAL([WITH_LL], [test "x$llapi" = "xtrue"])
-AC_DEFINE_UNQUOTED(WITH_LL, $llapi, [Do we have to use IBM LoadLeveler])
+if test "x$llapi" = "xtrue"
+then
+ AC_DEFINE_UNQUOTED([WITH_LL], [$llapi], [Do we have to use IBM LoadLeveler])
+ AC_CHECK_HEADERS([pwd.h],
+ AC_CHECK_LIB([c],[getpwuid],,
+ AC_MSG_ERROR(getpwid function not available in libc but is required)),
+ AC_MSG_ERROR(pwd.h not found but is required),
+ [[
+ #ifdef HAVE_SYS_TYPES_H
+ #include <sys/types.h>
+ #endif
+ ]])
+fi
# should 'make check' run tests?
AC_MSG_CHECKING(whether to run tests)