From ae6b4bcb71ffc44cede334b64f5a0ab97aa613fd Mon Sep 17 00:00:00 2001 From: Georg Hopp Date: Wed, 21 Oct 2015 07:25:07 +0200 Subject: [PATCH] Check existence of required tr headers --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 13cd286..2abc830 100644 --- a/configure.ac +++ b/configure.ac @@ -41,7 +41,14 @@ AM_COND_IF([HAVE_DOXYGEN], [AC_CONFIG_FILES([docs/Doxyfile])]) # Checks for header files. -AC_CHECK_HEADERS([stdarg.h string.h stdlib.h stdio.h unistd.h syslog.h sys/types.h]) +AC_CHECK_HEADERS([stdarg.h string.h stdlib.h stdio.h unistd.h syslog.h \ + sys/types.h]) +AC_CHECK_HEADER(trbase.h, [], [ + AC_MSG_ERROR([unable to find the trbase header]) +]) +AC_CHECK_HEADER(trio.h, [], [ + AC_MSG_ERROR([unable to find the trio header]) +]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL