Blame bind-9.9.1-P2-multlib-conflict.patch
|
Tomas Hozza |
4e2098 |
diff --git a/isc-config.sh.in b/isc-config.sh.in
|
|
|
7726ce |
index 40f9bba..e446da2 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 |
{
|
|
|
7726ce |
@@ -128,6 +139,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
|