diff options
| author | Roy Marples <roy@marples.name> | 2014-09-22 13:57:58 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2014-09-22 13:57:58 +0000 |
| commit | be111d4b7179f89cce2530bbc5b802ab873726a9 (patch) | |
| tree | c7bf34a7fda9dffe21f43d0a344a61d3f38f3c95 /configure | |
| parent | 6c666347cd5f9e01fd387a724c4c7278ba2b91a0 (diff) | |
| download | dhcpcd-be111d4b7179f89cce2530bbc5b802ab873726a9.tar.xz | |
Fix configure errors without pkg-config installed.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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" |
