Add brlapi to new feature convencion

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela 2009-08-12 18:20:26 +02:00 committed by Anthony Liguori
parent 249247c9fd
commit 4ffcedb674

13
configure vendored
View File

@ -177,7 +177,7 @@ esac
# to ensure that several features are compiled in, and it is impossible without a # to ensure that several features are compiled in, and it is impossible without a
# --enable-foo that exits if feature is not found # --enable-foo that exits if feature is not found
brlapi="yes" brlapi=""
gprof="no" gprof="no"
debug_tcg="no" debug_tcg="no"
debug="no" debug="no"
@ -444,6 +444,8 @@ for opt do
;; ;;
--disable-brlapi) brlapi="no" --disable-brlapi) brlapi="no"
;; ;;
--enable-brlapi) brlapi="yes"
;;
--disable-bluez) bluez="no" --disable-bluez) bluez="no"
;; ;;
--disable-kvm) kvm="no" --disable-kvm) kvm="no"
@ -607,6 +609,7 @@ echo " Available cards: $audio_possible_cards"
echo " --enable-mixemu enable mixer emulation" echo " --enable-mixemu enable mixer emulation"
echo " --disable-xen disable xen backend driver support" echo " --disable-xen disable xen backend driver support"
echo " --disable-brlapi disable BrlAPI" echo " --disable-brlapi disable BrlAPI"
echo " --enable-brlapi enable BrlAPI"
echo " --disable-vnc-tls disable TLS encryption for VNC server" echo " --disable-vnc-tls disable TLS encryption for VNC server"
echo " --disable-vnc-sasl disable SASL encryption for VNC server" echo " --disable-vnc-sasl disable SASL encryption for VNC server"
echo " --disable-curses disable curses output" echo " --disable-curses disable curses output"
@ -1058,8 +1061,7 @@ done
########################################## ##########################################
# BrlAPI probe # BrlAPI probe
if test "$brlapi" = "yes" ; then if test "$brlapi" != "no" ; then
brlapi=no
brlapi_libs="-lbrlapi" brlapi_libs="-lbrlapi"
cat > $TMPC << EOF cat > $TMPC << EOF
#include <brlapi.h> #include <brlapi.h>
@ -1068,6 +1070,11 @@ EOF
if compile_prog "" "$brlapi_libs" ; then if compile_prog "" "$brlapi_libs" ; then
brlapi=yes brlapi=yes
libs_softmmu="$brlapi_libs $libs_softmmu" libs_softmmu="$brlapi_libs $libs_softmmu"
else
if test "$brlapi" = "yes" ; then
feature_not_found "brlapi"
fi
brlapi=no
fi fi
fi fi