Autotools help

Ryan Schmidt ryandesign at
Sat Oct 22 09:41:36 PDT 2016

On Oct 22, 2016, at 10:35, Craig Treleaven <ctreleaven at> wrote:
> I’m working on an update to Lirc and the build system has changed to Autotools--which I know very little about.
> It seems that Lirc will now opportunistically link with Alsa and there is no configure flag to disable such behaviour.  I want to make Alsa support a non-default variant.  Is my best option to patch the file?
> I believe the relevant portion of is:
> dnl audio_alsa driver requires ALSA library installed and some linker flags
> have_alsa=no
> AC_CHECK_HEADERS(alsa/asoundlib.h,[
>  AC_CHECK_LIB(asound, snd_pcm_open,[
>    have_alsa=yes
>    ],[
>    )
>    ],[
> )
> From:
> What exactly would I patch in to ignore Alsa?

Usually, after running configure, you can find ac_cv_ variables in the config.log or config.h file representing the feature you're interested in. You can then supply a name=value configure argument to override it with whatever value you want. 

More information about the macports-dev mailing list