libdnet-1.10-dnet_config.patch 623 B

1234567891011121314151617181920212223
  1. --- libdnet-1.10.orig/dnet-config.in 2001-10-19 03:29:00.000000000 +0200
  2. +++ libdnet-1.10/dnet-config.in 2011-01-14 11:44:00.000000000 +0100
  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