Fixes #3484: Move r27925 to v1.7 branch: Fortran configure basename error

---svn-pre-commit-ignore-below---

(shifted filename to account for differences between v1.7 and trunk)

r27925 [[BR]]
Fixes #3442: ensure that we don't call "basename" on an empty string.

cmr:v1.7
Fixes #3483: Move Fortran "make dist" fix to v1.7

---svn-pre-commit-ignore-below---

r27924 [[BR]]
Ensure that these files always get picked up during "make dist", not
only when we have Fortran support available.