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@gnu.org
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to