Index: gettext-1.04/Makefile.PL --- gettext-1.04/Makefile.PL.orig 2005-01-31 00:30:22 +0100 +++ gettext-1.04/Makefile.PL 2005-02-06 13:09:56 +0100 @@ -7,6 +7,7 @@ } else { $cc = $Config{'cc'}; } +my $incs = ''; my $libs = ''; unless (conftest("char *x = gettext(\"foo\");", "gettext", 0)) { @@ -33,6 +34,7 @@ WriteMakefile( NAME => "Locale::gettext", + INC => ($inc eq '') ? "" : "$incs", LIBS => ($libs eq '') ? [] : [$libs], VERSION_FROM => 'gettext.pm', ); @@ -50,7 +52,7 @@ close TEST; open(SAVE, ">&STDERR"); open(STDERR, ">/dev/null"); - system($cc . " -o conftest " . $libs . " conftest.c"); + system("$cc $incs -o conftest conftest.c $libs"); my $exitstatus = $?; open(STDERR, ">&SAVE"); if ($exitstatus != 0) {