source: trunk/third/gtk-doc/configure.in @ 20745

Revision 20745, 2.9 KB checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20744, which included commits to RCS files with non-trunk default branches.
Line 
1dnl Process this file with autoconf to produce a configure script.
2AC_PREREQ(2.52)
3
4dnl Use a simple 2-digit version number for a while, since our old example
5dnl Makefile can only cope with that, i.e. use 1.1, 1.2, 1.3 ... 9.9.
6m4_define(gtk_doc_version, 1.2)
7
8AC_INIT([gtk-doc], [gtk_doc_version],
9        [http://bugzilla.gnome.org/enter_bug.cgi?product=gtk-doc])
10
11AC_CONFIG_SRCDIR([gtk-doc.dsl.in])
12
13AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION)
14
15AM_MAINTAINER_MODE
16
17AC_ISC_POSIX
18AC_PROG_CC
19
20dnl
21dnl Check for Perl.
22dnl
23AC_PATH_PROG([PERL], [perl])
24if test -z "$PERL"; then
25  AC_MSG_ERROR([perl not found])
26fi
27
28AC_MSG_CHECKING([if Perl version >= 5.6.0])
29if "$PERL" -e "require v5.6.0"; then
30  AC_MSG_RESULT([yes])
31else
32  AC_MSG_RESULT([no])
33  AC_MSG_ERROR([perl >= 5.6.0 is required for gtk-doc])
34fi
35
36dnl
37dnl Check for jade or openjade.
38dnl
39dnl We prefer to use openjade with the '-t sgml-raw' option, since '-t sgml'
40dnl adds a newline before the closing '>' of HTML tags. lynx can't parse
41dnl that, which is bad for accessibility.
42dnl
43SGML_FORMAT_TYPE=sgml-raw
44AC_PATH_PROG([JADE], [openjade])
45if test -z "$JADE"; then
46  SGML_FORMAT_TYPE=sgml
47  AC_PATH_PROG([JADE], [jade])
48  if test -z "$JADE"; then
49    AC_MSG_ERROR([openjade/jade not found])
50  fi
51fi
52AC_SUBST([SGML_FORMAT_TYPE])
53
54dnl
55dnl Check for xsltproc
56dnl
57AC_PATH_PROG([XSLTPROC], [xsltproc])
58if test -z "$XSLTPROC"; then
59  AC_MSG_ERROR([xsltproc not found])
60fi
61
62dnl check for DocBook DTD and stylesheets in the local catalog.
63JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN],
64   [DocBook XML DTD V4.1.2])
65JH_CHECK_XML_CATALOG([http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl],
66   [DocBook XSL Stylesheets])
67
68dnl
69dnl Set PACKAGE_DATA_DIR so we can find the script containing common routines.
70dnl
71if test "x${datadir}" = 'x${prefix}/share'; then
72  if test "x${prefix}" = "xNONE"; then
73    PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}/data"
74  else
75    PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}/data"
76  fi
77else
78  PACKAGE_DATA_DIR="${datadir}/${PACKAGE}/data"
79fi
80
81AC_SUBST([PACKAGE_DATA_DIR])
82
83
84dnl Only use -Wall if we have gcc
85if test "x$GCC" = "xyes"; then
86  if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
87    CFLAGS="$CFLAGS -Wall"
88  fi
89fi
90
91
92AC_CONFIG_FILES([Makefile
93gtk-doc.pc
94gtk-doc.dsl
95gtk-doc.spec
96gtk-doc.cat
97gtkdoc-common.pl
98])
99
100dnl run chmod on these after parsing them.
101AC_CONFIG_FILES([gtkdoc-mkman],    [chmod +x gtkdoc-mkman])
102AC_CONFIG_FILES([gtkdoc-mkhtml],   [chmod +x gtkdoc-mkhtml])
103AC_CONFIG_FILES([gtkdoc-fixxref],  [chmod +x gtkdoc-fixxref])
104AC_CONFIG_FILES([gtkdoc-mkdb],     [chmod +x gtkdoc-mkdb])
105AC_CONFIG_FILES([gtkdoc-mktmpl],   [chmod +x gtkdoc-mktmpl])
106AC_CONFIG_FILES([gtkdoc-scan],     [chmod +x gtkdoc-scan])
107AC_CONFIG_FILES([gtkdoc-scanobj],  [chmod +x gtkdoc-scanobj])
108AC_CONFIG_FILES([gtkdoc-scangobj], [chmod +x gtkdoc-scangobj])
109AC_CONFIG_FILES([gtkdocize],       [chmod +x gtkdocize])
110
111AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.