Haskell 用のSDL イメージ ライブラリをインストールしようとしています。これは、同じ名前の元の C ライブラリのバインディング セットです。SDL ライブラリとそれに対応する Haskell パッケージをビルドしてインストールし、SDL イメージ ライブラリから SDL がインストールされているディレクトリにファイルをドロップしました。SDL イメージ バインディングをインストールしようとすると、次のエラーが表示されます。
$ runghc Setup.lhs configure
Configuring SDL-image-0.6.1...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for sdl-config... /usr/bin/sdl-config
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... no
checking for suffix of object files... .o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for IMG_Load in -lSDL_image... no
configure: error: *** SDL_image lib not found! Get SDL_image from http://www.libdsl.org/projects/SDL_image/index.html
大まかにグーグルで調べたところ、configureにlibファイルの場所を正確に伝える必要があると言われましたが、これを行う方法がわかりません。gcc フラグ -l[directory] を使用してみましたが、同じ結果が得られました。
Win7x64 で MinGW を使用しています。問題をよく理解していないため、何が重要なのかわかりません。