Re: Problem with AC_LINK_IFELSE and library order

2005-10-24 Thread Francesco Montorsi
Hi, Ralf Wildenhues wrote: It's usually more appropriate to prepend to LIBS (but to append to LDFLAGS!), in order to facilitate static linking. Thus, you should be using LIBS="-ltotest $LIBS" ok thanks; I'll do Francesco

Re: Problem with AC_LINK_IFELSE and library order

2005-10-24 Thread Ralf Wildenhues
Hi Francesco, * Francesco Montorsi wrote on Sat, Oct 22, 2005 at 04:14:11PM CEST: > > I finally found that I was using > > LDFLAGS="$LDFLAGS -ltotest" *snip* > instead of > > LIBS="$LIBS -ltotest" > AC_LINK_IFELSE([ > AC_LANG_PROGRAM([#include ], >

Re: Problem with AC_LINK_IFELSE and library order

2005-10-22 Thread Francesco Montorsi
Hi, I've solved my problem ;) I finally found that I was using LDFLAGS="$LDFLAGS -ltotest" AC_LINK_IFELSE([ AC_LANG_PROGRAM([#include ], [wxURL u(wxT("http://www.google.it";));]) ], [WXURL_

Re: Problem with AC_LINK_IFELSE and library order

2005-10-21 Thread Francesco Montorsi
another thing: I cannot use AC_CHECK_LIB because the library I'm trying to test doesn't have a global function; I tried using a C++ instance built on the fly: AC_CHECK_LIB([mylib], [wxHTTPBuilder().GetBytesRead]) but this doesn't work since the generated program looks like: | /* confdefs.h. *

Problem with AC_LINK_IFELSE and library order

2005-10-21 Thread Francesco Montorsi
Hi, I have found that my check AC_LINK_IFELSE([ AC_LANG_PROGRAM([#include ], [wxURL u(wxT("http://www.google.it";));]) ], [WXURL_PRESENCE=1], [WXURL_PRESENCE=0]) *always* fails because the