# HG changeset patch # User Kristian H?gsberg # Date 1214692395 14400 # Node ID d7ecddf38c3dea269a9da198f60b936c31a123a0 # Parent 608b2e7013f847c7a39f83c0315446b1200d5178 Revert "Get api docs building" 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. diff -r 608b2e7013f8 -r d7ecddf38c3d configure.ac --- a/configure.ac Thu Jun 26 20:49:11 2008 -0400 +++ b/configure.ac Sat Jun 28 18:33:15 2008 -0400 @@ -219,5 +219,5 @@ cflags: ${CFLAGS} Maintainer mode: ${USE_MAINTAINER_MODE} Building verbose mode: ${enable_verbose_mode} + Building gtk-doc: ${enable_gtk_doc} " - diff -r 608b2e7013f8 -r d7ecddf38c3d docs/Makefile.am --- a/docs/Makefile.am Thu Jun 26 20:49:11 2008 -0400 +++ b/docs/Makefile.am Sat Jun 28 18:33:15 2008 -0400 @@ -20,7 +20,11 @@ # 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 diff -r 608b2e7013f8 -r d7ecddf38c3d src/main.c --- a/src/main.c Thu Jun 26 20:49:11 2008 -0400 +++ b/src/main.c Sat Jun 28 18:33:15 2008 -0400 @@ -877,7 +877,7 @@ return 1; } - sprintf(pattern, "*%s*", argv[0]); + snprintf(pattern, sizeof pattern, "*%s*", argv[0]); set = razor_set_open(repo_filename); if (set == NULL)