mirror of
https://github.com/curl/curl.git
synced 2026-05-13 22:36:20 +03:00
configure: check for gethostbyname in the watt lib
This allows building of libcurl on DOS using DJGPP 2.04 and Watt-32 sockets. I know there's already Makefile.djgpp, but I find this more convenient since I'm used to using the ./configure script from other platforms
This commit is contained in:
parent
b5713887ae
commit
f85ec43f24
1 changed files with 11 additions and 0 deletions
11
configure.ac
11
configure.ac
|
|
@ -696,6 +696,17 @@ then
|
|||
])
|
||||
fi
|
||||
|
||||
if test "$HAVE_GETHOSTBYNAME" != "1"
|
||||
then
|
||||
dnl gethostbyname in the watt lib?
|
||||
AC_CHECK_LIB(watt, gethostbyname,
|
||||
[HAVE_GETHOSTBYNAME="1"
|
||||
CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
|
||||
LDFLAGS="-L/dev/env/WATT_ROOT/lib"
|
||||
LIBS="$LIBS -lwatt"
|
||||
])
|
||||
fi
|
||||
|
||||
dnl At least one system has been identified to require BOTH nsl and socket
|
||||
dnl libs at the same time to link properly.
|
||||
if test "$HAVE_GETHOSTBYNAME" != "1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue