Help on aclocal/autoconf ;)
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Tue Nov 12 18:19:00 GMT 2002
In article <3DD18140.6030706@unitus.it>,
Paolo Carlini<pcarlini@unitus.it> writes:
> So, I tried to add the following lines to acinclude.m4:
> AC_DEFUN(AC_ISATTY, [
[...]
> What I'm doing wrong?
1. Do not name your new macro with a leading AC_ since that is
reserved for official autoconf macros.
2. Add the fact that you want to actually INVOKE the new test that you
defined. ;-) AC_DEFUN defines a new test but doesn't actually run it.
More general commentary: Consider defining a more general test:
GLIBCPP_CHECK_UNISTD_DECL_AND_LINKAGE_2 modeled after
GLIBCPP_CHECK_STDLIB_DECL_AND_LINKAGE_2. Consider defining
GLIBCPP_CHECK_UNISTD_SUPPORT modeled after
GLIBCPP_CHECK_STDLIB_SUPPORT (both to acinclude.m4). Then add
invocation to configure.in.
Regards,
Loren
More information about the Libstdc++
mailing list