From 0f6fe3e044519d15d1e54d3ef1088b5107bc21a9 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 3 Jan 2017 04:07:18 +0100 Subject: make: check for headers --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 0fdbf6a..8b3b44e 100644 --- a/configure.ac +++ b/configure.ac @@ -103,6 +103,9 @@ AC_ARG_ENABLE([make-embedded], AS_HELP_STRING([--enable-make-embedded], AC_ARG_ENABLE([make], AS_HELP_STRING([--enable-make], [build blogc-make tool])) AS_IF([test "x$enable_make" = "xyes" -o "x$enable_make_embedded" = "xyes"], [ + AC_CHECK_HEADERS([dirent.h fcntl.h libgen.h sys/stat.h sys/wait.h time.h unistd.h],, [ + AC_MSG_ERROR([blogc-make tool requested but required headers not found]) + ]) AX_PTHREAD([], [ AC_MSG_ERROR([blogc-make tool requested but pthread is not supported]) ]) -- cgit v1.2.3-18-g5258