aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-07-27 16:13:19 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:23 -0500
commit4baae0acb833bd3c1e7b155685946251c5322b76 (patch)
treeba007b6776e4febf26b4dd1611fba86da4787cbc /configure
parenteb82284f180196f911fd70ebf0cddfbfdf5af3e3 (diff)
simplify vde libs selection
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 6 insertions, 6 deletions
diff --git a/configure b/configure
index 73ee5d60b5..3c63c0d5cc 100755
--- a/configure
+++ b/configure
@@ -997,6 +997,8 @@ fi
##########################################
# vde libraries probe
if test "$vde" = "yes" ; then
+ vde=no
+ vde_libs="-lvdeplug"
cat > $TMPC << EOF
#include <libvdeplug.h>
int main(void)
@@ -1006,11 +1008,9 @@ int main(void)
return 0;
}
EOF
- if $cc $ARCH_CFLAGS -o $TMPE $TMPC -lvdeplug > /dev/null 2> /dev/null ; then
- :
- else
- vde="no"
- fi
+ if $cc $ARCH_CFLAGS -o $TMPE $TMPC $vde_libs > /dev/null 2> /dev/null ; then
+ vde=yes
+ fi
fi
##########################################
@@ -1589,7 +1589,7 @@ fi
if test "$vde" = "yes" ; then
echo "CONFIG_VDE=y" >> $config_host_mak
echo "#define CONFIG_VDE 1" >> $config_host_h
- echo "VDE_LIBS=-lvdeplug" >> $config_host_mak
+ echo "VDE_LIBS=$vde_libs" >> $config_host_mak
fi
for card in $audio_card_list; do
def=CONFIG_`echo $card | tr '[:lower:]' '[:upper:]'`