build: avoid compiler warning during configure

There is no need to redefine _GNU_SOURCE in tests that occur after
gl_INIT, since that macro already AC_DEFINE'd it for us.

Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
Wen Congyang 2011-05-12 17:55:43 +08:00 committed by Eric Blake
parent 81cfe71998
commit 1ba6e2d926

View File

@ -638,7 +638,7 @@ if test "$with_libvirtd" = "no" ; then
with_lxc=no
fi
if test "$with_lxc" = "yes" || test "$with_lxc" = "check"; then
AC_TRY_LINK([#define _GNU_SOURCE
AC_TRY_LINK([
#include <sched.h>
], [
unshare (1);