build: serial-tests was added in automake v1.12

Commit a97685e added a check that tries to ascertain whether the
serial-tests option is supported by automake. It assumed that said
option was added in automake v1.11 but it turns out that's wrong, it
wasn't added until v1.12. Update the check.

Of course, none of this would have been necessary if the automake people
had simply added a macro that tells you if serial-tests is supported or
not.
This commit is contained in:
Ben Noordhuis 2013-08-08 22:03:18 +02:00
parent 6837e480fd
commit e4c1483b48

View File

@ -14,9 +14,9 @@
AC_PREREQ(2.57) AC_PREREQ(2.57)
AC_INIT([libuv], [0.11.5], [https://github.com/joyent/libuv/issues]) AC_INIT([libuv], [0.11.5], [https://github.com/joyent/libuv/issues])
# Use AM_SILENT_RULES as an ad-hoc version check to find out if it's safe # Use AM_PROG_AR as an ad-hoc version check to find out if it's safe
# to use the serial-tests directive. Both were added in automake v0.11. # to use the serial-tests directive. Both were added in automake v0.12.
AM_INIT_AUTOMAKE(m4_ifdef([AM_SILENT_RULES], AM_INIT_AUTOMAKE(m4_ifdef([AM_PROG_AR],
[-Wall -Werror foreign subdir-objects serial-tests], [-Wall -Werror foreign subdir-objects serial-tests],
[-Wall -Werror foreign subdir-objects])) [-Wall -Werror foreign subdir-objects]))
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])