cvs: php4 /ext/ircg config.m4

From: Date: Mon, 26 Feb 2001 22:14:24 +0000
Subject: cvs: php4 /ext/ircg config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4281@lists.php.net to get a copy of this message
sas Mon Feb 26 14:14:24 2001 EDT Modified files: /php4/ext/ircg config.m4 Log: Improve the configure part of ircg a little bit; complain when ircg-config is not found. That lead to confusion in many cases. Index: php4/ext/ircg/config.m4 diff -u php4/ext/ircg/config.m4:1.2 php4/ext/ircg/config.m4:1.3 --- php4/ext/ircg/config.m4:1.2 Sun Feb 18 10:23:04 2001 +++ php4/ext/ircg/config.m4 Mon Feb 26 14:14:24 2001 @@ -1,11 +1,21 @@ +AC_ARG_WITH(ircg-config, +[ --with-ircg-config Path to the ircg-config script], +[ IRCG_CONFIG=$withval ], +[ IRCG_CONFIG=ircg-config ]) + PHP_ARG_WITH(ircg, for ircg support, [ --with-ircg Include ircg support]) if test "$PHP_IRCG" != "no"; then - PHP_EVAL_LIBLINE(ircg-config --ldflags) - PHP_EVAL_INCLINE(ircg-config --cppflags) + $IRCG_CONFIG --ldflags + if test "$?" != "0"; then + AC_MSG_ERROR([Please verify that ircg-config is in your PATH or pass the path to ircg-config as --with-ircg-config]) + fi + + PHP_EVAL_LIBLINE($IRCG_CONFIG --ldflags) + PHP_EVAL_INCLINE($IRCG_CONFIG --cppflags) AC_ADD_LIBRARY_WITH_PATH(ircg, $PHP_IRCG/lib) AC_ADD_INCLUDE($PHP_IRCG/include) - AC_DEFINE(HAVE_IRCG, 1, [ ]) + AC_DEFINE(HAVE_IRCG, 1, [Whether you want IRCG support]) PHP_EXTENSION(ircg, $ext_shared) fi

« previous php.cvs (#4281) next »