]> sourceware.org Git - automake.git/commitdiff
(AM_CONFIG_HEADER): Fix typo in last change:
authorJim Meyering <jim@meyering.net>
Sun, 6 Aug 2000 12:36:53 +0000 (12:36 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 6 Aug 2000 12:36:53 +0000 (12:36 +0000)
add missing closing bracket and closing parenthesis.
Don't quote the first argument to AC_OUTPUT_COMMANDS.
Backslash-escape the backquotes and `$' in `am_indx'-incrementing stmt.

m4/header.m4

index 3f455572c96f1cdd403ef909513c19fcada02017..c82b6a7ec2c09d17ed1e3e26ec31ff0bc7e1f8f7 100644 (file)
@@ -1,6 +1,6 @@
 # Like AC_CONFIG_HEADER, but automatically create stamp file.
 
-# serial 2
+# serial 3
 
 # When config.status generates a header, we must update the stamp-h file.
 # This file resides in the same directory as the config header
@@ -11,17 +11,18 @@ AC_PREREQ([2.12])
 
 AC_DEFUN([AM_CONFIG_HEADER],
 [AC_CONFIG_HEADER([$1])
-AC_OUTPUT_COMMANDS(
-[ifelse(patsubst([$1], [[^ ]], []),
-        [],
-        [test -z "$CONFIG_HEADERS" || echo timestamp >dnl
-         patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h])],
-[am_indx=1
-for am_file in $1; do
-  case " $CONFIG_HEADERS " in
-  *" $am_file "*)
-    echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
-    ;;
-  esac
-  am_indx=`expr "$am_indx" + 1`
-done])
+  AC_OUTPUT_COMMANDS(
+   ifelse(patsubst([$1], [[^ ]], []),
+         [],
+         [test -z "$CONFIG_HEADERS" || echo timestamp >dnl
+          patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),
+  [am_indx=1
+  for am_file in $1; do
+    case " $CONFIG_HEADERS " in
+    *" $am_file "*)
+      echo timestamp > `echo $am_file | sed 's%:.*%%;s%[^/]*$%%'`stamp-h$am_indx
+      ;;
+    esac
+    am_indx=\`expr \$am_indx + 1\`
+  done])
+])
This page took 0.187045 seconds and 5 git commands to generate.