From 22e4898519e9db7aabacad1343c20fc49176dbf4 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 16 Sep 2020 23:04:12 +0100 Subject: add autoconf test and fallback code for systems without gperf --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index cf2f19c..00f7f0e 100644 --- a/configure.ac +++ b/configure.ac @@ -204,6 +204,15 @@ fi #manpage_support_enabled AM_CONDITIONAL(HAVE_POD2MAN, test "x$POD2MAN" != "x" -a "x$POD2MAN" != "xno") +AC_PATH_PROG(GPERF, gperf, no) +AM_CONDITIONAL(HAVE_GPERF, test "x$GPERF" != "x" -a "x$GPERF" != "xno") +AH_TEMPLATE([HAVE_GPERF], + [Whether you have gperf installed for faster config parsing.]) + +if test "x$GPERF" != "x" -a "x$GPERF" != "xno" ; then + AC_DEFINE(HAVE_GPERF) +fi + AC_CONFIG_FILES([ Makefile src/Makefile -- cgit v1.2.3