Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ax_with_curses.m4 to support pkg-config #546

Closed
wants to merge 1 commit into from

Conversation

jlec
Copy link
Contributor

@jlec jlec commented Nov 26, 2016

Latest version of ax_with_curses.m4 supports pkg-config. This is important
as libcurses is split into libcurses.so and libtinfo.so on many distros
and linking against libcurses.so is not sufficiant. Pkg-config allows
proper detection of necessary libs.

Signed-off-by: Justin Lecher jlec@gentoo.org

Update ax_with_curses.m4 to latest version and use pkg-config as primary
detection mechanism for ncurses. Latest version of ax_with_curses.m4
supports pkg-config. This is important as libcurses is split into
libcurses.so and libtinfo.so on many distros and linking against
libcurses.so is not sufficiant. Pkg-config allows proper detection
of necessary libs.

Signed-off-by: Justin Lecher <jlec@gentoo.org>
AC_MSG_WARN([This means that tig will not correctly render UTF-8.])
esac
AC_SUBST(CURSES_LIB)
PKG_CHECK_MODULES([CURSES], [ncursesw],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up reverting this change because the AX_WITH_CURSES macro will call pkg-config automatically.

@jonas
Copy link
Owner

jonas commented Nov 26, 2016

Great, thanks @jlec. Hope this still works on Gentoo with the changes I made

@jonas jonas closed this Nov 26, 2016
@jlec jlec deleted the curses branch November 26, 2016 17:06
@jlec
Copy link
Contributor Author

jlec commented Nov 26, 2016

Works perfectly fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants