php-src/sapi/thttpd/config.m4
Sascha Schumann f2f8d38efa Integration of -ng changes. Changes:
- added support for externally built modules,
- improved support for in-tree shared modules,
- fixed diversion bugs,
- configure displays some informative messages,
- faster static build
  (libtool isn't used anymore for compiling non-PIC objects),
- dependencies comparable to automake's without requiring GNU make or GCC,
- working make clean for non-GNU makes.
1999-12-30 02:59:53 +00:00

21 lines
720 B
Plaintext

AC_ARG_WITH(thttpd,
[ --with-thttpd=SRCDIR],[
test -d $withval || AC_MSG_RESULT(thttpd directory does not exist ($withval))
AC_EXPAND_PATH($withval, THTTPD)
INSTALL_IT="\
echo 'PHP_LIBS = -L. -lphp4 \$(PHP_LIBS) \$(EXTRA_LIBS)' > $THTTPD/php_makefile; \
echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $THTTPD/php_makefile; \
cp $abs_srcdir/sapi/thttpd/php_thttpd.h $SAPI_STATIC $THTTPD;\
test -f $THTTPD/php_patched || \
(cd $THTTPD && patch < $abs_srcdir/sapi/thttpd/thttpd_patch && touch php_patched)"
PHP_THTTPD="yes, using $THTTPD"
AC_ADD_INCLUDE($THTTPD)
PHP_BUILD_STATIC
PHP_SAPI=thttpd
],[
PHP_THTTPD="no"
])
AC_MSG_CHECKING(for thttpd)
AC_MSG_RESULT($PHP_THTTPD)