cvs: peardoc / configure.in
| From: | anatoly techtonik | Date: | Sat, 10 Dec 2005 16:54:40 +0000 |
| Subject: | cvs: peardoc / configure.in | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-7288@lists.php.net to get a copy of this message | ||
techtonik Sat Dec 10 11:54:40 2005 EDT
Modified files:
/peardoc configure.in
Log:
* moving blocks to ease sync with phpdoc
(prepare to fix missing catalogs in openjade )
http://cvs.php.net/diff.php/peardoc/configure.in?r1=1.21&r2=1.22&ty=u
Index: peardoc/configure.in
diff -u peardoc/configure.in:1.21 peardoc/configure.in:1.22
--- peardoc/configure.in:1.21 Sat Dec 10 11:01:37 2005
+++ peardoc/configure.in Sat Dec 10 11:54:36 2005
@@ -1,4 +1,4 @@
-dnl $Id: configure.in,v 1.21 2005/12/10 16:01:37 techtonik Exp $
+dnl $Id: configure.in,v 1.22 2005/12/10 16:54:36 techtonik Exp $
dnl peardoc autoconf initialisation
AC_INIT(global.ent)
@@ -7,7 +7,7 @@
dnl use given argument, if any, else search in path
AC_ARG_WITH(php,
-[ --with-php=PATH Look for PHP executable needed for helper scripts],
+[ --with-php=PATH look for PHP executable needed for helper scripts],
[
if test $withval != "yes"; then
AC_MSG_CHECKING([for php])
@@ -247,6 +247,82 @@
fi
AC_SUBST(DOCBOOK_HTML)
+
+dnl Do something smart to find catalog-files
+CATALOG=""
+
+
+case
uname in
+ dnl SuSE 6.2/6.3 need this
+ Linux) if test -e /usr/share/sgml/CATALOG.docbk30
+ then
+ CATALOG="$CATALOG -c /usr/share/sgml/CATALOG.docbk30"
+ fi
+ ;;
+ dnl Solaris 10 has almost everything installed by default, but
+ dnl in nonstandard paths
+ SunOS) if test uname -r = "5.10"
+ then
+ if test -e /usr/sfw/share/sgml/openjade/catalog
+ then
+ CATALOG="$CATALOG -c /usr/sfw/share/sgml/openjade/catalog"
+ fi
+ if test -e /var/lib/sgml/CATALOG.docbook_4
+ then
+ CATALOG="$CATALOG -c /var/lib/sgml/CATALOG.docbook_4"
+ fi
+ dnl this file needs to be created manually with exactly
+ dnl this path since it is referenced in /usr/share/sgml/CATALOG.doc*
+ AC_MSG_CHECKING(for ISO 8879 entities)
+ if test ! -e /var/lib/sgml/CATALOG.iso_ent
+ then
+ AC_MSG_RESULT(not found)
+ AC_MSG_WARN(ISO 8879 entities are not included in Solaris 10)
+ AC_MSG_WARN(by default. You should download them from:)
+ AC_MSG_WARN()
+ AC_MSG_WARN(http://www.oasis-open.org/cover/ISOEnts.zip)
+ AC_MSG_WARN()
+ AC_MSG_WARN(and unzip them to /var/lib/sgml/entities/. You will)
+ AC_MSG_WARN(also need to create /var/lib/sgml/CATALOG.iso_ent )
+ AC_MSG_WARN(catalog file by hand. Alternatively download one )
+ AC_MSG_WARN(from:)
+ AC_MSG_WARN()
+ AC_MSG_WARN(http://www.appelsiini.net/~tuupola/php/download/CATALOG.iso_ent)
+ else
+ AC_MSG_RESULT(ok)
+ fi
+ fi
+ ;;
+esac
+
+dnl For windows (and maybe *nix too?) users lacking catalog-files
+
+dnl jade catalog file
+# how about using jade path? You should replace the last 4 chars ('jade') with catalog
+if test -e ../phpdoc-tools/jade/catalog
+then
+ CATALOG="$CATALOG -c ../phpdoc-tools/jade/catalog"
+fi
+
+dnl iso-ents catalog file
+if test -e ../phpdoc-tools/iso-entities/catalog
+then
+ CATALOG="$CATALOG -c ../phpdoc-tools/iso-entities/catalog"
+else
+ if test -e ../phpdoc/entities/ISO/catalog
+ then
+ CATALOG="$CATALOG -c ../phpdoc/entities/ISO/catalog"
+ fi
+fi
+
+dnl dsssl catalog file
+if test -e ../phpdoc-tools/dsssl/docbook/catalog
+then
+ CATALOG="$CATALOG -c ../phpdoc-tools/dsssl/docbook/catalog"
+fi
+
+AC_SUBST(CATALOG)
+
AC_MSG_CHECKING(for docbook.xsl)
AC_ARG_WITH(xsl,
[ --with-xsl=[URI] Look for XSL stylesheets at the specified URI],
@@ -275,13 +351,11 @@
AC_SUBST(DOCBOOKXSL_HTML)
AC_SUBST(DOCBOOKXSL_HTMLHELP)
-PEAR_BUILD_DATE=date
-AC_SUBST(PEAR_BUILD_DATE)
-
AC_MSG_CHECKING(for language)
+
+PEAR_BUILD_DATE=date '+%Y-%m-%d'
AC_ARG_WITH(lang,
-[ --with-lang=LANG Choose a language to work with],
-[
+[ --with-lang=LANG choose a language to work with],[
if test "$withval" = "yes"; then
PEAR_BUILD_DATE=date '+%Y-%m-%d'
AC_SUBST(PEAR_BUILD_DATE)
@@ -314,6 +388,7 @@
])
AC_SUBST(LANG)
AC_SUBST(LANGDIR)
+AC_SUBST(PEAR_BUILD_DATE)
MANUAL="pear_manual_$LANG"
AC_SUBST(MANUAL)
@@ -381,79 +456,7 @@
AC_SUBST(HTMLHELP_ENCODING)
-dnl Do something smart to find catalog-files
-CATALOG=""
-
-case uname in
- dnl SuSE 6.2/6.3 need this
- Linux) if test -e /usr/share/sgml/CATALOG.docbk30
- then
- CATALOG="$CATALOG -c /usr/share/sgml/CATALOG.docbk30"
- fi
- ;;
- dnl Solaris 10 has almost everything installed by default, but
- dnl in nonstandard paths
- SunOS) if test uname -r = "5.10"
- then
- if test -e /usr/sfw/share/sgml/openjade/catalog
- then
- CATALOG="$CATALOG -c /usr/sfw/share/sgml/openjade/catalog"
- fi
- if test -e /var/lib/sgml/CATALOG.docbook_4
- then
- CATALOG="$CATALOG -c /var/lib/sgml/CATALOG.docbook_4"
- fi
- dnl this file needs to be created manually with exactly
- dnl this path since it is referenced in /usr/share/sgml/CATALOG.doc*
- AC_MSG_CHECKING(for ISO 8879 entities)
- if test ! -e /var/lib/sgml/CATALOG.iso_ent
- then
- AC_MSG_RESULT(not found)
- AC_MSG_WARN(ISO 8879 entities are not included in Solaris 10)
- AC_MSG_WARN(by default. You should download them from:)
- AC_MSG_WARN()
- AC_MSG_WARN(http://www.oasis-open.org/cover/ISOEnts.zip)
- AC_MSG_WARN()
- AC_MSG_WARN(and unzip them to /var/lib/sgml/entities/. You will)
- AC_MSG_WARN(also need to create /var/lib/sgml/CATALOG.iso_ent )
- AC_MSG_WARN(catalog file by hand. Alternatively download one )
- AC_MSG_WARN(from:)
- AC_MSG_WARN()
- AC_MSG_WARN(http://www.appelsiini.net/~tuupola/php/download/CATALOG.iso_ent)
- else
- AC_MSG_RESULT(ok)
- fi
- fi
- ;;
-esac
-
-dnl For windows (and maybe *nix too?) users lacking catalog-files
-
-dnl jade catalog file
-# how about using jade path? You should replace the last 4 chars ('jade') with catalog
-if test -e ../phpdoc-tools/jade/catalog
-then
- CATALOG="$CATALOG -c ../phpdoc-tools/jade/catalog"
-fi
-
-dnl iso-ents catalog file
-if test -e ../phpdoc-tools/iso-entities/catalog
-then
- CATALOG="$CATALOG -c ../phpdoc-tools/iso-entities/catalog"
-else
- if test -e ../phpdoc/entities/ISO/catalog
- then
- CATALOG="$CATALOG -c ../phpdoc/entities/ISO/catalog"
- fi
-fi
-
-dnl dsssl catalog file
-if test -e ../phpdoc-tools/dsssl/docbook/catalog
-then
- CATALOG="$CATALOG -c ../phpdoc-tools/dsssl/docbook/catalog"
-fi
-AC_SUBST(CATALOG)