|
Tomas Hozza |
4e2098 |
diff --git a/config.h.in b/config.h.in
|
|
Tomas Hozza |
a3771c |
index 0c340db..dbeecd7 100644
|
|
Tomas Hozza |
4e2098 |
--- a/config.h.in
|
|
Tomas Hozza |
4e2098 |
+++ b/config.h.in
|
|
Tomas Hozza |
a3771c |
@@ -520,7 +520,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
|
|
Tomas Hozza |
a3771c |
index 6b875ba..c39477c 100644
|
|
Tomas Hozza |
4e2098 |
--- a/configure.in
|
|
Tomas Hozza |
4e2098 |
+++ b/configure.in
|
|
Tomas Hozza |
a3771c |
@@ -3065,8 +3065,11 @@ int getnameinfo(const struct sockaddr *, size_t, char *,
|
|
Tomas Hozza |
b74606 |
size_t, char *, size_t, int);],
|
|
Tomas Hozza |
a01339 |
[ return (0);],
|
|
Tomas Hozza |
a01339 |
[AC_MSG_RESULT(size_t for buflen; int for flags)
|
|
Tomas Hozza |
4e2098 |
- AC_DEFINE(IRS_GETNAMEINFO_SOCKLEN_T, size_t)
|
|
Tomas Hozza |
a01339 |
- AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, size_t)
|
|
Tomas Hozza |
b74606 |
+ # Changed to solve multilib conflict on Fedora
|
|
Tomas Hozza |
4e2098 |
+ # AC_DEFINE(IRS_GETNAMEINFO_SOCKLEN_T, size_t)
|
|
Tomas Hozza |
b74606 |
+ # AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, size_t)
|
|
Tomas Hozza |
4e2098 |
+ AC_DEFINE(IRS_GETNAMEINFO_SOCKLEN_T, socklen_t)
|
|
Tomas Hozza |
a01339 |
+ AC_DEFINE(IRS_GETNAMEINFO_BUFLEN_T, socklen_t)
|
|
Tomas Hozza |
a01339 |
AC_DEFINE(IRS_GETNAMEINFO_FLAGS_T, int)],
|
|
Tomas Hozza |
a01339 |
[AC_MSG_RESULT(not match any subspecies; assume standard definition)
|
|
Tomas Hozza |
4e2098 |
AC_DEFINE(IRS_GETNAMEINFO_SOCKLEN_T, socklen_t)
|
|
Tomas Hozza |
4e2098 |
diff --git a/isc-config.sh.in b/isc-config.sh.in
|
|
Tomas Hozza |
a3771c |
index 04a9e5c..67400d8 100644
|
|
Tomas Hozza |
4e2098 |
--- a/isc-config.sh.in
|
|
Tomas Hozza |
4e2098 |
+++ b/isc-config.sh.in
|
|
Tomas Hozza |
4fa997 |
@@ -21,7 +21,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 |
{
|
|
Tomas Hozza |
a3771c |
@@ -140,6 +151,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
|