You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
524 B

  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