patch-configure_ac 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. $OpenBSD: patch-configure_ac,v 1.1 2016/10/11 20:35:39 sthen Exp $
  2. --- configure.ac.orig Tue Oct 11 21:28:19 2016
  3. +++ configure.ac Tue Oct 11 21:31:12 2016
  4. @@ -111,39 +111,6 @@ AC_CHECK_HEADER(pthread.h, , [
  5. exit 1;
  6. ])
  7. -dnl Moved to after header checks by Shevek
  8. -AC_ARG_WITH(bind,
  9. - [ --with-bind=DIR Find BIND resolver in DIR],
  10. - [AC_CHECK_FILE([$withval/include/bind/resolv.h],
  11. - [CFLAGS="$CFLAGS -I$withval/include/bind"],
  12. - [CFLAGS="$CFLAGS -I$withval/include"])
  13. - LDFLAGS="$LDFLAGS -L$withval/lib -Wl,$rpath$withval/lib"
  14. - AC_CHECK_LIB([bind], [res_query], [LIBS="$LIBS -lbind"],
  15. - [AC_CHECK_LIB([resolv],
  16. - [res_query],
  17. - [LIBS="$LIBS -lresolv"],
  18. - [echo "cannot find resolver library"; exit 1;])
  19. - ])
  20. - ],
  21. - [dnl Have to include resolv.h as res_query is sometimes defined as a macro
  22. - AC_MSG_CHECKING([for res_query in -lresolv (with resolv.h if present)])
  23. - saved_libs="$LIBS"
  24. - LIBS="-lresolv $LIBS"
  25. - AC_TRY_LINK([
  26. - #ifdef HAVE_RESOLV_H
  27. - #include <resolv.h>
  28. - #endif],
  29. - [res_query(0,0,0,0,0)],
  30. - [AC_MSG_RESULT(yes)
  31. - have_res_query=yes],
  32. - [AC_MSG_RESULT(no)
  33. - LIBS="$saved_libs"])
  34. - ])
  35. -
  36. -
  37. -
  38. -dnl [AC_CHECK_LIB(resolv, res_query)])
  39. -
  40. # Checks for libraries.
  41. AC_CHECK_LIB(nsl, inet_pton)
  42. AC_CHECK_LIB(socket, socket)