configure: add --disable-zlib-test

This is required for building libcacard which doesn't itself require
zlib without bringing in this requirement to the build environment.

Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Alon Levy 2011-07-26 12:30:40 +03:00 committed by Anthony Liguori
parent c7f4111a06
commit 1ece990574

5
configure vendored
View File

@ -179,6 +179,7 @@ smartcard=""
smartcard_nss="" smartcard_nss=""
usb_redir="" usb_redir=""
opengl="" opengl=""
zlib="yes"
# parse CC options first # parse CC options first
for opt do for opt do
@ -751,6 +752,8 @@ for opt do
;; ;;
--enable-usb-redir) usb_redir="yes" --enable-usb-redir) usb_redir="yes"
;; ;;
--disable-zlib-test) zlib="no"
;;
*) echo "ERROR: unknown option $opt"; show_help="yes" *) echo "ERROR: unknown option $opt"; show_help="yes"
;; ;;
esac esac
@ -1190,6 +1193,7 @@ fi
########################################## ##########################################
# zlib check # zlib check
if test "$zlib" != "no" ; then
cat > $TMPC << EOF cat > $TMPC << EOF
#include <zlib.h> #include <zlib.h>
int main(void) { zlibVersion(); return 0; } int main(void) { zlibVersion(); return 0; }
@ -1203,6 +1207,7 @@ else
echo echo
exit 1 exit 1
fi fi
fi
########################################## ##########################################
# xen probe # xen probe