Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 35 lines (27 sloc) 0.958 kB
e988af0 @johnj initial commit
authored
1 dnl
2 dnl X.Commerce config.m4
3 dnl
4
5 PHP_ARG_WITH(xcom, for X.Commerce support,
8dab824 @johnj Bundle libavro
authored
6 [ --with-xcom Include X.Commerce support])
e988af0 @johnj initial commit
authored
7
8 if test "$PHP_XCOM" != "no"; then
9 PHP_SUBST(XCOM_SHARED_LIBADD)
10
8dab824 @johnj Bundle libavro
authored
11 AC_CHECK_LIB([avro], [avro_schema_from_json], [
12 PHP_ADD_LIBRARY(avro,,XCOM_SHARED_LIBADD)
13 AC_CHECK_HEADER([avro.h], [
14 HAVE_AVRO=yes
15 ])
16 ],
17 [
08aec40 @johnj Escape # with a quadrigraph
authored
18 AC_MSG_NOTICE([*** libavro is required before continuing, please install libavro])
19 AC_MSG_NOTICE([*** detailed instructions: https://github.com/johnj/php5-xcom/blob/master/README.md@%:@libavro])
20 AC_MSG_ERROR([*** libavro not found.])
8dab824 @johnj Bundle libavro
authored
21 ])
22
339e8a7 @johnj Tweak curl.h config.m4 check
authored
23 AC_CHECK_HEADER([curl/curl.h], ,
88b8074 @johnj Add check for curl.h
authored
24 [AC_MSG_ERROR([Couldn't find or include curl.h (do you have the libcurl dev package installed?])],
339e8a7 @johnj Tweak curl.h config.m4 check
authored
25 )
88b8074 @johnj Add check for curl.h
authored
26
e988af0 @johnj initial commit
authored
27 PHP_ADD_LIBRARY(curl,,XCOM_SHARED_LIBADD)
8ddf673 @johnj Add async msg support (Xcom::sendAsync)
authored
28 PHP_ADD_LIBRARY(pthread,,XCOM_SHARED_LIBADD)
e988af0 @johnj initial commit
authored
29
30 PHP_NEW_EXTENSION(xcom, xcom.c, $ext_shared)
31 CFLAGS="$CFLAGS -Wall -g"
32
8dab824 @johnj Bundle libavro
authored
33 PHP_ADD_EXTENSION_DEP(xcom, curl)
e988af0 @johnj initial commit
authored
34 fi
Something went wrong with that request. Please try again.