build: Correct out of tree build bugs

Change-Id: Id6e14414c6f15c11d1476039e3781d719f693d21
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/configure.ac b/configure.ac
index 15abf12..5e03b54 100644
--- a/configure.ac
+++ b/configure.ac
@@ -51,7 +51,7 @@
 )
 
 AC_ARG_VAR(YAML_PATH, [The path to the yaml config files.])
-AS_IF([test "x$YAML_PATH" == "x"], [YAML_PATH="$srcdir/example"])
+AS_IF([test "x$YAML_PATH" == "x"], [YAML_PATH="\${top_srcdir}/src/example"])
 
 AC_CONFIG_FILES([Makefile src/Makefile src/test/Makefile])
 AC_OUTPUT