diff --git a/configure.in b/configure.in index a2da13759e..c42bf6209c 100644 --- a/configure.in +++ b/configure.in @@ -1188,6 +1188,7 @@ AC_CONFIG_FILES([Makefile AM_CONDITIONAL(ISLINUX, [test `uname -s` = Linux]) AM_CONDITIONAL(ISMAC, [test `uname -s` = Darwin]) +AM_CONDITIONAL(ISFREEBSD, [test `uname -s` = FreeBSD]) AM_CONDITIONAL(IS64BITLINUX, [test `uname -m` = x86_64]) #some vars to sub into the Makefile.am's diff --git a/src/mod/languages/mod_v8/Makefile.am b/src/mod/languages/mod_v8/Makefile.am index 083562d5d8..5adccb9c8e 100644 --- a/src/mod/languages/mod_v8/Makefile.am +++ b/src/mod/languages/mod_v8/Makefile.am @@ -109,6 +109,9 @@ $(SOURCES): $(BUILT_SOURCES) $(V8_DIR): $(GETLIB) $(V8).tar.bz2 +if ISFREEBSD + $(CP) -f gyp $(V8_DIR)/build/gyp +endif $(V8LIB): $(V8_DIR) if test "$(CXX_TARGET_PLATFORM)" = "x86_64"; then \