Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-10-20 Thread Sergio Belkin
2010/10/19 Sergio Belkin : > 2010/8/23 Eric Blake : >> Hence, the autoconf approach is to expose LDFLAGS as the desired way of >> letting the user tune where to look for particular libraries, and both the >> autoconf-archives and gnulib projects have written wrapper macros that make >> it easier to

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-10-19 Thread Sergio Belkin
2010/8/23 Eric Blake : > Hence, the autoconf approach is to expose LDFLAGS as the desired way of > letting the user tune where to look for particular libraries, and both the > autoconf-archives and gnulib projects have written wrapper macros that make > it easier to search in several default candid

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-10-19 Thread Sergio Belkin
2010/9/28 Luke Mewburn : > On Mon, Sep 27, 2010 at 10:30:49AM -0300, Sergio Belkin wrote: >  | Hi, I've added >  | >  | LDFLAGS="-L/usr/lib/mysql $LDFLAGS" >  | >  | and it worked. I wonder if the proper way to do it. > > I've used the following: > > > > # Look for mysql via the presence of 'm

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-09-27 Thread Luke Mewburn
On Mon, Sep 27, 2010 at 10:30:49AM -0300, Sergio Belkin wrote: | Hi, I've added | | LDFLAGS="-L/usr/lib/mysql $LDFLAGS" | | and it worked. I wonder if the proper way to do it. I've used the following: # Look for mysql via the presence of 'mysql_config' or 'mysql_config5' # AC_PA

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-09-27 Thread Sergio Belkin
2010/9/27 Sergio Belkin : > 2010/8/23 Eric Blake : > Ah - the difference is the presence of -L/usr/lib/mysql in the working command line.  For your configure test to work, you'd also have to provide that same -L option to LDFLAGS prior to using AC_CHECK_LIB (or the better A

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-09-27 Thread Sergio Belkin
2010/8/23 Eric Blake : >>> Ah - the difference is the presence of -L/usr/lib/mysql in the working >>> command line.  For your configure test to work, you'd also have to >>> provide >>> that same -L option to LDFLAGS prior to using AC_CHECK_LIB (or the better >>> AC_SEARCH_LIBS). >> >> But I don't

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-08-23 Thread Eric Blake
[I reiterate - I do NOT want these mails coming only to me, when I have asked for them to go to the list] Sorry it was not my will send mails to you only :( Either is a fault on gmail or (perhaps?) the mailing list... I *always* have clicked on Reply button... in fact recent now I realize of th

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-08-23 Thread Sergio Belkin
2010/8/23 Eric Blake : > On 08/23/2010 02:26 PM, Sergio Belkin wrote: >> >> 2010/8/23 Eric Blake: >>> >>> [please keep the list in the loop] > > [I reiterate - I do NOT want these mails coming only to me, when I have > asked for them to go to the list] Sorry it was not my will send mails to you on

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-08-23 Thread Eric Blake
On 08/23/2010 02:26 PM, Sergio Belkin wrote: 2010/8/23 Eric Blake: [please keep the list in the loop] [I reiterate - I do NOT want these mails coming only to me, when I have asked for them to go to the list] At this point, all I can guess is that you haven't installed the libraries correct

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-08-23 Thread Eric Blake
[please keep the list in the loop] On 08/23/2010 02:04 PM, Sergio Belkin wrote: 2010/8/23 Eric Blake: I didn't see any mention of mysql in your sample configure.ac, nor any macro call that would explain why you are getting this message: checking for mysql_get_parameters in -lmysqlclient...

Re: AC_CHECK_LIB: Library is found on build host but is not on a target host

2010-08-23 Thread Eric Blake
On 08/23/2010 11:56 AM, Sergio Belkin wrote: Hi, I've autoconfiscated an open source project. I don't using still automake, only I am using autoconf. So I've created an confugure.ac as follows: AC_PREREQ([2.65]) AC_INIT([UpTools],[8.4],[bugs-upto...@myuniv.edu]) AM_INIT_AUTOMAKE([foreign -Wall