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

Fetch includes from $(includedir)/irssi #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 11 additions & 13 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,20 @@ AC_SUBST(PACKAGE_CFLAGS)
# Checking only a few Irssi headers is enough to tell that everything is
# available. This is broken I know but tell that to the irssi guys to NOT use
# cluster fu*** of headers and local inclusion system wide...
CPPFLAGS="$CPPFLAGS $PACKAGE_CFLAGS -I$IRSSI_HEADER_DIR"
CPPFLAGS="$CPPFLAGS $PACKAGE_CFLAGS -I${IRSSI_HEADER_DIR}/irssi -I${IRSSI_HEADER_DIR}/irssi/src -I${IRSSI_HEADER_DIR}/irssi/src/core"
AC_CHECK_HEADERS([\
irssi/src/common.h \
irssi/src/core/commands.h \
irssi/src/core/modules.h \
irssi/src/core/servers.h \
irssi/src/core/signals.h \
irssi/src/core/levels.h \
irssi/src/core/queries.h \
irssi/src/core/settings.h \
src/core/commands.h \
src/core/modules.h \
src/core/servers.h \
src/core/signals.h \
src/core/levels.h \
src/core/queries.h \
src/core/settings.h \
src/fe-common/core/fe-windows.h \
], [], [AC_MSG_ERROR([Irssi Header files are needed])],
[
#include <irssi/irssi-config.h>
#ifdef HAVE_IRSSI_SRC_COMMON_H
#include <irssi/src/common.h>
#endif
#include <irssi-config.h>
#include <src/common.h>
])

LT_INIT
Expand Down