From: brarcher Date: Wed, 5 Mar 2014 02:19:32 +0000 (+0000) Subject: example: use pkg-config to find check X-Git-Tag: 0.10.0~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9c49601ff230578d7d4bfda040d1b145da3034f8;p=check example: use pkg-config to find check Moving away from the deprecated AM_PATH_CHECK to the not-deprecated PKG_CHECK_MODULES Based on patch submitted by Julien Godin git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1124 64e312b2-a51f-0410-8e61-82d0ca0eb02a --- diff --git a/AUTHORS b/AUTHORS index 66c1658..5e6d2a4 100644 --- a/AUTHORS +++ b/AUTHORS @@ -44,6 +44,7 @@ Contributors: Pino Toscano (GNU/Hurd support for subsecond timeouts) lod (compiler warning) Bill Kolokithas (more checkmk directives) + Julien Godin (configure.ac patch for Check example) Anybody who has contributed code to Check or Check's build system is considered an author. Send patches to this file to diff --git a/doc/example/configure.ac b/doc/example/configure.ac index a25417b..f3cb54b 100644 --- a/doc/example/configure.ac +++ b/doc/example/configure.ac @@ -3,6 +3,7 @@ # Prelude. AC_PREREQ([2.59]) AC_INIT([Money], [0.3], [check-devel AT lists.sourceforge.net]) +AM_PROG_AR # unique source file --- primitive safety check AC_CONFIG_SRCDIR([src/money.c]) @@ -20,12 +21,8 @@ AC_PROG_LIBTOOL # Checks for libraries. -# This macro is defined in check.m4 and tests if check.h and -# libcheck.a are installed in your system. It sets CHECK_CFLAGS and -# CHECK_LIBS accordingly. -# AM_PATH_CHECK([MINIMUM-VERSION, -# [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) -AM_PATH_CHECK() +PKG_CHECK_MODULES([CHECK], [check >= 0.9.6]) +AM_PROG_CC_C_O # Checks for header files. AC_HEADER_STDC