diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-05-07 19:41:40 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-05-07 19:41:40 -0400 |
commit | d343892fbd0605a9375ff1ae0467aa320a404b12 (patch) | |
tree | 739869140027d8c67360d22718db399565ec33cd /m4/ax_cxx_compile_stdcxx_14.m4 | |
parent | 7d324c50c927a96ac666dd12ad3501ff00c52273 (diff) | |
download | autoconf-archive-d343892fbd0605a9375ff1ae0467aa320a404b12.tar.gz |
fix include errors w/AX_CXX_COMPILE_STDCXX_1[14]
The search path for `include` is the current working directory, so trying
to include other m4 files directly only works if they live in the same dir
as where you're running `aclocal`. Otherwise we end up with errors like:
$ cd lcd4linux-0.10.1-RC2
$ aclocal
/usr/share/aclocal/ax_cxx_compile_stdcxx_14.m4:32: file 'ax_cxx_compile_stdcxx.m4' does not exist
Use the AX_REQUIRE_DEFINED macro instead to make sure the macro we want
exists.
Diffstat (limited to 'm4/ax_cxx_compile_stdcxx_14.m4')
-rw-r--r-- | m4/ax_cxx_compile_stdcxx_14.m4 | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/m4/ax_cxx_compile_stdcxx_14.m4 b/m4/ax_cxx_compile_stdcxx_14.m4 index 6d2123a..51123f2 100644 --- a/m4/ax_cxx_compile_stdcxx_14.m4 +++ b/m4/ax_cxx_compile_stdcxx_14.m4 @@ -28,8 +28,7 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 3 - -include([ax_cxx_compile_stdcxx.m4]) +#serial 4 +AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX]) AC_DEFUN([AX_CXX_COMPILE_STDCXX_14], [AX_CXX_COMPILE_STDCXX([14], [$1], [$2])]) |