]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
autoreconf: minor simplifying refactoring
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 21 Sep 2012 07:56:06 +0000 (09:56 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 21 Sep 2012 19:42:19 +0000 (21:42 +0200)
* bin/autoreconf.in (run_aclocal): After the previous commit, this has
become just a useless wrapper around xsystem("$aclocal .."), so get rid
of it, and inline its expansion in the two places where it was used ...
(autoreconf_current_directory): ... in here.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
bin/autoreconf.in

index d395639da3c9f7710ac960a3e5f16a1384490b75..0db8dc63f1d883dd11b9037fed65744443a77d19 100644 (file)
@@ -247,16 +247,6 @@ sub parse_args ()
 }
 
 
-# &run_aclocal ($ACLOCAL, $FLAGS)
-# -------------------------------
-# Update aclocal.m4 as lazily as possible.
-sub run_aclocal ($$)
-{
-  my ($aclocal, $flags) = @_;
-
-  xsystem ("$aclocal $flags");
-}
-
 # &autoreconf_current_directory
 # -----------------------------
 sub autoreconf_current_directory ()
@@ -377,7 +367,7 @@ sub autoreconf_current_directory ()
       # fall.
       sleep 1;
 
-      run_aclocal ($aclocal, $aclocal_flags);
+      xsystem ("$aclocal $aclocal_flags");
     }
 
   # We might have to rerun aclocal if Libtool (or others) imports new
@@ -511,7 +501,7 @@ sub autoreconf_current_directory ()
        }
       else
        {
-         run_aclocal ($aclocal, $aclocal_flags);
+         xsystem ("$aclocal $aclocal_flags");
        }
     }