dnl
dnl $Id: config.m4,v 1.5 2002/03/24 22:57:00 alexwaugh Exp $
dnl

AC_ARG_WITH(webjames,
[  --with-webjames=SRCDIR  Build PHP as a WebJames module (RISC OS only)],[
  PHP_EXPAND_PATH($withval, WEBJAMES)
  INSTALL_IT="\
    echo 'PHP_LIBS = -l$abs_srcdir/$SAPI_STATIC \$(PHP_LIBS) \$(EXTRA_LIBS)' > $WEBJAMES/build/php; \
    echo 'PHP_LDFLAGS = \$(NATIVE_RPATHS) \$(PHP_LDFLAGS)' >> $WEBJAMES/build/php; \
    echo 'PHP_CFLAGS = -DPHP \$(COMMON_FLAGS) \$(EXTRA_CFLAGS) -I$abs_srcdir/sapi/webjames' >> $WEBJAMES/build/php;"
  PHP_WEBJAMES="yes, using $WEBJAMES"
  PHP_ADD_INCLUDE($WEBJAMES)
  PHP_SELECT_SAPI(webjames, static, webjames.c)
],[
  PHP_WEBJAMES="no"
])

AC_MSG_CHECKING(for webjames)
AC_MSG_RESULT($PHP_WEBJAMES)
