mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
configure.ac: Don't check for clock_gettime on OS X
We don't need it anymore. jin-eld pls do not kill
This commit is contained in:
parent
fc19327dcc
commit
8e5e89b871
|
@ -221,6 +221,7 @@ AC_LIBTOOL_WIN32_DLL
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
WIN32=no
|
WIN32=no
|
||||||
|
MACH=no
|
||||||
AC_CANONICAL_HOST
|
AC_CANONICAL_HOST
|
||||||
case $host_os in
|
case $host_os in
|
||||||
*mingw*)
|
*mingw*)
|
||||||
|
@ -236,6 +237,9 @@ case $host_os in
|
||||||
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
|
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
|
||||||
ADD_NACL_OBJECTS_TO_PKGCONFIG="no"
|
ADD_NACL_OBJECTS_TO_PKGCONFIG="no"
|
||||||
;;
|
;;
|
||||||
|
darwin*)
|
||||||
|
MACH=yes
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes")
|
AM_CONDITIONAL(WIN32, test "x$WIN32" = "xyes")
|
||||||
|
|
||||||
|
@ -388,7 +392,7 @@ AC_C_BIGENDIAN
|
||||||
# Checks for library functions.
|
# Checks for library functions.
|
||||||
AC_FUNC_FORK
|
AC_FUNC_FORK
|
||||||
AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc])
|
AC_CHECK_FUNCS([gettimeofday memset socket strchr malloc])
|
||||||
if test "x$WIN32" != "xyes"; then
|
if (test "x$WIN32" != "xyes") && (test "x$MACH" != "xyes"); then
|
||||||
AC_CHECK_LIB(rt, clock_gettime,
|
AC_CHECK_LIB(rt, clock_gettime,
|
||||||
[
|
[
|
||||||
RT_LIBS="-lrt"
|
RT_LIBS="-lrt"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user