cvs: phpdoc / configure.in

From: Date: Sat, 05 Jan 2002 17:44:12 +0000
Subject: cvs: phpdoc / configure.in
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969340782@lists.php.net to get a copy of this message
hholzgra Sat Jan 5 12:44:12 2002 EDT Modified files: /phpdoc configure.in Log: makeing sure that PHP is realy available before using it in default targets in Makefile.in Index: phpdoc/configure.in diff -u phpdoc/configure.in:1.90 phpdoc/configure.in:1.91 --- phpdoc/configure.in:1.90 Fri Jan 4 11:19:01 2002 +++ phpdoc/configure.in Sat Jan 5 12:44:11 2002 @@ -1,8 +1,53 @@ +dnl $Id: configure.in,v 1.91 2002/01/05 17:44:11 hholzgra Exp $ + +dnl autoconf initialisation +AC_INIT() + + + +dnl check for support programs + +dnl check for PHP +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], +[ + if test $withval != "yes"; then + AC_MSG_CHECKING([for php]) + if test -x $withval; then + PHP=$withval + AC_MSG_RESULT($PHP) + else + PHP=no + AC_MSG_RESULT(no) + AC_MSG_WARN([$withval: not an executable file]) + fi + else + AC_PATH_PROG(PHP,"php",no) + fi +],[ + AC_PATH_PROG(PHP,"php",no) +] +) +if test $PHP = "no"; then + AC_MSG_WARN([no PHP binary found]) +else + AC_MSG_CHECKING([php version]) + PHPVERSION=$PHP -qv + if test "yes" == echo '<? echo phpversion()>3?"yes":"no"; ?>' | $PHP -q; then + AC_MSG_RESULT($PHPVERSION ok) + else + AC_MSG_RESULT($PHPVERSION) + AC_MSG_WARN([PHP version 4.0.0 or newer needed]) + PHP=no + fi +fi +AC_SUBST(PHP) + + -dnl $Id: configure.in,v 1.90 2002/01/04 16:19:01 goba Exp $ -AC_INIT(global.ent) dnl AC_MSG_CHECKING(for DocBook doctype) dnl check_catalog_files() {

« previous php.doc (#969340782) next »