bug-autoconf
[Top][All Lists]
Advanced

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

Re: limitation of AC_REPLACE_FUNCS


From: Akim Demaille
Subject: Re: limitation of AC_REPLACE_FUNCS
Date: 19 Jul 2001 13:49:36 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Academic Rigor)

>>>>> "Werner" == Werner LEMBERG <address@hidden> writes:

Werner> Is there any reason why AC_REPLACE_FUNCS and related functions
Werner> are limited to C?  Wouldn't it be better to use the current
Werner> value of AC_LANG to determine the appended suffix?  Another
Werner> possibility is to add an additional optional argument to set
Werner> the suffix.

Werner> In my case I have a library composed of C and C++ files
Werner> (libgroff), and I want to use a newly written mkstemp.cc if
Werner> necessary.  Any chance to do that with autoconf 2.50 which I
Werner> actually use?

That's an excellent point!  Thanks!

Instead of AC_REPLACE_FUNCS(mktemps), try

AC_LIBSOURCE(mkstemp.cc)
AC_CHECK_FUNCS([$1], , [_AC_LIBOBJ(mkstemp)])

That should make it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]