diff options
author | Tom Tromey <tromey@redhat.com> | 1996-11-22 06:25:29 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 1996-11-22 06:25:29 +0000 |
commit | b67f2a261bd05bf1effd863360de354016e0d4dd (patch) | |
tree | 9b6bd449a88116e5d36f543b544f1b9475dfe3b1 /m4/header.m4 | |
parent | 41018bc35c7d9fc5dd762b6709423e00fb4184cc (diff) | |
download | automake-b67f2a261bd05bf1effd863360de354016e0d4dd.tar.gz |
Wrote AM_CONFIG_HEADER
Diffstat (limited to 'm4/header.m4')
-rw-r--r-- | m4/header.m4 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/header.m4 b/m4/header.m4 new file mode 100644 index 000000000..0477b3a6c --- /dev/null +++ b/m4/header.m4 @@ -0,0 +1,12 @@ +# Like AC_CONFIG_HEADER, but automatically create stamp file. + +AC_DEFUN(AM_CONFIG_HEADER, +[AC_PREREQ([2.11.2]) +AC_CONFIG_HEADER($1) +dnl When config.status generates a header, we must update the stamp-h file. +dnl This file resides in the same directory as the config header +dnl that is generated. We must strip everything past the first ":", +dnl and everything past the last "/". +changequote(<<,>>) +AC_OUTPUT_COMMANDS(<<test -z "<<$>>CONFIG_HEADER" || echo timestamp > patsubst($1, <<^\([^:]*/\)?.*>>, <<\1>>)>>) +changequote([,])]) |