diff options
Diffstat (limited to 'misc/tmux/patches/patch-configure.ac')
-rw-r--r-- | misc/tmux/patches/patch-configure.ac | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/misc/tmux/patches/patch-configure.ac b/misc/tmux/patches/patch-configure.ac deleted file mode 100644 index 2071cc932a4..00000000000 --- a/misc/tmux/patches/patch-configure.ac +++ /dev/null @@ -1,79 +0,0 @@ -$NetBSD: patch-configure.ac,v 1.2 2011/10/04 11:55:34 ryoon Exp $ - -Compatibility for b64_ntop. SVN Revisions 2565 and 2568. -Add DragonFly support, SVN 2600. - ---- configure.ac.orig 2011-07-09 16:00:17.000000000 +0000 -+++ configure.ac -@@ -121,9 +121,44 @@ if test "x$found_curses" = xno; then - AC_MSG_ERROR("curses not found") - fi - -+# Check for b64_ntop. -+AC_MSG_CHECKING(for b64_ntop) -+AC_TRY_LINK( -+ [ -+ #include <sys/types.h> -+ #include <netinet/in.h> -+ #include <resolv.h> -+ ], -+ [b64_ntop(NULL, 0, NULL, 0);], -+ found_b64_ntop=yes, -+ found_b64_ntop=no -+) -+if test "x$found_b64_ntop" = xno; then -+ AC_MSG_RESULT(no) -+ -+ AC_MSG_CHECKING(for b64_ntop with -lresolv) -+ LIBS="$LIBS -lresolv" -+ AC_TRY_LINK( -+ [ -+ #include <sys/types.h> -+ #include <netinet/in.h> -+ #include <resolv.h> -+ ], -+ [b64_ntop(NULL, 0, NULL, 0);], -+ found_b64_ntop=yes, -+ found_b64_ntop=no -+ ) -+ if test "x$found_b64_ntop" = xno; then -+ AC_MSG_RESULT(no) -+ fi -+fi -+if test "x$found_b64_ntop" = xyes; then -+ AC_DEFINE(HAVE_B64_NTOP) -+ AC_MSG_RESULT(yes) -+fi -+AM_CONDITIONAL(NO_B64_NTOP, [test "x$found_b64_ntop" = xno]) -+ - # Look for networking libraries. --AC_SEARCH_LIBS(b64_ntop, resolv) --AC_SEARCH_LIBS(__b64_ntop, resolv) - AC_SEARCH_LIBS(inet_ntoa, nsl) - AC_SEARCH_LIBS(socket, socket) - AC_CHECK_LIB(xnet, socket) -@@ -385,11 +420,15 @@ case "$host_os" in - AC_DEFINE(BROKEN_CMSG_FIRSTHDR) - PLATFORM=darwin - ;; -+ *dragonfly*) -+ AC_MSG_RESULT(dragonfly) -+ PLATFORM=dragonfly -+ ;; - *linux*) - AC_MSG_RESULT(linux) - PLATFORM=linux - ;; -- *freebsd*|*dragonfly*) -+ *freebsd*) - AC_MSG_RESULT(freebsd) - PLATFORM=freebsd - ;; -@@ -421,6 +460,7 @@ esac - AC_SUBST(PLATFORM) - AM_CONDITIONAL(IS_AIX, test "x$PLATFORM" = xaix) - AM_CONDITIONAL(IS_DARWIN, test "x$PLATFORM" = xdarwin) -+AM_CONDITIONAL(IS_DRAGONFLY, test "x$PLATFORM" = xdragonfly) - AM_CONDITIONAL(IS_LINUX, test "x$PLATFORM" = xlinux) - AM_CONDITIONAL(IS_FREEBSD, test "x$PLATFORM" = xfreebsd) - AM_CONDITIONAL(IS_NETBSD, test "x$PLATFORM" = xnetbsd) |