autoconf-commit
[Top][All Lists]
Advanced

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

[SCM] GNU Autoconf source repository branch, master, updated. v2.63-5-g9


From: Ralf Wildenhues
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.63-5-g93d9386
Date: Sat, 13 Sep 2008 13:20:08 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=93d9386de9c1320afed43f1337ac5ddb2d2dcbb4

The branch, master has been updated
       via  93d9386de9c1320afed43f1337ac5ddb2d2dcbb4 (commit)
       via  e55f6569675e4cbb4790bff4a545b1813be99cd2 (commit)
      from  07d484dea6d939d0e5dedf1c3fa5149ad2b46496 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 93d9386de9c1320afed43f1337ac5ddb2d2dcbb4
Author: Ralf Wildenhues <address@hidden>
Date:   Sat Sep 13 15:19:25 2008 +0200

    Improve AC_CONFIG_AUX_DIRS a bit.
    
    * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

commit e55f6569675e4cbb4790bff4a545b1813be99cd2
Author: Ralf Wildenhues <address@hidden>
Date:   Sat Sep 13 15:17:54 2008 +0200

    Mention Solaris sh ':' redirection bug.
    
    * doc/autoconf.texi (File Descriptors): Redirecting ':'
    in a loop causes bogus optimization with Solaris sh.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog               |    8 ++++++++
 doc/autoconf.texi       |   12 ++++++++++++
 lib/autoconf/general.m4 |   22 ++++++++--------------
 3 files changed, 28 insertions(+), 14 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 073efda..f01284d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-09-13  Ralf Wildenhues  <address@hidden>
+
+       * lib/autoconf/general.m4 (AC_CONFIG_AUX_DIRS): Improve a bit.
+
+       Mention Solaris sh ':' redirection bug.
+       * doc/autoconf.texi (File Descriptors): Redirecting ':'
+       in a loop causes bogus optimization with Solaris sh.
+
 2008-09-10  Eric Blake  <address@hidden>
 
        Avoid testsuite bug when autom4te cache is disabled by user.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 76bf746..2b1d165 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -13003,6 +13003,18 @@ In each case the expected result is of course 
@file{fullness} containing
 @samp{matter} and @file{void} being empty.  However, this bug is
 probably not of practical concern to modern platforms.
 
+Solaris 10 @command{sh} will try to optimize away a @command{:} command
+in a loop after the first iteration, even if it is redirected:
+
address@hidden
+$ @kbd{for i in 1 2 3 ; do : >x$i; done}
+$ @kbd{ls}
+x1
address@hidden example
+
address@hidden
+As a workaround, @command{echo} or @command{eval} can be used.
+
 Don't rely on file descriptors 0, 1, and 2 remaining closed in a
 subsidiary program.  If any of these descriptors is closed, the
 operating system may open an unspecified file for the descriptor in the
diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4
index c94e048..986b7af 100644
--- a/lib/autoconf/general.m4
+++ b/lib/autoconf/general.m4
@@ -1650,22 +1650,16 @@ AC_DEFUN([AC_CONFIG_AUX_DIR_DEFAULT],
 AC_DEFUN([AC_CONFIG_AUX_DIRS],
 [ac_aux_dir=
 for ac_dir in $1; do
-  if test -f "$ac_dir/install-sh"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/install-sh -c"
-    break
-  elif test -f "$ac_dir/install.sh"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/install.sh -c"
-    break
-  elif test -f "$ac_dir/shtool"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/shtool install -c"
-    break
-  fi
+  for ac_t in install-sh install.sh shtool; do
+    if test -f "$ac_dir/$ac_t"; then
+      ac_aux_dir=$ac_dir
+      ac_install_sh="$ac_aux_dir/$ac_t -c"
+      break 2
+    fi
+  done
 done
 if test -z "$ac_aux_dir"; then
-  AC_MSG_ERROR([cannot find install-sh or install.sh in $1])
+  AC_MSG_ERROR([cannot find install-sh, install.sh, or shtool in $1])
 fi
 
 # These three variables are undocumented and unsupported,


hooks/post-receive
--
GNU Autoconf source repository




reply via email to

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