guile-user
[Top][All Lists]
Advanced

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

Re: autoconf macros not working as expected


From: Andy Wingo
Subject: Re: autoconf macros not working as expected
Date: Wed, 22 Jun 2016 10:08:51 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

On Wed 22 Jun 2016 00:31, Josh Datko <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]