adaptagrams icon indicating copy to clipboard operation
adaptagrams copied to clipboard

Syntax error when building on MacOS

Open clemmy opened this issue 2 years ago • 1 comments

After running brew install libtool autoconf automake and running ./autogen.sh, I ran into the following error:

./configure: line 16763: syntax error near unexpected token `CAIROMM,cairomm-1.0,cairomm=yes,cairomm=no'
./configure: line 16763: `PKG_CHECK_MODULES(CAIROMM,cairomm-1.0,cairomm=yes,cairomm=no)'

I still got a build working by removing the following lines from cola/configure.ac

#AC_CHECK_LIB(cairomm-1.0,cairo_create)
PKG_CHECK_MODULES(CAIROMM,cairomm-1.0,cairomm=yes,cairomm=no)
if test "x$cairomm" = "xyes"; then
	AC_DEFINE(HAVE_CAIROMM, 1, [Enable CairoMM code])
fi

This is on macOS 11.6.1. autoconf 2.71 automaker 1.16.5 libtool 2.4.7

clemmy avatar Apr 21 '22 18:04 clemmy

For future searchers: you need to install pkg-config (brew install pkg-config) and likely rerun autoconf w/ autoconf -i -f

jtmarmon avatar May 17 '22 01:05 jtmarmon