SDL for this and that

Okay I am trying to make GUIlib which I need for SDL_net via Cygwin. I
definitely have installed SDL 1.2.7 (./configure;make;make install). But when
I ./configure GUIlib I get this:

checking for SDL - version >= 1.0.1… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /usr/local/bin/sdl-config
configure: error: *** SDL version 1.0.1 not found!

Anyone got any ideas why GUIlib won’t configure even though I do have SDL
installed for Cygwin?

KevinGPO wrote:

Okay I am trying to make GUIlib which I need for SDL_net via Cygwin. I
definitely have installed SDL 1.2.7 (./configure;make;make install). But when
I ./configure GUIlib I get this:

checking for SDL - version >= 1.0.1… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log for the

There’s a nice hint there : "See the file config.log"
This file usually contains all you need to know.

*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /usr/local/bin/sdl-config
configure: error: *** SDL version 1.0.1 not found!

Anyone got any ideas why GUIlib won’t configure even though I do have SDL
installed for Cygwin?

What does the command “sdl-config --version” return ?

Stephane

Hello, KevinGPO!
You wrote on Thu, 13 May 2004 21:50:01 +0000 (UTC):

K> checking for SDL - version >= 1.0.1… no
K> *** Could not run SDL test program, checking why…
K> *** The test program failed to compile or link. See the file config.log
K> for the
K> *** exact error that occured. This usually means SDL was incorrectly
K> installed
K> *** or that you have moved SDL since it was installed. In the latter
K> case, you
K> *** may want to edit the sdl-config script: /usr/local/bin/sdl-config
K> configure: error: *** SDL version 1.0.1 not found!

GUILib’s configure script is based on damnely old sdl.m4 script, so it can’t
locate your libraries in the /usr/local automatically, so you need to path
SDL libs and headers pathes to the configure script.

run the ./configure --help to find out which options is needed.

With best regards, Mike Gorchak. E-mail: @Mike_Gorchak

There’s a nice hint there : "See the file config.log"
This file usually contains all you need to know.

Okay I opened it up and looking at this lines:

*** ‘sdl-config --version’ returned 1.2.7, but the minimum version
*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is
*** best to upgrade to the required version.
*** If sdl-config was wrong, set the environment variable SDL_CONFIG
*** to point to the correct copy of sdl-config, and remove the file
*** config.cache before re-running configure

bla bla bla. Hmm, how can I check what the environment variable SDL_CONFIG is
assigned to? and how to reassign it?

echo $SDL_CONFIG shows nothing? hmmmm…

What does the command “sdl-config --version” return ?

1.2.7

Strange huh

GUILib’s configure script is based on damnely old sdl.m4 script, so it can’t
locate your libraries in the /usr/local automatically, so you need to path
SDL libs and headers pathes to the configure script.

old sdl.m4 script? automake right?

run the ./configure --help to find out which options is needed.

hmm ok I run ./configure --with-sdl-prefix=/usr/local --with-sdl-exec-
prefix=/usr/local

still I get the same old message:
checking for sdl-config… /usr/local/bin/sdl-config
checking for SDL - version >= 1.0.1… no
*** Could not run SDL test program, checking why…
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means SDL was incorrectly installed
*** or that you have moved SDL since it was installed. In the latter case, you
*** may want to edit the sdl-config script: /usr/local/bin/sdl-config
configure: error: *** SDL version 1.0.1 not found!

I have checked: /usr/local/bin/sdl-config --version and it returns:
1.2.7

HELP!