qulogic/libgnt

Fix build with --with-ncurses-headers.

2010-07-05, Sadrul Habib Chowdhury
9bc45b55447d
Parents 47a58a8fcb6e
Children ac8d8a62c098
Fix build with --with-ncurses-headers.
  • +8 -0
    configure.ac
  • --- a/configure.ac Mon Jul 05 04:44:52 2010 +0000
    +++ b/configure.ac Mon Jul 05 15:00:36 2010 +0000
    @@ -265,6 +265,10 @@
    for location in $ac_ncurses_includes /usr/include/ncursesw /usr/include
    do
    f="$location/ncurses.h"
    + orig_CFLAGS="$CFLAGS"
    + orig_CPPFLAGS="$CPPFLAGS"
    + CFLAGS="$CFLAGS -I$location"
    + CPPFLAGS="$CPPFLAGS -I$location"
    AC_CHECK_HEADER($f,[
    AC_MSG_CHECKING([if $f supports wide characters])
    AC_TRY_COMPILE([
    @@ -283,9 +287,13 @@
    fi
    found_ncurses_h=yes
    + CFLAGS="$orig_CFLAGS"
    + CPPFLAGS="$orig_CPPFLAGS"
    AC_MSG_RESULT([yes])
    break
    ], [
    + CFLAGS="$orig_CFLAGS"
    + CPPFLAGS="$orig_CPPFLAGS"
    AC_MSG_RESULT([no])
    ])
    ])