diff --git a/configure b/configure
index 4179773207a34aefec6d610e056c62b70f1580b0..bb174d76478acbde22ae08b9ab9f575844af46ab 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.ac Revision: 25611 .
+# From configure.ac Revision: 26020 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59.
 #
@@ -1631,6 +1631,14 @@ cat >>confdefs.h <<\_ACEOF
 _ACEOF
 
     PBX_OSTYPE="FreeBSD"
+    # XXX temporary hack to let FreeBSD use the default paths
+    # for local stuff. We need a better solution.
+    if test x"${CPPFLAGS}" = x; then
+        CPPFLAGS="-I /usr/local/include"
+    fi
+    if test x"${LDFLAGS}" = x; then
+        LDFLAGS="-L /usr/local/lib"
+    fi
     ;;
   *openbsd*)