OSDN Git Service

build: Check for clock_gettime and pthread_create
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 2 Sep 2013 18:25:54 +0000 (11:25 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 2 Sep 2013 18:25:54 +0000 (11:25 -0700)
configure.ac

index a6a214b..050d30d 100644 (file)
@@ -40,6 +40,12 @@ AC_ARG_ENABLE(threads, AC_HELP_STRING([--enable-threads],
 AC_CHECK_FUNC(signalfd, dummy=yes,
                        AC_MSG_ERROR(signalfd support is required))
 
+AC_CHECK_FUNC(clock_gettime, dummy=yes,
+                       AC_MSG_ERROR(realtime clock support is required))
+
+AC_CHECK_LIB(pthread, pthread_create, dummy=yes,
+                       AC_MSG_ERROR(posix thread support is required))
+
 AC_CHECK_LIB(dl, dlopen, dummy=yes,
                        AC_MSG_ERROR(dynamic linking loader is required))