Check for libudev as plain lib as well.

This commit is contained in:
Themaister 2014-06-05 14:21:17 +02:00
parent 736c4147e9
commit 88f10ae555
2 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,7 @@ endif
ifneq ($(findstring Linux,$(OS)),) ifneq ($(findstring Linux,$(OS)),)
LIBS += -lrt LIBS += -lrt
JOYCONFIG_LIBS += -lrt
OBJ += input/linuxraw_input.o input/linuxraw_joypad.o OBJ += input/linuxraw_input.o input/linuxraw_joypad.o
JOYCONFIG_OBJ += tools/linuxraw_joypad.o JOYCONFIG_OBJ += tools/linuxraw_joypad.o
endif endif

View File

@ -255,6 +255,10 @@ else
fi fi
check_pkgconf UDEV libudev check_pkgconf UDEV libudev
if [ "$HAVE_UDEV" = "no" ]; then
HAVE_UDEV=auto && check_lib UDEV "-ludev"
[ "$HAVE_UDEV" = "yes" ] && UDEV_LIBS=-ludev
fi
check_lib STRL -lc strlcpy check_lib STRL -lc strlcpy
check_lib STRCASESTR -lc strcasestr check_lib STRCASESTR -lc strcasestr