File: acx_cppunit.m4

package info (click to toggle)
softhsm2 2.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,496 kB
  • sloc: cpp: 65,881; sh: 4,363; ansic: 2,018; makefile: 655
file content (15 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
AC_DEFUN([ACX_CPPUNIT],[
	AC_PATH_PROG([CPPUNIT_CONFIG], [cppunit-config])
	if test -n "${PKG_CONFIG}"; then
		PKG_CHECK_MODULES([CPPUNIT], [cppunit], [], [:])
	elif test -n "${CPPUNIT_CONFIG}"; then
		AC_MSG_CHECKING([cppunit cflags])
		CPPUNIT_CFLAGS=`${CPPUNIT_CONFIG} --cflags`
		AC_MSG_RESULT([${CPPUNIT_CFLAGS}])
		AC_MSG_CHECKING([cppunit libs])
		CPPUNIT_LIBS=`${CPPUNIT_CONFIG} --libs`
		AC_MSG_RESULT([${CPPUNIT_LIBS}])
		AC_SUBST([CPPUNIT_CFLAGS])
		AC_SUBST([CPPUNIT_LIBS])
	fi
])