002-config.patch 524 B

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