summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/env.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/smb_build/env.pm')
-rw-r--r--source4/build/smb_build/env.pm41
1 files changed, 41 insertions, 0 deletions
diff --git a/source4/build/smb_build/env.pm b/source4/build/smb_build/env.pm
new file mode 100644
index 0000000000..85bd33c60c
--- /dev/null
+++ b/source4/build/smb_build/env.pm
@@ -0,0 +1,41 @@
+#
+# Environment class
+#
+# Samba Build Environment
+#
+# (C) 2005 Jelmer Vernooij <jelmer@samba.org>
+#
+# Published under the GNU GPL
+
+package smb_build::env;
+use smb_build::input;
+
+use strict;
+
+sub new
+{
+ my $self = { };
+ bless $self;
+ return $self;
+}
+
+sub set_config($$)
+{
+ my ($self, $config) = @_;
+
+ $self->{config} = $config;
+
+ $self->{config}->{srcdir} = '.';
+ $self->{config}->{builddir} = '.';
+
+ if ($self->{config}->{prefix} eq "NONE") {
+ $self->{config}->{prefix} = $self->{config}->{ac_default_prefix};
+ }
+
+ if ($self->{config}->{exec_prefix} eq "NONE") {
+ $self->{config}->{exec_prefix} = $self->{config}->{prefix};
+ }
+}
+
+
+1;