r10074: Pass CPP to pidl via environment variables rather then config.pm. This fixes the
authorJelmer Vernooij <jelmer@samba.org>
Thu, 8 Sep 2005 10:35:55 +0000 (10:35 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:37:50 +0000 (13:37 -0500)
standalone pidl build (as used for ethereal)
(This used to be commit 9c9ebd2214423c58357854f09bd744e13e807d8f)

source4/lib/registry/config.mk
source4/pidl/idl.yp
source4/pidl/lib/Parse/Pidl/IDL.pm

index d0939c720b33aede907178c212eb94beba85e628..4a518321a4904892571f045f53f16ba0c9acc0eb 100644 (file)
@@ -18,7 +18,7 @@ INIT_OBJ_FILES = lib/registry/tdr_regf.o
 
 lib/registry/reg_backend_nt4.c: lib/registry/tdr_regf.c
 lib/registry/tdr_regf.c: lib/registry/regf.idl
-       @./pidl/pidl --header --outputdir=lib/registry --parse --tdr-header --tdr-parser -- lib/registry/regf.idl
+       @CPP="$(CPP) $(PERL) pidl/pidl --header --outputdir=lib/registry --parse --tdr-header --tdr-parser -- lib/registry/regf.idl
 
 ################################################
 # Start MODULE registry_w95
index 0f5b17e0fa0a6cae2186280512a694bfa1523c9b..ce8100722b43738f078ec957c6d0c5a4724cf108 100644 (file)
@@ -319,7 +319,6 @@ optional_semicolon:
 # start code
 %%
 
-use config qw(%config);
 use Parse::Pidl::Util;
 
 #####################################################################
@@ -423,7 +422,7 @@ sub parse_idl($$)
        undef $/;
        my $cpp = $ENV{CPP};
        if (! defined $cpp) {
-               $cpp = $config::config{'CPP'};
+               $cpp = "CPP";
        }
        my $data = `$cpp -D__PIDL__ -xc $filename`;
        $/ = $saved_delim;
index 2e73bd8410d252e59a44f477e8506fd5ad3e66ce..dd667cb9eb070eb515f0b41adebbebede858890f 100644 (file)
@@ -2672,7 +2672,6 @@ sub
 #line 320 "pidl/idl.yp"
 
 
-use config qw(%config);
 use Parse::Pidl::Util;
 
 #####################################################################
@@ -2776,7 +2775,7 @@ sub parse_idl($$)
        undef $/;
        my $cpp = $ENV{CPP};
        if (! defined $cpp) {
-               $cpp = $config::config{'CPP'};
+               $cpp = "CPP";
        }
        my $data = `$cpp -D__PIDL__ -xc $filename`;
        $/ = $saved_delim;