[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Adonthell-general] configure.in:166: warning: macro `AM_PATH_SDL2'
From: |
Kai Sterker |
Subject: |
Re: [Adonthell-general] configure.in:166: warning: macro `AM_PATH_SDL2' not found in library |
Date: |
Fri, 17 Feb 2012 15:35:19 +0100 |
On Fri, Feb 17, 2012 at 12:24 AM, Chris Frey <address@hidden> wrote:
> I think that's what the m4/ directory is for (might be named differently
> in different projects). I add the following to Makefile.am:
>
> ACLOCAL_FLAGS = -I m4
> ACLOCAL_AMFLAGS = -I m4
>
It seems to be the way to go, also confirmed by the automake manual:
http://www.gnu.org/software/automake/manual/html_node/Local-Macros.html
> And the following to configure.ac:
>
> AC_CONFIG_MACRO_DIR([m4])
That will tell libtool to put its macros into the m4 directory too.
> Hopefully both SDL 1 and 2 can coexist in the same configure, and you can
> use AC_ARG_WITH to let the user configure which library to use at
> compile time.
They will go together well, from what I can tell. Right now, SDL 2
will be preferred, if present, but I guess a manual override would not
be bad. There are a few cases where SDL 1.2 seems to be the better
option, mostly for people with older intel graphic chipsets.
@Shirish: can you try again with the changes I've made?
Kai