From cae2270fd72961adeae77d21d065bfcb64ca7d77 Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Fri, 23 Mar 2018 20:24:17 +0100 Subject: build: Check non-standard C functions at configure time * configure.ac: Check 'argp_parse' and 'asprintf' presence. --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index dfb756a..fbda198 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,12 @@ GUILE_PKG([2.2 2.0]) # 'config.rpath' script. PKG_CHECK_MODULES(GUILE, [guile-$GUILE_EFFECTIVE_VERSION]) +# Check for 'argp' program arguments parser. +AC_CHECK_FUNC(argp_parse, [], AC_MSG_ERROR([argp not found])) + +# Check for non-POSIX string formatting function. +AC_CHECK_FUNC(asprintf, [], AC_MSG_ERROR([asprintf not found])) + # Checks for programs. GUILE_PROGS -- cgit v1.2.3