From e1666bf5602ae794563d8669f6ff15c398321bac Mon Sep 17 00:00:00 2001 From: Tim Bunce Date: Thu, 29 Dec 1994 19:47:28 +0000 Subject: MakeMaker 3.7 This patch patches the following: - lib/ExtUtils/MakeMaker.pm Most, if not all, the MakeMaker support for no perl source is now included. Recent ld and mkbootstrap patches applied. -lX11_s suffix fix applied. - Makefile.SH Fix nested module problem which affected make_ext - ext/DynaLoader/DynaLoader.pm Change error message to "Can't load module $module, dynamic loading not available in this perl" - ext/util/make_ext A very minor tweak to allow for Deeply::Nested::Modules - h2xs Major reorganisation. Mainly aimed at simplifying for later enhancements. The constant() and AUTOLOAD functions can no longer be individually enabled or disabled - it never made any sense - they need each other. Header file parsing code has been simplified (may allow prototypes to be parsed later). The .pm file always inherits from AutoLoader. I hope not to issue another MakeMaker patch till after Perl5.001! If you want to play with the (as yet untested) no-perl-source mechanism you'll need to start by doing something like this: cp ext/xsubpp ext/typemap $(PERL_LIB)/ExtUtils cp *.h $(PERL_ARCHLIB)/CORE And then try executing Makefile.PL away from (not under) the perl source code. You should get a 'Unable to locate perl source' warning and the PERL_SRC macro will be undefined. Let me know how it goes but be aware that any problems/fixes are unlikely to turn up in an official MakeMaker patch till after Perl5.001. *Please* test this patch and report your findings back to the list so Larry knows that all is well (or not :-). Best wishes for a Happy New Year to you all. Tim Bunce. --- ext/DynaLoader/DynaLoader.pm | 2 +- ext/util/make_ext | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/DynaLoader/DynaLoader.pm b/ext/DynaLoader/DynaLoader.pm index 6bf0062d12..7cabf4e4e3 100644 --- a/ext/DynaLoader/DynaLoader.pm +++ b/ext/DynaLoader/DynaLoader.pm @@ -80,7 +80,7 @@ sub bootstrap { croak "Usage: DynaLoader::bootstrap(module)" unless ($module); - croak "Can't load module $module, DynaLoader not linked into this perl" + croak "Can't load module $module, dynamic loading not available in this perl" unless defined(&dl_load_file); print STDERR "DynaLoader::bootstrap($module)\n" if $dl_debug; diff --git a/ext/util/make_ext b/ext/util/make_ext index 05f43761e9..dca9a8d8e9 100644 --- a/ext/util/make_ext +++ b/ext/util/make_ext @@ -40,7 +40,7 @@ esac # get extension directory path, module name and depth pname=`echo "$extspec" | sed -e 's:^ext/::' -e 's:/[^/]*$::'` -mname=`echo "$pname" | sed -e 's!/!::!'` +mname=`echo "$pname" | sed -e 's!/!::!g'` depth=`echo "$pname" | sed -e 's![^/][^/]*!..!g'` make=${altmake-make} makeargs='' -- cgit v1.2.1