Created
December 1, 2013 04:42
-
-
Save enakai00/7728588 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- ./configure.ac.orig 2013-12-01 12:29:50.000000000 +0900 | |
+++ ./configure.ac 2013-12-01 12:41:57.000000000 +0900 | |
@@ -32,6 +32,15 @@ | |
[] | |
) | |
+AC_CHECK_LIB( [gfapi], [glfs_new], | |
+ [ | |
+ GFAPI_LIBS="-lgfapi" | |
+ AC_SUBST([GFAPI_LIBS]) | |
+ ], | |
+ [AC_MSG_ERROR([gfapi library not found])], | |
+ [] | |
+ ) | |
+ | |
# Checks for header files. | |
AC_CHECK_HEADERS([fcntl.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h]) | |
--- ./Makefile.am.orig 2013-12-01 12:42:19.000000000 +0900 | |
+++ ./Makefile.am 2013-12-01 12:56:13.000000000 +0900 | |
@@ -19,7 +19,7 @@ | |
libleveldb_la_SOURCES = | |
-libleveldb_la_LIBADD = @SNAPPY_LIBS@ \ | |
+libleveldb_la_LIBADD = @GFAPI_LIBS@ @SNAPPY_LIBS@ \ | |
$(top_builddir)/db/libdb.la \ | |
$(top_builddir)/port/libport.la \ | |
$(top_builddir)/table/libtable.la \ | |
@@ -33,7 +33,6 @@ | |
EXTRA_DIST = doc AUTHORS LICENSE NEWS README TODO | |
TESTS = c_test \ | |
- corruption_test \ | |
db_test \ | |
dbformat_test \ | |
filename_test \ | |
--- ./util/Makefile.am.orig 2013-12-01 12:28:35.000000000 +0900 | |
+++ ./util/Makefile.am 2013-12-01 12:28:50.000000000 +0900 | |
@@ -16,7 +16,7 @@ | |
comparator.cc \ | |
crc32c.cc \ | |
env.cc \ | |
- env_posix.cc \ | |
+ env_gfapi.cc \ | |
filter_policy.cc \ | |
hash.cc \ | |
histogram.cc \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment