summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2010-01-23 22:41:43 +0000
committerjoerg <joerg@pkgsrc.org>2010-01-23 22:41:43 +0000
commit101af36298bb037b4990ea4ad35ed06d96361434 (patch)
tree50872a24e055c247c9cab2ac84bba0c45b6b2423
parent1effb4dd7476b80e0601876c479262f644df2697 (diff)
downloadpkgsrc-101af36298bb037b4990ea4ad35ed06d96361434.tar.gz
Check -lnetwork for gethostbyname on Haiku. From PR 42665.
-rwxr-xr-xpkgtools/pkg_install/files/configure5
-rw-r--r--pkgtools/pkg_install/files/configure.ac4
2 files changed, 6 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/configure b/pkgtools/pkg_install/files/configure
index fd7aa4809f6..694446fe873 100755
--- a/pkgtools/pkg_install/files/configure
+++ b/pkgtools/pkg_install/files/configure
@@ -593,6 +593,7 @@ ac_includes_default="\
ac_subst_vars='LTLIBOBJS
LIBOBJS
+PKG_DBDIR
SYSCONFDIR
EGREP
CPP
@@ -4601,7 +4602,7 @@ return gethostbyname ();
return 0;
}
_ACEOF
-for ac_lib in '' nsl; do
+for ac_lib in '' nsl network; do
if test -z "$ac_lib"; then
ac_res="none required"
else
@@ -4976,6 +4977,8 @@ esac
SYSCONFDIR="$sysconfdir"
+PKG_DBDIR="$pkgdbdir"
+
ac_config_files="$ac_config_files Makefile add/Makefile admin/Makefile bpm/bpm.sh create/Makefile delete/Makefile info/Makefile lib/Makefile lib/pkg_install.conf.5 lib/pkg_install.conf.cat"
diff --git a/pkgtools/pkg_install/files/configure.ac b/pkgtools/pkg_install/files/configure.ac
index 9c15054820a..ff2b38300f5 100644
--- a/pkgtools/pkg_install/files/configure.ac
+++ b/pkgtools/pkg_install/files/configure.ac
@@ -1,4 +1,4 @@
-dnl $NetBSD: configure.ac,v 1.33 2010/01/22 13:30:41 joerg Exp $
+dnl $NetBSD: configure.ac,v 1.34 2010/01/23 22:41:43 joerg Exp $
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
AC_INIT([pkg_install], [20090911], [joerg@NetBSD.org])
@@ -71,7 +71,7 @@ AC_CHECK_HEADERS([sys/cdefs.h sys/file.h sys/ioctl.h sys/param.h \
# Checks for library functions.
AC_CHECK_FUNCS([vfork])
-AC_SEARCH_LIBS([gethostbyname], [nsl])
+AC_SEARCH_LIBS([gethostbyname], [nsl network])
AC_SEARCH_LIBS([socket],
[socket],
[],