diff options
author | Mathieu Lirzin <mthl@gnu.org> | 2018-03-23 20:24:17 +0100 |
---|---|---|
committer | Mathieu Lirzin <mthl@gnu.org> | 2018-03-23 22:13:43 +0100 |
commit | cae2270fd72961adeae77d21d065bfcb64ca7d77 (patch) | |
tree | d6921b7089870728e5ea48dcea4bacfea508e835 /configure.ac | |
parent | 426f5d7b382b904313227f9bec631b8130573313 (diff) | |
download | mcron-cae2270fd72961adeae77d21d065bfcb64ca7d77.tar.gz mcron-cae2270fd72961adeae77d21d065bfcb64ca7d77.tar.bz2 mcron-cae2270fd72961adeae77d21d065bfcb64ca7d77.zip |
build: Check non-standard C functions at configure time
* configure.ac: Check 'argp_parse' and 'asprintf' presence.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
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 |