Re: static library as fallback

2011-06-14 Thread Eric Blake
On 06/14/2011 03:02 PM, Sergio Belkin wrote: #if MISSING_NS_INITPARSE // implement your static ns_initparse instead #endif >>> >>> Hmmm. It was my fault. I didn't explain myself well. I meant: I'd >>> want to *use* existing static resolv on the system as a fallback (if >>> sha

Re: static library as fallback

2011-06-14 Thread Sergio Belkin
2011/6/14 Eric Blake : > On 06/14/2011 10:20 AM, Sergio Belkin wrote: > > Did you mean to drop the list in your reply?  It's better to keep the > conversation on list, so others may learn of your answer. Shame on me, you're right. > >>> AC_SEARCH_LIBS([ns_initparse], [resolv], [], >>>  [AC_DEFINE

Re: static library as fallback

2011-06-13 Thread Eric Blake
On 06/13/2011 04:05 PM, Sergio Belkin wrote: > I have the following sentence in a configure.ac: > > AC_SEARCH_LIBS(ns_initparse,resolv) > > The problem is ns_initparse is missing on old releases of libresolv.so > eg: on Centos 5. > > So I'd want to make static resolv as a fallback, Can I do it w

static library as fallback

2011-06-13 Thread Sergio Belkin
I have the following sentence in a configure.ac: AC_SEARCH_LIBS(ns_initparse,resolv) The problem is ns_initparse is missing on old releases of libresolv.so eg: on Centos 5. So I'd want to make static resolv as a fallback, Can I do it with AC_SEARCH_LIBS? Thanks in advance! -- -- Sergio Belkin