From: Vincent Bernat Date: Mon, 28 Dec 2015 20:27:41 +0000 (+0100) Subject: build: don't check for pkg-config several times X-Git-Tag: 0.8.0~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=448796a1fcfbc361b6469c0a7b2d8559cc015671;p=thirdparty%2Flldpd.git build: don't check for pkg-config several times Just check the first time. --- diff --git a/autogen.sh b/autogen.sh index 7b1ce997..f58af72f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -72,7 +72,9 @@ ${AUTORECONF} -vif -I m4 || { [ -f "$dir"/configure.ac ] || [ -f "$dir"/configure.in ] || continue echo "autogen.sh: configure `basename $dir`" (cd "$dir" && ${ACLOCAL} -I m4 ${ACLOCAL_FLAGS}) - (cd "$dir" && check_pkg_config) + if [ x"$dir" = x"$PWD" ]; then + (cd "$dir" && check_pkg_config) + fi (cd "$dir" && ${LIBTOOLIZE} --automake --copy --force) (cd "$dir" && ${ACLOCAL} -I m4 ${ACLOCAL_FLAGS}) (cd "$dir" && ${AUTOCONF} --force)