]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(_AC_INIT_PREPARE, _AC_ARG_VAR_VALIDATE):
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 3 Jan 2005 21:54:43 +0000 (21:54 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 3 Jan 2005 21:54:43 +0000 (21:54 +0000)
Workarounds for documented `case' limitations.

lib/autoconf/general.m4

index 3b29da06b604ff8f6852b51ce66b7163b8e3d17e..46f333ff9ebbe36c468667f618a7915d3930f0e3 100644 (file)
@@ -1,7 +1,7 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Parameterized macros.
 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004 Free Software Foundation, Inc.
+# 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -1109,7 +1109,7 @@ do
       continue ;;
 dnl If you change this globbing pattern, test it on an old shell --
 dnl it's sensitive.  Putting any kind of quote in it causes syntax errors.
-  [  *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)]
+  [  *" "*|*"  "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)]
       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
     esac
     case $ac_pass in
@@ -1414,7 +1414,7 @@ for ac_var in `(set) 2>&1 |
     case $ac_new_val in
 dnl If you change this globbing pattern, test it on an old shell --
 dnl it's sensitive.  Putting any kind of quote in it causes syntax errors.
-[    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)]
+[    *" "*|*"  "*|*[\\\[\~\#\$\^\&\*\(\)\{\}\|\;\<\>\?\"\']*|*\]*)]
       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
     *) ac_arg=$ac_var=$ac_new_val ;;
     esac