--- octave-3.8.0-orig/configure.ac 2013-12-28 08:58:28.000000000 +1100 +++ octave-3.8.0/configure.ac 2014-02-15 20:11:53.821172574 +1100 @@ -995,11 +995,11 @@ MAGICK_LIBS= PKG_CHECK_EXISTS([$magick++], [ - ## Make sure we only get -I, -L, and -l flags. Some Graphics/ImageMagick++ + ## Make sure we only get -I, -D, -L, and -l flags. Some Graphics/ImageMagick++ ## packages add extra flags that are useful when building ## Graphics/ImageMagick++ extentions. These extra flags break the ## Octave build. - MAGICK_CPPFLAGS=`$PKG_CONFIG --cflags-only-I $magick++` + MAGICK_CPPFLAGS=`$PKG_CONFIG --cflags $magick++ | sed -e 's/\(-@<:@DI@:>@@<:@^ \t@:>@*\)\|\(-@<:@^ \t@:>@*\)/\1/g'` MAGICK_LDFLAGS=`$PKG_CONFIG --libs-only-L $magick++` MAGICK_LIBS=`$PKG_CONFIG --libs-only-l $magick++`