adonthell-general
[Top][All Lists]
Advanced

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

Re: [Adonthell-general] configure.in:166: warning: macro `AM_PATH_SDL2'


From: shirish शिरीष
Subject: Re: [Adonthell-general] configure.in:166: warning: macro `AM_PATH_SDL2' not found in library
Date: Fri, 17 Feb 2012 23:32:44 +0530

in-line :-

On Fri, Feb 17, 2012 at 20:05, Kai Sterker <address@hidden> wrote:
> 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?

cool guys. Kai, I think you hit the nail on the head specifically the
hint of older intel graphic chipsets. I am one of those.

Anyways, here's the short and sweet of it :-

~/games/adonthell/adonthell$ git pull
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 9 (delta 3), reused 9 (delta 3)
Unpacking objects: 100% (9/9), done.
>From git://github.com/ksterker/adonthell
   59a3b56..711f710  master     -> origin/master
Updating 59a3b56..711f710
Fast-forward
 autogen.sh      |    2 +-
 m4/freetype2.m4 |  194 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 m4/libxml2.m4   |  188 +++++++++++++++++++++++++++++++++++++++++++++++++++
 m4/pkg.m4       |  159 +++++++++++++++++++++++++++++++++++++++++++
 m4/sdl.m4       |  183 +++++++++++++++++++++++++++++++++++++++++++++++++
 m4/sdl2.m4      |  202 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 927 insertions(+), 1 deletions(-)
 create mode 100644 m4/freetype2.m4
 create mode 100644 m4/libxml2.m4
 create mode 100644 m4/pkg.m4
 create mode 100644 m4/sdl.m4
 create mode 100644 m4/sdl2.m4

This is getting the new stuff in and this is what git log says about
the commit .

commit 711f7107a65464c59faacccb88ea2ac2c8d35bed
Author: Kai Sterker <address@hidden>
Date:   Fri Feb 17 15:23:48 2012 +0100

    ADDED 3rd party m4 macros to local m4 directory. See
          
http://www.gnu.org/software/automake/manual/html_node/Local-Macros.html
          for aclocal recommendation.


~/games/adonthell/adonthell$ ./autogen.sh
aclocal: overwriting `m4/sdl.m4' with `/usr/share/aclocal/sdl.m4'
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'

Now type './configure' to prepare Adonthell for compilation.
Afterwards, 'make' will build Adonthell.

Yeah, no complaints. Now I can try doing things the normal way, thanx guys :)

> Kai

-- 
          Regards,
          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0
http://creativecommons.org/licenses/by-nc/3.0/
http://flossexperiences.wordpress.com
065C 6D79 A68C E7EA 52B3  8D70 950D 53FB 729A 8B17



reply via email to

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