[Zope-CVS] SVN: zpkgtools/trunk/zpkgtools/appsupport/configure.in absolutize the $prefix path before embedding it in the Makefile;

Fred L. Drake, Jr. fdrake at gmail.com
Fri Sep 3 02:47:46 EDT 2004


Log message for revision 27439:
  absolutize the $prefix path before embedding it in the Makefile;
  this reduces the flakiness caused by Python using the marshalled filename
  for the co_filename attribute of code objects even though the __file__
  value is actually right (too late for marshal to use)
  


Changed:
  U   zpkgtools/trunk/zpkgtools/appsupport/configure.in


-=-
Modified: zpkgtools/trunk/zpkgtools/appsupport/configure.in
===================================================================
--- zpkgtools/trunk/zpkgtools/appsupport/configure.in	2004-09-03 06:14:08 UTC (rev 27438)
+++ zpkgtools/trunk/zpkgtools/appsupport/configure.in	2004-09-03 06:47:45 UTC (rev 27439)
@@ -219,6 +219,10 @@
     exit 2
 fi
 
+if [ ! "${prefix::1}" = "/" ] ; then
+    prefix="`pwd`/$prefix"
+fi
+
 sed -e "s|@prefix@|$prefix|g" \
     -e "s|@PYTHON@|$FOUND|g" \
     "$HERE/Makefile.in" > "$HERE/Makefile"



More information about the Zope-CVS mailing list