cURL / Mailing Lists / curl-users / Single Mail

curl-users

configure-macro fiddling

From: Daniel Stenberg <Daniel.Stenberg_at_haxx.nu>
Date: Mon, 8 May 2000 10:07:12 +0200 (MET DST)

Hi

It turns out that there are systems (NCR MP-RAS (svr4)) that require TWO libs
for gethostbyname() and connect() should compile/build properly. The current
configure rule only checks for one lib at a time and thus both checks fails
on this system and it won't build properly.

Yes, you can enter the libs manually when running configure but I would of
course prefer a solution that works automatically.

Today, the configure.in line looks like:

AC_CHECK_FUNC(gethostbyname, , AC_CHECK_LIB(nsl, gethostbyname))

... and it seems as if the AC_CHECK_LIB() macro only can deal with a single
lib at a time.

Does anyone have a good fix for this?

-- 
   Daniel Stenberg - http://www.contactor.se/~dast - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Received on 2000-05-08