Skip to content

Commit

Permalink
[#3697] Error in configure if autoreconf needed for premium hooks
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dwfreed committed Jan 22, 2025
1 parent 6641124 commit 2255458
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ INCLUDED_HOOKS=
PREMIUM=no
PREMIUM_DIR=
DISTCHECK_PREMIUM_CONFIGURE_FLAG=
AC_DEFUN([AX_PREMIUM],[])
AC_DEFUN([AX_PREMIUM],
[if test -f premium/config.m4; then
AC_MSG_ERROR([You appear to have added premium hooks after running autoreconf. Please run 'autoreconf -f -i' and then rerun this script.])
fi])
# m4_sinclude includes the file if it exists at autoreconf time
m4_sinclude(premium/config.m4)
AC_SUBST(PREMIUM_DIR)
Expand Down

0 comments on commit 2255458

Please sign in to comment.