ports/sysutils/tmux/files/patch-configure
Mathieu Arnold 16bcc031de Update to 2.0.
Now links with libutempter (libulog).

Changes:	http://heanet.dl.sourceforge.net/project/tmux/tmux/tmux-2.0/tmux-2.0-readme
Sponsored by:	Absolight
2015-05-07 14:18:24 +00:00

40 lines
1.1 KiB
Text

--- configure.orig 2015-05-06 22:49:42 UTC
+++ configure
@@ -5002,7 +5002,7 @@ return setupterm ();
return 0;
}
_ACEOF
-for ac_lib in '' terminfo curses ncurses tinfo; do
+for ac_lib in '' terminfo ncurses tinfo; do
if test -z "$ac_lib"; then
ac_res="none required"
else
@@ -5755,6 +5755,28 @@ $as_echo "yes" >&6; }
fi
fi
if test "x$found_strnvis" = xyes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnvis is broken" >&5
+$as_echo_n "checking if strnvis is broken... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <vis.h>
+
+_ACEOF
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "strnvis\(char \*, const char \*, size_t, int\)" >/dev/null 2>&1; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+else
+ found_strnvis=no
+fi
+rm -f conftest*
+
+ if test "x$found_strnvis" = xno; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ fi
+fi
+if test "x$found_strnvis" = xyes; then
$as_echo "#define HAVE_VIS 1" >>confdefs.h
fi