Skip to content

Commit

Permalink
trying to fix build for android devices
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0OZ committed Sep 20, 2023
1 parent a5284cf commit 375ce7a
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1153,14 +1153,20 @@ dnl ======================================================================

CLIENTLIBS=

# Add -levdev linker
AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[
#ifdef LINUX_SYSTEM
AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include <libevdev-1.0/libevdev/libevdev.h>]],
[[
]])],
[
AC_MSG_RESULT([yes])
CLIENTLIBS="$CLIENTLIBS -levdev"
],
[
AC_MSG_RESULT([no])
]
)


#endif
]], [])], [
CLIENTLIBS="${CLIENTLIBS} -levdev"
])

SAH_CHECK_LIB([m],[sin], [
AC_DEFINE([HAVE_LIBM],[1],[Define to 1 if you have the math library])
Expand Down

0 comments on commit 375ce7a

Please sign in to comment.