-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compiling three deep modules within ext/ #57
Comments
From nate@valleytel.netPerl currently does not automatically compile extension modules put This patch is against the Configure distributed with 5.00554, but I I'm guessing the patch is as portable as the rest of Configure, but if Hope this is useful, --nate Inline Patch--- Configure Fri Jun 11 20:59:48 1999
+++ Configure.new Fri Jun 11 21:06:43 1999
@@ -12010,8 +12010,6 @@
echo " "
echo "Looking for extensions..." >&4
-tdir=`pwd`
-cd $rsrc/ext
: If we are using the old config.sh, known_extensions may contain
: old or inaccurate or duplicate values.
known_extensions=''
@@ -12020,30 +12018,33 @@
: We do not just use MANIFEST because the user may have dropped
: some additional extensions into the source tree and expect them
: to be built.
-for xxx in * ; do
- case "$xxx" in
- DynaLoader|dynaload) ;;
- *) if $test -f $xxx/$xxx.xs; then
- known_extensions="$known_extensions $xxx"
- elif $test -f $xxx/Makefile.PL; then
- nonxs_extensions="$nonxs_extensions $xxx"
- else
- if $test -d $xxx; then
- # Look for nested extensions, eg. Devel/Dprof.
- cd $xxx
- for yyy in * ; do
- if $test -f $yyy/$yyy.xs; then
- known_extensions="$known_extensions $xxx/$yyy"
- elif $test -f $yyy/Makefile.PL; then
- nonxs_extensions="$nonxs_extensions $xxx/$yyy"
- fi
- done
- cd ..
- fi
- fi
- ;;
+: function to recursively find available extensions, ignoring DynaLoader
+: NOTE: recursion limit of 10 to prevent runaway in case of symlink madness
+find_extensions='
+ for xxx in *; do
+ case "$xxx" in
+ DynaLoader|dynaload) ;;
+ *)
+ if $test -f $xxx/$xxx.xs; then
+ known_extensions="$known_extensions $1$xxx";
+ elif $test -f $xxx/Makefile.PL; then
+ nonxs_extensions="$nonxs_extensions $1$xxx";
+ else
+ if $test -d $xxx -a $# -lt 10; then
+ set $1$xxx/ $*;
+ cd $xxx;
+ eval $find_extensions;
+ cd ..;
+ shift;
+ fi
+ fi
+ ;;
esac
-done
+ done'
+tdir=`pwd`
+cd $rsrc/ext
+set --
+eval $find_extensions
set X $nonxs_extensions
shift
nonxs_extensions="$*" Perl Info
|
2.213 28 August 2024 * version 2.213 Wed Aug 28 16:06:42 2024 +0100 020520f78490bf1a6b7351febd16fc19f351ddfe * add perl5.40 to workflows Sun Jun 16 16:56:37 2024 +0100 6d7dd85763f7cd0894a890208156187b8cac6597 * #57 Add stub moduile IO/Compress.pm Sat May 25 08:53:57 2024 +0100 c6a05a69d62b8169d482d1b30a333b0cec4f5a06
2.213 28 August 2024 * version 2.213 Wed Aug 28 16:06:42 2024 +0100 020520f78490bf1a6b7351febd16fc19f351ddfe * add perl5.40 to workflows Sun Jun 16 16:56:37 2024 +0100 6d7dd85763f7cd0894a890208156187b8cac6597 * Perl#57 Add stub moduile IO/Compress.pm Sat May 25 08:53:57 2024 +0100 c6a05a69d62b8169d482d1b30a333b0cec4f5a06
Migrated from rt.perl.org#859 (status was 'resolved')
Searchable as RT859$
The text was updated successfully, but these errors were encountered: