summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2013-12-18 22:01:05 +0100
committerJesper Dangaard Brouer <brouer@redhat.com>2013-12-18 22:01:05 +0100
commiteee6fb6e175287e2285ab47783fdab44c1530eb1 (patch)
tree4b05efc19d5cd42dd413cbaf9c5c63f3c71d340e /configure
parent209082307bd1595f68dbd328bacf8aec7536c441 (diff)
debian: compile fix for programs using ncurses
For some reason the Debian ncurses version does not contain a ncurses.pc pkg-config file. Fix this by echoing "-lncurses" if the command fails: pkg-config --libs ncurses This fix will make ifpps compile on Debian Squeeze 6.0.8. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 07bffb2..9b5ea9e 100755
--- a/configure
+++ b/configure
@@ -259,7 +259,8 @@ EOF
$CC \
$(pkg-config --cflags ncurses 2>> config.log) \
-o $TMPDIR/ncursestest $TMPDIR/ncursestest.c \
- $(pkg-config --libs ncurses 2>> config.log) \
+ $(pkg-config --libs ncurses 2>> config.log \
+ || echo '-lncurses' ) \
>> config.log 2>&1
if [ ! -x $TMPDIR/ncursestest ] ; then
echo "[NO]"