Index: docs/reference/libsoup-2.4.types
===================================================================
--- docs/reference/libsoup-2.4.types	(revision 1244)
+++ docs/reference/libsoup-2.4.types	(working copy)
@@ -1,4 +1,4 @@
-#include <libsoup/soup-gnome.h>
+#include <libsoup/soup.h>
 
 soup_address_get_type
 soup_auth_get_type
@@ -7,7 +7,6 @@ soup_auth_domain_basic_get_type
 soup_auth_domain_digest_get_type
 soup_cookie_jar_get_type
 soup_cookie_jar_text_get_type
-soup_cookie_jar_sqlite_get_type
 soup_logger_get_type
 soup_message_get_type
 soup_proxy_resolver_get_type
Index: docs/reference/libsoup-gnome-2.4.types
===================================================================
--- docs/reference/libsoup-gnome-2.4.types	(revision 0)
+++ docs/reference/libsoup-gnome-2.4.types	(revision 0)
@@ -0,0 +1,20 @@
+#include <libsoup/soup-gnome.h>
+
+soup_address_get_type
+soup_auth_get_type
+soup_auth_domain_get_type
+soup_auth_domain_basic_get_type
+soup_auth_domain_digest_get_type
+soup_cookie_jar_get_type
+soup_cookie_jar_text_get_type
+soup_cookie_jar_sqlite_get_type
+soup_logger_get_type
+soup_message_get_type
+soup_proxy_resolver_get_type
+soup_server_get_type
+soup_session_get_type
+soup_session_sync_get_type
+soup_session_async_get_type
+soup_session_feature_get_type
+soup_socket_get_type
+
Index: docs/reference/Makefile.am
===================================================================
--- docs/reference/Makefile.am	(revision 1244)
+++ docs/reference/Makefile.am	(working copy)
@@ -17,6 +17,9 @@ SCAN_OPTIONS=--deprecated-guards=LIBSOUP
 
 # Extra options to supply to gtkdoc-scangobj.
 SCANGOBJ_OPTIONS=--type-init-func 'g_type_init(); g_thread_init(NULL)'
+if BUILD_LIBSOUP_GNOME
+SCANGOBJ_OPTIONS += --types=libsoup-gnome-2.4.types
+endif
 
 # Extra options to supply to gtkdoc-mkdb.
 MKDB_OPTIONS=--sgml-mode --output-format=xml
@@ -48,7 +51,8 @@ content_files =				\
 	porting-2.2-2.4.xml
 
 # Other files to distribute.
-extra_files =
+extra_files =				\
+	libsoup-gnome-2.4.types
 
 
 # CFLAGS and LDFLAGS for compiling scan program. Only needed
@@ -60,7 +64,11 @@ GTKDOC_CFLAGS =				\
 	$(GNUTLS_CFLAGS)		\
 	$(LIBPROXY_LIBS)
 
+if BUILD_LIBSOUP_GNOME
 GTKDOC_LIBS = $(top_builddir)/libsoup/libsoup-gnome-2.4.la
+else
+GTKDOC_LIBS = $(top_builddir)/libsoup/libsoup-2.4.la
+endif
 
 # include common portion ...
 include $(top_srcdir)/gtk-doc.make
