X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=configure.ac;h=7b4c84295cf086c081b54ada7062c6347b6672f2;hp=e1acf8064c7a52fef7fe59dfb5ad65fb6456bdb9;hb=HEAD;hpb=0a6757da66f2c4995d7754d93545fa88996d480b diff --git a/configure.ac b/configure.ac index e1acf80..11b62f5 100644 --- a/configure.ac +++ b/configure.ac @@ -75,7 +75,17 @@ AM_COND_IF([LINUX], [ linux/if_ether.h \ linux/if_packet.h \ netinet/if_ether.h \ - netpacket/packet.h])]) + netpacket/packet.h]) + + AC_MSG_CHECKING([for struct sockaddr_ll in ]) + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM([@%:@include ], [sizeof(struct sockaddr_ll)])], + [AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_STRUCT_SOCKADDR_LL, 1, [Struct sockaddr_ll is present on system]) + ], + AC_MSG_RESULT([no])) +]) + AC_CHECK_SIZEOF(unsigned int) AC_CHECK_SIZEOF(unsigned long)