Re: Getting AC_CONFIG_SUBDIRS output before AC_OUTPUT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Is there some way to tell AC_OUTPUT that _AC_OUTPUT_SUBDIRS has
> already been run?  Possibly by redefining it to be empty?

I am trying trickery like just setting 'no_recursion=yes' just before
AC_OUTPUT to suppress the recursion along with some checks to make
sure that subdirs hasn't changed in the meantime...

AC_CONFIG_SUBDIRS([sub1])
AC_CONFIG_SUBDIRS([sub2])
early_subdirs="$subdirs"
_AC_OUTPUT_SUBDIRS
dnl ...
dnl Arbitrary things
dnl ...
if test "$early_subdirs" != "$subdirs"; then
    AC_MSG_ERROR([Sanity error: "$early_subdirs" became "$subdirs"])
fi
no_recursion=yes
AC_OUTPUT()

On a scale of hideous to grotesque, how bad is this approach?

- Rhys

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf




[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux