X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=configure.ac;h=cfcd569f7ba0d6ff4a4ff292703ec1fa597b9500;hb=130eeb12b73458d3d8a23dd9decf20a120013a32;hp=56e7bc07b9b18cd5213414ccf1eb96eb2eb6ab92;hpb=4f1179ef1b3a7ca38250f381e6e523087664914a;p=util-vserver.git diff --git a/configure.ac b/configure.ac index 56e7bc0..cfcd569 100644 --- a/configure.ac +++ b/configure.ac @@ -342,15 +342,42 @@ dnl {check for libnl dnl ensc_have_libnl=yes -LIBNL_ROOT=`echo ../libnl*/` +LIBNL_ROOT=`readlink -f ../libnl*/` if test -d "$LIBNL_ROOT"; then - CFLAGS="$CFLAGS -isystem $LIBNL_ROOT/include" - LDFLAGS="$LDFLAGS -L$LIBNL_ROOT/lib" + CFLAGS="$CFLAGS -I ${LIBNL_ROOT}/include" + LDFLAGS="$LDFLAGS -L${LIBNL_ROOT}/lib" fi if test x"$ensc_have_libnl" = xyes; then - AC_CHECK_HEADERS([netlink/netlink.h netlink/route/addr.h], [ : ], + AC_CHECK_HEADERS([asm/types.h stdint.h], [ : ], [ ensc_have_libnl=no ]) + for b in 8 16 32 64; do + for s in s u; do + ensc_libnl_stdint_type= + if test x"$s" = xu; then + ensc_libnl_stdint_type=u + fi + ensc_libnl_stdint_type="${ensc_libnl_stdint_type}int${b}_t" + AC_CHECK_TYPES([__${s}${b}], [ : ], + [AC_DEFINE_UNQUOTED([__${s}${b}], + [$ensc_libnl_stdint_type], + [__${s}${b} type])], + [AC_INCLUDES_DEFAULT() +#ifdef HAVE_ASM_TYPES_H +# include +#endif] + ) + done + done +fi + +if test x"$ensc_have_libnl" = xyes; then + AC_CHECK_HEADERS([netlink/netlink.h netlink/route/addr.h], [ : ], + [ ensc_have_libnl=no ], [AC_INCLUDES_DEFAULT() +#ifdef HAVE_ASM_TYPES_H +# include +#endif] + ) fi if test x"$ensc_have_libnl" = xyes; then