From df7a607b6b1cf3966ba30e7c7bae7c1ae348d679 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 30 Jun 2009 14:59:38 +0200 Subject: [PATCH] configure: detect xen with --extra-cflags / --extra-ldflags Attached patch lets configure find xen headers and xen libs when called with --extra-cflags and --extra-ldflags options. Signed-off-by: Christoph Egger Signed-off-by: Anthony Liguori --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index ed58b0af54..7eeb054235 100755 --- a/configure +++ b/configure @@ -849,9 +849,9 @@ if test "$xen" = "yes" ; then cat > $TMPC < #include -int main(void) { xs_daemon_open; xc_interface_open; } +int main(void) { xs_daemon_open(); xc_interface_open(); return 0; } EOF - if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC -lxenstore -lxenctrl 2> /dev/null > /dev/null ; then + if $cc $CFLAGS $ARCH_CFLAGS -c -o $TMPO $TMPC $LDFLAGS -lxenstore -lxenctrl 2> /dev/null > /dev/null ; then : else xen="no"