components/samba3oi/patches/libreplace-m4.patch
changeset 212 705e1ace097b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/samba3oi/patches/libreplace-m4.patch	Tue Jun 14 13:59:11 2011 -0400
@@ -0,0 +1,26 @@
+--- lib/replace/libreplace.m4.~1~	Sun Mar  6 13:48:05 2011
++++ lib/replace/libreplace.m4	Fri Jun  3 18:11:29 2011
+@@ -5,9 +5,9 @@
+ dnl find the libreplace sources. This is meant to work both for 
+ dnl libreplace standalone builds, and builds of packages using libreplace
+ libreplacedir=""
+-libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace $srcdir/../../../lib/replace"
++libreplacepaths=". lib/replace libreplace ../libreplace ../replace ../lib/replace ../../lib/replace ../../../lib/replace"
+ for d in $libreplacepaths; do
+-	if test -f "$d/replace.c"; then
++	if test -f "$srcdir/$d/replace.c"; then
+ 		libreplacedir="$d"		
+ 		AC_SUBST(libreplacedir)
+ 		break;
+@@ -34,9 +34,9 @@
+ dnl find the libreplace sources. This is meant to work both for 
+ dnl libreplace standalone builds, and builds of packages using libreplace
+ libreplacedir=""
+-libreplacepaths="$srcdir $srcdir/lib/replace $srcdir/libreplace $srcdir/../libreplace $srcdir/../replace $srcdir/../lib/replace $srcdir/../../../lib/replace"
++libreplacepaths=". lib/replace libreplace ../libreplace ../replace ../lib/replace ../../lib/replace ../../../lib/replace"
+ for d in $libreplacepaths; do
+-	if test -f "$d/replace.c"; then
++	if test -f "$srcdir/$d/replace.c"; then
+ 		libreplacedir="$d"		
+ 		AC_SUBST(libreplacedir)
+ 		break;