diff options
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 7756e6b9..cb003036 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -221,6 +221,7 @@ AC_LIBTOOL_WIN32_DLL | |||
221 | AC_PROG_LIBTOOL | 221 | AC_PROG_LIBTOOL |
222 | 222 | ||
223 | WIN32=no | 223 | WIN32=no |
224 | MACH=no | ||
224 | AC_CANONICAL_HOST | 225 | AC_CANONICAL_HOST |
225 | case $host_os in | 226 | case $host_os in |
226 | *mingw*) | 227 | *mingw*) |
@@ -236,6 +237,9 @@ case $host_os in | |||
236 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" | 237 | CPPFLAGS="$CPPFLAGS -I/usr/local/include" |
237 | ADD_NACL_OBJECTS_TO_PKGCONFIG="no" | 238 | ADD_NACL_OBJECTS_TO_PKGCONFIG="no" |
238 | ;; | 239 | ;; |
240 | darwin*) | ||
241 | MACH=yes | ||
242 | ;; | ||
239 | esac | 243 | esac |
240 | AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes") | 244 | AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes") |
241 | 245 | ||
@@ -388,7 +392,7 @@ AC_C_BIGENDIAN | |||
388 | # Checks for library functions. | 392 | # Checks for library functions. |
389 | AC_FUNC_FORK | 393 | AC_FUNC_FORK |
390 | AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc]) | 394 | AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc]) |
391 | if test "x$WIN32" != "xyes"; then | 395 | if (test "x$WIN32" != "xyes") && (test "x$MACH" != "xyes"); then |
392 | AC_CHECK_LIB(rt, clock_gettime, | 396 | AC_CHECK_LIB(rt, clock_gettime, |
393 | [ | 397 | [ |
394 | RT_LIBS="-lrt" | 398 | RT_LIBS="-lrt" |