Browse Source

Check existence of required tr headers

1.0.0
Georg Hopp 10 years ago
parent
commit
eb51fc746b
  1. 20
      configure.ac

20
configure.ac

@ -12,7 +12,7 @@ AM_SILENT_RULES([yes])
AC_COPYRIGHT([Copyright © 2014 Georg Hopp]) AC_COPYRIGHT([Copyright © 2014 Georg Hopp])
AC_REVISION([0.0.0]) AC_REVISION([0.0.0])
AC_CONFIG_SRCDIR([src/comm_end_point.c]) AC_CONFIG_SRCDIR([src/comm_end_point.c])
AC_CONFIG_HEADERS([trcomm.h])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])
m4_include([m4/gcov.m4]) m4_include([m4/gcov.m4])
@ -41,7 +41,23 @@ AM_COND_IF([HAVE_DOXYGEN],
[AC_CONFIG_FILES([docs/Doxyfile])]) [AC_CONFIG_FILES([docs/Doxyfile])])
# Checks for header files. # 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])
])
AC_CHECK_HEADER(trhash.h, [], [
AC_MSG_ERROR([unable to find the trhash header])
])
AC_CHECK_HEADER(trdata.h, [], [
AC_MSG_ERROR([unable to find the trdata header])
])
AC_CHECK_HEADER(trevent.h, [], [
AC_MSG_ERROR([unable to find the trevent header])
])
# Checks for typedefs, structures, and compiler characteristics. # Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL AC_HEADER_STDBOOL

Loading…
Cancel
Save