Annotation of embedaddon/php/sapi/litespeed/config.m4, revision 1.1.1.2
1.1 misho 1: dnl
1.1.1.2 ! misho 2: dnl $Id$
1.1 misho 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_SELECT_SAPI(litespeed, program, lsapi_main.c lsapilib.c, "", '$(SAPI_LITESPEED_PATH)')
14: case $host_alias in
15: *darwin*)
1.1.1.2 ! misho 16: BUILD_LITESPEED="\$(CC) \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(NATIVE_RPATHS) \$(PHP_GLOBAL_OBJS:.lo=.o) \$(PHP_BINARY_OBJS:.lo=.o) \$(PHP_LITESPEED_OBJS:.lo=.o) \$(PHP_FRAMEWORKS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
1.1 misho 17: ;;
18: *cygwin*)
19: SAPI_LITESPEED_PATH=sapi/litespeed/php.exe
1.1.1.2 ! misho 20: BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_LITESPEED_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
1.1 misho 21: ;;
22: *)
1.1.1.2 ! misho 23: BUILD_LITESPEED="\$(LIBTOOL) --mode=link \$(CC) -export-dynamic \$(CFLAGS_CLEAN) \$(EXTRA_CFLAGS) \$(EXTRA_LDFLAGS_PROGRAM) \$(LDFLAGS) \$(PHP_RPATHS) \$(PHP_GLOBAL_OBJS) \$(PHP_BINARY_OBJS) \$(PHP_LITESPEED_OBJS) \$(EXTRA_LIBS) \$(ZEND_EXTRA_LIBS) -o \$(SAPI_LITESPEED_PATH)"
1.1 misho 24: ;;
25: esac
26:
1.1.1.2 ! misho 27: PHP_SUBST(SAPI_LITESPEED_PATH)
1.1 misho 28: PHP_SUBST(BUILD_LITESPEED)
29: fi
30:
31: AC_MSG_RESULT($PHP_LITESPEED)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>