packages feed

HsPerl5-0.0.4: configure

#!/bin/sh -e

perl << CONFIGURE

use ExtUtils::Embed;

my @ccoptions   = (split(/\s+/, ccflags()), split(/\s+/, ccdlflags()));
my @includedirs = split(/\s+/, perl_inc());
my @ldoptions   = split(/\s+/, ldopts());
s/^-I// for @includedirs;

my \$info = << ".";
cc-options: @ccoptions
ld-options: @ldoptions
include-dirs: @includedirs
.

\$info =~ s/-arch\s+\w+\s*//g;

open INFO, ">HsPerl5.buildinfo" or die "Cannot write build info";
print INFO \$info;
close INFO;

xsinit();

CONFIGURE