In implementing Nicholas' wish, I hit a point where I reach success for
'metaconfig -m' which creates exactly what I want, but I'd like to silence
metalint too, which complaints like:
--8<---
:
Your private U/modified/yacc.U overrides the public one.
Extracting dependency lists from 814 units...
"/pro/3gl/CPAN/perl-current/U/all/Finish.U", line 41 (?S:): variable '$runmakedepend'
is not listed on ?MAKE: line.
Sanity checks...
"End.U": stale ?MAKE: dependency '$W'.
"Finish.U": undeclared symbol '$runmakedepend' is set.
Looking for dependency cycles...
Done.
-->8---
The patch I have currently open:
--8<---
==== //depot/metaconfig/U/modified/Finish.U#5 -
/pro/3gl/CPAN/metaconfig/U/modified/Finish.U ====
@@ -38,7 +38,12 @@
?MAKE:Finish: Chk_MANI Extract Myread Oldsym Magic_h cat rm contains \
test package make
?MAKE: -pick add $@ %<
+?S:runmakedepend:
+?S: This variable defines if Configure runs 'make depend'
+?S:.
?F:!config.sh
+?INIT:runmakedepend=''
+?LINT:extern runmakedepend
?T:pwd
: Finish up by extracting the .SH files
case "$alldone" in
@@ -84,7 +89,10 @@
cd "$pwd"
if $contains '^depend:' [Mm]akefile >/dev/null 2>&1; then
- dflt=y
+ case "$runmakedepend" in
+ $undef|false|[nN]*) dflt='n' ;;
+ *) dflt='y' ;;
+ esac
case "$silent" in
true) ;;
*)
-->8---
Any thoughts?
Forwarded by "H.Merijn Brand" <[EMAIL PROTECTED]>
----------------------- Original Message -----------------------
From: Nicholas Clark <[EMAIL PROTECTED]>
To: "H . Merijn Brand" <[EMAIL PROTECTED]>
Date: Tue, 16 Mar 2004 21:59:33 +0000
Subject: runmakedepend patch
----
Configure patch to allow -D and -Urunmakedepend
(default is unchanged as 'y')
Nick
--- Configure.orig Thu Feb 26 09:05:21 2004
+++ Configure Tue Mar 16 19:03:37 2004
@@ -1053,6 +1053,7 @@ drand01=''
randbits=''
randfunc=''
randseedtype=''
+runmakedepend=''
seedfunc=''
installscript=''
scriptdir=''
@@ -21219,6 +21220,7 @@ randbits='$randbits'
randfunc='$randfunc'
random_r_proto='$random_r_proto'
randseedtype='$randseedtype'
+runmakedepend='$runmakedepend'
ranlib='$ranlib'
rd_nodata='$rd_nodata'
readdir64_r_proto='$readdir64_r_proto'
@@ -21483,7 +21485,10 @@ pwd=`pwd`
cd "$pwd"
if $contains '^depend:' [Mm]akefile >/dev/null 2>&1; then
- dflt=y
+ case "$runmakedepend" in
+ $undef|false|[nN]*) dflt='n';;
+ *) dflt='y';;
+ esac
case "$silent" in
true) ;;
*)
--------------------- Original Message Ends --------------------
--
H.Merijn Brand Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0, & 5.9.x, and 806 on HP-UX 10.20 & 11.00, 11i,
AIX 4.3, SuSE 8.2, and Win2k. http://www.cmve.net/~merijn/
http://archives.develooper.com/[EMAIL PROTECTED]/ [EMAIL PROTECTED]
send smoke reports to: [EMAIL PROTECTED], QA: http://qa.perl.org