Subject: bug#14675: 24.3.50; autogen.sh fails: possibly undefined macro

From: Eli Zaretskii <[email-masked]>
Date: Thu, 20 Jun 2013 20:12:16 +0300

> From: [email-masked] (Óscar Fuentes)
> Date: Thu, 20 Jun 2013 18:36:06 +0200
> 
> 
> With today's sources, autogen.sh fails with this output:
> 
> Checking whether you have the necessary tools...
> (Read INSTALL.BZR for more details on building Emacs)
> 
> Checking for autoconf (need at least version 2.65)...
> ok
> Checking for automake (need at least version 1.11)...
> ok
> Your system has the required tools, running autoreconf...
> /usr/share/aclocal-1.11/init.m4:73: warning: macro `AM_MISSING_PROG' not found in library
> /usr/share/aclocal-1.11/init.m4:74: warning: macro `AM_MISSING_PROG' not found in library
> /usr/share/aclocal-1.11/init.m4:75: warning: macro `AM_MISSING_PROG' not found in library
> /usr/share/aclocal-1.11/init.m4:76: warning: macro `AM_MISSING_PROG' not found in library
> /usr/share/aclocal-1.11/init.m4:77: warning: macro `AM_MISSING_PROG' not found in library
> /usr/share/aclocal-1.11/tar.m4:44: warning: macro `AM_RUN_LOG' not found in library
> /usr/share/aclocal-1.11/tar.m4:83: warning: macro `AM_RUN_LOG' not found in library
> /usr/share/aclocal-1.11/tar.m4:86: warning: macro `AM_RUN_LOG' not found in library
> configure.ac:580: warning: macro `AM_PROG_CC_C_O' not found in library
> configure.ac:45: warning: AM_PROG_MKDIR_P is m4_require'd but not m4_defun'd
> /usr/share/aclocal-1.11/init.m4:26: AM_INIT_AUTOMAKE is expanded from...
> configure.ac:45: the top level
> configure.ac:45: warning: AM_PROG_MKDIR_P is m4_require'd but not m4_defun'd
> aclocal.m4:178: AM_INIT_AUTOMAKE is expanded from...
> configure.ac:45: the top level
> configure.ac:45: warning: AM_PROG_MKDIR_P is m4_require'd but not m4_defun'd
> aclocal.m4:178: AM_INIT_AUTOMAKE is expanded from...
> configure.ac:45: the top level
> configure.ac:1: error: possibly undefined macro: dnl
>       If this token and others are legitimate, please use m4_pattern_allow.
>       See the Autoconf documentation.
> configure.ac:142: error: possibly undefined macro: AC_DEFINE_UNQUOTED
> configure.ac:617: error: possibly undefined macro: AC_PROG_CC
> configure.ac:618: error: possibly undefined macro: AM_PROG_CC_C_O
> configure:3808: error: possibly undefined macro: AM_PROG_MKDIR_P
> configure:3895: error: possibly undefined macro: _AM_SUBST_NOTMAKE
> configure:3912: error: possibly undefined macro: _AM_SET_OPTIONS
> configure:3915: error: possibly undefined macro: _AM_IF_OPTION
> configure:3919: error: possibly undefined macro: AM_MISSING_PROG
> configure:3926: error: possibly undefined macro: _AM_PROG_TAR
> configure:3930: error: possibly undefined macro: AC_PROVIDE_IFELSE
> configure:3931: error: possibly undefined macro: _AM_DEPENDENCIES
> configure:3934: error: possibly undefined macro: AC_PROG_CXX
> configure:3938: error: possibly undefined macro: AC_PROG_OBJC
> configure:3943: error: possibly undefined macro: AM_SILENT_RULES
> configure:3943: error: possibly undefined macro: AC_REQUIRE
> autoreconf: /usr/bin/autoconf failed with exit status: 1

Worked fine for me with current trunk on both Windows and GNU/Linux.

> > What are the contents of
> >
> > /usr/share/aclocal-1.11
> >
> > ?
> 
>   -rw-r--r--   1 root root  1662 Sep 20  2012 amversion.m4
>   -rw-r--r--   1 root root   799 Sep 20  2012 as.m4
>   -rw-r--r--   1 root root  2455 Sep 20  2012 auxdir.m4
>   -rw-r--r--   1 root root   958 Sep 20  2012 ccstdc.m4
>   -rw-r--r--   1 root root  1044 Sep 20  2012 cond-if.m4
>   -rw-r--r--   1 root root  1080 Sep 20  2012 cond.m4
>   -rw-r--r--   1 root root   972 Sep 20  2012 dmalloc.m4
>   -rw-r--r--   1 root root   494 Sep 20  2012 header.m4
>   -rw-r--r--   1 root root  5396 Sep 20  2012 init.m4
>   -rw-r--r--   1 root root   708 Sep 20  2012 install-sh.m4
>   -rw-r--r--   1 root root   655 Sep 20  2012 lead-dot.m4
>   -rw-r--r--   1 root root  2244 Sep 20  2012 lispdir.m4
>   -rw-r--r--   1 root root  1609 Sep 20  2012 obsolete.m4
>   -rw-r--r--   1 root root   421 Sep 20  2012 obsol-gt.m4
>   -rw-r--r--   1 root root   423 Sep 20  2012 obsol-lt.m4
>   -rw-r--r--   1 root root   969 Sep 20  2012 protos.m4
>   -rw-r--r--   1 root root  8195 Sep 20  2012 python.m4
>   -rw-r--r--   1 root root  2161 Sep 20  2012 regex.m4
>   -rw-r--r--   1 root root  2060 Sep 20  2012 sanity.m4
>   -rw-r--r--   1 root root  1417 Sep 20  2012 strip.m4
>   -rw-r--r--   1 root root  3205 Sep 20  2012 tar.m4
>   -rw-r--r--   1 root root   849 Sep 20  2012 upc.m4
>   -rw-r--r--   1 root root  1081 Sep 20  2012 vala.m4

I have much more files there:

  -rw-rw-rw- 1 Zaretzky None 1662 2012-11-23 12:55 amversion.m4
  -rw-rw-rw- 1 Zaretzky None 2036 2012-11-23 12:55 ar-lib.m4
  -rw-rw-rw- 1 Zaretzky None  799 2012-11-23 12:55 as.m4
  -rw-rw-rw- 1 Zaretzky None 2455 2012-11-23 12:55 auxdir.m4
  -rw-rw-rw- 1 Zaretzky None  958 2012-11-23 12:55 ccstdc.m4
  -rw-rw-rw- 1 Zaretzky None 1044 2012-11-23 12:55 cond-if.m4
  -rw-rw-rw- 1 Zaretzky None 1080 2012-11-23 12:55 cond.m4
  -rw-rw-rw- 1 Zaretzky None 7197 2012-11-23 12:55 depend.m4
  -rw-rw-rw- 1 Zaretzky None 3171 2012-11-23 12:55 depout.m4
  -rw-rw-rw- 1 Zaretzky None  972 2012-11-23 12:55 dmalloc.m4
  -rw-rw-rw- 1 Zaretzky None  680 2012-11-23 12:55 gcj.m4
  -rw-rw-rw- 1 Zaretzky None  494 2012-11-23 12:55 header.m4
  -rw-rw-rw- 1 Zaretzky None 5396 2012-11-23 12:55 init.m4
  -rw-rw-rw- 1 Zaretzky None  708 2012-11-23 12:55 install-sh.m4
  -rw-rw-rw- 1 Zaretzky None  655 2012-11-23 12:55 lead-dot.m4
  -rw-rw-rw- 1 Zaretzky None  732 2012-11-23 12:55 lex.m4
  -rw-rw-rw- 1 Zaretzky None 2244 2012-11-23 12:55 lispdir.m4
  -rw-rw-rw- 1 Zaretzky None 1750 2012-11-23 12:55 maintainer.m4
  -rw-rw-rw- 1 Zaretzky None 1367 2012-11-23 12:55 make.m4
  -rw-rw-rw- 1 Zaretzky None 1328 2012-11-23 12:55 minuso.m4
  -rw-rw-rw- 1 Zaretzky None 1207 2012-11-23 12:55 missing.m4
  -rw-rw-rw- 1 Zaretzky None 1061 2012-11-23 12:55 mkdirp.m4
  -rw-rw-rw- 1 Zaretzky None 2264 2012-11-23 12:55 multi.m4
  -rw-rw-rw- 1 Zaretzky None  421 2012-11-23 12:55 obsol-gt.m4
  -rw-rw-rw- 1 Zaretzky None  423 2012-11-23 12:55 obsol-lt.m4
  -rw-rw-rw- 1 Zaretzky None 1609 2012-11-23 12:55 obsolete.m4
  -rw-rw-rw- 1 Zaretzky None 1127 2012-11-23 12:55 options.m4
  -rw-rw-rw- 1 Zaretzky None  969 2012-11-23 12:55 protos.m4
  -rw-rw-rw- 1 Zaretzky None 8195 2012-11-23 12:55 python.m4
  -rw-rw-rw- 1 Zaretzky None 2161 2012-11-23 12:55 regex.m4
  -rw-rw-rw- 1 Zaretzky None  743 2012-11-23 12:55 runlog.m4
  -rw-rw-rw- 1 Zaretzky None 2060 2012-11-23 12:55 sanity.m4
  -rw-rw-rw- 1 Zaretzky None 1871 2012-11-23 12:55 silent.m4
  -rw-rw-rw- 1 Zaretzky None 1417 2012-11-23 12:55 strip.m4
  -rw-rw-rw- 1 Zaretzky None  694 2012-11-23 12:55 substnot.m4
  -rw-rw-rw- 1 Zaretzky None 3205 2012-11-23 12:55 tar.m4
  -rw-rw-rw- 1 Zaretzky None  849 2012-11-23 12:55 upc.m4
  -rw-rw-rw- 1 Zaretzky None 1081 2012-11-23 12:55 vala.m4