Automatic date update in version.in
[deliverable/binutils-gdb.git] / config / jobserver.m4
CommitLineData
d546b610
L
1dnl GNU_MAKE_JOBSERVER
2dnl
3dnl Implement a workaround for GNU mak jobserver by adding the '+' to the
4dnl recipe line in Makefiles generated by automake.
5dnl
6AC_DEFUN([GNU_MAKE_JOBSERVER],[dnl
7m4_pattern_allow(AM_V_CCLD)
8touch config.status.tmp
9dnl Must keep the same timestamps on config.status and Makefile.
10if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
11 sed '/as_fn_exit 0/i \
12sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
13touch --reference=Makefile Makefile.tmp \
14mv Makefile.tmp Makefile \
15' config.status > config.status.tmp
16 touch --reference=config.status config.status.tmp
17 mv config.status.tmp config.status
18 chmod +x config.status
19 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
20 touch --reference=Makefile Makefile.tmp
21 mv Makefile.tmp Makefile
22else
23 rm -f config.status.tmp
24fi])
This page took 0.047514 seconds and 4 git commands to generate.