Skip to content

Commit d604ed8

Browse files
committed
libvisual: configure.ac: Be more helpful in absence of autoconf-archive and/or pkg.m4
Suggested-by: Eli Schwartz <[email protected]>
1 parent 8aa3dbb commit d604ed8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libvisual/configure.ac

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ m4_define([libvisual_version_micro], [2])
88

99
m4_define([libvisual_version], [libvisual_version_major.libvisual_version_minor.libvisual_version_micro])
1010

11+
dnl We're collecting all names of used macros that are not core GNU Autoconf
12+
dnl (but e.g. from autoconf-archive or pkg.m4) so that users running autoconf
13+
dnl get proper error messages about missing macros at autoconf runtime rather
14+
dnl than weird error messages from broken shell code later at configure runtime.
15+
m4_pattern_forbid([^AX_CXX_COMPILE_STDCXX_11$])
16+
m4_pattern_forbid([^PKG_CHECK_MODULES$])
17+
m4_pattern_forbid([^PKG_PROG_PKG_CONFIG$])
18+
1119
AC_INIT([Libvisual Library], [libvisual_version], [https://github.com/Libvisual/libvisual/issues], [libvisual], [https://github.com/Libvisual/libvisual])
1220
AM_INIT_AUTOMAKE([1.7.0 dist-bzip2])
1321

0 commit comments

Comments
 (0)