File libwmf-0.2.8.4-config.patch of Package libwmf

--- libwmf-config.in
+++ libwmf-config.in
@@ -95,14 +95,14 @@
 	if test "$lib_gd" = "yes"; then
 		includes="$includes -I@includedir@/libwmf/gd"
 	fi
-	if test "$lib_wmf" = "yes"; then
+	if test "$lib_wmf" = "yes" && test "${prefix}" != "/usr/include" ; then
 		includes="$includes -I@includedir@"
 	fi
 	echo $includes
 fi
 
 if test "$echo_libs" = "yes"; then
-	libdirs=-L@libdir@
+	test "@libdir@" != "/usr/lib" && libdirs=-L@libdir@
 	my_wmf_libs=
 	for i in $wmf_libs ; do
 		if test "x$i" != "x-L@libdir@" ; then