blob: a90475ddcde7991afd13a2fbf3e1256711496ed8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#
# lldp_CHECK_ALIGNOF
#
AC_DEFUN([lldp_CHECK_ALIGNOF],[
AC_CACHE_CHECK([whether compiler understands __alignof__], lldp_cv_check_alignof, [
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[ return __alignof__(long); ]])],
[ lldp_cv_check_alignof="yes" ],
[ lldp_cv_check_alignof="no" ])
])
if test x"$lldp_cv_check_alignof" = x"yes"; then
AC_DEFINE([HAVE_ALIGNOF], [1], [Define if __alignof__ operator is available])
fi
])
|