Permalink
Browse files

make use of $PHP_LIBDIR

  • Loading branch information...
1 parent b938843 commit 5ef7ce2065c7c8aee1f9da043c198b8a88ca5ddb @tony2001 committed Oct 13, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 config.m4
View
6 config.m4
@@ -72,9 +72,13 @@ if test "$PHP_PINBA" != "no"; then
PHP_ADD_LIBRARY([$THREAD_LIB])
fi
+ if test "x$PHP_LIBDIR" = "x"; then
+ PHP_LIBDIR=lib
+ fi
+
PHP_REQUIRE_CXX
PHP_ADD_LIBRARY_WITH_PATH(stdc++, "", PINBA_SHARED_LIBADD)
- PHP_ADD_LIBRARY_WITH_PATH(protobuf, $PROTOBUF_DIR/lib, PINBA_SHARED_LIBADD)
+ PHP_ADD_LIBRARY_WITH_PATH(protobuf, $PROTOBUF_DIR/$PHP_LIBDIR, PINBA_SHARED_LIBADD)
PHP_SUBST(PINBA_SHARED_LIBADD)
PHP_NEW_EXTENSION(pinba, pinba.cc pinba-pb.cc, $ext_shared,, -DNDEBUG)

0 comments on commit 5ef7ce2

Please sign in to comment.