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

Keith Packard keithp at keithp.com
Sun May 2 13:58:41 PDT 2010


On Sun,  2 May 2010 18:33:40 +0300, Tiago Vignatti <tiago.vignatti at nokia.com> 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

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables LIBSHA1_CFLAGS
and LIBSHA1_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100502/bd4a4061/attachment.pgp>


More information about the xorg-devel mailing list