[PATCH] configure: sha1: check libsha1 using pkg-config instead

Yaakov (Cygwin/X) yselkowitz at users.sourceforge.net
Sun May 2 18:13:05 PDT 2010


On 2010-05-02 15:58, Keith Packard wrote:
> On Sun,  2 May 2010 18:33:40 +0300, Tiago Vignatti wrote:
>
>> -AC_CHECK_LIB([sha1], [sha1_begin], [HAVE_LIBSHA1=yes])
>> +PKG_CHECK_MODULES([LIBSHA1], [sha1], [HAVE_LIBSHA1=yes])
>
> If the sha1.pc file isn't available, this causes an error and the build
> fails:
>
> checking for LIBSHA1... configure: error: Package requirements (sha1) were not met:
>
> No package 'sha1' found

PKG_CHECK_MODULES([LIBSHA1], [sha1], [HAVE_LIBSHA1=yes], [HAVE_LIBSHA1=no])


Yaakov
Cygwin/X


More information about the xorg-devel mailing list