jtag: linuxgpiod: drop extra parenthesis
[openocd.git] / config_subdir.m4
blob2be590e44a8b2b71e197adebb9cf66172d173b20
1 dnl AC_CONFIG_SUBDIRS does not allow configure options to be passed
2 dnl to subdirs, this function allows that by creating a configure.gnu
3 dnl script that prepends configure options and then calls the real
4 dnl configure script
5 AC_DEFUN([AX_CONFIG_SUBDIR_OPTION],
7 AC_CONFIG_SUBDIRS([$1])
9 m4_ifblank([$2], [rm -f $srcdir/$1/configure.gnu],
10 [echo -e '#!/bin/sh\nexec "`dirname "'\$'0"`/configure" '"$2"' "'\$'@"' > "$srcdir/$1/configure.gnu"