From: Uwe Hermann Date: Thu, 14 Nov 2013 21:01:08 +0000 (+0100) Subject: configure.ac: Drop unneeded AC_MSG_ERROR. X-Git-Tag: libserialport-0.1.0~130 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=a3d4a56e1538be7353160061ee74e6d3a16d13da;hp=5ef8a1ed7fbd45aad65298d5a6c39056ed1a4fa3;p=libserialport.git 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. --- diff --git a/configure.ac b/configure.ac index b441e50..96c16d2 100644 --- a/configure.ac +++ b/configure.ac @@ -85,8 +85,7 @@ case $target_os in *linux*) # On Linux libudev is currently a hard requirement. PKG_CHECK_MODULES([libudev], [libudev >= 0], - [CFLAGS="$CFLAGS $libudev_CFLAGS"; LIBS="$LIBS $libudev_LIBS"], - [AC_MSG_ERROR([libudev.h not found])]) + [CFLAGS="$CFLAGS $libudev_CFLAGS"; LIBS="$LIBS $libudev_LIBS"]) ;; *darwin*) LDFLAGS="$LDFLAGS -Wl,-framework -Wl,IOKit -Wl,-framework -Wl,CoreFoundation"