summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikko Koppanen <mkoppanen@php.net>2010-10-15 10:43:22 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-10-15 10:43:22 +0200
commite288f7a347eb5a2fd38043d930fc67c8e8bcce9b (patch)
treecfe7597f6a60b1ba80d8bf27a34e177f254e5735
parente33e4d7650e36af7d09569de21f7f71b5670945c (diff)
Fixes build on Linux using Sun Studio compiler
Signed-off-by: Mikko Koppanen <mkoppanen@php.net>
-rw-r--r--configure.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 42a820d..3c6f1e7 100644
--- a/configure.in
+++ b/configure.in
@@ -88,8 +88,10 @@ CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE $CPPFLAGS"
# OS-specific tests
case "${host_os}" in
*linux*)
- # Define on Linux to enable all library features
- CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
+ # Define on Linux to enable all library features. Define if using a gnu compiler
+ if test "x$gnu_compilers" = "xyes"; then
+ CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
+ fi
AC_DEFINE(ZMQ_HAVE_LINUX, 1, [Have Linux OS])
AC_CHECK_LIB(rt, main)
AC_CHECK_LIB(uuid, main, ,