Commit 9fe7695cba92317d9c94d5dae006b12ae8488ad0

Authored by Georg Hopp
1 parent 57fe05f9

Check existence of required tr headers

Showing 2 changed files with 15 additions and 4 deletions
@@ -39,5 +39,3 @@ gmon.out @@ -39,5 +39,3 @@ gmon.out
39 test-driver 39 test-driver
40 /assets/html/_documentation.html 40 /assets/html/_documentation.html
41 tags 41 tags
42 -/trevent.h  
43 -/trevent.h.in  
@@ -12,7 +12,7 @@ AM_SILENT_RULES([yes]) @@ -12,7 +12,7 @@ AM_SILENT_RULES([yes])
12 AC_COPYRIGHT([Copyright © 2014 Georg Hopp]) 12 AC_COPYRIGHT([Copyright © 2014 Georg Hopp])
13 AC_REVISION([0.0.0]) 13 AC_REVISION([0.0.0])
14 AC_CONFIG_SRCDIR([src/event.c]) 14 AC_CONFIG_SRCDIR([src/event.c])
15 -AC_CONFIG_HEADERS([trevent.h]) 15 +AC_CONFIG_HEADERS([config.h])
16 AC_CONFIG_MACRO_DIR([m4]) 16 AC_CONFIG_MACRO_DIR([m4])
17 17
18 m4_include([m4/gcov.m4]) 18 m4_include([m4/gcov.m4])
@@ -41,7 +41,20 @@ AM_COND_IF([HAVE_DOXYGEN], @@ -41,7 +41,20 @@ AM_COND_IF([HAVE_DOXYGEN],
41 [AC_CONFIG_FILES([docs/Doxyfile])]) 41 [AC_CONFIG_FILES([docs/Doxyfile])])
42 42
43 # Checks for header files. 43 # Checks for header files.
44 -AC_CHECK_HEADERS([stdarg.h string.h stdlib.h stdio.h unistd.h syslog.h sys/types.h]) 44 +AC_CHECK_HEADERS([stdarg.h string.h stdlib.h stdio.h unistd.h syslog.h \
  45 + sys/types.h])
  46 +AC_CHECK_HEADER(trbase.h, [], [
  47 + AC_MSG_ERROR([unable to find the trbase header])
  48 +])
  49 +AC_CHECK_HEADER(trio.h, [], [
  50 + AC_MSG_ERROR([unable to find the trio header])
  51 +])
  52 +AC_CHECK_HEADER(trhash.h, [], [
  53 + AC_MSG_ERROR([unable to find the trhash header])
  54 +])
  55 +AC_CHECK_HEADER(trdata.h, [], [
  56 + AC_MSG_ERROR([unable to find the trdata header])
  57 +])
45 58
46 # Checks for typedefs, structures, and compiler characteristics. 59 # Checks for typedefs, structures, and compiler characteristics.
47 AC_HEADER_STDBOOL 60 AC_HEADER_STDBOOL
Please register or login to post a comment