From 3d673211a7be655555fdc308431db11e3f1a1af7 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Sat, 27 Aug 2005 09:05:14 +0000 Subject: [PATCH] Add includedir test --- check/Makefile.am | 4 ++-- check/check-includedir | 15 +++++++++++++++ check/includedir.pc | 12 ++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100755 check/check-includedir create mode 100644 check/includedir.pc 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} -- 2.39.5