AboutSummaryRefsLogTreeCommitDiffStats
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2018-03-23 20:24:17 +0100
committerMathieu Lirzin <mthl@gnu.org>2018-03-23 22:13:43 +0100
commitcae2270fd72961adeae77d21d065bfcb64ca7d77 (patch)
treed6921b7089870728e5ea48dcea4bacfea508e835
parent426f5d7b382b904313227f9bec631b8130573313 (diff)
downloadmcron-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.
-rw-r--r--configure.ac6
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