summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@daemonic.se>2020-07-25 21:00:28 +0200
committerNiclas Zeising <zeising@daemonic.se>2020-08-14 17:50:56 +0200
commit7ce82709aa43e7a787dba95463e88662cb4688ce (patch)
tree7d8de4c6439aba264a0b4f1e19bf7ca4d64dbbdc /configure.ac
parentdb01b2d6062d4c28cd82a32f42e566d05480d06e (diff)
downloadlibevdev-7ce82709aa43e7a787dba95463e88662cb4688ce.tar.gz
Add FreeBSD compatible input.h and uinput.h
Add FreeBSD compatible input.h and uinput.h files. This is done by moving the linux files to include/linux/linux, adding the freebsd versions in include/linux/freebsd, and then changing include/linux/[u]input.h to pull in the right one depending on which OS we are compiling on. Make sure that the build infrastructure in meson.build and autoconf.ac/Makefile.am uses the correct files when building and as dependency for targets, and ensure that make-event-names.py get the correct files as arguments. A similar change has been done in libinput in 61f3e3854458c556a01fb05d7abb22733fd2b7c1 Signed-off-by: Niclas Zeising <zeising@daemonic.se>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a877d66..0269e95 100644
--- a/configure.ac
+++ b/configure.ac
@@ -61,6 +61,15 @@ if test "x$lt_cv_prog_gnu_ld" = "xyes"; then
fi
AC_SUBST([GNU_LD_FLAGS], $with_ldflags)
+case "${host_os}" in
+ freebsd*)
+AC_SUBST([OS], [freebsd])
+ ;;
+ *)
+AC_SUBST([OS], [linux])
+ ;;
+esac
+
AC_CHECK_LIB([m], [round])
PKG_PROG_PKG_CONFIG()