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