diff options
author | David Oberhollenzer <goliath@infraroot.at> | 2019-04-03 23:41:09 +0200 |
---|---|---|
committer | David Oberhollenzer <goliath@infraroot.at> | 2019-04-04 13:35:44 +0200 |
commit | 10b4195af24561c8d4a39b27c31cde21eb1cf1b9 (patch) | |
tree | 6b9ea9f7fcfe00c17f89b0ebf9751a708d27cac6 /configure.ac | |
parent | a02ef642bd6cf6d2584d6f25b379a363e37eb374 (diff) |
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 62e94cf..1e89c14 100644 --- a/configure.ac +++ b/configure.ac @@ -8,6 +8,23 @@ AC_PROG_CC AC_PROG_CC_C99 AC_PROG_INSTALL AC_PROG_RANLIB +AC_CANONICAL_HOST + +m4_ifndef([PKG_PROG_PKG_CONFIG], + [m4_fatal([Could not locate the pkg-config autoconf + macros. These are usually located in /usr/share/aclocal/pkg.m4. + If your macros are in a different location, try setting the + environment variable AL_OPTS="-I/other/macro/dir" before running + ./autogen.sh or autoreconf again. Make sure pkg-config is installed.])]) +PKG_PROG_PKG_CONFIG + +case "${host_os}" in +linux*) + AM_CONDITIONAL([HAVE_LIBBSD], [true]) + PKG_CHECK_MODULES(LIBBSD, [libbsd], [], + [AC_MSG_ERROR([missing libbsd])]) + ;; +esac UL_WARN_ADD([-Wall]) UL_WARN_ADD([-Wextra]) |