* configure.in: Fix the check for basename declaration. Add check