[commit: packages/terminfo] master: Remove the configure logic around detecting (n)curses.h. (02ebf00)

git at git.haskell.org git at git.haskell.org
Fri Apr 21 22:46:08 UTC 2017


Repository : ssh://git@git.haskell.org/terminfo

On branch  : master
Link       : http://git.haskell.org/packages/terminfo.git/commitdiff/02ebf00cb2ab59d7924909306b7a791c7959f703

>---------------------------------------------------------------

commit 02ebf00cb2ab59d7924909306b7a791c7959f703
Author: Judah Jacobson <judah.jacobson at gmail.com>
Date:   Thu Apr 20 18:38:46 2017 -0700

    Remove the configure logic around detecting (n)curses.h.
    
    It's complicated (see e.g. PR #21), and we don't actually need it for the
    build.


>---------------------------------------------------------------

02ebf00cb2ab59d7924909306b7a791c7959f703
 configure.ac          | 23 -----------------------
 terminfo.buildinfo.in |  2 --
 2 files changed, 25 deletions(-)

diff --git a/configure.ac b/configure.ac
index 82f5015..0689aa7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,11 +1,5 @@
 AC_INIT([Haskell terminfo package], [0.2], [judah dot jacobson at gmail dot com], [terminfo])
 
-AC_ARG_WITH([curses-includes],
-  [AC_HELP_STRING([--with-curses-includes],
-    [directory containing curses.h])],
-    [curses_includes=$withval],
-    [curses_includes=NONE])
-
 AC_ARG_WITH([curses-libraries],
   [AC_HELP_STRING([--with-curses-libraries],
     [directory containing curses library])],
@@ -13,32 +7,17 @@ AC_ARG_WITH([curses-libraries],
     [curses_libraries=NONE])
 
 
-TERMINFO_INCLUDE_DIRS=
 TERMINFO_LIB_DIRS=
 if test "x$curses_libraries" != "xNONE"; then
   LDFLAGS="-L$curses_libraries $LDFLAGS"
   TERMINFO_LIB_DIRS=$curses_libraries
 fi
-if test "x$curses_includes" != "xNONE"; then
-  CPPFLAGS="-I$curses_includes $CPPFLAGS"
-  TERMINFO_INCLUDE_DIRS=$curses_includes
-fi
 
 AC_ARG_WITH([cc],
             [C compiler],
             [CC=$withval])
 AC_PROG_CC()
 
-AC_CHECK_HEADER(ncurses.h, CursesIncludes='ncurses.h',
-    [AC_CHECK_HEADER(curses.h, CursesIncludes='curses.h', HaveCursesH=NO)])
-
-# on Solaris, curses.h must be imported before term.h.
-if test "x$HaveCursesH" = xNO ; then
-    AC_MSG_FAILURE([curses headers could not be found, so this package cannot be built])
-else
-    TERMINFO_INCLUDES="$CursesIncludes term.h"
-fi
-
 AC_CHECK_LIB(tinfo, setupterm, HaveLibCurses=YES; LibCurses=tinfo,
   [AC_CHECK_LIB(ncursesw, setupterm, HaveLibCurses=YES; LibCurses=ncursesw,
     [AC_CHECK_LIB(ncurses, setupterm, HaveLibCurses=YES; LibCurses=ncurses,
@@ -52,8 +31,6 @@ else
 fi
 
 
-AC_SUBST(TERMINFO_INCLUDES)
-AC_SUBST(TERMINFO_INCLUDE_DIRS)
 AC_SUBST(TERMINFO_LIB_DIRS)
 AC_SUBST(TERMINFO_LIB)
 
diff --git a/terminfo.buildinfo.in b/terminfo.buildinfo.in
index c75566a..4c8bbd1 100644
--- a/terminfo.buildinfo.in
+++ b/terminfo.buildinfo.in
@@ -1,4 +1,2 @@
-includes: @TERMINFO_INCLUDES@
-include-dirs: @TERMINFO_INCLUDE_DIRS@
 extra-lib-dirs: @TERMINFO_LIB_DIRS@
 extra-libraries: @TERMINFO_LIB@



More information about the ghc-commits mailing list