From: Volker G. <vo...@no...> - 2010-06-13 22:18:05
|
David Bruce <dav...@gm...> schrieb: > (Note: One slight problem I have had since going to this two-step > check relates to the echo statements. Without these statements, the > output from configure is confusing because it show the PKG_CHECK_LIB > step failing, then the AC_CHECK_LIB step succeeding, without a very > clear indication that it is a fallback check. With the echo > statements, I had to put in another set of [] brackets, which causes > autoconf to complain/fail on the first attempt (apparently from > overquoting), but it succeeds and apparently works properly if run a > second time. If anyone has a good fix for this, I would be most > appreciative). Just a quick guess, without having tested it: I'm not sure why you have to put the "echo" commands into separate parentheses. AFAIR that isn't necessary, and indeed an overquoting. So I propose to replace this: > PKG_CHECK_MODULES([SDL_MIXER], > [SDL_mixer], > , > [ > [echo "SDL_MIXER not found via pkg_config, checking with AC_CHECK_LIB:"] > AC_CHECK_LIB([SDL_mixer], > [Mix_OpenAudio], > , > [AC_MSG_ERROR([SDL_mixer not found! > http://www.libsdl.org/projects/SDL_mixer])] > ) > [echo "SDL_MIXER successfully located"] > ] > ) ... with that: ---------------------------------------------------------------------------- PKG_CHECK_MODULES([SDL_MIXER], [SDL_mixer], , [ echo "SDL_MIXER not found via pkg_config, checking with AC_CHECK_LIB:" AC_CHECK_LIB([SDL_mixer], [Mix_OpenAudio], , [AC_MSG_ERROR([SDL_mixer not found! http://www.libsdl.org/projects/SDL_mixer])] ) echo "SDL_MIXER successfully located" ] ) ---------------------------------------------------------------------------- Does that solve the issue? Greets, Volker -- Volker Grabsch ---<<(())>>--- Administrator NotJustHosting GbR |