Re: error (autoconf 2.59): possibly undefined macro: AC_DEFINE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I'm not sure whether this'll fix your problem, but you should quote each
argument.  Otherwise it gets expanded when the parameters are collected,
before the outer macro is expanded.

See the Autoconf manual about quoting.

So you need this:

AC_CHECK_FUNC(mkstemp, [AC_DEFINE(HAS_MKSTEMP,1,
    [Define to 1 if you have the 'mkstemp' function.])])

but it's best to quote all parameters, like this:

AC_CHECK_FUNC([mkstemp], [AC_DEFINE([HAS_MKSTEMP], [1],
    [Define to 1 if you have the 'mkstemp' function.])])

Also, note that the ..FUNCS version of the macro would define
symbol "HAVE_MKSTEMP" for free:

AC_CHECK_FUNCS([mkstemp])

Have a nice day,
	Stepan Kasal


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux