yamac/smalllight — pull request #2 by cubicdaiya (2013-05-29 15:41:32+00:00)
Title: fix invalid option pass through

In my environment, building mod_small_light fails.

## environment

* Debian7.0
* GCC 4.7.2
* Apache 2.2.22
* ImageMagick 6.7.7
* Imlib2 1.4.5

```
$ ./configure --with-apxs=/usr/sbin/apxs2
$ make
/usr/bin/apxs2 -c -DENABLE_IMLIB2 -DENABLE_WAND -DENABLE_JPEG -ljpeg `/usr/bin/imlib2-config --cflags` `/usr/bin/imlib2-config --libs` `/usr/bin/Wand-config --cppflags` `/usr/bin/Wand-config --libs` \
mod_small_light.c mod_small_light_*.c
Use of uninitialized value $includedir in concatenation (.) or string at (eval 9) line 1.
apxs:Error: Unknown option: f.
Usage: apxs -g [-S =] -n
apxs -q [-S =] ...
apxs -c [-S =] [-o ] [-D [=]]
[-I ] [-L ] [-l ] [-Wc,]
[-Wl,] [-p] ...
apxs -i [-S =] [-a] [-A] [-n ] ...
apxs -e [-S =] [-a] [-A] [-n ] ...
make: *** [all] エラー 1
```

The cause is the output of `Wand-cofngi --cflags`.

```
$ Wand-config --cflags
-fopenmp -I/usr/include/ImageMagick
$
```

apxs can not recognize '-f' and can not receive '-fopenmp' really.
It is necessary to use '-Wc' to give argument to apxs.

FYI, `Wand-config --cflags` of old ImageMagick(for example, v6.6.0) outputs following.

```
-I/usr/include/ImageMagick -fopenmp
```

In this case, '-fopenmp' is ignored by apxs.