Return to config.m4 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / sapi / thttpd |
1.1 ! misho 1: dnl ! 2: dnl $Id: config.m4 242949 2007-09-26 15:44:16Z cvs2svn $ ! 3: dnl ! 4: ! 5: PHP_ARG_WITH(thttpd,, ! 6: [ --with-thttpd=SRCDIR Build PHP as thttpd module], no, no) ! 7: ! 8: AC_MSG_CHECKING([for thttpd]) ! 9: ! 10: if test "$PHP_THTTPD" != "no"; then ! 11: if test ! -d $PHP_THTTPD; then ! 12: AC_MSG_RESULT(thttpd directory does not exist ($PHP_THTTPD)) ! 13: fi ! 14: ! 15: PHP_EXPAND_PATH($PHP_THTTPD, THTTPD) ! 16: ! 17: if grep thttpd.2.21b $PHP_THTTPD/version.h >/dev/null; then ! 18: patch="test -f $THTTPD/php_patched || \ ! 19: (cd $THTTPD && patch -p1 < $abs_srcdir/sapi/thttpd/thttpd_patch && touch php_patched)" ! 20: ! 21: elif grep Premium $PHP_THTTPD/version.h >/dev/null; then ! 22: patch= ! 23: else ! 24: AC_MSG_ERROR([This version only supports thttpd-2.21b and Premium thttpd]) ! 25: fi ! 26: PHP_TARGET_RDYNAMIC ! 27: INSTALL_IT="\ ! 28: echo 'PHP_LIBS = -L. -lphp5 \$(PHP_LIBS) \$(EXTRA_LIBS)' > $THTTPD/php_makefile; \ ! 29: echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $THTTPD/php_makefile; \ ! 30: echo 'PHP_CFLAGS = \$(COMMON_FLAGS) \$(CFLAGS_CLEAN) \$(CPPFLAGS) \$(EXTRA_CFLAGS)' >> $THTTPD/php_makefile; \ ! 31: rm -f $THTTPD/php_thttpd.c $THTTPD/php_thttpd.h $THTTPD/libphp5.a; \ ! 32: \$(LN_S) $abs_srcdir/sapi/thttpd/thttpd.c $THTTPD/php_thttpd.c; \ ! 33: \$(LN_S) $abs_srcdir/sapi/thttpd/php_thttpd.h $abs_builddir/$SAPI_STATIC $THTTPD/;\ ! 34: $patch" ! 35: PHP_THTTPD="yes, using $THTTPD" ! 36: PHP_ADD_INCLUDE($THTTPD) ! 37: PHP_SELECT_SAPI(thttpd, static) ! 38: fi ! 39: AC_MSG_RESULT($PHP_THTTPD)