Index: Locale-gettext-1.07/Makefile.PL
--- Locale-gettext-1.07/Makefile.PL.orig	2015-09-18 19:06:07.000000000 +0200
+++ Locale-gettext-1.07/Makefile.PL	2015-09-19 10:03:02.535767144 +0200
@@ -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', 
     META_MERGE => {
@@ -59,7 +61,7 @@
 	close TEST;
 	open(SAVE, ">&STDERR");
 	open(STDERR, ">/dev/null");
-	system($cc . " -o conftest " . " conftest.c " . $libs);
+	system("$cc $incs -o conftest conftest.c $libs");
 	my $exitstatus = $?;
 	open(STDERR, ">&SAVE");
 	if ($exitstatus != 0) {
