1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

* configure.ac: Include stdio.h when checking for bzlib.h. Solaris 9 has a

very old bzip2 library and we can at least guarantee that it won't fail
because of the lack of stdio.h.
This commit is contained in:
David Shaw 2003-12-28 22:43:37 +00:00
parent e872c35cfa
commit b3c4ee2d1f
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-12-28 David Shaw <dshaw@jabberwocky.com>
* configure.ac: Include stdio.h when checking for bzlib.h.
Solaris 9 has a very old bzip2 library and we can at least
guarantee that it won't fail because of the lack of stdio.h.
2003-12-23 Werner Koch <wk@gnupg.org>
Released 1.2.4.

View File

@ -1,5 +1,5 @@
dnl Configure.ac script for GnuPG
dnl Copyright (C) 1998,1999,2000,2001,2002,
dnl Copyright (C) 1998, 1999, 2000, 2001, 2002,
dnl 2003 Free Software Foundation, Inc.
dnl
dnl This file is part of GnuPG.
@ -847,6 +847,10 @@ AC_ARG_WITH(bzip2,
fi
],withval="")
# Checking alongside stdio.h as an early version of bzip2 (1.0)
# required stdio.h to be included before bzlib.h, and Solaris 9 is
# woefully out of date.
if test "$withval" != no ; then
AC_CHECK_HEADER(bzlib.h,
AC_CHECK_LIB(bz2,BZ2_bzCompressInit,
@ -857,7 +861,7 @@ if test "$withval" != no ; then
[Defined if the bz2 compression library is available])
],
CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}),
CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags})
CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags},[#include <stdio.h>])
fi
AM_CONDITIONAL(ENABLE_BZIP2_SUPPORT,test x"$have_bz2" = "xyes")