diff options
-rw-r--r-- | configure.ac.tpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac.tpl b/configure.ac.tpl index d02eb7a..3589101 100644 --- a/configure.ac.tpl +++ b/configure.ac.tpl | |||
@@ -16,7 +16,6 @@ case $target_os in | |||
16 | *linux*) | 16 | *linux*) |
17 | TARGET_OS=linux; | 17 | TARGET_OS=linux; |
18 | CFLAGS="$CFLAGS -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" | 18 | CFLAGS="$CFLAGS -D_BSD_SOURCE -D_POSIX_SOURCE -D_GNU_SOURCE" |
19 | AC_SUBST([PLATFORM_LDADD], ['-lrt']) | ||
20 | ;; | 19 | ;; |
21 | *solaris*) | 20 | *solaris*) |
22 | TARGET_OS=solaris; | 21 | TARGET_OS=solaris; |
@@ -33,6 +32,9 @@ AM_CONDITIONAL(TARGET_DARWIN, test x$TARGET_OS = xdarwin) | |||
33 | AM_CONDITIONAL(TARGET_LINUX, test x$TARGET_OS = xlinux) | 32 | AM_CONDITIONAL(TARGET_LINUX, test x$TARGET_OS = xlinux) |
34 | AM_CONDITIONAL(TARGET_SOLARIS, test x$TARGET_OS = xsolaris) | 33 | AM_CONDITIONAL(TARGET_SOLARIS, test x$TARGET_OS = xsolaris) |
35 | 34 | ||
35 | AC_CHECK_FUNC([clock_gettime],, | ||
36 | [AC_SEARCH_LIBS([clock_gettime],[rt posix4])]) | ||
37 | |||
36 | AC_PROG_CC | 38 | AC_PROG_CC |
37 | AC_PROG_LIBTOOL | 39 | AC_PROG_LIBTOOL |
38 | AC_PROG_CC_STDC | 40 | AC_PROG_CC_STDC |