From: Roy Marples Date: Mon, 22 Sep 2014 13:57:58 +0000 (+0000) Subject: Fix configure errors without pkg-config installed. X-Git-Tag: v6.4.6~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be111d4b7179f89cce2530bbc5b802ab873726a9;p=thirdparty%2Fdhcpcd.git Fix configure errors without pkg-config installed. --- diff --git a/configure b/configure index 64092211..294f49a0 100755 --- a/configure +++ b/configure @@ -971,8 +971,10 @@ fi if [ "$DEV" != no -a "$UDEV" != no ]; then printf "Checking for libudev ... " - LIBUDEV_CFLAGS=$(pkg-config --cflags libudev 2>&3) - LIBUDEV_LIBS=$(pkg-config --libs libudev 2>&3) + if type pkg-config >/dev/null 2>&1; then + LIBUDEV_CFLAGS=$(pkg-config --cflags libudev 2>&3) + LIBUDEV_LIBS=$(pkg-config --libs libudev 2>&3) + fi fi if [ "$DEV" != no -a "$UDEV" != no -a -n "$LIBUDEV_LIBS" ]; then echo "yes"