Return to config.m4 CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / sapi / litespeed |
1.1 ! misho 1: dnl ! 2: dnl $Id: config.m4 301063 2010-07-07 20:03:04Z gwang $ ! 3: dnl ! 4: ! 5: AC_MSG_CHECKING(for LiteSpeed support) ! 6: ! 7: PHP_ARG_WITH(litespeed,, ! 8: [ --with-litespeed Build PHP as litespeed module], no) ! 9: ! 10: if test "$PHP_LITESPEED" != "no"; then ! 11: PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/sapi/litespeed/Makefile.frag,$abs_srcdir/sapi/litespeed,sapi/litespeed) ! 12: SAPI_LITESPEED_PATH=sapi/litespeed/php ! 13: PHP_SUBST(SAPI_LITESPEED_PATH) ! 14: PHP_SELECT_SAPI(litespeed, program, lsapi_main.c lsapilib.c, "", '$(SAPI_LITESPEED_PATH)') ! 15: INSTALL_IT="@echo \"Installing PHP LiteSpeed into: \$(INSTALL_ROOT)\$(bindir)/\"; \$(INSTALL) -m 0755 \$(SAPI_LITESPEED_PATH) \$(INSTALL_ROOT)\$(bindir)/lsphp" ! 16: case $host_alias in ! 17: *darwin*) ! 18: BUILD_LITESPEED="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_SAPI_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)" ! 19: ;; ! 20: *cygwin*) ! 21: SAPI_LITESPEED_PATH=sapi/litespeed/php.exe ! 22: BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)" ! 23: ;; ! 24: *) ! 25: BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_SAPI_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)" ! 26: ;; ! 27: esac ! 28: ! 29: PHP_SUBST(BUILD_LITESPEED) ! 30: fi ! 31: ! 32: AC_MSG_RESULT($PHP_LITESPEED)