Skip to content

Commit 2255458

Browse files
committed
[#3697] Error in configure if autoreconf needed for premium hooks
This ensures that configure will find the premium hooks if they exist, or error if autoreconf needs to be run again to pick up the hooks' additions to configure.
1 parent 6641124 commit 2255458

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

configure.ac

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ INCLUDED_HOOKS=
144144
PREMIUM=no
145145
PREMIUM_DIR=
146146
DISTCHECK_PREMIUM_CONFIGURE_FLAG=
147-
AC_DEFUN([AX_PREMIUM],[])
147+
AC_DEFUN([AX_PREMIUM],
148+
[if test -f premium/config.m4; then
149+
AC_MSG_ERROR([You appear to have added premium hooks after running autoreconf. Please run 'autoreconf -f -i' and then rerun this script.])
150+
fi])
148151
# m4_sinclude includes the file if it exists at autoreconf time
149152
m4_sinclude(premium/config.m4)
150153
AC_SUBST(PREMIUM_DIR)

0 commit comments

Comments
 (0)