Mercurial > minori
comparison dep/animone/configure.ac @ 266:1a6a5d3a94cd
dep/animone: make bsd.cc and x11.cc actually work
apparently I broke these, and even now the x11 code *still* doesn't want
to work correctly (at least on FreeBSD). half of the PID response codes
are just 0 or the PID for the X server itself... wtf?
maybe dwm just doesn't support the XRes extension, or I'm just stupid.
i don't know.
| author | Paper <paper@paper.us.eu.org> |
|---|---|
| date | Thu, 11 Apr 2024 22:05:41 -0400 |
| parents | 862d0d8619f6 |
| children | 0718f538c5f9 |
comparison
equal
deleted
inserted
replaced
| 265:ff0b2052b234 | 266:1a6a5d3a94cd |
|---|---|
| 17 build_win32=no | 17 build_win32=no |
| 18 build_osx=no | 18 build_osx=no |
| 19 build_linux=no | 19 build_linux=no |
| 20 build_libutil=no | 20 build_libutil=no |
| 21 build_kvm=no | 21 build_kvm=no |
| 22 build_bsd=no | |
| 22 | 23 |
| 23 build_x11=no | 24 build_x11=no |
| 24 | 25 |
| 25 case "${host_os}" in | 26 case "${host_os}" in |
| 26 cygwin*|mingw*) | 27 cygwin*|mingw*) |
| 38 linux*) | 39 linux*) |
| 39 build_linux=yes | 40 build_linux=yes |
| 40 AC_DEFINE([LINUX]) | 41 AC_DEFINE([LINUX]) |
| 41 ;; | 42 ;; |
| 42 *) | 43 *) |
| 43 # FreeBSD | 44 dnl BSDs |
| 45 build_bsd=yes | |
| 46 AC_DEFINE([BSD]) | |
| 44 AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no]) | 47 AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no]) |
| 45 if test "x$build_libutil" = "xyes"; then | 48 |
| 49 dnl if we have this function it means kvm_openfiles likely also supports NULL values, | |
| 50 dnl i.e., loading the currently running kernel | |
| 51 AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no]) | |
| 52 | |
| 53 if test "x$build_kvm" = "xyes"; then | |
| 54 AC_DEFINE([LIBKVM]) | |
| 55 elif test "x$build_libutil" = "xyes"; then | |
| 46 AC_DEFINE([LIBUTIL]) | 56 AC_DEFINE([LIBUTIL]) |
| 47 else | |
| 48 # OpenBSD | |
| 49 AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no]) | |
| 50 if test "x$build_kvm" = "xyes"; then | |
| 51 AC_DEFINE([LIBKVM]) | |
| 52 fi | |
| 53 fi | 57 fi |
| 54 ;; | 58 ;; |
| 55 esac | 59 esac |
| 56 | 60 |
| 57 if test "x$build_osx" = "xno" && test "x$build_windows" = "xno"; then | 61 if test "x$build_osx" != "xyes" && test "x$build_windows" != "xyes"; then |
| 58 PKG_CHECK_MODULES(XCB, [xcb xcb-res], [build_x11=yes], [build_x11=no]) | 62 PKG_CHECK_MODULES(XCB, [xcb xcb-res], [build_x11=yes], [build_x11=no]) |
| 59 if test "x$build_x11" = "xyes"; then | 63 if test "x$build_x11" = "xyes"; then |
| 60 AC_DEFINE([X11]) | 64 AC_DEFINE([X11]) |
| 61 AC_SUBST([XCB_LIBS]) | 65 AC_SUBST([XCB_LIBS]) |
| 62 AC_SUBST([XCB_CFLAGS]) | 66 AC_SUBST([XCB_CFLAGS]) |
| 66 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"]) | 70 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"]) |
| 67 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"]) | 71 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"]) |
| 68 AM_CONDITIONAL([BUILD_LINUX], [test "x$build_linux" = "xyes"]) | 72 AM_CONDITIONAL([BUILD_LINUX], [test "x$build_linux" = "xyes"]) |
| 69 AM_CONDITIONAL([BUILD_LIBUTIL], [test "x$build_libutil" = "xyes"]) | 73 AM_CONDITIONAL([BUILD_LIBUTIL], [test "x$build_libutil" = "xyes"]) |
| 70 AM_CONDITIONAL([BUILD_LIBKVM], [test "x$build_kvm" = "xyes"]) | 74 AM_CONDITIONAL([BUILD_LIBKVM], [test "x$build_kvm" = "xyes"]) |
| 75 AM_CONDITIONAL([BUILD_BSD], [test "x$build_bsd" = "xyes"]) | |
| 71 | 76 |
| 72 AM_CONDITIONAL([BUILD_XCB], [test "x$build_x11" = "xyes"]) | 77 AM_CONDITIONAL([BUILD_XCB], [test "x$build_x11" = "xyes"]) |
| 73 | 78 |
| 74 AC_CONFIG_FILES([Makefile]) | 79 AC_CONFIG_FILES([Makefile]) |
| 75 AC_OUTPUT | 80 AC_OUTPUT |
