/[php-vas]/trunk/configure.ac
ViewVC logotype

Contents of /trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25 - (show annotations)
Thu Apr 26 02:56:32 2007 UTC (2 years, 6 months ago) by dleonard
File size: 1070 byte(s)
Enable optional documentation generation.

Adds --enable-doc/--disable-doc to configure (defaults to 'auto' detect).
Only if enabled then the polypkg script will generate a doc package.
1 AC_INIT([php-vas],
2 [1.0.0.]esyscmd((svnversion . /trunk||echo 0)|tr : _|tr -d \\012),
3 [support@quest.com])
4 AM_INIT_AUTOMAKE()
5 AC_PREFIX_DEFAULT([/opt/quest])
6 AC_CONFIG_FILES([Makefile])
7 AC_CONFIG_SRCDIR([extension/vasapi.c])
8
9 AC_PATH_PROG([PHPIZE], [phpize], [no])
10 if test x"$PHPIZE" = x"no"; then
11 AC_MSG_ERROR([phpize not found; please install the PHP SDK])
12 fi
13
14 AC_PATH_PROG([PHPCONFIG], [php-config], [no])
15 if test x"$PHPCONFIG" = x"no"; then
16 AC_MSG_ERROR([php-config not found; please install the PHP SDK])
17 fi
18
19 #
20 # When --enable-doc=auto, we search for doxygen
21 #
22 AC_ARG_ENABLE([doc],
23 [AS_HELP_STRING([--enable-doc],
24 [enable documentation (default=auto)])],,
25 [enable_doc=auto])
26 if test x"$enable_doc" != x"no"; then
27 AC_PATH_PROG([DOXYGEN], [doxygen], [no])
28 case "$enable_doc:$DOXYGEN" in
29 yes:no) AC_MSG_ERROR([doxygen is required by --enable-doc]);;
30 auto:no) enable_doc=no;;
31 *) enable_doc=yes;;
32 esac
33 fi
34 AM_CONDITIONAL([HAVE_DOXYGEN], [test x"$enable_doc" = x"yes"])
35
36 AC_SUBST([PHPIZE])
37 AC_SUBST([PHPCONFIG])
38 AC_OUTPUT

Ted.Percival@quest.com
ViewVC Help
Powered by ViewVC 1.1.2