Changeset 11 for trunk/config.m4


Ignore:
Timestamp:
2006-05-24T09:52:48+02:00 (9 years ago)
Author:
moo
Message:

make it build on windows vc compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/config.m4

    r8 r11  
    1 dnl 
    2 dnl $Id:$ 
    31dnl vim:ts=2:sw=2:expandtab 
    42 
    53AC_DEFUN([XCACHE_OPTION], [ 
    6   PHP_ARG_ENABLE(xcache-$1, for XCACHE $1, 
    7   [  --enable-xcache-$2    XCACHE: $4], no, no) 
    8   if test "$PHP_$3" = "yes"; then 
     4  PHP_ARG_ENABLE(xcache-$1, for XCache $1, 
     5  [  --enable-xcache-$2    XCache: $4], no, no) 
     6  if test "$PHP_$3" != "no"; then 
    97    xcache_sources="$xcache_sources $1.c" 
    108    HAVE_$3=1 
    11     AC_DEFINE([HAVE_$3], 1, [Define for XCACHE: $4]) 
     9    AC_DEFINE([HAVE_$3], 1, [Define for XCache: $4]) 
    1210  else 
    1311    HAVE_$3= 
     
    1513])dnl 
    1614 
    17 PHP_ARG_ENABLE(xcache, for XCACHE support, 
    18 [  --enable-xcache         Include XCACHE support.]) 
     15PHP_ARG_ENABLE(xcache, for XCache support, 
     16[  --enable-xcache         Include XCache support.]) 
    1917 
    2018if test "$PHP_XCACHE" != "no"; then 
     
    3937  PHP_ADD_MAKEFILE_FRAGMENT() 
    4038 
    41   PHP_ARG_ENABLE(xcache-test, for XCACHE self test, 
    42   [  --enable-xcache-test            XCACHE: Enable self test - FOR DEVELOPERS ONLY!!], no, no) 
    43   if test "$PHP_XCACHE_TEST" = "yes"; then 
     39  PHP_ARG_ENABLE(xcache-test, for XCache self test, 
     40  [  --enable-xcache-test            XCache: Enable self test - FOR DEVELOPERS ONLY!!], no, no) 
     41  if test "$PHP_XCACHE_TEST" != "no"; then 
    4442    XCACHE_ENABLE_TEST=-DXCACHE_ENABLE_TEST 
    45     AC_DEFINE([HAVE_XCACHE_TEST], 1, [Define to enable XCACHE self test]) 
     43    AC_DEFINE([HAVE_XCACHE_TEST], 1, [Define to enable XCache self test]) 
    4644  else 
    4745    XCACHE_ENABLE_TEST= 
     
    4947  PHP_SUBST([XCACHE_ENABLE_TEST]) 
    5048 
    51   AC_PATH_PROGS(INDENT, [indent cat]) 
     49  AC_PATH_PROGS([AWK], [gawk awk]) 
     50  AC_PATH_PROGS([M4], [m4]) 
     51  AC_PATH_PROGS([GREP], [grep]) 
     52  AC_PATH_PROGS([SED], [sed]) 
     53 
     54  AC_PATH_PROGS([INDENT], [indent cat]) 
    5255  case $INDENT in 
    5356  */indent[)] 
     
    6467  PHP_SUBST([XCACHE_PROC_SOURCES]) 
    6568 
    66   AC_MSG_CHECKING(if you have opcode_spec_def.h for xcache) 
     69  AC_MSG_CHECKING(if you have opcode_spec_def.h for XCache) 
    6770  if test -e "$ac_srcdir/opcode_spec_def.h" ; then 
    68     AC_DEFINE([HAVE_XCACHE_OPCODE_SPEC_DEF], 1, [Define if you have opcode_spec_def.h for xcache]) 
     71    AC_DEFINE([HAVE_XCACHE_OPCODE_SPEC_DEF], 1, [Define if you have opcode_spec_def.h for XCache]) 
    6972    AC_MSG_RESULT(yes) 
    7073  else 
     
    7477      AC_MSG_ERROR([cannot build with $1, $ac_srcdir/opcode_spec_def.h required]) 
    7578    ]) 
    76     if test "$HAVE_XCACHE_DISASSEMBLER" = "1" ; then 
     79    if test "$PHP_XCACHE_DISASSEMBLER" != "no" ; then 
    7780      ERROR(disassembler) 
    7881    fi 
Note: See TracChangeset for help on using the changeset viewer.