diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-08-01 16:28:13 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2021-08-01 16:28:58 -0700 |
commit | 866881cde2f973b50dc2a9279f2a85611ec23974 (patch) | |
tree | 564c961b66f4b06975717be9ff8b36a5801420eb /configure.ac | |
parent | 30be448a408bf8543047008ef823321016b73132 (diff) |
Fix build on Solaris
Solaris 11 has sqrt() in libc but needs to link with libm for sincos()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index f0a1948..1169bf9 100644 --- a/configure.ac +++ b/configure.ac @@ -51,7 +51,9 @@ dnl Optional dependencies AC_ARG_WITH(xft, AS_HELP_STRING([--with-xft],[Use Xft2 and Xrender for rendering (Default is YES)]),use_xft="$withval",use_xft="try") if test x$use_xft != xno ; then PKG_CHECK_MODULES(XFT, [xrender xft]) + # Solaris 11 has sqrt in libc but needs libm for sincos AC_SEARCH_LIBS(sqrt, [m]) + AC_SEARCH_LIBS(sincos, [m]) XCLOCK_CFLAGS="$XCLOCK_CFLAGS $XFT_CFLAGS" XCLOCK_LIBS="$XCLOCK_LIBS $XFT_LIBS" AC_DEFINE([XRENDER],1,[Define to use X Render Extension]) |