summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-10-09 14:52:13 +0200
committerLinus Nordberg <linus@nordu.net>2010-10-09 14:52:13 +0200
commitc4a0f86a63acd899dbf29c03100c4735011ceeac (patch)
treebcbd698ac97cd8a9d10b779588e73ecaed774e2f /lib
parentd789c40c9cbb71b5b3a97056b0fbcbe20066fa56 (diff)
Fail at configure time rather than build time when missing a library.
Diffstat (limited to 'lib')
-rw-r--r--lib/configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/configure.ac b/lib/configure.ac
index 766f7f8..5ae729f 100644
--- a/lib/configure.ac
+++ b/lib/configure.ac
@@ -12,9 +12,12 @@ AC_PROG_LIBTOOL
AC_PROG_CC
# Checks for libraries.
-AC_CHECK_LIB([confuse], [cfg_init])
-AC_CHECK_LIB([event_core], [event_get_version])
-AC_CHECK_LIB([freeradius-radius], [rad_alloc])
+AC_CHECK_LIB([confuse], [cfg_init],,
+ AC_MSG_ERROR([required library libconfuse not found]))
+AC_CHECK_LIB([event_core], [event_get_version],,
+ AC_MSG_ERROR([required library libevent_core not found]))
+AC_CHECK_LIB([freeradius-radius], [rad_alloc],,
+ AC_MSG_ERROR([required library libfreeradius-radius not found]))
# Checks for header files.
AC_CHECK_HEADERS([netdb.h netinet/in.h stdint.h stdlib.h string.h sys/socket.h unistd.h])