aboutsummaryrefslogtreecommitdiff
path: root/devel/libcheck/files/patch-check.m4
diff options
context:
space:
mode:
authorSean Chittenden <seanc@FreeBSD.org>2006-07-05 18:30:08 +0000
committerSean Chittenden <seanc@FreeBSD.org>2006-07-05 18:30:08 +0000
commit90862d3405a3ddcab2c788945e8af59f36bb0f30 (patch)
treef033a8f9c9770e834b5b06eb27a2b2b7623c2074 /devel/libcheck/files/patch-check.m4
parent6b4b9db459d4912155e498247c6e92a45ac6d275 (diff)
Notes
Diffstat (limited to 'devel/libcheck/files/patch-check.m4')
-rw-r--r--devel/libcheck/files/patch-check.m426
1 files changed, 26 insertions, 0 deletions
diff --git a/devel/libcheck/files/patch-check.m4 b/devel/libcheck/files/patch-check.m4
new file mode 100644
index 000000000000..2c4f122ea7a7
--- /dev/null
+++ b/devel/libcheck/files/patch-check.m4
@@ -0,0 +1,26 @@
+--- check.m4.orig Tue Mar 1 01:25:26 2005
++++ check.m4 Sun Jul 2 21:13:20 2006
+@@ -19,8 +19,21 @@
+ CHECK_CFLAGS="-I$with_check/include"
+ CHECK_LIBS="-L$with_check/lib -lcheck"
+ else
+- CHECK_CFLAGS=""
+- CHECK_LIBS="-lcheck"
++ for check_includedir in /usr/local/include /usr/local/include/check /usr/include $prefix/include
++ do
++ if test -e $check_includedir/check.h ; then
++ CHECK_CFLAGS="-I${check_includedir}"
++ break
++ fi
++ done
++
++ for check_libdir in /usr/local/lib /usr/local/lib/check /usr/lib $prefix/lib
++ do
++ if test -e $check_libdir/libcheck.a ; then
++ CHECK_LIBS="-L${check_libdir} -lcheck"
++ break
++ fi
++ done
+ fi
+
+ ac_save_CFLAGS="$CFLAGS"