002-config.patch (524B)
1 --- a/dnet-config.in 2 +++ b/dnet-config.in 3 @@ -45,10 +45,18 @@ while test $# -gt 0; do 4 done 5 6 if test "$echo_cflags" = "yes"; then 7 - echo -I@includedir@ 8 + includes= 9 + if test "@includedir@" != "/usr/include" ; then 10 + includes=-I@includedir@ 11 + fi 12 + echo $includes 13 fi 14 15 if test "$echo_libs" = "yes"; then 16 - echo -L@libdir@ -ldnet @LIBS@ 17 + libs= 18 + if test "@libdir@" != "/usr/lib" ; then 19 + libs=-I@libdir@ 20 + fi 21 + echo $libs -ldnet @LIBS@ 22 fi 23