root / trunk / ext / php / config.m4

Revision 264, 1.3 kB (checked in by indeyets, 14 months ago)

support for sexagecimal floats

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1dnl $Id$
2dnl config.m4 for extension syck
3
4PHP_ARG_WITH(syck, for syck support,
5[  --with-syck[=DIR]       Include syck support])
6
7if test "$PHP_SYCK" != "no"; then
8  # --with-syck -> check with-path
9  SEARCH_PATH="/sw/local /sw /usr/local /usr"
10  SEARCH_FOR="/include/syck.h"
11  if test -r $PHP_SYCK/; then # path given as parameter
12    SYCK_DIR=$PHP_SYCK
13  else # search default path list
14    AC_MSG_CHECKING([for syck files in default path])
15    for i in $SEARCH_PATH ; do
16      if test -r $i/$SEARCH_FOR; then
17        SYCK_DIR=$i
18        AC_MSG_RESULT(found in $i)
19      fi
20    done
21  fi
22
23  if test -z "$SYCK_DIR"; then
24    AC_MSG_RESULT([not found])
25    AC_MSG_ERROR([Please reinstall the syck distribution])
26  fi
27
28  # --with-syck -> add include path
29  PHP_ADD_INCLUDE($SYCK_DIR/include)
30
31  # --with-syck -> chech for lib and symbol presence
32  LIBNAME=syck
33  LIBSYMBOL=syck_new_parser
34
35  PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
36  [
37    PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $SYCK_DIR/lib, SYCK_SHARED_LIBADD)
38    AC_DEFINE(HAVE_SYCKLIB,1,[ ])
39  ],[
40    AC_MSG_ERROR([wrong syck lib version or lib not found])
41  ],[
42    -L$SYCK_DIR/lib
43  ])
44
45  PHP_NEW_EXTENSION(syck, phpext.c, $ext_shared)
46  PHP_ADD_EXTENSION_DEP(syck, hash)
47  PHP_ADD_EXTENSION_DEP(syck, spl)
48
49  PHP_SUBST(SYCK_SHARED_LIBADD)
50fi
Note: See TracBrowser for help on using the browser.