Mercurial > minori
comparison dep/animone/configure.ac @ 338:f63dfa309380
dep/animone: separate *BSD into separate files
they are wholly different operating systems with very different
kernels on the inside
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 19 Jun 2024 13:06:10 -0400 |
parents | a7d4e5107531 |
children | adb79bdde329 |
comparison
equal
deleted
inserted
replaced
337:a7d4e5107531 | 338:f63dfa309380 |
---|---|
40 build_linux=yes | 40 build_linux=yes |
41 AC_DEFINE([USE_LINUX]) | 41 AC_DEFINE([USE_LINUX]) |
42 ;; | 42 ;; |
43 *) | 43 *) |
44 dnl BSDs | 44 dnl BSDs |
45 saved_LIBS="$LIBS" | |
45 AC_CHECK_LIB([util], [kinfo_getfile], [build_libutil=yes], [build_libutil=no]) | 46 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]) | 47 AC_CHECK_LIB([kvm], [kvm_getfiles], [build_kvm=yes], [build_kvm=no]) |
48 LIBS="$saved_LIBS" | |
47 | 49 |
48 if test "x$build_kvm" = "xyes"; then | 50 if test "x$build_kvm" = "xyes"; then |
49 AC_DEFINE([USE_LIBKVM]) | 51 AC_DEFINE([USE_OPENBSD]) |
50 AC_DEFINE([BSD]) | |
51 elif test "x$build_libutil" = "xyes"; then | 52 elif test "x$build_libutil" = "xyes"; then |
52 AC_DEFINE([USE_LIBUTIL]) | 53 AC_DEFINE([USE_FREEBSD]) |
53 AC_DEFINE([BSD]) | |
54 fi | 54 fi |
55 ;; | 55 ;; |
56 esac | 56 esac |
57 | 57 |
58 dnl todo: configure flag for this | |
58 if test "x$build_osx" != "xyes" && test "x$build_windows" != "xyes"; then | 59 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]) | 60 PKG_CHECK_MODULES(XCB, [xcb xcb-res], [build_x11=yes], [build_x11=no]) |
60 if test "x$build_x11" = "xyes"; then | 61 if test "x$build_x11" = "xyes"; then |
61 AC_DEFINE([USE_X11]) | 62 AC_DEFINE([USE_X11]) |
62 AC_SUBST([XCB_LIBS]) | 63 AC_SUBST([XCB_LIBS]) |
65 fi | 66 fi |
66 | 67 |
67 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"]) | 68 AM_CONDITIONAL([BUILD_WIN], [test "x$build_windows" = "xyes"]) |
68 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"]) | 69 AM_CONDITIONAL([BUILD_OSX], [test "x$build_osx" = "xyes"]) |
69 AM_CONDITIONAL([BUILD_LINUX], [test "x$build_linux" = "xyes"]) | 70 AM_CONDITIONAL([BUILD_LINUX], [test "x$build_linux" = "xyes"]) |
70 AM_CONDITIONAL([BUILD_LIBUTIL], [test "x$build_libutil" = "xyes"]) | 71 AM_CONDITIONAL([BUILD_FREEBSD], [test "x$build_libutil" = "xyes"]) |
71 AM_CONDITIONAL([BUILD_LIBKVM], [test "x$build_kvm" = "xyes"]) | 72 AM_CONDITIONAL([BUILD_OPENBSD], [test "x$build_kvm" = "xyes"]) |
72 AM_CONDITIONAL([BUILD_BSD], [test "x$build_bsd" = "xyes"]) | 73 AM_CONDITIONAL([BUILD_BSD], [test "x$build_bsd" = "xyes"]) |
73 | 74 |
74 AM_CONDITIONAL([BUILD_XCB], [test "x$build_x11" = "xyes"]) | 75 AM_CONDITIONAL([BUILD_XCB], [test "x$build_x11" = "xyes"]) |
75 | 76 |
76 AC_CONFIG_FILES([Makefile]) | 77 AC_CONFIG_FILES([Makefile]) |