X-Git-Url: http://git.onelab.eu/?p=util-vserver-pl.git;a=blobdiff_plain;f=configure.ac;h=6af3ce3f069793e255c101c2be66fec9db0cacef;hp=2dec4a4fa567cac9224524949295636c769f076d;hb=11c3a2d86a22a68c404ec711bd7b859ad123c784;hpb=8031466ca085072b4bae958ddba3c422d80b1ffc diff --git a/configure.ac b/configure.ac index 2dec4a4..6af3ce3 100644 --- a/configure.ac +++ b/configure.ac @@ -24,7 +24,7 @@ dnl distribution terms that you use for the rest of that program. dnl AC_PREREQ(2.57) -AC_INIT(util-vserver-pl, 0.1, support@planet-lab.org) +AC_INIT(util-vserver-pl, 0.3.1, support@planet-lab.org) AC_CONFIG_SRCDIR([python/vserverimpl.c]) AC_CONFIG_HEADER([config.h]) @@ -35,6 +35,7 @@ AC_CANONICAL_BUILD AC_CANONICAL_HOST # Checks for programs. +AC_LANG(C) AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S @@ -105,8 +106,13 @@ if test x"$ensc_have_libnl" = xyes; then fi if test x"$ensc_have_libnl" = xyes; then - AC_CHECK_LIB(nl, nl_handle_alloc_cb, [ : ], - [ ensc_have_libnl=no ]) + AC_CHECK_LIB(nl, nl_handle_alloc_cb, [ + AC_DEFINE(HAVE_LIBNL_1_1, [], + [Define this to use the libnl 1.1 API])], + [AC_CHECK_LIB(nl, nlmsg_get_src, + [AC_DEFINE(HAVE_LIBNL_1_0, [], + [Define this to use the libnl 1.0-pre6 API])], + [ensc_have_libnl=no])]) fi if test x"$ensc_have_libnl" != xyes; then @@ -187,5 +193,5 @@ AC_SUBST(sysvdir) AC_DEFINE(_FILE_OFFSET_BITS, [64], [Use 64bit interface for filesystem operations]) -AC_CONFIG_FILES([util-vserver-pl.spec Makefile]) +AC_CONFIG_FILES([Makefile]) AC_OUTPUT