Commit df7a607b6b1cf3966ba30e7c7bae7c1ae348d679
Committed by
Anthony Liguori
1 parent
79c4f6b0
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 <Christoph.Egger@amd.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
1 changed file
with
2 additions
and
2 deletions
configure
... | ... | @@ -849,9 +849,9 @@ if test "$xen" = "yes" ; then |
849 | 849 | cat > $TMPC <<EOF |
850 | 850 | #include <xenctrl.h> |
851 | 851 | #include <xs.h> |
852 | -int main(void) { xs_daemon_open; xc_interface_open; } | |
852 | +int main(void) { xs_daemon_open(); xc_interface_open(); return 0; } | |
853 | 853 | EOF |
854 | - if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC -lxenstore -lxenctrl 2> /dev/null > /dev/null ; then | |
854 | + if $cc $CFLAGS $ARCH_CFLAGS -c -o $TMPO $TMPC $LDFLAGS -lxenstore -lxenctrl 2> /dev/null > /dev/null ; then | |
855 | 855 | : |
856 | 856 | else |
857 | 857 | xen="no" | ... | ... |