Browse files

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
  • Loading branch information...
1 parent b571388 commit f85ec43f2425cc95e043fad1235d15f813ff891a @obeythepenguin obeythepenguin committed with bagder Mar 22, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0
@@ -696,6 +696,17 @@ then
+if test "$HAVE_GETHOSTBYNAME" != "1"
+ dnl gethostbyname in the watt lib?
+ AC_CHECK_LIB(watt, gethostbyname,
+ CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
+ LDFLAGS="-L/dev/env/WATT_ROOT/lib"
+ LIBS="$LIBS -lwatt"
+ ])
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"

0 comments on commit f85ec43

Please sign in to comment.