avahi: add dependency to host-autoconf
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Thu, 4 Dec 2008 16:13:08 +0000 (16:13 -0000)
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Thu, 4 Dec 2008 16:13:08 +0000 (16:13 -0000)
Avahi uses autoconf during ./configure, make sure it is available and used
before building avahi.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
package/avahi/avahi.mk

index 32d266a5733b27d60e80d292ae8e15e08b23b067..0746a047a9d1d0bd0a11db97210b5ac79ea21e35 100644 (file)
@@ -53,7 +53,7 @@ $(AVAHI_DIR)/.unpacked: $(DL_DIR)/$(AVAHI_SOURCE)
        touch $@
 
 $(AVAHI_DIR)/.configured: $(AVAHI_DIR)/.unpacked $(AVAHI_EXTRA_DEPS)
-       (cd $(AVAHI_DIR) && rm -rf config.cache && autoconf)
+       (cd $(AVAHI_DIR) && rm -rf config.cache && PATH=$(TARGET_PATH) autoconf)
        (cd $(AVAHI_DIR) && \
                $(TARGET_CONFIGURE_OPTS) \
                $(TARGET_CONFIGURE_ARGS) \
@@ -180,7 +180,7 @@ endif
                 $(TARGET_DIR)/usr/sbin/avahi-daemon
        $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $@
 
-avahi: uclibc libdaemon $(if $(BR2_ENABLE_LOCALE),gettext libintl) $(AVAHI_TARGETS)
+avahi: host-autoconf uclibc libdaemon $(if $(BR2_ENABLE_LOCALE),gettext libintl) $(AVAHI_TARGETS)
 
 avahi-clean:
        -$(MAKE) -C $(AVAHI_DIR) distclean