summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac12
1 files changed, 7 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 1f0a2e77e..468855ca9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -199,11 +199,6 @@ case "$host" in
;;
- *darwin*)
- AC_DEFINE_UNQUOTED(HOST_OS_DARWIN, 1, [Define this if built on MacOSX/Darwin])
-
- ;;
-
*)
AC_CHECK_LIB(pthread, pthread_create,
[THREAD_LIBS="-lpthread"],
@@ -1639,6 +1634,13 @@ case "$host_or_hostalias" in
CFLAGS="-Wa,-m7400 $CFLAGS"
DEBUG_CFLAGS="-Wa,-m7400 $DEBUG_CFLAGS"
fi
+
+ dnl enable darwin (Mac OS X) specific build
+ case "$host_or_hostalias" in
+ *-darwin*)
+ AC_DEFINE_UNQUOTED(HOST_OS_DARWIN, 1, [Define this if built on MacOSX/Darwin])
+ ;;
+ esac
;;
sparc*-*-linux*)