]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: don't let autoreconf rely on AC_CONFIG_SUBDIRS macro
authorVincent Bernat <vincent@bernat.im>
Sun, 16 Aug 2015 12:07:44 +0000 (14:07 +0200)
committerVincent Bernat <vincent@bernat.im>
Sun, 16 Aug 2015 12:07:44 +0000 (14:07 +0200)
We don't use it anymore.

autogen.sh

index bc63a810d8f2a4853c3bee61bf940f7549e9217c..95eec1db1873667775d19fb34657f8c56100eab4 100755 (executable)
@@ -62,14 +62,19 @@ EOF
 }
 
 
+SUBDIRS=""
+for dir in *; do
+    [ -d "$dir" ] || continue
+    [ -f "$dir"/configure.ac ] || [ -f "$dir"/configure.in ] || continue
+    SUBDIRS="$SUBDIRS $dir"
+done
+
 echo "autogen.sh: start libtoolize to get ltmain.sh"
 ${LIBTOOLIZE} --copy --force
 echo "autogen.sh: reconfigure with autoreconf"
-${AUTORECONF} -vif -I m4 || {
+${AUTORECONF} -vif --no-recursive -I m4 . $SUBDIRS || {
     echo "autogen.sh: autoreconf has failed ($?), let's do it manually"
-    for dir in $PWD *; do
-        [ -d "$dir" ] || continue
-        [ -f "$dir"/configure.ac ] || [ -f "$dir"/configure.in ] || continue
+    for dir in $PWD $SUBDIRS; do
        echo "autogen.sh: configure `basename $dir`"
        (cd "$dir" && ${ACLOCAL} -I m4 ${ACLOCAL_FLAGS})
         (cd "$dir" && check_pkg_config)