ncurses: set some configure cache variables
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Sun, 29 Aug 2010 19:38:44 +0000 (21:38 +0200)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 29 Aug 2010 19:51:13 +0000 (21:51 +0200)
Corresponding tests returned either wrong results or were generally broken. Test
for GPM was not prepared for crosscompiling and GPM support has been disabled hence.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
recipes/ncurses/ncurses-5.7/config.cache [new file with mode: 0644]
recipes/ncurses/ncurses_5.7.bb

diff --git a/recipes/ncurses/ncurses-5.7/config.cache b/recipes/ncurses/ncurses-5.7/config.cache
new file mode 100644 (file)
index 0000000..6a9217d
--- /dev/null
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+cf_cv_func_nanosleep=yes
+cf_cv_func_mkstemp=yes
index 10cc311..a523163 100644 (file)
@@ -16,6 +16,7 @@ SRC_URI = "${GNU_MIRROR}/ncurses/ncurses-${PV}.tar.gz;name=tarball \
 \
         ftp://invisible-island.net/ncurses/5.7/ncurses-5.7-${PATCHDATE}.patch.gz;name=p20100501 \
         file://tic-hang.patch \
+        file://config.cache \
 "
 
 SRC_URI[tarball.md5sum] = "cce05daf61a64501ef6cd8da1f727ec6"
@@ -27,6 +28,7 @@ SRC_URI[p20100501.sha256sum] = "a97ccc30e4bd6fbb89564f3058db0fe84bd35cfefee83155
 
 PARALLEL_MAKE = ""
 EXTRA_AUTORECONF = "-I m4"
+CONFIG_SITE =+ "${WORKDIR}/config.cache"
 
 # Whether to enable separate widec libraries; must be 'true' or 'false'
 ENABLE_WIDEC = "true"
@@ -38,6 +40,11 @@ ENABLE_WIDEC_virtclass-native = "false"
 # patched autoconf213 to generate the configure script. This autoconf
 # is not available so that the shipped script will be used.
 do_configure() {
+        # check does not work with cross-compiling and is generally
+        # broken because it requires stdin to be pollable (which is
+        # not the case for /dev/null redirections)
+        export cf_cv_working_poll=yes
+
         for i in \
         'narrowc' \
         'widec   --enable-widec --without-progs'; do
@@ -50,6 +57,7 @@ do_configure() {
                         --disable-static \
                         --without-debug \
                         --without-ada \
+                        --without-gpm \
                         --enable-hard-tabs \
                         --enable-xmc-glitch \
                         --enable-colorfgbg \