Buildsystem: provide missing network/CAN related definitions on demand only
Without the corresponding include file, these macros get always defined locally and thus, shadows the ones from the system. This change ensures, if the macros are found already defined in the system, then they are used. Signed-off-by: Juergen Borleis <jbe@pengutronix.de>pull/392/head
parent
3c88cfc1ec
commit
578f42aac8
15
configure.ac
15
configure.ac
|
|
@ -80,19 +80,24 @@ AC_CHECK_FUNCS([ \
|
|||
AC_SEARCH_LIBS([clock_nanosleep], [rt])
|
||||
|
||||
AC_CHECK_DECL(SO_RXQ_OVFL,,
|
||||
[AC_DEFINE([SO_RXQ_OVFL], [40], [SO_RXQ_OVFL])]
|
||||
[AC_DEFINE([SO_RXQ_OVFL], [40], [SO_RXQ_OVFL])],
|
||||
[[#include <linux/net.h>]]
|
||||
)
|
||||
AC_CHECK_DECL(PF_CAN,,
|
||||
[AC_DEFINE([PF_CAN], [29], [PF_CAN])]
|
||||
[AC_DEFINE([PF_CAN], [29], [PF_CAN])],
|
||||
[[#include <net/if.h>]]
|
||||
)
|
||||
AC_CHECK_DECL(AF_CAN,,
|
||||
[AC_DEFINE([AF_CAN], [PF_CAN], [AF_CAN])]
|
||||
[AC_DEFINE([AF_CAN], [PF_CAN], [AF_CAN])],
|
||||
[[#include <net/if.h>]]
|
||||
)
|
||||
AC_CHECK_DECL(N_SLCAN,,
|
||||
[AC_DEFINE([N_SLCAN], [17], [N_SLCAN])]
|
||||
[AC_DEFINE([N_SLCAN], [17], [N_SLCAN])],
|
||||
[[#include <linux/tty.h>]]
|
||||
)
|
||||
AC_CHECK_DECL(SCM_TIMESTAMPING_OPT_STATS,,
|
||||
[AC_DEFINE([SCM_TIMESTAMPING_OPT_STATS], [54], [SCM_TIMESTAMPING_OPT_STATS])]
|
||||
[AC_DEFINE([SCM_TIMESTAMPING_OPT_STATS], [54], [SCM_TIMESTAMPING_OPT_STATS])],
|
||||
[[#include <linux/net.h>]]
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue