Skip to content

Commit 3c1b96b

Browse files
Quipyowert2kdave
authored andcommitted
btrfs-progs: build: fix undefined macro AC_DEFINE
If I run autoreconf -fi in btrfs-progs repo in VirtualBox, it fails with possibly undefined macro AC_DEFINE. To fix this, I added m4 as the macro directory in configure.ac as follows. Adding that line fixes the error when running autoreconf. Versions: autoreconf 2.69 automake 1.15.1 btrfs-progs v6.3-fba31d63 openSUSE 15.5 VirtualBox 6.1.40 configure.ac:7: error: possibly undefined macro: AC_DEFINE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:63: error: possibly undefined macro: AC_MSG_ERROR configure.ac:276: error: possibly undefined macro: AC_MSG_WARN autoreconf: /usr/bin/autoconf failed with exit status: 1 Issue: kdave#632 Signed-off-by: David Sterba <dsterba@suse.com>
1 parent adfc8a9 commit 3c1b96b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure.ac

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ AC_SUBST([CFLAGS])
3030
AC_PREREQ([2.60])
3131

3232
AC_CONFIG_AUX_DIR([config])
33+
AC_CONFIG_MACRO_DIR([m4])
3334
dnl AC_USE_SYSTEM_EXTENSIONS must be called before any macros that run
3435
dnl the compiler (like AC_PROG_LIBTOOL) to avoid autoconf errors.
3536
AC_USE_SYSTEM_EXTENSIONS

0 commit comments

Comments
 (0)