From 9152021db0fe677bcc7f8460e5d5419a79462abc Mon Sep 17 00:00:00 2001 From: "Craig A. Berry" Date: Thu, 13 Jun 2013 14:48:57 -0500 Subject: Eliminate macro for OpenVMS debugger [perl #118447]. We need to do whatever the configuration says we are doing via $Config{dbgprefix} and/or $Config{usevmsdebug} for extension building to work, so it makes sense for the top-level build to also base what it is doing on the configuration choice rather than on the special invocation of MMK with /MACRO=__DEBUG__=1. So this patch makes the top-level build do what we've configured to do and eliminates the instruction to use the macro. --- configure.com | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'configure.com') diff --git a/configure.com b/configure.com index f1c61716d6..635a95a21a 100644 --- a/configure.com +++ b/configure.com @@ -1980,7 +1980,6 @@ $ use_vmsdebug_perl = ans $ IF use_vmsdebug_perl $ THEN $ usevmsdebug = "define" -$ macros = macros + """__DEBUG__=1""," $ ELSE $ usevmsdebug = "undef" $ ENDIF @@ -7029,6 +7028,12 @@ $ ENDIF $ ELSE $ LARGEFILE_REPLACE = "LARGEFILE=" $ ENDIF +$ IF use_vmsdebug_perl +$ THEN +$ DEBUG_REPLACE = "USEVMSDEBUG=__DEBUG__=1" +$ ELSE +$ DEBUG_REPLACE = "USEVMSDEBUG=" +$ ENDIF $! $! In order not to stress the tiny command buffer on pre-7.3-2 systems, $! we put the following substitutions in a file and pass the file to @@ -7050,6 +7055,7 @@ $ WC "PV=''version'" $ WC "FLAGS=FLAGS=''extra_flags'" $ WC "''LARGEFILE_REPLACE'" $ WC "ARCHNAME=ARCHNAME=''archname'" +$ WC "''DEBUG_REPLACE'" $ close CONFIG $! $ echo4 "Extracting ''defmakefile' (with variable substitutions)" -- cgit v1.2.1