thanks! I fear I'm missing something - when I type the command 'diff -u configure.old configure' in the /opt/local/var/macports dir it can't find the file configure and looking around I can't see where that may be? sorry for the noob question - clearly learning how macports works as I go
That does not work this way.
You have to either manually edit the file, like:
sudo port -v patch m4 (so that all existing patches are applied and you do not get errors).
Then go to the folder where sources are extracted, edit what you need in BBEdit or whatever code editor you have (Xcode will also do, but you have to set writable preferences on the folder, otherwise it won’t let you change it), then do sudo port -v install m4.
Or make a patch, put in into m4/files directory (make it if there is none), add a line in the portfile so that the patch is used:
patchfiles-append PATCHNAME.
I think as a one-time solution manual editing is easier.
Or I can make a patch for you and edit the portfile, but you will need to either overwrite existing one with edited version or make a local repo (the latter option is a correct long-term solution for custom portfiles).
Some info is here: https://guide.macports.org/chunked/development.local-repositories.html
Also: https://forums.macrumors.com/thread...0-6-powerpc-10a190-and-10-6-8-rosetta.2332711