modify configure.ac for termux as submitted by Andrew