[ekg2-commit] r4263 - trunk/scons.d: +trunk/scons.d/ncurses

SVN commit svn w toxygen.net
Sob, 9 Sie 2008, 22:30:54 CEST


Author: peres
Date: 2008-08-09 22:30:53 +0200 (Sat, 09 Aug 2008)
New Revision: 4263

Added:
   trunk/scons.d/ncurses
Log:

ncurses dependency.



Added: trunk/scons.d/ncurses
===================================================================
--- trunk/scons.d/ncurses	                        (rev 0)
+++ trunk/scons.d/ncurses	2008-08-09 20:30:53 UTC (rev 4263)
@@ -0,0 +1,24 @@
+
+# expat (used by jabber and feed)
+
+Import('*')
+
+if env['UNICODE']:
+	nc_lib = 'ncursesw'
+	out = conf.CheckLibWithHeader(nc_lib, ['ncursesw/ncurses.h'], 'C', 'initscr();')
+else:
+	nc_lib = 'ncurses'
+	out = conf.CheckLibWithHeader(nc_lib, ['ncurses/ncurses.h'], 'C', 'initscr();')
+	defines['HAVE_NCURSES_NCURSES_H'] = out
+	if not out:
+		out = conf.CheckLibWithHeader('ncurses', ['ncurses.h'], 'C', 'initscr();')
+		defines['HAVE_NCURSES_H'] = out
+
+if out:
+	libs.append(nc_lib)
+	defines['HAVE_NCURSES_ULC'] = conf.CheckLib(nc_lib, 'use_legacy_coding')
+	defines['HAVE_NCURSES_TERMINFO'] = conf.CheckLib(nc_lib, 'tigetstr')
+
+Return('out')
+
+# vim:ts=4:sts=4:syntax=python



Więcej informacji o liście dyskusyjnej ekg2-commit