+## -------- with linux should point to <kernel>-common on Debian
+AS_IF([test ${LINUX} == ${LINUX_OBJ} -a ${LINUX} == $(realpath ${LINUX})],[
+ this_arch=$(realpath ${LINUX} | sed 's/-/\n/g' | tail -1)
+ linux_headers_common=$(realpath ${LINUX}|sed "s/-${this_arch}\$/-common/g")
+ AS_IF([test "${this_arch}" != common],[
+ _cah="${linux_headers_common}/include/linux/compiler_attributes.h"
+ _cgh="${linux_headers_common}/include/linux/compiler-gcc.h"
+ AS_IF([test -f "${_cah}" -o -f "${_cgh}"],[
+ AC_MSG_WARN([Setting LINUX to ${linux_headers_common} was ${LINUX}])
+ LINUX=${linux_headers_common}])
+ ])
+ ])
+AC_SUBST(LINUX)
+AC_SUBST(LINUX_OBJ)