diff options
author | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-11 09:56:04 +0000 |
---|---|---|
committer | balrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-10-11 09:56:04 +0000 |
commit | ac62922e7295acd0cdc2824472ae91c31917359b (patch) | |
tree | ac01955d4e329117a3b5df266532a510dcb67f8a /configure | |
parent | 22864256db67a1f85b7f09436612bd9633474dac (diff) | |
download | qemu-ac62922e7295acd0cdc2824472ae91c31917359b.zip qemu-ac62922e7295acd0cdc2824472ae91c31917359b.tar.gz qemu-ac62922e7295acd0cdc2824472ae91c31917359b.tar.bz2 |
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
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -716,6 +716,23 @@ else fi ########################################## +# zlib check + +cat > $TMPC << EOF +#include <zlib.h> +int main(void) { zlibVersion(); return 0; } +EOF +if $cc $CFLAGS $LDFLAGS -o $TMPE $TMPC -lz 2> /dev/null ; then + : +else + echo + echo "Error: zlib check failed" + echo "Make sure to have the zlib libs and headers installed." + echo + exit 1 +fi + +########################################## # SDL probe sdl_too_old=no |