Re: AC_SEARCH_LIBS and two programs

2007-04-03 Thread Andrey Simonenko
Hello, On Mon, Apr 02, 2007 at 09:15:05AM +0200, Ralf Wildenhues wrote: > Hi Andrey, > > * Andrey Simonenko wrote on Fri, Mar 30, 2007 at 10:53:45AM CEST: > > > > There are two programs t1 and t2, one configure and > > one Makefile which are used for building them. > > > > t2 uses the cos() fun

AC_PROG_CC with absolute path

2007-04-03 Thread Harald Servat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I'm trying to provide a compiler to this macro (using it's name and the full path name) when some special conditions occur but as it isn't on the default $PATH, AC_PROG_CC skips it. Right now, I can only find two solutions. Just add the th

Re: AC_PROG_CC with absolute path

2007-04-03 Thread Matthew Woehlke
Harald Servat wrote: I'm trying to provide a compiler to this macro (using it's name and the full path name) when some special conditions occur but as it isn't on the default $PATH, AC_PROG_CC skips it. Right now, I can only find two solutions. Just add the the directory that contains this c

Re: AC_PROG_CC with absolute path

2007-04-03 Thread Harald Servat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthew Woehlke wrote: > Harald Servat wrote: >> I'm trying to provide a compiler to this macro (using it's name and >> the full path name) when some special conditions occur but as it isn't >> on the default $PATH, AC_PROG_CC skips it. >> >> Right

Re: AC_PROG_CC with absolute path

2007-04-03 Thread Matthew Woehlke
Harald Servat wrote: Matthew Woehlke wrote: Harald Servat wrote: I'm trying to provide a compiler to this macro (using it's name and the full path name) when some special conditions occur but as it isn't on the default $PATH, AC_PROG_CC skips it. Right now, I can only find two solutions. J

Re: AC_PROG_CC with absolute path

2007-04-03 Thread Ralf Wildenhues
Hello Harald, * Harald Servat wrote on Tue, Apr 03, 2007 at 05:32:40PM CEST: > > I'm trying to provide a compiler to this macro (using it's name and > the full path name) when some special conditions occur but as it isn't > on the default $PATH, AC_PROG_CC skips it. [...] Could you show exactl

Re: AC_SEARCH_LIBS and two programs

2007-04-03 Thread Ralf Wildenhues
* Andrey Simonenko wrote on Tue, Apr 03, 2007 at 04:17:45PM CEST: > On Mon, Apr 02, 2007 at 09:15:05AM +0200, Ralf Wildenhues wrote: > > > > Well, I assume the -lz parts then come from a different part of the > > original code not shown in the example; optimizing that should be done > > independen

VPATH build...

2007-04-03 Thread Ben Bergen
Hi, does anyone know of a variable that is defined during the ./configure run that tells where the top level source directory is. I have tried $top_srcdir, but this is doesn't seem to be defined until the very end. I can't use the current directory because I am trying to support out-of-path bui

Re: VPATH build...

2007-04-03 Thread Bob Rossi
On Tue, Apr 03, 2007 at 04:00:20PM -0600, Ben Bergen wrote: > does anyone know of a variable that is defined during the ./configure > run that tells where the top level source directory is. I have tried > $top_srcdir, but this is doesn't seem to be defined until the very > end. I can't use the cu

Re: VPATH build...

2007-04-03 Thread Ben Bergen
Thanks. On 4/3/07, Bob Rossi <[EMAIL PROTECTED]> wrote: On Tue, Apr 03, 2007 at 04:00:20PM -0600, Ben Bergen wrote: > does anyone know of a variable that is defined during the ./configure > run that tells where the top level source directory is. I have tried > $top_srcdir, but this is doesn't s

Re: VPATH build...

2007-04-03 Thread Ralf Corsepius
On Tue, 2007-04-03 at 18:02 -0400, Bob Rossi wrote: > On Tue, Apr 03, 2007 at 04:00:20PM -0600, Ben Bergen wrote: > > does anyone know of a variable that is defined during the ./configure > > run that tells where the top level source directory is. I have tried > > $top_srcdir, but this is doesn't

gcc link problem?

2007-04-03 Thread Harlan Stenn
I've got a test in a configure script that runs like this: ... checking for MD5Init gcc -o conftest -g -O2 -Wall -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wshadow -Wstrict-prototypes conftest.c -lmd5 -lelf >&5 conftest.c:51: warning: function declaration isn't a prototype conftes

Re: AC_PROG_CC with absolute path

2007-04-03 Thread Harald Servat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthew Woehlke wrote: > Harald Servat wrote: >> Matthew Woehlke wrote: >>> Harald Servat wrote: I'm trying to provide a compiler to this macro (using it's name and the full path name) when some special conditions occur but as it isn't

Re: AC_PROG_CC with absolute path

2007-04-03 Thread Harald Servat
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ralf Wildenhues wrote: > Hello Harald, > > * Harald Servat wrote on Tue, Apr 03, 2007 at 05:32:40PM CEST: >> I'm trying to provide a compiler to this macro (using it's name and >> the full path name) when some special conditions occur but as it isn'