comparison dep/animone/configure.ac @ 337:a7d4e5107531

dep/animone: REFACTOR ALL THE THINGS 1: animone now has its own syntax divergent from anisthesia, making different platforms actually have their own sections 2: process names in animone are now called `comm' (this will probably break things). this is what its called in bsd/linux so I'm just going to use it everywhere 3: the X11 code now checks for the existence of a UTF-8 window title and passes it if available 4: ANYTHING THATS NOT LINUX IS 100% UNTESTED AND CAN AND WILL BREAK! I still actually need to test the bsd code. to be honest I'm probably going to move all of the bsds into separate files because they're all essentially different operating systems at this point
author Paper <paper@paper.us.eu.org>
date Wed, 19 Jun 2024 12:51:15 -0400
parents a4257370de16
children f63dfa309380
comparison
equal deleted inserted replaced
336:d260549151d6 337:a7d4e5107531
1 AC_INIT([animone], [1.0.0]) 1 AC_INIT([animone], [2.0.0])
2 2
3 AC_CANONICAL_HOST 3 AC_CANONICAL_HOST
4 4
5 AC_CONFIG_SRCDIR([src/animone.cc]) 5 AC_CONFIG_SRCDIR([src/animone.cc])
6 AC_CONFIG_AUX_DIR([build-aux]) 6 AC_CONFIG_AUX_DIR([build-aux])
27 cygwin*|mingw*) 27 cygwin*|mingw*)
28 # Windows 28 # Windows
29 build_windows=yes 29 build_windows=yes
30 AC_CHECK_TOOL([WINDRES], [windres]) 30 AC_CHECK_TOOL([WINDRES], [windres])
31 AC_SUBST(WINDRES) 31 AC_SUBST(WINDRES)
32 AC_DEFINE([WIN32]) 32 AC_DEFINE([USE_WIN32])
33 ;; 33 ;;
34 darwin*) 34 darwin*)
35 # Mac OS X 35 # Mac OS X
36 build_osx=yes 36 build_osx=yes
37 AC_DEFINE([MACOSX]) 37 AC_DEFINE([USE_MACOSX])
38 ;; 38 ;;
39 linux*) 39 linux*)
40 build_linux=yes 40 build_linux=yes
41 AC_DEFINE([LINUX]) 41 AC_DEFINE([USE_LINUX])
42 ;; 42 ;;
43 *) 43 *)
44 dnl BSDs 44 dnl BSDs
45 AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no]) 45 AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no])
46 AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no]) 46 AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no])
47 47
48 if test "x$build_kvm" = "xyes"; then 48 if test "x$build_kvm" = "xyes"; then
49 AC_DEFINE([LIBKVM]) 49 AC_DEFINE([USE_LIBKVM])
50 AC_DEFINE([BSD]) 50 AC_DEFINE([BSD])
51 elif test "x$build_libutil" = "xyes"; then 51 elif test "x$build_libutil" = "xyes"; then
52 AC_DEFINE([LIBUTIL]) 52 AC_DEFINE([USE_LIBUTIL])
53 AC_DEFINE([BSD]) 53 AC_DEFINE([BSD])
54 fi 54 fi
55 ;; 55 ;;
56 esac 56 esac
57 57
58 if test "x$build_osx" != "xyes" && test "x$build_windows" != "xyes"; then 58 if test "x$build_osx" != "xyes" && test "x$build_windows" != "xyes"; then
59 PKG_CHECK_MODULES(XCB, [xcb xcb-res], [build_x11=yes], [build_x11=no]) 59 PKG_CHECK_MODULES(XCB, [xcb xcb-res], [build_x11=yes], [build_x11=no])
60 if test "x$build_x11" = "xyes"; then 60 if test "x$build_x11" = "xyes"; then
61 AC_DEFINE([X11]) 61 AC_DEFINE([USE_X11])
62 AC_SUBST([XCB_LIBS]) 62 AC_SUBST([XCB_LIBS])
63 AC_SUBST([XCB_CFLAGS]) 63 AC_SUBST([XCB_CFLAGS])
64 fi 64 fi
65 fi 65 fi
66 66