mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-15 06:10:02 +00:00
2139d9034d
The configure script for mg checks the standard locations under /usr for the term.h header file needed to build against ncurses; however, in the OE cross-compile case, this is not valid, since the file will be under the sysroot instead. This causes the configure step to fail when the build machine does not have the libncurses-dev package installed. To fix the issue, remove the check. Since mg DEPENDS on ncurses, term.h will always be there. Signed-off-by: Ben Shelton <ben.shelton@ni.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
37 lines
1008 B
Diff
37 lines
1008 B
Diff
diff -uwr mg-20110905/configure mg-20110905-changed/configure
|
|
--- mg-20110905/configure 2011-09-05 13:36:16.000000000 -0500
|
|
+++ mg-20110905-changed/configure 2014-08-14 10:46:14.168715425 -0500
|
|
@@ -163,32 +163,6 @@
|
|
echo 'Fails.'
|
|
fi
|
|
|
|
-
|
|
-if [ ! -r /usr/include/term.h ]; then
|
|
- note 'term.h'
|
|
- if [ -r /usr/include/ncurses/term.h ]; then
|
|
- echo "Found in /usr/include/ncurses"
|
|
- extraflags="$extraflags -I/usr/include/ncurses"
|
|
- else
|
|
- for i in pkg local; do
|
|
- if [ -r /usr/$i/include/term.h ]; then
|
|
- echo "Found in /usr/$i/include"
|
|
- extralibs="$extralibs -L/usr/$i/lib"
|
|
- extraflags="$extraflags -I/usr/$i/include"
|
|
- break
|
|
- else
|
|
- false
|
|
- fi
|
|
- done ||
|
|
- {
|
|
- echo 'Not found!' >&2
|
|
- echo 'Do you have the ncurses devel package installed?' >&2
|
|
- echo 'If you know where term.h is, please email the author!' >&2
|
|
- exit 1
|
|
- }
|
|
- fi
|
|
-fi
|
|
-
|
|
note 'base and dirname'
|
|
if gcc_defines "__GLIBC__" || gcc_defines "__CYGWIN__" ; then
|
|
echo 'Not present, adding.'
|