diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-08-25 14:32:38 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-08-26 21:33:40 +0300 |
commit | d1c20b8388105fd1027ea2aaf65dad772f9fe16f (patch) | |
tree | 2de220dd1c20fcbf11d4781d76380b55d66fdc2a /configure.ac | |
parent | f525d8f09ec0e60effe70623a19c700a3a202db0 (diff) | |
download | sciteco-libxcurses.tar.gz |
WIPlibxcurses
This is mostly for XDG/4 compatibility.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9d5e059..7168ae2 100644 --- a/configure.ac +++ b/configure.ac @@ -247,7 +247,7 @@ if [[ x$LEXILLA_PATH != xno ]]; then fi AC_ARG_WITH(interface, - AS_HELP_STRING([--with-interface=ncurses|netbsd-curses|xcurses|pdcurses|pdcurses-gui|gtk], + AS_HELP_STRING([--with-interface=ncurses|netbsd-curses|xcurses|pdcurses|pdcurses-gui|pdcurses-x11|gtk], [Specify user interface [default=ncurses]]), [INTERFACE=$withval], [INTERFACE=ncurses]) @@ -299,6 +299,29 @@ case $INTERFACE in ;; xcurses) + # libcurses written by Mortice Kern Systems Inc. for Solaris and is nowadays + # available in OmniOS/Illumos. + AC_DEFINE(MKS_CURSES, 1, [Building against libcurses (MKS I/XCU 4.3 Curses)]) + + CFLAGS="$CFLAGS $CURSES_CFLAGS" + CXXFLAGS="$CXXFLAGS $CURSES_CFLAGS" + LIBS="$LIBS $CURSES_LIBS" + + if [[ "x$CURSES_LIBS" = "x" ]]; then + AC_CHECK_LIB(curses, __m_curses_version, , [ + AC_MSG_ERROR([libcurses (MKS I/XCU 4.3 Curses) missing!]) + ]) + else + AC_MSG_CHECKING([checking for libcurses (CURSES_LIBS)]) + AC_MSG_RESULT([$CURSES_LIBS]) + LIBS="$LIBS $CURSES_LIBS" + fi + + AC_CHECK_FUNCS([tigetstr]) + ;; + + pdcurses-x11) + # The X11 port of PDCurses is also known as XCurses. AC_CHECK_PROG(XCURSES_CONFIG, xcurses-config, xcurses-config) if [[ "x$CURSES_CFLAGS" = "x" -a "x$XCURSES_CONFIG" != "x" ]]; then |