Skip to content

Commit

Permalink
update autotools usage of older ncurses
Browse files Browse the repository at this point in the history
  • Loading branch information
berquist committed Mar 6, 2024
1 parent 5d0b928 commit ef5993b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions config/sst_check_curses.m4
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,13 @@ AC_DEFUN([SST_CHECK_CURSES],
AS_IF([test $NCURSES_CONFIG_EXE = "no"],
[AC_MSG_ERROR([Unable to locate ncurses6-config utility])])
dnl Older versions only have --libs, not --libs-only-l and --libs-only-L,
dnl which combines the two. Ideally, CURSES_LDFLAGS (sstinfo_x_LDFLAGS)
dnl contains --libs-only-L and CURSES_LIBS (sstinfo_x_LDADD) contains
dnl --libs-only-l, but rather than complicated logic testing the above,
dnl combining everything into LDADD seems acceptable..
CURSES_CPPFLAGS=`$NCURSES_CONFIG_EXE --cflags`
CURSES_LDFLAGS=`$NCURSES_CONFIG_EXE --libs-only-L`
CURSES_LIBS=`$NCURSES_CONFIG_EXE --libs-only-l`
CURSES_LIBS=`$NCURSES_CONFIG_EXE --libs`
CPPFLAGS_saved="$CPPFLAGS"
LDFLAGS_saved="$LDFLAGS"
Expand All @@ -44,7 +48,6 @@ dnl Check for header
LDFLAGS="$LDFLAGS_saved"
AC_SUBST([CURSES_CPPFLAGS])
AC_SUBST([CURSES_LDFLAGS])
AC_SUBST([CURSES_LIBS])
AS_IF([test "x$sst_check_curses_happy" = "xyes"], [AC_DEFINE([HAVE_CURSES], [1], [Defines whether we have the curses library])])
AM_CONDITIONAL([USE_CURSES], [test "x$sst_check_curses_happy" = "xyes"])
Expand Down
1 change: 0 additions & 1 deletion src/sst/core/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,6 @@ endif
if USE_CURSES
AM_CPPFLAGS += $(CURSES_CPPFLAGS)
sstinfo_x_LDADD += $(CURSES_LIBS)
sstinfo_x_LDFLAGS += $(CURSES_LDFLAGS)
endif

if USE_HDF5
Expand Down

0 comments on commit ef5993b

Please sign in to comment.