On Wed 22 Jun 2016 00:31, Josh Datko <jbda...@gmail.com> writes: > I have a C autotools project with guile extensions that I'm trying to > cross-compile, however even when I think I'm disabling building the > extensions (--without-guile), it appears that configure is trying to > check for guile. Then configure fails, because, well there's no guile > for my cross compile target. > > In my configure.ac I have the following snippets: > > AC_ARG_WITH([guile], > AS_HELP_STRING([--with-guile], [Build the guile extensions])) > AM_CONDITIONAL([HAVE_GUILE], [test "x$with_guile" = "xyes"]) > > <<snip>> > > > AS_IF([test "x$with_guile" = "xyes"], [ > # Guile Extensions > echo "Checking for guile extensions" > PKG_CHECK_MODULES([GUILE], [guile-2.0]) > GUILE_PROGS > GUILE_FLAGS > GUILE_SITE_DIR > ])
Just a long shot, but have you tried using just bash here? I.e. if test "x$with_guile" = "xyes"; then echo "Checking for guile extensions" PKG_CHECK_MODULES... ... fi I get lost with all these macros and macro expanders :) Andy