gh-94644: Define HAVE_NCURSESW in pkg-config branch (#94651)

This commit is contained in:
Christian Heimes 2022-07-07 12:57:12 +02:00 committed by GitHub
parent de5884295e
commit 9c60b25a0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

2
configure generated vendored
View File

@ -21825,6 +21825,8 @@ else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
$as_echo "#define HAVE_NCURSESW 1" >>confdefs.h
have_curses=ncursesw
fi

View File

@ -6112,6 +6112,7 @@ AS_VAR_IF([ac_cv_header_ncurses_h], [yes], [
if test "$ac_sys_system" != "Darwin"; then
dnl On macOS, there is no separate /usr/lib/libncursesw nor libpanelw.
PKG_CHECK_MODULES([CURSES], [ncursesw], [
AC_DEFINE([HAVE_NCURSESW], [1])
have_curses=ncursesw
], [
WITH_SAVE_ENV([