--- configure.orig 2013-01-06 05:50:56.000000000 +0400 +++ configure 2013-09-12 05:47:52.458664790 +0400 @@ -11315,7 +11315,7 @@ USE_OPENSSL=yes ;; - dragonfly*) + dragonfly* | freebsd*) COMMON_CFLAGS="-I/usr/local/include -Wall -DTARGET_BSD" COMMON_LDFLAGS="-pthread -L/usr/local/lib" LM=-lm