]> git.ipfire.org Git - thirdparty/lldpd.git/blame - m4/alignof.m4
debian: no need to BD on lsb-release anymore
[thirdparty/lldpd.git] / m4 / alignof.m4
CommitLineData
dd1d33cf
VB
1#
2# lldp_CHECK_ALIGNOF
3#
4AC_DEFUN([lldp_CHECK_ALIGNOF],[
5 AC_CACHE_CHECK([whether compiler understands __alignof__], lldp_cv_check_alignof, [
6 AC_TRY_COMPILE([],
7 [ return __alignof__(long); ],
8 [ lldp_cv_check_alignof="yes" ],
9 [ lldp_cv_check_alignof="no" ])
10 ])
11 if test x"$lldp_cv_check_alignof" = x"yes"; then
12 AC_DEFINE([HAVE_ALIGNOF], [1], [Define if __alignof__ operator is available])
13 fi
14])