Patchwork [05/20] Add brlapi to new feature convencion

login
register
mail settings
Submitter Juan Quintela
Date Aug. 12, 2009, 4:20 p.m.
Message ID <82b94c8e7e73d64ddc4817ca7d93906a31989589.1250093910.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/31209/
State Superseded
Headers show

Comments

Juan Quintela - Aug. 12, 2009, 4:20 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 configure |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

Patch

diff --git a/configure b/configure
index 1a12c43..34ccc0e 100755
--- a/configure
+++ b/configure
@@ -179,7 +179,7 @@  esac
 # to ensure that several features are compiled in, and it is impossible without a
 # --enable-foo that exits if feature is not found

-brlapi="yes"
+brlapi=""
 gprof="no"
 debug_tcg="no"
 debug="no"
@@ -469,6 +469,8 @@  for opt do
   ;;
   --disable-brlapi) brlapi="no"
   ;;
+  --enable-brlapi) brlapi="yes"
+  ;;
   --disable-bluez) bluez="no"
   ;;
   --disable-kvm) kvm="no"
@@ -633,6 +635,7 @@  echo "                           Available cards: $audio_possible_cards"
 echo "  --enable-mixemu          enable mixer emulation"
 echo "  --disable-xen            disable xen backend driver support"
 echo "  --disable-brlapi         disable BrlAPI"
+echo "  --enable-brlapi          enable BrlAPI"
 echo "  --disable-vnc-tls        disable TLS encryption for VNC server"
 echo "  --disable-vnc-sasl       disable SASL encryption for VNC server"
 echo "  --disable-curses         disable curses output"
@@ -1084,8 +1087,7 @@  done
 ##########################################
 # BrlAPI probe

-if test "$brlapi" = "yes" ; then
-  brlapi=no
+if test "$brlapi" != "no" ; then
   brlapi_libs="-lbrlapi"
   cat > $TMPC << EOF
 #include <brlapi.h>
@@ -1094,6 +1096,11 @@  EOF
   if compile_prog "" "$brlapi_libs" ; then
     brlapi=yes
     libs_softmmu="$brlapi_libs $libs_softmmu"
+  else
+    if test "$brlapi" = "yes" ; then
+      feature_not_found "brlapi"
+    fi
+    brlapi=no
   fi
 fi