Hi Carlos, * Carlos Eduardo Rodrigues Diogenes wrote on Thu, Aug 25, 2005 at 09:26:47PM CEST: > > I'm running autoreconf and I'm getting the following error: > > configure.ac:38: error: possibly undefined macro: AC_DEFINE > If this token and others are legitimate, please use m4_pattern_allow. > See the Autoconf documentation. > > Anyone know why this is ocurring and, in the perfect fashion, how to > solve it? Hmm. I cannot reproduce it. > Here is the configure.ac file that I have, a peace of it: I saved this snippet, added AC_OUTPUT at the end, removed your error mark, ran aclocal, automake --add, autoconf, autoheader, ./configure. Beside the missing definition for XORG_PROG_RAWCPP (which I suppose is present in your environment) I could not see any problems. Please try to describe a way to reproduce the issue. Which versions of the respective autotools did you use? Cheers, Ralf *snip* > AC_PREREQ([2.57]) > AC_INIT(xdm,[0.99.1], > [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],xdm) > AM_INIT_AUTOMAKE([dist-bzip2]) > AM_MAINTAINER_MODE > > AM_CONFIG_HEADER(config.h) > > AC_PROG_CC > AC_PROG_INSTALL > AC_CANONICAL_HOST > > XORG_PROG_RAWCPP > > AC_FUNC_FORK > AC_CHECK_FUNC(mkstemp, AC_DEFINE(HAS_MKSTEMP,1, <== the error > occur here > [Define to 1 if you have the 'mkstemp' function.])) > AC_CHECK_FUNC(getifaddrs, AC_DEFINE(HAS_GETIFADDRS,1, > [Define to 1 if you have the 'getifaddrs' function.])) > AC_CHECK_FUNC(getspnam, AC_DEFINE(USESHADOW,1, > [Define to 1 if you have the shadow password functions.])) _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf