aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.conf.in2
-rw-r--r--configure.in4
-rw-r--r--modules/Makefile2
3 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.conf.in b/Makefile.conf.in
index a6f927a..4a44e65 100644
--- a/Makefile.conf.in
+++ b/Makefile.conf.in
@@ -12,7 +12,7 @@ LIBRESOLV = @LIBRESOLV@
# Hesiod support: yes (1) no (0)
HESIOD = @HAVE_HESIOD@
-HESIOD_LIBS = @LIBHESIOD@
+LIBHESIOD = @LIBHESIOD@
HESIOD_FLAGS = @HESIOD_FLAGS@
# NIS+ support: yes (1) no (0)
diff --git a/configure.in b/configure.in
index 13bc5da..9e3324e 100644
--- a/configure.in
+++ b/configure.in
@@ -38,14 +38,14 @@ AC_ARG_WITH(hesiod,
then
LIBHESIOD=""
else
- LDFLAGS="$LDFLAGS -L$withval"
+ LDFLAGS="$LDFLAGS -L${withval}/lib"
LIBHESIOD="-L${withval}/lib"
HESIOD_FLAGS="-I${withval}/include"
fi
)
HAVE_HESIOD=0
-AC_CHECK_LIB(hesiod, hes_resolve, HAVE_HESIOD=1 LIBHESIOD="$LIBHESIOD -lhesiod")
+AC_CHECK_LIB(hesiod, hes_resolve, HAVE_HESIOD=1 LIBHESIOD="$LIBHESIOD -lhesiod", , $LIBRESOLV)
AC_SUBST(HAVE_HESIOD)
AC_SUBST(LIBHESIOD)
AC_SUBST(HESIOD_FLAGS)
diff --git a/modules/Makefile b/modules/Makefile
index fc0fed5..c49ff27 100644
--- a/modules/Makefile
+++ b/modules/Makefile
@@ -59,5 +59,5 @@ lookup_nisplus.so: lookup_nisplus.c
lookup_hesiod.so: lookup_hesiod.c
$(CC) $(SOLDFLAGS) $(CFLAGS) $(HESIOD_FLAGS) -o lookup_hesiod.so \
- lookup_hesiod.c $(LIBHESIOD)
+ lookup_hesiod.c $(LIBHESIOD) $(LIBRESOLV)
$(STRIP) lookup_hesiod.so