On Thu, Oct 11, 2001 at 07:28:12PM +0400, Alexander V. Lukyanov wrote:
> On Thu, Oct 11, 2001 at 09:36:12AM -0500, [EMAIL PROTECTED] wrote:
> > > + AC_MSG_RESULT($cxx_sane)
> > > + if test x$cxx_sane = xno; then
> > > + AC_MSG_ERROR(C++ test compile failed; check your C++ compiler)
> > > + fi
> > > + AC_LANG_RESTORE
> > > +])
> >
> > Why don't you just:
> > AC_TRY_RUN([int main() { return(0); } ], ,[
> > AC_MSG_ERROR([C++ test compile failed; check your C++ compiler])])
>
> Nice optimization. BTW, does anybody know why autoconf-2.52 does not
> check c++ compiler itself? I remember older versions of autoconf did that.
Odd that AC_PROG_C checks if the compiler works and AC_PROG_CXX does
not. I'll look into it later.
--
albert chin ([EMAIL PROTECTED])