Adopted configure.ac on FreeBSD10