configure: let it find xen headers and libs
authorChristoph Egger <Christoph.Egger@amd.com>
Thu, 30 Jul 2009 13:33:57 +0000 (15:33 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 10 Aug 2009 18:05:25 +0000 (13:05 -0500)
Attached patch lets configure find xen headers and libs
with --extra-cflags and --extra-ldlfags option.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:

configure

index e5b9431..a8bb60c 100755 (executable)
--- a/configure
+++ b/configure
@@ -880,7 +880,7 @@ if test "$xen" = "yes" ; then
 #include <xs.h>
 int main(void) { xs_daemon_open(); xc_interface_open(); return 0; }
 EOF
-  if $cc $CFLAGS $ARCH_CFLAGS -c -o $TMPO $TMPC $LDFLAGS $xen_libs 2> /dev/null > /dev/null ; then
+  if $cc $CFLAGS $ARCH_CFLAGS $EXTRA_CFLAGS -c -o $TMPO $TMPC $LDFLAGS $EXTRA_LDFLAGS $xen_libs 2> /dev/null > /dev/null ; then
     :
   else
     xen="no"