* libtool.m4: Add GNU/KNetBSD support.
* ltdl.m4: Likewise.
diff --git a/ChangeLog b/ChangeLog
index 4040326..05d3039 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-21  Robert Millan  <robertmh@gnu.org>
+
+	* libtool.m4: Add GNU/KNetBSD support.
+	* ltdl.m4: Likewise.
+
 2003-09-13  Scott James Remnant  <scott@netsplit.com>
 
 	* libtool.m4: allow STRIP to contain spaces and additional
diff --git a/libtool.m4 b/libtool.m4
index f24bb73..ffdfd7c 100644
--- a/libtool.m4
+++ b/libtool.m4
@@ -1457,6 +1457,18 @@
   dynamic_linker='GNU/Linux ld.so'
   ;;
 
+knetbsd*-gnu)
+  version_type=linux
+  need_lib_prefix=no
+  need_version=no
+  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
+  soname_spec='${libname}${release}${shared_ext}$major'
+  shlibpath_var=LD_LIBRARY_PATH
+  shlibpath_overrides_runpath=no
+  hardcode_into_libs=yes
+  dynamic_linker='GNU ld.so'
+  ;;
+
 netbsd*)
   version_type=sunos
   need_lib_prefix=no
diff --git a/ltdl.m4 b/ltdl.m4
index 7dd3000..a6c1f69 100644
--- a/ltdl.m4
+++ b/ltdl.m4
@@ -145,10 +145,8 @@
     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;
-  kfreebsd*-gnu)
-    libltdl_cv_sys_dlopen_deplibs=yes
-    ;;
-  gnu*)
+  gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
+    # GNU and its variants, using gnu ld.so (Glibc)
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;
   hpux10*|hpux11*)
@@ -164,9 +162,6 @@
     # at 6.2 and later dlopen does load deplibs.
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;
-  linux*)
-    libltdl_cv_sys_dlopen_deplibs=yes
-    ;;
   netbsd*)
     libltdl_cv_sys_dlopen_deplibs=yes
     ;;