Reputation: 3052
Trying to use AX_CXX_COMPILE_STDCXX_11 in my configure.ac file like this:
...
AX_CXX_COMPILE_STDCXX_11(, optional)
...
However, results in error:
./configure: line 16126: syntax error near unexpected token `,'
./configure: line 16126: `AX_CXX_COMPILE_STDCXX_11(, optional)'
I've also placed this file into m4 directory next to configure.ac file and have AC_CONFIG_MACRO_DIR([m4])
called in configure.ac in the very beginning.
Did anyone faced anything like that before?
Upvotes: 6
Views: 6272
Reputation: 6478
Installing autoconf-archive
via brew
fixed this on macOS 13.6.6 for me when I ran into this building "libxls".
% brew install autoconf-archive
Upvotes: 0
Reputation: 416
My problem solved with running autoreconf -f
instread of autoconf
.
https://www.gnu.org/software/autoconf/manual/autoconf-2.68/html_node/autoreconf-Invocation.html
Upvotes: 2
Reputation: 3052
Adding ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
to the top-level Makefile.am helped to resolve this issue for me.
Upvotes: 0