|
Tomas Hozza |
4e2098 |
diff --git a/config.h.in b/config.h.in
|
|
|
2ac37f |
index e1364dd921..1dc65cfb21 100644
|
|
Tomas Hozza |
4e2098 |
--- a/config.h.in
|
|
Tomas Hozza |
4e2098 |
+++ b/config.h.in
|
|
|
2ac37f |
@@ -588,7 +588,7 @@ int sigwait(const unsigned int *set, int *sig);
|
|
Tomas Hozza |
4fa997 |
#undef PREFER_GOSTASN1
|
|
Tomas Hozza |
a01339 |
|
|
Tomas Hozza |
a01339 |
/* The size of `void *', as computed by sizeof. */
|
|
Tomas Hozza |
a01339 |
-#undef SIZEOF_VOID_P
|
|
Tomas Hozza |
a01339 |
+/* #undef SIZEOF_VOID_P */
|
|
Tomas Hozza |
a01339 |
|
|
Tomas Hozza |
a01339 |
/* Define to 1 if you have the ANSI C header files. */
|
|
Tomas Hozza |
a01339 |
#undef STDC_HEADERS
|
|
Tomas Hozza |
4e2098 |
diff --git a/configure.in b/configure.in
|
|
|
2ac37f |
index 73b1c8ccbb..129fc3f311 100644
|
|
Tomas Hozza |
4e2098 |
--- a/configure.in
|
|
Tomas Hozza |
4e2098 |
+++ b/configure.in
|
|
|
2ac37f |
@@ -3523,14 +3523,14 @@ AC_TRY_COMPILE([
|
|
|
2ac37f |
#include <sys/socket.h>
|
|
|
2ac37f |
#include <netdb.h>
|
|
|
2ac37f |
int getnameinfo(const struct sockaddr *, socklen_t, char *,
|
|
|
2ac37f |
- socklen_t, char *, socklen_t, unsigned int);],
|
|
|
2ac37f |
+ socklen_t, char *, socklen_t, int);],
|
|
Tomas Hozza |
a01339 |
[ return (0);],
|
|
|
2ac37f |
- [AC_MSG_RESULT(socklen_t for buflen; u_int for flags)
|
|
|
2ac37f |
+ [AC_MSG_RESULT(socklen_t for buflen; int for flags)
|
|
|
2ac37f |
AC_DEFINE(IRS_GETNAMEINFO_SOCKLEN_T, socklen_t,
|
|
|
2ac37f |
[Define to the sockaddr length type used by getnameinfo(3).])
|
|
|
2ac37f |
AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, socklen_t,
|
|
|
2ac37f |
[Define to the buffer length type used by getnameinfo(3).])
|
|
|
2ac37f |
- AC_DEFINE(IRS_GETNAMEINFO_FLAGS_T, unsigned int,
|
|
|
2ac37f |
+ AC_DEFINE(IRS_GETNAMEINFO_FLAGS_T, int,
|
|
|
2ac37f |
[Define to the flags type used by getnameinfo(3).])],
|
|
|
2ac37f |
[AC_TRY_COMPILE([
|
|
|
2ac37f |
#include <sys/types.h>
|
|
|
2ac37f |
@@ -3557,7 +3557,7 @@ int getnameinfo(const struct sockaddr *, size_t, char *,
|
|
Tomas Hozza |
a01339 |
[AC_MSG_RESULT(not match any subspecies; assume standard definition)
|
|
Tomas Hozza |
4e2098 |
AC_DEFINE(IRS_GETNAMEINFO_SOCKLEN_T, socklen_t)
|
|
|
2ac37f |
AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, socklen_t)
|
|
|
2ac37f |
-AC_DEFINE(IRS_GETNAMEINFO_FLAGS_T, int)])])])
|
|
|
2ac37f |
+AC_DEFINE(IRS_GETNAMEINFO_FLAGS_T, unsigned int)])])])
|
|
|
2ac37f |
|
|
|
2ac37f |
#
|
|
|
2ac37f |
# ...and same for gai_strerror().
|
|
Tomas Hozza |
4e2098 |
diff --git a/isc-config.sh.in b/isc-config.sh.in
|
|
|
2ac37f |
index a8a0a89e88..b5e94ed13e 100644
|
|
Tomas Hozza |
4e2098 |
--- a/isc-config.sh.in
|
|
Tomas Hozza |
4e2098 |
+++ b/isc-config.sh.in
|
|
|
2ac37f |
@@ -13,7 +13,18 @@ prefix=@prefix@
|
|
Tomas Hozza |
a01339 |
exec_prefix=@exec_prefix@
|
|
Tomas Hozza |
a01339 |
exec_prefix_set=
|
|
Tomas Hozza |
a01339 |
includedir=@includedir@
|
|
Tomas Hozza |
60039a |
-libdir=@libdir@
|
|
Tomas Hozza |
a01339 |
+arch=$(uname -m)
|
|
Tomas Hozza |
a01339 |
+
|
|
Tomas Hozza |
a01339 |
+case $arch in
|
|
Tomas Hozza |
a01339 |
+ x86_64 | amd64 | sparc64 | s390x | ppc64)
|
|
Tomas Hozza |
a01339 |
+ libdir=/usr/lib64
|
|
Tomas Hozza |
a01339 |
+ sec_libdir=/usr/lib
|
|
Tomas Hozza |
a01339 |
+ ;;
|
|
Tomas Hozza |
a01339 |
+ * )
|
|
Tomas Hozza |
a01339 |
+ libdir=/usr/lib
|
|
Tomas Hozza |
a01339 |
+ sec_libdir=/usr/lib64
|
|
Tomas Hozza |
a01339 |
+ ;;
|
|
Tomas Hozza |
a01339 |
+esac
|
|
Tomas Hozza |
a01339 |
|
|
Tomas Hozza |
a01339 |
usage()
|
|
Tomas Hozza |
a01339 |
{
|
|
|
2ac37f |
@@ -132,6 +143,16 @@ if test x"$echo_libs" = x"true"; then
|
|
Tomas Hozza |
60039a |
if test x"${exec_prefix_set}" = x"true"; then
|
|
Tomas Hozza |
a3771c |
libs="-L${exec_prefix}/lib"
|
|
Tomas Hozza |
60039a |
else
|
|
Tomas Hozza |
60039a |
+ if [ ! -x $libdir/libisc.so ] ; then
|
|
Tomas Hozza |
60039a |
+ if [ ! -x $sec_libdir/libisc.so ] ; then
|
|
Tomas Hozza |
60039a |
+ echo "Error: ISC libs not found in $libdir"
|
|
Tomas Hozza |
60039a |
+ if [ -d $sec_libdir ] ; then
|
|
Tomas Hozza |
60039a |
+ echo "Error: ISC libs not found in $sec_libdir"
|
|
Tomas Hozza |
60039a |
+ fi
|
|
Tomas Hozza |
60039a |
+ exit 1
|
|
Tomas Hozza |
a01339 |
+ fi
|
|
Tomas Hozza |
60039a |
+ libdir=$sec_libdir
|
|
Tomas Hozza |
a01339 |
+ fi
|
|
Tomas Hozza |
60039a |
libs="-L${libdir}"
|
|
Tomas Hozza |
60039a |
fi
|
|
Tomas Hozza |
a3771c |
if test x"$libirs" = x"true" ; then
|