Index: configure --- configure.orig 2012-04-10 10:20:47.000000000 +0200 +++ configure 2012-04-11 18:18:51.000000000 +0200 @@ -14199,7 +14199,7 @@ $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS -LIBS="-ltokyocabinet $LIBS" +LIBS="-ltokyocabinet -lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */