1 dnl /usr/share/aclocal/guidod-cvs/ax_configure_args.m4
2 dnl @synopsis AX_CONFIGURE_ARGS
4 dnl Helper macro for AX_ENABLE_BUILDDIR and AX_ENABLE_BUILDDIR_UNAME
6 dnl The traditional way of starting a subdir-configure is running the
7 dnl script with ${1+"$@"} but since autoconf 2.60 this is broken.
8 dnl Instead we have to rely on eval'ing $ac_configure_args however
9 dnl some old autoconf versions do not provide that. To ensure maximum
10 dnl portability of autoconf extension macros this helper can be
11 dnl AC_REQUIRE'd so that $ac_configure_args will alsways be present.
13 dnl Sadly, the traditional "exec $SHELL" of the enable_builddir macros
14 dnl is spoiled now and must be replaced by eval + exit $?
17 dnl AC_DEFUN([AX_ENABLE_SUBDIR],[dnl
18 dnl AC_REQUIRE([AX_CONFIGURE_ARGS])dnl
19 dnl eval $SHELL $ac_configure_args || exit $?
23 dnl @author Guido Draheim
24 dnl @version 2007-02-01
25 dnl @license GPLWithACException
27 AC_DEFUN([AX_CONFIGURE_ARGS],[
28 # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
29 if test "${ac_configure_args+set}" != "set" ; then
31 for ac_arg in ${1+"[$]@"}; do
32 ac_configure_args="$ac_configure_args '$ac_arg'"