buildsys  Check-in [384043a8b4]

Overview
Comment:It seems there are very different versions of tput. Handle both.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 384043a8b49f7b4859ddd02655c8231cf0925e730849ab2fc95b143408a6c9f8
User & Date: js on 2010-09-16 01:04:43
Other Links: manifest | tags
Context
2010-09-19
02:05
Fix generating dependencies for .lib.o and .plugin.o. check-in: 066136bfc9 user: js tags: trunk
2010-09-16
01:04
It seems there are very different versions of tput. Handle both. check-in: 384043a8b4 user: js tags: trunk
2010-09-15
22:23
Include original extension in temporary .dep files. check-in: 4391081dd7 user: js tags: trunk
Changes

Modified m4/buildsys.m4 from [cc77804af0] to [b8a0d671e9].

20
21
22
23
24
25
26

27
28
29
30
31
32
33
34






























35
36
37
38
39
40
41
20
21
22
23
24
25
26
27








28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64







+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+







dnl POSSIBILITY OF SUCH DAMAGE.
dnl

AC_DEFUN([BUILDSYS_INIT], [
	AC_PATH_PROG(TPUT, tput)

	AS_IF([test x"$TPUT" != x""], [
		if $TPUT el >/dev/null; then
		AC_SUBST(TERM_EL, "$($TPUT el)")
		AC_SUBST(TERM_SGR0, "$($TPUT sgr0)")
		AC_SUBST(TERM_BOLD, "$($TPUT bold)")
		AC_SUBST(TERM_SETAF1, "$($TPUT setaf 1)")
		AC_SUBST(TERM_SETAF2, "$($TPUT setaf 2)")
		AC_SUBST(TERM_SETAF3, "$($TPUT setaf 3)")
		AC_SUBST(TERM_SETAF4, "$($TPUT setaf 4)")
		AC_SUBST(TERM_SETAF6, "$($TPUT setaf 6)")
			AC_SUBST(TERM_EL, "$($TPUT el)")
		else
			AC_SUBST(TERM_EL, "$($TPUT ce)")
		fi

		if $TPUT sgr0 >/dev/null; then
			AC_SUBST(TERM_SGR0, "$($TPUT sgr0)")
		else
			AC_SUBST(TERM_SGR0, "$($TPUT me)")
		fi

		if $TPUT bold >/dev/null; then
			AC_SUBST(TERM_BOLD, "$($TPUT bold)")
		else
			AC_SUBST(TERM_BOLD, "$($TPUT md)")
		fi

		if $TPUT setaf 1 >/dev/null; then
			AC_SUBST(TERM_SETAF1, "$($TPUT setaf 1)")
			AC_SUBST(TERM_SETAF2, "$($TPUT setaf 2)")
			AC_SUBST(TERM_SETAF3, "$($TPUT setaf 3)")
			AC_SUBST(TERM_SETAF4, "$($TPUT setaf 4)")
			AC_SUBST(TERM_SETAF6, "$($TPUT setaf 6)")
		else
			AC_SUBST(TERM_SETAF1, "$($TPUT AF 1)")
			AC_SUBST(TERM_SETAF2, "$($TPUT AF 2)")
			AC_SUBST(TERM_SETAF3, "$($TPUT AF 3)")
			AC_SUBST(TERM_SETAF4, "$($TPUT AF 4)")
			AC_SUBST(TERM_SETAF6, "$($TPUT AF 6)")
		fi
	], [
		AC_SUBST(TERM_EL, '\033\133K')
		AC_SUBST(TERM_SGR0, '\033\133m')
		AC_SUBST(TERM_BOLD, '\033\1331m')
		AC_SUBST(TERM_SETAF1, '\033\13331m')
		AC_SUBST(TERM_SETAF2, '\033\13332m')
		AC_SUBST(TERM_SETAF3, '\033\13333m')