blob: e92ab83a6e3e32ad4a742d39bb4f72bace4bc85b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- extconf.rb.orig Sun Mar 25 17:10:56 2001
+++ extconf.rb Tue Mar 27 02:56:07 2001
@@ -1,7 +1,9 @@
require 'mkmf'
-$CFLAGS += `sdl-config --cflags`.chomp
-$LDFLAGS += `sdl-config --libs`.chomp
+sdl_config = with_config('sdl-config', 'sdl-config')
+
+$CFLAGS += ' ' + `#{sdl_config} --cflags`.chomp
+$LDFLAGS += ' ' + `#{sdl_config} --libs`.chomp
if have_library("SDL_mixer","Mix_OpenAudio") then
$CFLAGS+= " -D HAVE_SDL_MIXER "
|