dnl $Id: config.m4,v 1.3 2007/05/02 20:28:46 gopalv Exp $ dnl config.m4 for extension inclued PHP_ARG_ENABLE(inclued, whether to enable inclued support, [ --enable-inclued Enable inclued support]) if test "$PHP_INCLUED" != "no"; then dnl Write more examples of tests here... dnl # --with-inclued -> check with-path dnl SEARCH_PATH="/usr/local /usr" # you might want to change this dnl SEARCH_FOR="/include/inclued.h" # you most likely want to change this dnl if test -r $PHP_INCLUED/; then # path given as parameter dnl INCLUED_DIR=$PHP_INCLUED dnl else # search default path list dnl AC_MSG_CHECKING([for inclued files in default path]) dnl for i in $SEARCH_PATH ; do dnl if test -r $i/$SEARCH_FOR; then dnl INCLUED_DIR=$i dnl AC_MSG_RESULT(found in $i) dnl fi dnl done dnl fi dnl dnl if test -z "$INCLUED_DIR"; then dnl AC_MSG_RESULT([not found]) dnl AC_MSG_ERROR([Please reinstall the inclued distribution]) dnl fi dnl # --with-inclued -> add include path dnl PHP_ADD_INCLUDE($INCLUED_DIR/include) dnl # --with-inclued -> check for lib and symbol presence dnl LIBNAME=inclued # you may want to change this dnl LIBSYMBOL=inclued # you most likely want to change this dnl PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, dnl [ dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $INCLUED_DIR/lib, INCLUED_SHARED_LIBADD) dnl AC_DEFINE(HAVE_INCLUEDLIB,1,[ ]) dnl ],[ dnl AC_MSG_ERROR([wrong inclued lib version or lib not found]) dnl ],[ dnl -L$INCLUED_DIR/lib -lm -ldl dnl ]) dnl dnl PHP_SUBST(INCLUED_SHARED_LIBADD) inclued_sources="inclued.c \ inclued_zend.c" PHP_NEW_EXTENSION(inclued, $inclued_sources, $ext_shared) fi