]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 5 Apr 2006 20:55:14 +0000 (20:55 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 5 Apr 2006 20:55:14 +0000 (20:55 +0000)
lib/autoconf/specific.m4, lib/autoconf/status.m4,
lib/autoconf/types.m4, lib/autotest/general.m4,
tests/mktests.sh, tests/torture.at: White space cleanup:
remove some SPACE before TAB, or add quoting ('' or @&t@).

ChangeLog
TODO
config/Makefile.am
lib/autoconf/c.m4
lib/autoconf/specific.m4
lib/autoconf/status.m4
lib/autoconf/types.m4
lib/autotest/general.m4
lib/freeze.mk
tests/mktests.sh
tests/torture.at

index ff97dc92a81a075e2250493942fd3cf22faf0a6d..996c6f8cfe80b71c7c11058d56495bd849049839 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2006-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * TODO, config/Makefile.am, lib/freeze.mk, lib/autoconf/c.m4,
+       lib/autoconf/specific.m4, lib/autoconf/status.m4,
+       lib/autoconf/types.m4, lib/autotest/general.m4,
+       tests/mktests.sh, tests/torture.at: White space cleanup:
+       remove some SPACE before TAB, or add quoting ('' or @&t@).
+
        * NEWS, TODO, bin/autoreconf.in: `filesystem' -> `file system'.
 
        * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.
diff --git a/TODO b/TODO
index ae6d6ab276db602d8bc135375a1a7ddf696fa2e5..91df2080e0e55a4375d4f2b771312bc662b9db58 100644 (file)
--- a/TODO
+++ b/TODO
@@ -78,11 +78,11 @@ Harlan:
    I'm starting to use "modules" at more places to handle software
    installation, and it would be helpful to set general things like:
 
-       prefix=/opt/pkg/@PACKAGE@/@VERSION@
+       prefix=/opt/pkg/@PACKAGE@/@VERSION@
 
    once at a global level, and then, for example, have things like:
 
-       --with-etcdir=$prefix/etc
+       --with-etcdir=$prefix/etc
 
    stuffed "above" the various versions of SSH so I wouldn't have to hunt for
    these things every time it was time to recompile a new version of a
@@ -188,9 +188,9 @@ Hi Robert,
 > documentation, the entry for AC_PATH_XTRA, in particular.
 
 > The documentation says that AC_PATH_XTRA
->      ... adds the C compiler flags that X needs to output variable
->      `X_CFLAGS', and the X linker flags to `X_LIBS'.  If X is not
->      available, adds `-DX_DISPLAY_MISSING' to `X_CFLAGS'.
+>      ... adds the C compiler flags that X needs to output variable
+>      `X_CFLAGS', and the X linker flags to `X_LIBS'.  If X is not
+>      available, adds `-DX_DISPLAY_MISSING' to `X_CFLAGS'.
 
 > It doesn't seem to add -DX_DISPLAY_MISSING to X_CFLAGS.  X_DISPLAY_MISSING
 > ends up defined in config.h, instead.
index a29684371b1a04240aa5fede29c525f3fb972195..ad985977df4bedd233bbd726aa8e3cd525a3672c 100644 (file)
@@ -25,7 +25,7 @@ MAINTAINERCLEANFILES = $(GENERIC_TOOLS)
 SPECIFIC_MACROS =                              \
 m4.m4
 
-GENERIC_TOOLS =                                \
+GENERIC_TOOLS =                                        \
 config.guess                                   \
 config.sub                                     \
 emacs-comp                                     \
index 962baeef469cd1708eed08875843126ca8c6c0bf..425f695f421552d7d75b8110a6a903e6311e6e1b 100644 (file)
@@ -1018,7 +1018,7 @@ char **argv;]],
 [[return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];]],
 dnl Don't try gcc -ansi; that turns off useful extensions and
 dnl breaks some systems' header files.
-dnl AIX circa 2003     -qlanglvl=extc89
+dnl AIX circa 2003     -qlanglvl=extc89
 dnl old AIX            -qlanglvl=ansi
 dnl Ultrix, OSF/1, Tru64       -std
 dnl HP-UX 10.20 and later      -Ae
index de949047e87fdde580117d0fc1549119949c1dd1..650c0d603f310bfcf649d6d7812bc98b96cd5e76 100644 (file)
@@ -132,10 +132,10 @@ m4_define([_AC_SYS_LARGEFILE_MACRO_VALUE],
 [while :; do
   $3=no
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$5], [$6])],
-                   [break])
+                   [break])
   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([@%:@define $1 $2
 $5], [$6])],
-                   [$3=$2; break])
+                   [$3=$2; break])
   break
 done])
 if test "$$3" != no; then
@@ -162,12 +162,12 @@ if test "$enable_largefile" != no; then
      if test "$GCC" != yes; then
        ac_save_CC=$CC
        while :; do
-        # IRIX 6.2 and later do not support large files by default,
-        # so use the C compiler's -n32 option if that helps.
+        # IRIX 6.2 and later do not support large files by default,
+        # so use the C compiler's -n32 option if that helps.
         AC_LANG_CONFTEST([AC_LANG_PROGRAM([_AC_SYS_LARGEFILE_TEST_INCLUDES])])
-        AC_COMPILE_IFELSE([], [break])
-        CC="$CC -n32"
-        AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break])
+        AC_COMPILE_IFELSE([], [break])
+        CC="$CC -n32"
+        AC_COMPILE_IFELSE([], [ac_cv_sys_largefile_CC=' -n32'; break])
         break
        done
        CC=$ac_save_CC
index b29b94fa6c14fa4ae926c5ebb55b726b6d60c701..01f2270000b22588224864fda104450ca4e7c570 100644 (file)
@@ -363,7 +363,7 @@ _ACEOF
 m4_define([_AC_SED_CMD_NUM], m4_eval(_AC_SED_CMD_NUM + 3))dnl
 m4_define([_AC_SED_FRAG],
 m4_defn([_AC_SED_FRAG])dnl
-[/^[   ]*@]_AC_Var[@[  ]*$/{
+[/^[ @&t@      ]*@]_AC_Var[@[ @&t@     ]*$/{
 r $]_AC_Var[
 d
 }
@@ -574,7 +574,7 @@ m4_define([_AC_OUTPUT_HEADER],
   #
 dnl Quote, for the `[ ]' and `define'.
 [  ac_dA='s,^\([        ]*#[    ]*\)[^  ]*\([   ][      ]*'
-  ac_dB='\)[   (].*$,\1define\2'
+  ac_dB='\)[ ''        (].*$,\1define\2'
   ac_dC=' '
   ac_dD=' ,']
 dnl ac_dD used to contain `;t' at the end, but that was both slow and incorrect.
@@ -606,14 +606,14 @@ uniq confdefs.h |
   sed -n '
        t rset
        :rset
-       s/^[    ]*#[    ]*define[       ][       ]*//
+       s/^[ '' ]*#[ '' ]*define[ ''    ][       ]*//
        t ok
        d
        :ok
        s/[\\&,]/\\&/g
        s/[\\$`]/\\&/g
-       s/^\('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
-       s/^\('"$ac_word_re"'\)[         ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
+       s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ''  ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
+       s/^\('"$ac_word_re"'\)[ ''      ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
   ' >>conftest.defines
 ]
 # Remove the space that was appended to ease matching.
@@ -641,8 +641,8 @@ do
   dnl Quote, for the `[ ]' and `define'.
   echo ['    # First, check the format of the line:
     cat >"$tmp/defines.sed" <<CEOF
-/^[     ]*#[    ]*undef[        ][      ]*$ac_word_regexp[     ]*$/b def
-/^[     ]*#[    ]*define[       ][      ]*$ac_word_regexp[(    ]/b def
+/^[     ]*#[    ]*undef[        ][      ]*$ac_word_regexp[ @&t@        ]*$/b def
+/^[     ]*#[    ]*define[       ][      ]*$ac_word_regexp[( @&t@       ]/b def
 b
 :def'] >>$CONFIG_STATUS
   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
index 0f6f64fa3eb4d9fc5b76f7de862ee8790e38341c..9080a887befa42809b206c74530c7376d9740072 100644 (file)
 # The most obvious way to check for a TYPE is just to compile a variable
 # definition:
 #
-#        TYPE my_var;
+#        TYPE my_var;
 #
 # Unfortunately this does not work for const qualified types in C++,
 # where you need an initializer.  So you think of
 #
-#        TYPE my_var = (TYPE) 0;
+#        TYPE my_var = (TYPE) 0;
 #
 # Unfortunately, again, this is not valid for some C++ classes.
 #
 # Then you look for another scheme.  For instance you think of declaring
 # a function which uses a parameter of type TYPE:
 #
-#        int foo (TYPE param);
+#        int foo (TYPE param);
 #
 # but of course you soon realize this does not make it with K&R
 # compilers.  And by no ways you want to
 #
-#        int foo (param)
-#          TYPE param
-#        { ; }
+#        int foo (param)
+#          TYPE param
+#        { ; }
 #
 # since this time it's C++ who is not happy.
 #
 # Don't even think of the return type of a function, since K&R cries
 # there too.  So you start thinking of declaring a *pointer* to this TYPE:
 #
-#        TYPE *p;
+#        TYPE *p;
 #
 # but you know fairly well that this is legal in C for aggregates which
 # are unknown (TYPE = struct does-not-exist).
 # Then you think of using sizeof to make sure the TYPE is really
 # defined:
 #
-#        sizeof (TYPE);
+#        sizeof (TYPE);
 #
 # But this succeeds if TYPE is a variable: you get the size of the
 # variable's type!!!
 #
 # Also note that we use
 #
-#        if (sizeof (TYPE))
+#        if (sizeof (TYPE))
 #
 # to `read' sizeof (to avoid warnings), while not depending on its type
 # (not necessarily size_t etc.).  Equally, instead of defining an unused
index 19246100d11f775a96a3bf521fcb255f01c6fd9f..10789ee11c1f6d1fca5577a09d937b3c6b4a7c72 100644 (file)
@@ -390,16 +390,16 @@ dnl Process *=* last to allow for user specified --option=* type arguments.
 m4_divert_push([PARSE_ARGS_END])dnl
 
     *=*)
-       at_envvar=`expr "x$at_option" : 'x\([[^=]]*\)='`
-       # Reject names that are not valid shell variable names.
-       expr "x$at_envvar" : "[.*[^_$as_cr_alnum]]" >/dev/null &&
-         AS_ERROR([invalid variable name: $at_envvar])
-       at_value=`echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
-       eval "$at_envvar='$at_value'"
-       export $at_envvar
+       at_envvar=`expr "x$at_option" : 'x\([[^=]]*\)='`
+       # Reject names that are not valid shell variable names.
+       expr "x$at_envvar" : "[.*[^_$as_cr_alnum]]" >/dev/null &&
+         AS_ERROR([invalid variable name: $at_envvar])
+       at_value=`echo "$at_optarg" | sed "s/'/'\\\\\\\\''/g"`
+       eval "$at_envvar='$at_value'"
+       export $at_envvar
        # Propagate to debug scripts.
-       at_debug_args="$at_debug_args $at_option"
-       ;;
+       at_debug_args="$at_debug_args $at_option"
+       ;;
 
      *) echo "$as_me: invalid option: $at_option" >&2
        echo "Try \`$[0] --help' for more information." >&2
@@ -745,7 +745,7 @@ m4_divert_push([TESTS_END])[]dnl
        run. This means that test suite is improperly designed.  Please
        report this failure to <AT_PACKAGE_BUGREPORT>.
 _ATEOF
-       echo "$at_setup_line" >"$at_check_line_file"
+       echo "$at_setup_line" >"$at_check_line_file"
       fi
       at_group_count=`expr 1 + $at_group_count`
       $at_verbose $ECHO_N "$at_group. $at_setup_line: $ECHO_C"
index db6025e038f5c6dac65e9cb3c284f01ca08a3dff..c2269df210e1d16d68472bc3b34a4e93ffd1eba2 100644 (file)
@@ -70,7 +70,7 @@ m4sh_m4f_dependencies =                               \
        $(m4sugar_m4f_dependencies)             \
        $(src_libdir)/m4sugar/m4sh.m4
 
-autotest_m4f_dependencies =                    \
+autotest_m4f_dependencies =                    \
        $(m4sh_m4f_dependencies)                \
        $(src_libdir)/autotest/autotest.m4      \
        $(src_libdir)/autotest/general.m4
index be7227d7533366a729b50ca4e917f6e5873976ad..ac024cd633da51128b6e4881a07c37d0bcab6543 100755 (executable)
@@ -190,7 +190,7 @@ do
   # Get the list of macros which are defined in Autoconf level.
   # Get rid of the macros we are not interested in.
   sed -n -e 's/^AC_DEFUN(\[*\([a-zA-Z0-9_]*\).*$/\1/p' \
-        -e 's/^AC_DEFUN_ONCE(\[*\([a-zA-Z0-9_]*\).*$/\1/p' $file |
+        -e 's/^AC_DEFUN_ONCE(\[*\([a-zA-Z0-9_]*\).*$/\1/p' $file |
     awk "$ac_exclude_script" |
     sort -u >acdefuns
 
index 2ee9ad712b4d896223e82750b75a0f4ffd8ed324..bd12782d6bc28c160403932a86722e6ac6f94fb5 100644 (file)
@@ -338,7 +338,7 @@ AT_DATA([config.hin],
 [[#define foo   0
 #  define bar bar
 #  define baz   "Archimedes was sinking in his baz"
-#  define fubar                                tutu
+#  define fubar                                tutu
 #define a B
 #define aa BB
 #define aaa BBB