cvs: pecl /ps config.m4

From: Date: Wed, 12 Nov 2003 17:29:37 +0000
Subject: cvs: pecl /ps config.m4
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-528@lists.php.net to get a copy of this message
steinm Wed Nov 12 12:29:37 2003 EDT Modified files: /pecl/ps config.m4 Log: - changed everything from pslib to ps Index: pecl/ps/config.m4 diff -u pecl/ps/config.m4:1.2 pecl/ps/config.m4:1.3 --- pecl/ps/config.m4:1.2 Wed Nov 12 12:01:26 2003 +++ pecl/ps/config.m4 Wed Nov 12 12:29:36 2003 @@ -1,50 +1,50 @@ -dnl $Id: config.m4,v 1.2 2003/11/12 17:01:26 steinm Exp $ -dnl config.m4 for extension pslib +dnl $Id: config.m4,v 1.3 2003/11/12 17:29:36 steinm Exp $ +dnl config.m4 for extension ps -PHP_ARG_WITH(pslib, for pslib support, -Option to configure pslib extension: -[ --with-pslib[=DIR] Include PostScript support]) +PHP_ARG_WITH(ps, for ps support, +Option to configure ps extension: +[ --with-ps[=DIR] Include PostScript support]) -if test "$PHP_PSLIB" != "no"; then +if test "$PHP_PS" != "no"; then dnl Write more examples of tests here... - dnl # --with-pslib -> check with-path + dnl # --with-ps -> check with-path SEARCH_PATH="/usr/local /usr" # you might want to change this SEARCH_FOR="include/libps/pslib.h" # you most likely want to change this - if test -r $PHP_PSLIB/$SEARCH_FOR; then # path given as parameter - PSLIB_DIR=$PHP_PSLIB + if test -r $PHP_PS/$SEARCH_FOR; then # path given as parameter + PS_DIR=$PHP_PS else # search default path list - AC_MSG_CHECKING([for pslib files in default path]) + AC_MSG_CHECKING([for ps files in default path]) for i in $SEARCH_PATH ; do if test -r $i/$SEARCH_FOR; then - PSLIB_DIR=$i + PS_DIR=$i AC_MSG_RESULT(found in $i) fi done fi - if test -z "$PSLIB_DIR"; then + if test -z "$PS_DIR"; then AC_MSG_RESULT([not found]) AC_MSG_ERROR([Please reinstall the pslib distribution]) fi - PHP_ADD_INCLUDE($PSLIB_DIR/include) + PHP_ADD_INCLUDE($PS_DIR/include) LIBNAME=ps # you may want to change this LIBSYMBOL=PS_show # you most likely want to change this PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, [ - PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $PSLIB_DIR/lib, PSLIB_SHARED_LIBADD) - AC_DEFINE(HAVE_PSLIB,1,[ ]) + PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $PS_DIR/lib, PS_SHARED_LIBADD) + AC_DEFINE(HAVE_PS,1,[ ]) ],[ AC_MSG_ERROR([wrong pslib lib version or lib not found]) ],[ - -L$PSLIB_DIR/lib -lm -ldl + -L$PS_DIR/lib -lm -ldl ]) - PHP_SUBST(PSLIB_SHARED_LIBADD) + PHP_SUBST(PS_SHARED_LIBADD) - AC_DEFINE(HAVE_PSLIB,1,[Whether to include the pslib extension]) + AC_DEFINE(HAVE_PS,1,[Whether to include the ps extension]) PHP_NEW_EXTENSION(ps, ps.c, $ext_shared) fi

« previous php.pecl.cvs (#528) next »