summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-15 22:06:18 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-15 22:06:18 +0000
commitc0149d86c5e0572ab0376b79a42307f8ed38934d (patch)
tree1ce0479071b0cd308067ce6229e2d99cba10ae7b /source4/build
parent65c8e3685ae20dff2cb44296190e5c1bdff0d04a (diff)
downloadsamba-c0149d86c5e0572ab0376b79a42307f8ed38934d.tar.gz
samba-c0149d86c5e0572ab0376b79a42307f8ed38934d.tar.bz2
samba-c0149d86c5e0572ab0376b79a42307f8ed38934d.zip
use the @CPP@ value from configure if possible when determining cpp in
pidl (This used to be commit c47e88dabfc62db7533d2d39c7f1010b4188d2ea)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/pidl/idl.pm6
-rw-r--r--source4/build/pidl/idl.yp6
2 files changed, 10 insertions, 2 deletions
diff --git a/source4/build/pidl/idl.pm b/source4/build/pidl/idl.pm
index 5e285bdc7c..d5c0ae0071 100644
--- a/source4/build/pidl/idl.pm
+++ b/source4/build/pidl/idl.pm
@@ -1974,7 +1974,11 @@ sub parse_idl($$)
my $saved_delim = $/;
undef $/;
- my $data = `cpp $filename`;
+ my $cpp = $ENV{CPP};
+ if (! defined $cpp) {
+ $cpp = "cpp"
+ }
+ my $data = `$cpp -xc $filename`;
$/ = $saved_delim;
$self->YYData->{INPUT} = $data;
diff --git a/source4/build/pidl/idl.yp b/source4/build/pidl/idl.yp
index 3e9943a009..bfc4698709 100644
--- a/source4/build/pidl/idl.yp
+++ b/source4/build/pidl/idl.yp
@@ -304,7 +304,11 @@ sub parse_idl($$)
my $saved_delim = $/;
undef $/;
- my $data = `cc -E $filename`;
+ my $cpp = $ENV{CPP};
+ if (! defined $cpp) {
+ $cpp = "cpp"
+ }
+ my $data = `$cpp -xc $filename`;
$/ = $saved_delim;
$self->YYData->{INPUT} = $data;