010-dont-add-host-paths-in-config.in.patch 1.1 KB

123456789101112131415161718192021222324
  1. --- a/configure.in
  2. +++ b/configure.in
  3. @@ -24,11 +24,6 @@ if test -n "$x_libraries" && test "x$x_l
  4. LDFLAGS="$LDFLAGS -L$x_libraries"
  5. fi
  6. -# May be equired for BSD
  7. -LDFLAGS="$LDFLAGS -L/usr/local/lib"
  8. -
  9. -CPPFLAGS="$CPPFLAGS -I/usr/local/include"
  10. -
  11. #Check for Darwin sw directory
  12. AC_CHECK_FILE(/sw/lib, LDFLAGS="$LDFLAGS -L/sw/lib")
  13. AC_CHECK_FILE(/sw/include, CPPFLAGS="$CPPFLAGS -I/sw/include")
  14. @@ -55,8 +50,7 @@ AC_CHECK_LIB(pcap, pcap_open_live, ,
  15. [AC_CHECK_LIB(wpcap, pcap_open_live, ,[AC_MSG_ERROR([Bandwidthd requires but cannot find libpcap])])])
  16. # Optional Library
  17. -AC_CHECK_FILE(/usr/lib, LDFLAGS="$LDFLAGS -L/usr/lib")
  18. -AC_CHECK_FILE(/usr/include/pgsql, CPPFLAGS="$CPPFLAGS -I/usr/include/pgsql")
  19. +AC_CHECK_FILE(/usr/local/pgsql/include, CPPFLAGS="$CPPFLAGS -I/usr/local/pgsql/include")
  20. AC_CHECK_LIB(pq, PQconnectdb,
  21. [AC_CHECK_LIB(pq,PQexecParams, ,AC_MSG_WARN([libpq exists but is too old... bandwidthd requires support for PQexecParams]))])
  22. AC_CHECK_LIB(sqlite3, sqlite3_open, ,AC_MSG_WARN([sqlite3 is recommended for storage of data but cannot be found]))