]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: make autogen.sh a little bit more generic
authorVincent Bernat <bernat@luffy.cx>
Thu, 20 Dec 2012 08:23:01 +0000 (09:23 +0100)
committerVincent Bernat <bernat@luffy.cx>
Thu, 20 Dec 2012 08:23:01 +0000 (09:23 +0100)
autogen.sh

index 32b793a1a547900c58d2a982ef2a224bcbfc72fb..e0f633e43b01fc165c8d404666c564323be18201 100755 (executable)
@@ -13,14 +13,16 @@ libtoolize --copy --force
 echo "autogen.sh: reconfigure with autoreconf"
 autoreconf -vif -I m4 || {
     echo "autogen.sh: autoreconf has failed ($?), let's do it manually"
-    for dir in . libevent; do
+    for dir in . *; do
+        [ -d "$dir" ] || continue
+        [ -f "$dir"/configure.ac ] || [ -f "$dir"/configure.in ] || continue
        echo "autogen.sh: configure `basename \`readlink -f $dir\``"
-       (cd $dir && aclocal -I m4)
-       (cd $dir && libtoolize --automake --copy --force)
-       (cd $dir && aclocal -I m4)
-       (cd $dir && autoconf --force)
-       (cd $dir && autoheader)
-       (cd $dir && automake --add-missing --copy --force-missing)
+       (cd "$dir" && aclocal -I m4)
+       (cd "$dir" && libtoolize --automake --copy --force)
+       (cd "$dir" && aclocal -I m4)
+       (cd "$dir" && autoconf --force)
+       (cd "$dir" && autoheader)
+       (cd "$dir" && automake --add-missing --copy --force-missing)
     done
 }