[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: error (autoconf 2.59): possibly undefined macro: AC_DEFINE
From: |
Stepan Kasal |
Subject: |
Re: error (autoconf 2.59): possibly undefined macro: AC_DEFINE |
Date: |
Fri, 26 Aug 2005 18:24:47 +0200 |
User-agent: |
Mutt/1.4.1i |
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