From: Tollef Fog Heen Date: Sat, 27 Aug 2005 09:05:14 +0000 (+0000) Subject: Add includedir test X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d673211a7be655555fdc308431db11e3f1a1af7;p=pkg-config Add includedir test --- diff --git a/check/Makefile.am b/check/Makefile.am index e2c15d9..df199c7 100644 --- a/check/Makefile.am +++ b/check/Makefile.am @@ -1,7 +1,7 @@ TESTS = check-cflags check-libs check-define-variable \ - check-libs-private check-requires-private + check-libs-private check-requires-private check-includedir EXTRA_DIST = $(TESTS) common simple.pc requires-test.pc public-dep.pc \ - private-dep.pc + private-dep.pc includedir.pc diff --git a/check/check-includedir b/check/check-includedir new file mode 100755 index 0000000..e4c234c --- /dev/null +++ b/check/check-includedir @@ -0,0 +1,15 @@ +#! /bin/sh + +# Do the Solaris Dance: +if [ ! -d ~root ] ; then + exec /usr/xpg4/bin/sh $0 "$@" +fi + +set -e + +. ${srcdir}/common + +ARGS="--cflags includedir" +RESULT="-I/usr/include/somedir" + +run_test diff --git a/check/includedir.pc b/check/includedir.pc new file mode 100644 index 0000000..89d03c8 --- /dev/null +++ b/check/includedir.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include/somedir + +Name: Simple test +Description: Dummy pkgconfig test package for testing pkgconfig +Version: 1.0.0 +Requires: +Libs: -lsimple +Libs.private: -lm +Cflags: -I${includedir}