Revert "Get api docs building"
authorKristian Høgsberg <krh@redhat.com>
Sat, 28 Jun 2008 22:27:55 +0000 (18:27 -0400)
committerKristian Høgsberg <krh@redhat.com>
Sat, 28 Jun 2008 22:33:15 +0000 (18:33 -0400)
Pass --enable-gtk-doc to ./configure to build API docs.  Add a
status print-out at the end of configure.ac to show whether gtk-doc
was enabled.

This reverts commit 436386fb11ee56e50c2c76c496b1f6c39530e170.

configure.ac
docs/Makefile.am
src/main.c

index b53f403..d3ccc78 100644 (file)
@@ -219,5 +219,5 @@ echo "
         cflags:                     ${CFLAGS}
         Maintainer mode:            ${USE_MAINTAINER_MODE}
         Building verbose mode:      ${enable_verbose_mode}
+        Building gtk-doc:           ${enable_gtk_doc}
 "
-
index 240af13..342e364 100644 (file)
@@ -20,7 +20,11 @@ MKDB_OPTIONS=--sgml-mode --output-format=xml
 # Extra options to supply to gtkdoc-mktmpl
 MKTMPL_OPTIONS=
 
+if ENABLE_GTK_DOC
 include $(top_srcdir)/gtk-doc.make
+else
+EXTRA_DIST =
+endif
 
 # Version information for marking the documentation
 EXTRA_DIST += version.xml.in
index 4532f02..4e15164 100644 (file)
@@ -877,7 +877,7 @@ command_search(int argc, const char *argv[])
                return 1;
        }
 
-       sprintf(pattern, "*%s*", argv[0]);
+       snprintf(pattern, sizeof pattern, "*%s*", argv[0]);
 
        set = razor_set_open(repo_filename);
        if (set == NULL)