forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
games-action/bzflag: Fix compiling against sys-libs/ncurses[tinfo] (b…
…ug #632022). Package-Manager: Portage-2.3.24, Repoman-2.3.6
- Loading branch information
Jeroen Roovers
committed
Feb 25, 2018
1 parent
b1c583f
commit 846199f
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -125,7 +125,11 @@ | ||
BZ_CONFIGURE_STAGE([arguments], [1 of 9]) | ||
|
||
# provide a with-curses option, test for curses | ||
-MP_WITH_CURSES | ||
+PKG_CHECK_MODULES(ncurses, ncurses, | ||
+ [CURSES_LIB="$ncurses_LIBS"] | ||
+ AC_DEFINE(HAVE_NCURSES_H, , [Use the header file ncurses.h]), | ||
+ AC_MSG_ERROR([Could not find ncurses])) | ||
+AC_SUBST(CURSES_LIB) | ||
|
||
# check for SDL option (enabled by default now) | ||
AC_ARG_WITH(SDL, AS_HELP_STRING([--without-SDL | --with-SDL={1,2}],[Do not use Simple DirectMedia Layer or force using a specific version (by default tries 2, then 1, then resorts to native platform code if available]), sdl_version="$withval", sdl_version="detect") |