]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-94644: Define HAVE_NCURSESW in pkg-config branch (#94651)
authorChristian Heimes <christian@python.org>
Thu, 7 Jul 2022 10:57:12 +0000 (12:57 +0200)
committerGitHub <noreply@github.com>
Thu, 7 Jul 2022 10:57:12 +0000 (12:57 +0200)
configure
configure.ac

index 38481eea8475ecb6bbb093fc2ba1b4429d39884c..bb0625432d211ef072c44eefcee536b361fc47df 100755 (executable)
--- a/configure
+++ b/configure
@@ -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
index 42e181bca9dace6ea16c8f57648bba0837da53b8..fde61728e7ef829b19ea54c7cfeb2995280ee7e9 100644 (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([