File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -355,6 +355,7 @@ IO_OBJS= \
355
355
##########################################################################
356
356
357
357
LIBFFI_INCLUDEDIR= @LIBFFI_INCLUDEDIR@
358
+ NCURSESW_INCLUDEDIR= @NCURSESW_INCLUDEDIR@
358
359
359
360
##########################################################################
360
361
# Parser
Original file line number Diff line number Diff line change @@ -6414,10 +6414,17 @@ then
6414
6414
[ Define if you have struct stat.st_mtimensec] )
6415
6415
fi
6416
6416
6417
+ if test -n "$PKG_CONFIG"; then
6418
+ NCURSESW_INCLUDEDIR="`"$PKG_CONFIG" ncursesw --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`"
6419
+ else
6420
+ NCURSESW_INCLUDEDIR=""
6421
+ fi
6422
+ AC_SUBST ( NCURSESW_INCLUDEDIR )
6423
+
6417
6424
# first curses header check
6418
6425
ac_save_cppflags="$CPPFLAGS"
6419
6426
if test "$cross_compiling" = no; then
6420
- CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw "
6427
+ CPPFLAGS="$CPPFLAGS -I$NCURSESW_INCLUDEDIR "
6421
6428
fi
6422
6429
6423
6430
AC_CHECK_HEADERS ( curses.h ncurses.h )
Original file line number Diff line number Diff line change @@ -1145,7 +1145,7 @@ def detect_readline_curses(self):
1145
1145
if curses_library == 'ncursesw' :
1146
1146
curses_defines .append (('HAVE_NCURSESW' , '1' ))
1147
1147
if not CROSS_COMPILING :
1148
- curses_includes .append ('/usr/include/ncursesw' )
1148
+ curses_includes .append (sysconfig . get_config_var ( "NCURSESW_INCLUDEDIR" ) )
1149
1149
# Bug 1464056: If _curses.so links with ncursesw,
1150
1150
# _curses_panel.so must link with panelw.
1151
1151
panel_library = 'panelw'
You can’t perform that action at this time.
0 commit comments