Petr Menšík 9a235f
diff --git a/configure.in b/configure.in
Petr Menšík 9a235f
index e6cd6a4..988b0a7 100644
Petr Menšík 9a235f
--- a/configure.in
Petr Menšík 9a235f
+++ b/configure.in
Petr Menšík 9a235f
@@ -5116,6 +5116,8 @@ AC_SUBST(BUILD_CPPFLAGS)
Petr Menšík 9a235f
 AC_SUBST(BUILD_LDFLAGS)
Petr Menšík 9a235f
 AC_SUBST(BUILD_LIBS)
Petr Menšík 9a235f
 
Petr Menšík 9a235f
+AC_SUBST(LIBDIR_SUFFIX)
Petr Menšík 9a235f
+
Petr Menšík 9a235f
 #
Petr Menšík 9a235f
 # Commands to run at the end of config.status.
Petr Menšík 9a235f
 # Don't just put these into configure, it won't work right if somebody
Petr Menšík 9a235f
diff --git a/isc-config.sh.in b/isc-config.sh.in
Petr Menšík 9a235f
index 110191a..5a64004 100644
Petr Menšík 9a235f
--- a/isc-config.sh.in
Petr Menšík 9a235f
+++ b/isc-config.sh.in
Petr Menšík 9a235f
@@ -12,16 +12,17 @@ prefix=@prefix@
Petr Menšík 9a235f
 exec_prefix=@exec_prefix@
Petr Menšík 9a235f
 exec_prefix_set=
Petr Menšík 9a235f
 includedir=@includedir@
Petr Menšík 9a235f
+libdir_suffix=@LIBDIR_SUFFIX@
Petr Menšík 9a235f
 arch=$(uname -m)
Petr Menšík 9a235f
 
Petr Menšík 9a235f
 case $arch in
Petr Menšík 9a235f
 	x86_64 | amd64 | sparc64 | s390x | ppc64)
Petr Menšík 9a235f
-		libdir=/usr/lib64
Petr Menšík 9a235f
-		sec_libdir=/usr/lib
Petr Menšík 9a235f
+		libdir=/usr/lib64${libdir_suffix}
Petr Menšík 9a235f
+		sec_libdir=/usr/lib${libdir_suffix}
Petr Menšík 9a235f
 		;;
Petr Menšík 9a235f
 	* )
Petr Menšík 9a235f
-		libdir=/usr/lib
Petr Menšík 9a235f
-		sec_libdir=/usr/lib64
Petr Menšík 9a235f
+		libdir=/usr/lib${libdir_suffix}
Petr Menšík 9a235f
+		sec_libdir=/usr/lib64${libdir_suffix}
Petr Menšík 9a235f
 		;;
Petr Menšík 9a235f
 esac
Petr Menšík 9a235f