◐ Shell
clean mode source ↗

Message 122938 - Python tracker

Of course, you don't change configure directly, you change configure.in and let autoconf update the configure (but you already know that I'm sure :).

The patch looks fairly reasonable, though I haven't tried it.  One question: does $SO have the same value after your patch as before?  That's a variable available via sysconfig and it looks like you're removing a block of code that sets it.