Fix inclusions of double-conversion to use proper path
authorAndrew Gallagher <agallagher@fb.com>
Tue, 25 Feb 2014 19:53:29 +0000 (11:53 -0800)
committerDave Watson <davejwatson@fb.com>
Fri, 28 Feb 2014 22:02:32 +0000 (14:02 -0800)
Summary: Will commit in tandem with D1171409.

Test Plan: built folly

Reviewed By: tudorb@fb.com

FB internal diff: D1189713

folly/Conv.h
folly/Format.h
folly/configure.ac

index 8eb7e52cef789fdeef1fa3dc0476a3232be8381d..9ecc43c8e4940c3e1659a3c7d84f0b6091691b36 100644 (file)
@@ -39,7 +39,8 @@
 
 #include <limits.h>
 
-#include "double-conversion.h"   // V8 JavaScript implementation
+// V8 JavaScript implementation
+#include <double-conversion/double-conversion.h>
 
 #define FOLLY_RANGE_CHECK(condition, message)                           \
   ((condition) ? (void)0 : throw std::range_error(                      \
index 11e2462a01f0e0fe81b47d8b504c5f19f6565f1c..bccdf86d3fcae3680c2a48c90f06895d86cc01c8 100644 (file)
@@ -26,7 +26,7 @@
 #include <map>
 #include <unordered_map>
 
-#include <double-conversion.h>
+#include <double-conversion/double-conversion.h>
 
 #include "folly/FBVector.h"
 #include "folly/Conv.h"
index 8c7a41e545df94c756e1a4fbaa68f97fc71f5772..3fd30fad5e4908b9d06f689dad111a0301bbcd40 100644 (file)
@@ -54,10 +54,10 @@ AX_BOOST_SYSTEM
 AC_HEADER_STDC
 AC_CHECK_HEADERS([fcntl.h features.h inttypes.h limits.h stdint.h stdlib.h string.h sys/time.h unistd.h mutex.h malloc.h emmintrin.h byteswap.h bits/functexcept.h])
 
-AC_CHECK_HEADER(double-conversion.h, [], [AC_MSG_ERROR(
+AC_CHECK_HEADER(double-conversion/double-conversion.h, [], [AC_MSG_ERROR(
                 [Couldn't find double-conversion.h, please download from \
                 http://code.google.com/p/double-conversion/])], [])
-AC_CHECK_LIB([double_conversion_pic],[ceil],[],[AC_MSG_ERROR(
+AC_CHECK_LIB([double-conversion],[ceil],[],[AC_MSG_ERROR(
              [Please install double-conversion library])])
 
 # Checks for typedefs, structures, and compiler characteristics.