?RCS:
?MAKE:inc_version_list inc_version_list_init: cat sed Getfile perl5 \
version api_versionstring rm Myread archname prefix sitelib_stem \
- bincompat5005
+ bincompat5005 exe_ext
?MAKE: -pick add $@ %<
?Y:TOP
?S:inc_version_list:
EOPL
chmod +x getverlist
case "$inc_version_list" in
-'') if test -x "$perl5"; then
+'') if test -x "$perl5$exe_ext"; then
dflt=`$perl5 getverlist`
else
dflt='none'
?X: We check for 5.005 and later because inc_version_list is
?X: irrelevant for earlier versions.
?X:
-?MAKE:perl5: path_sep binexp test sed
+?MAKE:perl5: path_sep binexp test sed exe_ext
?MAKE: -pick add $@ %<
?Y:TOP
?S:perl5:
: Find perl5.005 or later.
echo "Looking for a previously installed perl5.005 or later... "
case "$perl5" in
-'') for tdir in `echo "$binexp:$PATH" | $sed "s/$path_sep/ /g"`; do
+'') for tdir in `echo "$binexp$path_sep$PATH" | $sed "s/$path_sep/ /g"`; do
: Check if this perl is recent and can load a simple module
- if $test -x $tdir/perl && $tdir/perl -Mless -e 'use 5.005;' >/dev/null 2>&1; then
+ if $test -x $tdir/perl$exe_ext && $tdir/perl -Mless -e 'use 5.005;' >/dev/null 2>&1; then
perl5=$tdir/perl
break;
- elif $test -x $tdir/perl5 && $tdir/perl5 -Mless -e 'use 5.005;' >/dev/null 2>&1; then
- perl5=$tdir/perl
+ elif $test -x $tdir/perl5$exe_ext && $tdir/perl5 -Mless -e 'use 5.005;' >/dev/null 2>&1; then
+ perl5=$tdir/perl5
break;
fi
done
?S: man1direxp only points to the read-only access location. For extra
?S: portability, you should only use this variable within your makefiles.
?S:.
+?INIT:siteman1=''
: determine where add-on manual pages go
case "$siteman1" in
'') dflt=`echo "$man1dir" | $sed "s#^$prefix#$siteprefix#"` ;;
?S: man3direxp only points to the read-only access location. For extra
?S: portability, you should only use this variable within your makefiles.
?S:.
+?INIT:siteman3=''
: determine where add-on library man pages go
case "$siteman3" in
'') dflt=`echo "$man3dir" | $sed "s#^$prefix#$siteprefix#"` ;;
?S: a system running AFS, in which case they may differ slightly. You
?S: should always use this variable within your makefiles for portability.
?S:.
+?INIT:sitescript=''
: determine where add-on public executable scripts go
case "$sitescript" in
'') dflt=$siteprefix/script
xxx=`echo '#include <signal.h>' |
$cppstdin $cppminus $cppflags 2>/dev/null |
$grep '^[ ]*#.*include' |
- $awk "{print \\$$fieldn}" | $sed 's!"!!g' | $sort | $uniq`
+ $awk "{print \\$$fieldn}" | $sed 's!"!!g' | $sed 's!\\\\\\\\!/!g' | $sort | $uniq`
fi
: Check this list of files to be sure we have parsed the cpp output ok.
: This will also avoid potentially non-existent files, such