>> Can someone suggest a line for PATH_TO_WISH that can be set by configure?
You should use autoconf's standard mechanism for testing for a
program's existence and location. To wit,AC_PATH_PROG(PATH_TO_WISH, wish)
or one of its variants.
regards, tom lane