dnstop-20140915-pkg-config.patch 966 B

123456789101112131415161718192021222324252627282930
  1. diff -Naur dnstop-20140915-orig/configure.ac dnstop-20140915/configure.ac
  2. --- dnstop-20140915-orig/configure.ac 2016-09-25 19:36:25.222387686 +0100
  3. +++ dnstop-20140915/configure.ac 2016-09-25 19:32:01.489612302 +0100
  4. @@ -11,10 +11,7 @@
  5. AC_PROG_INSTALL
  6. # Checks for libraries.
  7. -AC_CHECK_LIB([ncurses], [initscr])
  8. -if test "$ac_cv_lib_ncurses_initscr" != "yes" ; then
  9. -AC_CHECK_LIB([curses], [initscr])
  10. -fi
  11. +PKG_CHECK_MODULES([ncurses], [ncurses])
  12. AC_CHECK_LIB([pcap], [pcap_open_live])
  13. AC_CHECK_LIB([socket], [main])
  14. AC_CHECK_LIB([nsl], [main])
  15. diff -Naur dnstop-20140915-orig/Makefile.in dnstop-20140915/Makefile.in
  16. --- dnstop-20140915-orig/Makefile.in 2016-09-25 19:36:25.221387679 +0100
  17. +++ dnstop-20140915/Makefile.in 2016-09-25 19:37:39.333887436 +0100
  18. @@ -2,8 +2,8 @@
  19. OPTFLAGS=@OPTFLAGS@
  20. CC=@CC@
  21. -CFLAGS=@CFLAGS@ ${OPTFLAGS}
  22. -LIBS=@LIBS@
  23. +CFLAGS=@CFLAGS@ @ncurses_CFLAGS@ ${OPTFLAGS}
  24. +LIBS=@LIBS@ @ncurses_LIBS@
  25. LDFLAGS=@LDFLAGS@
  26. prefix=@prefix@