Commit ac62922e7295acd0cdc2824472ae91c31917359b
1 parent
22864256
Add a configure check for zlib (Ryota OZAKI).
This patch makes configure check zlib devel files installed. Current configure doesn't check that, so make will fail if they are not installed. Signed-off-by: Ryota Ozaki <ozaki.ryota@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5456 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
17 additions
and
0 deletions
configure
... | ... | @@ -716,6 +716,23 @@ else |
716 | 716 | fi |
717 | 717 | |
718 | 718 | ########################################## |
719 | +# zlib check | |
720 | + | |
721 | +cat > $TMPC << EOF | |
722 | +#include <zlib.h> | |
723 | +int main(void) { zlibVersion(); return 0; } | |
724 | +EOF | |
725 | +if $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -lz 2> /dev/null ; then | |
726 | + : | |
727 | +else | |
728 | + echo | |
729 | + echo "Error: zlib check failed" | |
730 | + echo "Make sure to have the zlib libs and headers installed." | |
731 | + echo | |
732 | + exit 1 | |
733 | +fi | |
734 | + | |
735 | +########################################## | |
719 | 736 | # SDL probe |
720 | 737 | |
721 | 738 | sdl_too_old=no | ... | ... |