Permalink
Browse files

Add libavro instructions

  • Loading branch information...
1 parent 2376dfc commit 1bc4bc8e76c5fafd6c3f7489a5c84cf028a67e6e @johnj committed Aug 10, 2012
Showing with 16 additions and 3 deletions.
  1. +14 −1 README.md
  2. +2 −2 config.m4
View
@@ -14,7 +14,7 @@ $ make && sudo make install
# echo "extension=xcom.so" >> /your/php.ini
</pre>
-A gcc-like toolchain, php headers, and libavro are required.
+A gcc-like toolchain, php headers, and libavro (installation instructions below) are required.
Examples
========
@@ -88,3 +88,16 @@ var_dump($xcom->encode($data, '{"json": "schema"}'));
?>
```
+
+libavro
+========
+In order to compile the xcommerce extension you will need libavro.
+
+The libavro build uses CMake (usually available in all package managers).
+
+<pre>
+$ git clone https://github.com/johnj/avro.git
+$ cd avro/lang/c
+$ cmake .
+$ sudo make install
+</pre>
View
@@ -19,8 +19,8 @@ if test "$PHP_XCOM" != "no"; then
if test "x$HAVE_CMAKE" = "xfalse"; then
AC_MSG_ERROR([*** CMake is required to build libavro, please install CMake before continuing])
else
- AC_MSG_NOTICE([*** libavro is required before continuing, please install libavro in the avro/ directory by running:])
- AC_MSG_NOTICE([*** $ cd avro && cmake . && sudo make install])
+ AC_MSG_NOTICE([*** libavro is required before continuing, please install libavro])
+ AC_MSG_NOTICE([*** detailed instructions: https://github.com/johnj/php5-xcom/blob/master/README.md#libavro])
AC_MSG_ERROR([*** libavro not found.])
fi

0 comments on commit 1bc4bc8

Please sign in to comment.