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