From 10b4195af24561c8d4a39b27c31cde21eb1cf1b9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 3 Apr 2019 23:41:09 +0200 Subject: Replace rdline with libbsd fparseln Signed-off-by: David Oberhollenzer --- configure.ac | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'configure.ac') 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]) -- cgit v1.2.3