This is the initial commit;
[mistral.git] / config.m4
blobc4749f9a62a90661a585fefc0c51d56d5779cf0b
1 dnl $Id$
2 dnl config.m4 for extension mistral
3 dnl Comments in this file start with the string 'dnl'.
4 dnl If your extension references something external, use with:
6 PHP_ARG_WITH(libev, for libev support,
7     Make sure that the comment is aligned:
8     [  --with-libev[=DIR]   Include libev support])
10 dnl if test "$PHP_LIBEV" != "no"; then
11         AC_MSG_CHECKING(for libev install directory)
12         for i in $PHP_LIBEV /usr /usr/local; do
13                 if test -r $i/include/libev/ev.h; then
14                         LIBEV_INC_DIR=$i/include
15                 fi
17                 if test -r $i/lib64/libev.so; then
18                         LIBEV_DIR=$i/lib64
19                 elif test -r $i/lib/libev.so; then
20                         LIBEV_DIR=$i/lib
21                 fi
22         done
23         
24         AC_MSG_RESULT($LIBEV_DIR)
25         PHP_ADD_INCLUDE($LIBEV_INC_DIR)
27         PHP_SUBST(MISTRAL_SHARED_LIBADD)
28         PHP_ADD_LIBRARY_WITH_PATH(ev, $LIBEV_DIR, MISTRAL_SHARED_LIBADD)
30         AC_DEFINE(HAVE_LIBEV,1,[Whether you have libev])
31         
32         PHP_NEW_EXTENSION(mistral, mistral.c, $ext_shared)
33 dnl fi