Re: Help wanted: compile error detection

2000-07-14 Thread Alexandre Oliva
On Jul 12, 2000, Martin Wilck <[EMAIL PROTECTED]> wrote: > I have come across one compiler that returns an exit status of 0 > if compile errors occur :-{ Does it generate an object file? If not, we could just add a test for the existence of the object file to tell whether compilation succeeded

Re: [patch] config.status builddir awareness

2000-07-14 Thread Alexandre Oliva
On Jul 12, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote: > Well, this then? Ok -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Red Hat GCC Developer aoliva@{cygnus.com, redhat.com} CS PhD student at IC-Unicampoliva@{lsd.ic.unicamp.br, gnu.org

Re: Help wanted: compile error detection

2000-07-14 Thread Martin Wilck
> > I have come across one compiler that returns an exit status of 0 > > if compile errors occur :-{ > > Does it generate an object file? If not, we could just add a test for > the existence of the object file to tell whether compilation succeeded > or not. It doesn't - that should work. -- M

Variable expansion

2000-07-14 Thread Ti Leggett
I'm curious if there is a way to make autoconf expand variables completely. Take the following example: CP_PREFIX = /usr/local CP_LIBDIR = $CP_PREFIX/lib CP_PKGLIBDIR = $CP_LIBDIR/$PACKAGE AC_SUBST(CP_PREFIX) AC_SUBST(CP_LIBDIR) AC_SUBST(CP_PKGLIBDIR) Now, using this, I have this in one of my f

Re: Help wanted: compile error detection

2000-07-14 Thread Thomas E. Dickey
On Fri, 14 Jul 2000, Martin Wilck wrote: > > > I have come across one compiler that returns an exit status of 0 > > > if compile errors occur :-{ > > > > Does it generate an object file? If not, we could just add a test for > > the existence of the object file to tell whether compilation succee

Re: Help wanted: compile error detection

2000-07-14 Thread Alexandre Oliva
On Jul 14, 2000, "Thomas E. Dickey" <[EMAIL PROTECTED]> wrote: > I've seen some compilers generate a zero-length (or nearly-zero ;-) > object file on error. But would they *also* fail to return a non-zero exit status? -- Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/ Re

Re: Help wanted: compile error detection

2000-07-14 Thread Martin Wilck
Dear Thomas E. Dickey, you wrote on Today: > I've seen some compilers generate a zero-length (or nearly-zero ;-) > object file on error. (no, I don't recall which ones) That's why we should use test -s rather than test -f, like AC_LINK_IFELSE. -- Martin Wilck <[EMAIL PROTECTED]> Institute for

Re: Help wanted: compile error detection

2000-07-14 Thread Thomas E. Dickey
On 14 Jul 2000, Alexandre Oliva wrote: > On Jul 14, 2000, "Thomas E. Dickey" <[EMAIL PROTECTED]> wrote: > > > I've seen some compilers generate a zero-length (or nearly-zero ;-) > > object file on error. > > But would they *also* fail to return a non-zero exit status? if I remembered (or had ac

Re: Help wanted: compile error detection

2000-07-14 Thread Thomas E. Dickey
On Fri, 14 Jul 2000, Martin Wilck wrote: > Dear Thomas E. Dickey, you wrote on Today: > > > I've seen some compilers generate a zero-length (or nearly-zero ;-) > > object file on error. (no, I don't recall which ones) > > That's why we should use test -s rather than test -f, like AC_LINK_IFELS