From: Tony Cook Date: Wed, 12 Dec 2001 23:55:22 +0000 (+0000) Subject: split IM_INCPATH and IM_LIBPATH with $Config{path_sep}, so they work X-Git-Tag: Imager-0.48^2~469 X-Git-Url: http://git.imager.perl.org/imager.git/commitdiff_plain/d67f1b7b4482be4c6c10b44cbefa8f0f882e73b5 split IM_INCPATH and IM_LIBPATH with $Config{path_sep}, so they work on Windows --- diff --git a/Changes b/Changes index 1f8a2054..0c93e5af 100644 --- a/Changes +++ b/Changes @@ -564,6 +564,8 @@ Revision history for Perl extension Imager. - don't allocate hashboxes as locals since it overflows the stack by default in Darwin - applied T1 afm patch from Claes Jacobsson + - split IM_INCPATH and IM_LIBPATH with $Config{path_sep}, so they + work on Windows ================================================================= diff --git a/Makefile.PL b/Makefile.PL index cce7b9c3..7439c3fc 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -263,8 +263,8 @@ sub pathcheck { sub init { @definc{'/usr/include'}=(); - @incs=(qw(/usr/include/freetype2 /usr/local/include/freetype2 /usr/include /usr/local/include /usr/include/freetype /usr/local/include/freetype), split /:/, $INCPATH ); - @libs=(split(/ /, $Config{'libpth'}), split(/:/, $LIBPATH) ); + @incs=(qw(/usr/include/freetype2 /usr/local/include/freetype2 /usr/include /usr/local/include /usr/include/freetype /usr/local/include/freetype), split /\Q$Config{path_sep}/, $INCPATH ); + @libs=(split(/ /, $Config{'libpth'}), split(/\Q$Config{path_sep}/, $LIBPATH) ); if ($^O =~ /win32/i && $Config{cc} =~ /\bcl\b/i) { push(@incs, split /;/, $ENV{INCLUDE}) if exists $ENV{INCLUDE}; push(@libs, split /;/, $ENV{LIB}) if exists $ENV{LIB};