1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

configure.ac: Drop unneeded AC_MSG_ERROR.

The default behaviour of PKG_CHECK_MODULES is to abort with an error
anyway, but it will also print a more usable error message and hints
for the user about how to use PKG_CONFIG_PATH and so on.
This commit is contained in:
Uwe Hermann 2013-11-14 22:01:08 +01:00
parent 5ef8a1ed7f
commit a3d4a56e15

View File

@ -85,8 +85,7 @@ case $target_os in
*linux*) *linux*)
# On Linux libudev is currently a hard requirement. # On Linux libudev is currently a hard requirement.
PKG_CHECK_MODULES([libudev], [libudev >= 0], PKG_CHECK_MODULES([libudev], [libudev >= 0],
[CFLAGS="$CFLAGS $libudev_CFLAGS"; LIBS="$LIBS $libudev_LIBS"], [CFLAGS="$CFLAGS $libudev_CFLAGS"; LIBS="$LIBS $libudev_LIBS"])
[AC_MSG_ERROR([libudev.h not found])])
;; ;;
*darwin*) *darwin*)
LDFLAGS="$LDFLAGS -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation" LDFLAGS="$LDFLAGS -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation"