phanto Mon Nov 12 15:57:49 2001 EDT Modified files: (Branch: dev_docbook4) /phpdoc configure.in manual.xml.in Log: ZendAPI manual integration Index: phpdoc/configure.in diff -u phpdoc/configure.in:1.79.2.1 phpdoc/configure.in:1.79.2.2 --- phpdoc/configure.in:1.79.2.1 Sun Nov 11 18:49:24 2001 +++ phpdoc/configure.in Mon Nov 12 15:57:48 2001 @@ -1,4 +1,4 @@ -dnl $Id: configure.in,v 1.79.2.1 2001/11/11 23:49:24 hholzgra Exp $ +dnl $Id: configure.in,v 1.79.2.2 2001/11/12 20:57:48 phanto Exp $ AC_INIT(global.ent) @@ -144,6 +144,26 @@ PHP_BUILD_DATE=`date` AC_SUBST(PHP_BUILD_DATE) +AC_MSG_CHECKING(for ZendAPI) +AC_ARG_WITH(zendapi, +[ --with-zendapi=[DIR] Look for ZendAPI documentation in the specified +directory], +[ + if test -d "$withval" ; then + ZENDAPI=$withval + fi +],[ + for dir in \ + ./ZendAPI \ + ../ZendAPI + do + if test -d "$dir"; then + ZENDAPI=$dir + AC_MSG_RESULT(autodetected: $dir) + break + fi + done +]) + AC_MSG_CHECKING(for language) AC_ARG_WITH(lang, [ --with-lang=LANG Choose a language to work with], @@ -439,6 +459,19 @@ DEPEND_FILES="" rm -f chapters.ent echo "<!-- DON'T TOUCH - AUTOGENERATED BY ./configure -->" > chapters.ent +if test -d "$ZENDAPI"; then + echo >> chapters.ent + echo "<!-- begin ZendAPI integration -->" >> chapters.ent + echo "<!ENTITY % zend.defs SYSTEM \"$ZENDAPI/Extending_Zend.ent\">" >> +chapters.ent + echo "<!ENTITY zend.api SYSTEM \"$ZENDAPI/Extending_Zend.xml\">" >> +chapters.ent + echo >> chapters.ent + echo "%zend.defs;" >> chapters.ent + echo "<!-- end ZendAPI integration -->" >> chapters.ent + echo >> chapters.ent +else + echo "<!-- ZendAPI not found -->" >> chapters.ent + echo "<!ENTITY zend.api \"\">" >> chapters.ent +fi for file in `find $srcdir/en -name "*.xml" | sed -e"s%^$srcdir\/en\/%%g" | sort` do name=`echo $file | sed -e"s/\//./g" -e"s/.xml$//g" -e "s/_/-/g"` @@ -451,6 +484,6 @@ fi DEPEND_FILES="$DEPEND_FILES $file" echo "<!ENTITY $name SYSTEM \"$file\">" >> chapters.ent -done +done chmod a-w chapters.ent Index: phpdoc/manual.xml.in diff -u phpdoc/manual.xml.in:1.84.2.2 phpdoc/manual.xml.in:1.84.2.3 --- phpdoc/manual.xml.in:1.84.2.2 Mon Nov 12 12:24:31 2001 +++ phpdoc/manual.xml.in Mon Nov 12 15:57:48 2001 @@ -194,6 +194,8 @@ &faq.misc; </part> + &zend.api; + <part id="appendixes"> <title>&Appendixes;</title> &appendices.migration;