summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4785bb4..5143bf7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,17 @@ AC_PROG_CC()
AM_PROG_CC_C_O()
test -d "${srcdir}/.git" || CFLAGS="${save_CFLAGS}"
+funcs_missing=false
+AC_CHECK_FUNCS(
+ [\
+ free malloc printf putchar sscanf strcmp strdup vprintf
+ ],
+ [],
+ [funcs_missing=true])
+if ${funcs_missing}; then
+ AC_MSG_ERROR([required functions are missing])
+fi
+
AX_CFLAGS_WARN_ALL() dnl Adds -Wall or equivalent
AX_CHECK_COMPILE_FLAG([-Wpedantic], [AX_APPEND_FLAG([-Wpedantic])])
AX_CHECK_COMPILE_FLAG([-Wextra], [AX_APPEND_FLAG([-Wextra])])