]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix build on systems with dirty headers
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 17 May 2017 14:05:07 +0000 (16:05 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 17 May 2017 14:21:58 +0000 (16:21 +0200)
configure.ac

index 2569a766eefdd58b26adda7f9eff013bb39648fb..b352e0399e0ee7ac49da4a8fdebfe5632d3c6bd1 100644 (file)
@@ -303,7 +303,11 @@ case $sysdesc in
     AC_CHECK_HEADER([linux/rtnetlink.h],
       [],
       [AC_MSG_ERROR([Appropriate version of Linux kernel headers not found.])],
-      [] dnl Force new AC_CHECK_HEADER semantics
+      [
+       dnl Some older versions of Linux kernel headers require these includes
+       #include <asm/types.h>
+       #include <sys/socket.h>
+      ]
     )
     ;;
 esac
@@ -337,7 +341,7 @@ if test "$enable_client" = yes ; then
   AC_CHECK_HEADERS([curses.h],
     [],
     [AC_MSG_ERROR([The client requires ncurses library. Either install the library or use --disable-client to compile without the client.])],
-    [] dnl Force new AC_CHECK_HEADER semantics
+    [AC_INCLUDES_DEFAULT]
   )
 
   AC_SEARCH_LIBS([tgetent], [tinfo tinfow ncurses curses termcap],
@@ -348,7 +352,7 @@ if test "$enable_client" = yes ; then
   AC_CHECK_HEADERS([readline/readline.h readline/history.h],
     [],
     [AC_MSG_ERROR([The client requires GNU Readline library. Either install the library or use --disable-client to compile without the client.])],
-    [] dnl Force new AC_CHECK_HEADER semantics
+    [AC_INCLUDES_DEFAULT]
   )
 
   AC_SEARCH_LIBS([add_history], [history],