autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AC_LIBOBJ minor optimization


From: Eric Blake
Subject: AC_LIBOBJ minor optimization
Date: Mon, 20 Feb 2006 20:36:53 +0000

Are minor optimizations such as this worthwhile?  It leads to
smaller generated configures, and allows the shell to perform
fewer pattern matches during operation.

2006-02-20  Eric Blake  <address@hidden>

        * lib/autoconf/general.m4 (_AC_LIBOBJ): Minor optimization.

Index: lib/autoconf/general.m4
===================================================================
RCS file: /sources/autoconf/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.889
diff -u -p -r1.889 general.m4
--- lib/autoconf/general.m4     15 Feb 2006 22:07:12 -0000      1.889
+++ lib/autoconf/general.m4     20 Feb 2006 20:28:14 -0000
@@ -2497,10 +2497,7 @@ m4_define([_AC_LIBOBJ],
 [AS_LITERAL_IF([$1],
               [AC_LIBSOURCE([$1.c])],
               [$2])dnl
-case $LIB@&address@hidden in
-    "$1.$ac_objext"   | \
-  *" $1.$ac_objext"   | \
-    "$1.$ac_objext "* | \
+case " $LIB@&address@hidden " in
   *" $1.$ac_objext "* ) ;;
   *) AC_SUBST([LIB@&address@hidden, ["$LIB@&address@hidden $1.$ac_objext"]) ;;
 esac

--
Eric Blake




reply via email to

[Prev in Thread] Current Thread [Next in Thread]