diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-05-10T23·03-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-05-10T23·03-0400 |
commit | 4f7bab7db1d0447e41f858633cddba1dcb2c9ea2 (patch) | |
tree | 818adb7b019671906e2b9016b4c265ebc53cfdf1 /perl/lib/Nix/Config.pm.in | |
parent | 6a7b24a3f25548fe2b083555cd2117dd66557ab0 (diff) |
Support building with the Perl XS bindings disabled
Since the Perl bindings require shared libraries, this is required on platforms such as Cygwin where we do a static build.
Diffstat (limited to 'perl/lib/Nix/Config.pm.in')
-rw-r--r-- | perl/lib/Nix/Config.pm.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perl/lib/Nix/Config.pm.in b/perl/lib/Nix/Config.pm.in index c88854daf0a8..b6d346651807 100644 --- a/perl/lib/Nix/Config.pm.in +++ b/perl/lib/Nix/Config.pm.in @@ -10,6 +10,8 @@ $confDir = $ENV{"NIX_CONF_DIR"} || "@sysconfdir@/nix"; $bzip2 = $ENV{"NIX_BZIP2"} || "@bzip2@"; $curl = "@curl@"; +$useBindings = "@perlbindings@" eq "yes"; + sub readConfig { my %config; my $config = "@sysconfdir@/nix/nix.conf"; |