Don't look in /usr/include/ImageMagick. --- PerlMagick/Makefile.PL.in.orig 2024-02-26 01:29:03 +++ PerlMagick/Makefile.PL.in 2024-04-01 12:43:17 @@ -161,7 +161,7 @@ } # defaults for LIBS & INC & CCFLAGS params that we later pass to Writemakefile -my $INC_magick = '-I../ -I@top_srcdir@ @CPPFLAGS@ -I"' . $Config{'usrinc'} . '/ImageMagick"'; +my $INC_magick = '-I../ -I@top_srcdir@ @CPPFLAGS@'; my $LIBS_magick = '-L../magick/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ @MATH_LIBS@ -L' . $Config{'archlib'} . '/CORE'; my $CCFLAGS_magick = "$Config{'ccflags'} @CFLAGS@"; my $LDFLAGS_magick = "-L../magick/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ $Config{'ldflags'} @LDFLAGS@"; --- PerlMagick/default/Makefile.PL.in.orig 2024-02-26 01:29:03 +++ PerlMagick/default/Makefile.PL.in 2024-04-01 12:43:54 @@ -161,7 +161,7 @@ } # defaults for LIBS & INC & CCFLAGS params that we later pass to Writemakefile -my $INC_magick = '-I../.. -I@top_srcdir@ @CPPFLAGS@ -I"' . $Config{'usrinc'} . '/ImageMagick"'; +my $INC_magick = '-I../.. -I@top_srcdir@ @CPPFLAGS@'; my $LIBS_magick = '-L../../magick/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ @MATH_LIBS@ -L' . $Config{'archlib'} . '/CORE'; my $CCFLAGS_magick = "$Config{'ccflags'} @CFLAGS@"; my $LDFLAGS_magick = "-L../../magick/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ $Config{'ldflags'} @LDFLAGS@"; --- PerlMagick/quantum/Makefile.PL.in.orig 2024-02-26 01:29:03 +++ PerlMagick/quantum/Makefile.PL.in 2024-04-01 12:44:09 @@ -161,7 +161,7 @@ } # defaults for LIBS & INC & CCFLAGS params that we later pass to Writemakefile -my $INC_magick = '-I../../ -I@top_srcdir@ @CPPFLAGS@ -I"' . $Config{'usrinc'} . '/ImageMagick"'; +my $INC_magick = '-I../../ -I@top_srcdir@ @CPPFLAGS@'; my $LIBS_magick = '-L../../magick/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ @MATH_LIBS@ -L' . $Config{'archlib'} . '/CORE'; my $CCFLAGS_magick = "$Config{'ccflags'} @CFLAGS@"; my $LDFLAGS_magick = "-L../../magick/.libs -lMagickCore-@MAGICK_MAJOR_VERSION@.@MAGICK_ABI_SUFFIX@ $Config{'ldflags'} @LDFLAGS@";