nutcracker 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (149) hide show
  1. data/README.md +22 -0
  2. data/Rakefile +55 -0
  3. data/bin/nutcracker +2 -0
  4. data/ext/nutcracker/ChangeLog +66 -0
  5. data/ext/nutcracker/LICENSE +177 -0
  6. data/ext/nutcracker/Makefile.am +7 -0
  7. data/ext/nutcracker/Makefile.in +726 -0
  8. data/ext/nutcracker/NOTICE +124 -0
  9. data/ext/nutcracker/README.md +240 -0
  10. data/ext/nutcracker/aclocal.m4 +956 -0
  11. data/ext/nutcracker/conf/nutcracker.leaf.yml +10 -0
  12. data/ext/nutcracker/conf/nutcracker.root.yml +8 -0
  13. data/ext/nutcracker/conf/nutcracker.yml +67 -0
  14. data/ext/nutcracker/config.h.in +316 -0
  15. data/ext/nutcracker/config/config.guess +1561 -0
  16. data/ext/nutcracker/config/config.sub +1686 -0
  17. data/ext/nutcracker/config/depcomp +630 -0
  18. data/ext/nutcracker/config/install-sh +520 -0
  19. data/ext/nutcracker/config/ltmain.sh +8413 -0
  20. data/ext/nutcracker/config/missing +376 -0
  21. data/ext/nutcracker/configure +18862 -0
  22. data/ext/nutcracker/configure.ac +155 -0
  23. data/ext/nutcracker/contrib/Makefile.am +3 -0
  24. data/ext/nutcracker/contrib/Makefile.in +560 -0
  25. data/ext/nutcracker/contrib/yaml-0.1.4.tar.gz +0 -0
  26. data/ext/nutcracker/contrib/yaml-0.1.4/LICENSE +19 -0
  27. data/ext/nutcracker/contrib/yaml-0.1.4/Makefile.am +20 -0
  28. data/ext/nutcracker/contrib/yaml-0.1.4/Makefile.in +736 -0
  29. data/ext/nutcracker/contrib/yaml-0.1.4/README +27 -0
  30. data/ext/nutcracker/contrib/yaml-0.1.4/aclocal.m4 +956 -0
  31. data/ext/nutcracker/contrib/yaml-0.1.4/config.h.in +80 -0
  32. data/ext/nutcracker/contrib/yaml-0.1.4/config/config.guess +1561 -0
  33. data/ext/nutcracker/contrib/yaml-0.1.4/config/config.sub +1686 -0
  34. data/ext/nutcracker/contrib/yaml-0.1.4/config/depcomp +630 -0
  35. data/ext/nutcracker/contrib/yaml-0.1.4/config/install-sh +520 -0
  36. data/ext/nutcracker/contrib/yaml-0.1.4/config/ltmain.sh +8406 -0
  37. data/ext/nutcracker/contrib/yaml-0.1.4/config/missing +376 -0
  38. data/ext/nutcracker/contrib/yaml-0.1.4/configure +13085 -0
  39. data/ext/nutcracker/contrib/yaml-0.1.4/configure.ac +75 -0
  40. data/ext/nutcracker/contrib/yaml-0.1.4/doc/doxygen.cfg +222 -0
  41. data/ext/nutcracker/contrib/yaml-0.1.4/include/yaml.h +1971 -0
  42. data/ext/nutcracker/contrib/yaml-0.1.4/m4/libtool.m4 +7357 -0
  43. data/ext/nutcracker/contrib/yaml-0.1.4/m4/ltoptions.m4 +368 -0
  44. data/ext/nutcracker/contrib/yaml-0.1.4/m4/ltsugar.m4 +123 -0
  45. data/ext/nutcracker/contrib/yaml-0.1.4/m4/ltversion.m4 +23 -0
  46. data/ext/nutcracker/contrib/yaml-0.1.4/m4/lt~obsolete.m4 +92 -0
  47. data/ext/nutcracker/contrib/yaml-0.1.4/src/Makefile.am +4 -0
  48. data/ext/nutcracker/contrib/yaml-0.1.4/src/Makefile.in +484 -0
  49. data/ext/nutcracker/contrib/yaml-0.1.4/src/api.c +1392 -0
  50. data/ext/nutcracker/contrib/yaml-0.1.4/src/dumper.c +394 -0
  51. data/ext/nutcracker/contrib/yaml-0.1.4/src/emitter.c +2329 -0
  52. data/ext/nutcracker/contrib/yaml-0.1.4/src/loader.c +432 -0
  53. data/ext/nutcracker/contrib/yaml-0.1.4/src/parser.c +1374 -0
  54. data/ext/nutcracker/contrib/yaml-0.1.4/src/reader.c +465 -0
  55. data/ext/nutcracker/contrib/yaml-0.1.4/src/scanner.c +3570 -0
  56. data/ext/nutcracker/contrib/yaml-0.1.4/src/writer.c +141 -0
  57. data/ext/nutcracker/contrib/yaml-0.1.4/src/yaml_private.h +640 -0
  58. data/ext/nutcracker/contrib/yaml-0.1.4/tests/Makefile.am +8 -0
  59. data/ext/nutcracker/contrib/yaml-0.1.4/tests/Makefile.in +675 -0
  60. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor-alt.c +800 -0
  61. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-deconstructor.c +1130 -0
  62. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter-alt.c +217 -0
  63. data/ext/nutcracker/contrib/yaml-0.1.4/tests/example-reformatter.c +202 -0
  64. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-dumper.c +311 -0
  65. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-emitter.c +327 -0
  66. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-loader.c +63 -0
  67. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-parser.c +63 -0
  68. data/ext/nutcracker/contrib/yaml-0.1.4/tests/run-scanner.c +63 -0
  69. data/ext/nutcracker/contrib/yaml-0.1.4/tests/test-reader.c +354 -0
  70. data/ext/nutcracker/contrib/yaml-0.1.4/tests/test-version.c +29 -0
  71. data/ext/nutcracker/extconf.rb +5 -0
  72. data/ext/nutcracker/m4/libtool.m4 +7376 -0
  73. data/ext/nutcracker/m4/ltoptions.m4 +368 -0
  74. data/ext/nutcracker/m4/ltsugar.m4 +123 -0
  75. data/ext/nutcracker/m4/ltversion.m4 +23 -0
  76. data/ext/nutcracker/m4/lt~obsolete.m4 +92 -0
  77. data/ext/nutcracker/notes/c-styleguide.txt +425 -0
  78. data/ext/nutcracker/notes/debug.txt +96 -0
  79. data/ext/nutcracker/notes/memcache.txt +123 -0
  80. data/ext/nutcracker/notes/recommendation.md +118 -0
  81. data/ext/nutcracker/notes/redis.md +415 -0
  82. data/ext/nutcracker/notes/socket.txt +131 -0
  83. data/ext/nutcracker/scripts/multi_get.sh +26 -0
  84. data/ext/nutcracker/scripts/nutcracker.init +73 -0
  85. data/ext/nutcracker/scripts/nutcracker.spec +52 -0
  86. data/ext/nutcracker/scripts/pipelined_read.sh +23 -0
  87. data/ext/nutcracker/scripts/pipelined_write.sh +29 -0
  88. data/ext/nutcracker/scripts/populate_memcached.sh +24 -0
  89. data/ext/nutcracker/scripts/redis-check.py +23 -0
  90. data/ext/nutcracker/scripts/redis-check.sh +564 -0
  91. data/ext/nutcracker/src/Makefile.am +46 -0
  92. data/ext/nutcracker/src/Makefile.in +726 -0
  93. data/ext/nutcracker/src/hashkit/Makefile.am +22 -0
  94. data/ext/nutcracker/src/hashkit/Makefile.in +501 -0
  95. data/ext/nutcracker/src/hashkit/nc_crc32.c +105 -0
  96. data/ext/nutcracker/src/hashkit/nc_fnv.c +82 -0
  97. data/ext/nutcracker/src/hashkit/nc_hashkit.h +74 -0
  98. data/ext/nutcracker/src/hashkit/nc_hsieh.c +93 -0
  99. data/ext/nutcracker/src/hashkit/nc_jenkins.c +230 -0
  100. data/ext/nutcracker/src/hashkit/nc_ketama.c +240 -0
  101. data/ext/nutcracker/src/hashkit/nc_md5.c +379 -0
  102. data/ext/nutcracker/src/hashkit/nc_modula.c +144 -0
  103. data/ext/nutcracker/src/hashkit/nc_murmur.c +99 -0
  104. data/ext/nutcracker/src/hashkit/nc_one_at_a_time.c +51 -0
  105. data/ext/nutcracker/src/hashkit/nc_random.c +146 -0
  106. data/ext/nutcracker/src/nc.c +573 -0
  107. data/ext/nutcracker/src/nc_array.c +204 -0
  108. data/ext/nutcracker/src/nc_array.h +73 -0
  109. data/ext/nutcracker/src/nc_client.c +189 -0
  110. data/ext/nutcracker/src/nc_client.h +28 -0
  111. data/ext/nutcracker/src/nc_conf.c +1766 -0
  112. data/ext/nutcracker/src/nc_conf.h +134 -0
  113. data/ext/nutcracker/src/nc_connection.c +392 -0
  114. data/ext/nutcracker/src/nc_connection.h +99 -0
  115. data/ext/nutcracker/src/nc_core.c +334 -0
  116. data/ext/nutcracker/src/nc_core.h +131 -0
  117. data/ext/nutcracker/src/nc_event.c +214 -0
  118. data/ext/nutcracker/src/nc_event.h +39 -0
  119. data/ext/nutcracker/src/nc_log.c +254 -0
  120. data/ext/nutcracker/src/nc_log.h +120 -0
  121. data/ext/nutcracker/src/nc_mbuf.c +285 -0
  122. data/ext/nutcracker/src/nc_mbuf.h +67 -0
  123. data/ext/nutcracker/src/nc_message.c +828 -0
  124. data/ext/nutcracker/src/nc_message.h +253 -0
  125. data/ext/nutcracker/src/nc_proxy.c +359 -0
  126. data/ext/nutcracker/src/nc_proxy.h +34 -0
  127. data/ext/nutcracker/src/nc_queue.h +788 -0
  128. data/ext/nutcracker/src/nc_rbtree.c +348 -0
  129. data/ext/nutcracker/src/nc_rbtree.h +47 -0
  130. data/ext/nutcracker/src/nc_request.c +588 -0
  131. data/ext/nutcracker/src/nc_response.c +332 -0
  132. data/ext/nutcracker/src/nc_server.c +841 -0
  133. data/ext/nutcracker/src/nc_server.h +143 -0
  134. data/ext/nutcracker/src/nc_signal.c +131 -0
  135. data/ext/nutcracker/src/nc_signal.h +34 -0
  136. data/ext/nutcracker/src/nc_stats.c +1188 -0
  137. data/ext/nutcracker/src/nc_stats.h +206 -0
  138. data/ext/nutcracker/src/nc_string.c +109 -0
  139. data/ext/nutcracker/src/nc_string.h +112 -0
  140. data/ext/nutcracker/src/nc_util.c +619 -0
  141. data/ext/nutcracker/src/nc_util.h +214 -0
  142. data/ext/nutcracker/src/proto/Makefile.am +14 -0
  143. data/ext/nutcracker/src/proto/Makefile.in +482 -0
  144. data/ext/nutcracker/src/proto/nc_memcache.c +1306 -0
  145. data/ext/nutcracker/src/proto/nc_proto.h +155 -0
  146. data/ext/nutcracker/src/proto/nc_redis.c +2102 -0
  147. data/lib/nutcracker.rb +7 -0
  148. data/lib/nutcracker/version.rb +3 -0
  149. metadata +194 -0
@@ -0,0 +1,155 @@
1
+ # Define the package version numbers and the bug reporting address
2
+ m4_define([NC_MAJOR], 0)
3
+ m4_define([NC_MINOR], 2)
4
+ m4_define([NC_PATCH], 3)
5
+ m4_define([NC_BUGS], [manj@twitter.com])
6
+
7
+ # Initialize autoconf
8
+ AC_PREREQ([2.64])
9
+ AC_INIT([nutcracker], [NC_MAJOR.NC_MINOR.NC_PATCH], [NC_BUGS])
10
+ AC_CONFIG_SRCDIR([src/nc.c])
11
+ AC_CONFIG_AUX_DIR([config])
12
+ AC_CONFIG_HEADERS([config.h:config.h.in])
13
+ AC_CONFIG_MACRO_DIR([m4])
14
+
15
+ # Initialize automake
16
+ AM_INIT_AUTOMAKE([1.9 foreign])
17
+
18
+ # Define macro variables for the package version numbers
19
+ AC_DEFINE(NC_VERSION_MAJOR, NC_MAJOR, [Define the major version number])
20
+ AC_DEFINE(NC_VERSION_MINOR, NC_MINOR, [Define the minor version number])
21
+ AC_DEFINE(NC_VERSION_PATCH, NC_PATCH, [Define the patch version number])
22
+ AC_DEFINE(NC_VERSION_STRING, "NC_MAJOR.NC_MINOR.NC_PATCH", [Define the version string])
23
+
24
+ # Checks for language
25
+ AC_LANG([C])
26
+
27
+ # Checks for programs
28
+ AC_PROG_AWK
29
+ AC_PROG_CC
30
+ AC_PROG_CPP
31
+ AC_PROG_CXX
32
+ AC_PROG_INSTALL
33
+ AC_PROG_LN_S
34
+ AC_PROG_MAKE_SET
35
+ AC_PROG_RANLIB
36
+ AC_PROG_LIBTOOL
37
+
38
+ # Checks for typedefs, structures, and compiler characteristics
39
+ AC_C_INLINE
40
+ AC_TYPE_INT8_T
41
+ AC_TYPE_INT16_T
42
+ AC_TYPE_INT32_T
43
+ AC_TYPE_INT64_T
44
+ AC_TYPE_INTMAX_T
45
+ AC_TYPE_INTPTR_T
46
+ AC_TYPE_UINT8_T
47
+ AC_TYPE_UINT16_T
48
+ AC_TYPE_UINT32_T
49
+ AC_TYPE_UINT64_T
50
+ AC_TYPE_UINTMAX_T
51
+ AC_TYPE_UINTPTR_T
52
+ AC_TYPE_OFF_T
53
+ AC_TYPE_PID_T
54
+ AC_TYPE_SIZE_T
55
+ AC_TYPE_SSIZE_T
56
+
57
+ AC_C_BIGENDIAN(
58
+ [],
59
+ [AC_DEFINE(HAVE_LITTLE_ENDIAN, 1, [Define to 1 if machine is little endian])],
60
+ [AC_MSG_ERROR([endianess of this machine is unknown])],
61
+ [AC_MSG_ERROR([universial endianess not supported])]
62
+ )
63
+
64
+ # Checks for header files
65
+ AC_HEADER_STDBOOL
66
+ AC_CHECK_HEADERS([fcntl.h float.h limits.h stddef.h stdlib.h string.h unistd.h])
67
+ AC_CHECK_HEADERS([inttypes.h stdint.h])
68
+ AC_CHECK_HEADERS([sys/ioctl.h sys/time.h sys/uio.h])
69
+ AC_CHECK_HEADERS([sys/socket.h sys/un.h netinet/in.h arpa/inet.h netdb.h])
70
+ AC_CHECK_HEADERS([sys/epoll.h], [], [AC_MSG_ERROR([required sys/epoll.h header file is missing])])
71
+
72
+ # Checks for libraries
73
+ AC_CHECK_LIB([m], [pow])
74
+ AC_CHECK_LIB([pthread], [pthread_create])
75
+
76
+ # Checks for library functions
77
+ AC_FUNC_FORK
78
+ AC_FUNC_MALLOC
79
+ AC_FUNC_REALLOC
80
+ AC_CHECK_FUNCS([dup2 gethostname gettimeofday strerror])
81
+ AC_CHECK_FUNCS([socket])
82
+ AC_CHECK_FUNCS([memchr memmove memset])
83
+ AC_CHECK_FUNCS([strchr strndup strtoul])
84
+
85
+ AC_CACHE_CHECK([if epoll works], [ac_cv_epoll_works],
86
+ AC_TRY_RUN([
87
+ #include <stdio.h>
88
+ #include <stdlib.h>
89
+ #include <sys/epoll.h>
90
+ int
91
+ main(int argc, char **argv)
92
+ {
93
+ int fd;
94
+
95
+ fd = epoll_create(256);
96
+ if (fd < 0) {
97
+ perror("epoll_create:");
98
+ exit(1);
99
+ }
100
+ exit(0);
101
+ }
102
+ ], [ac_cv_epoll_works=yes], [ac_cv_epoll_works=no]))
103
+ AS_IF([test "x$ac_cv_epoll_works" = "xyes"], [], [AC_MSG_FAILURE([Linux epoll(7) API is missing])])
104
+
105
+ # Package options
106
+ AC_MSG_CHECKING([whether to enable debug logs and asserts])
107
+ AC_ARG_ENABLE([debug],
108
+ [AS_HELP_STRING(
109
+ [--enable-debug=@<:@full|yes|log|no@:>@],
110
+ [enable debug logs and asserts @<:@default=no@:>@])
111
+ ],
112
+ [],
113
+ [enable_debug=no])
114
+ AS_CASE([x$enable_debug],
115
+ [xfull], [AC_DEFINE([HAVE_ASSERT_PANIC], [1],
116
+ [Define to 1 if panic on an assert is enabled])
117
+ AC_DEFINE([HAVE_DEBUG_LOG], [1], [Define to 1 if debug log is enabled])
118
+ ],
119
+ [xyes], [AC_DEFINE([HAVE_ASSERT_LOG], [1],
120
+ [Define to 1 if log on an assert is enabled])
121
+ AC_DEFINE([HAVE_DEBUG_LOG], [1], [Define to 1 if debug log is enabled])
122
+ ],
123
+ [xlog], [AC_DEFINE([HAVE_DEBUG_LOG], [1], [Define to 1 if debug log is enabled])],
124
+ [xno], [],
125
+ [AC_MSG_FAILURE([invalid value ${enable_debug} for --enable-debug])])
126
+ AC_MSG_RESULT($enable_debug)
127
+
128
+ AC_MSG_CHECKING([whether to disable stats])
129
+ AC_ARG_ENABLE([stats],
130
+ [AS_HELP_STRING(
131
+ [--disable-stats],
132
+ [disable stats])
133
+ ],
134
+ [disable_stats=yes],
135
+ [disable_stats=no])
136
+ AS_IF([test "x$disable_stats" = xyes],
137
+ [],
138
+ [AC_DEFINE([HAVE_STATS], [1], [Define to 1 if stats is not disabled])])
139
+ AC_MSG_RESULT($disable_stats)
140
+
141
+ # Untar the yaml-0.1.4 in contrib/ before config.status is rerun
142
+ AC_CONFIG_COMMANDS_PRE([tar xvfz contrib/yaml-0.1.4.tar.gz -C contrib])
143
+
144
+ # Call yaml-0.1.4 ./configure recursively
145
+ AC_CONFIG_SUBDIRS([contrib/yaml-0.1.4])
146
+
147
+ # Define Makefiles
148
+ AC_CONFIG_FILES([Makefile
149
+ contrib/Makefile
150
+ src/Makefile
151
+ src/hashkit/Makefile
152
+ src/proto/Makefile])
153
+
154
+ # Generate the "configure" script
155
+ AC_OUTPUT
@@ -0,0 +1,3 @@
1
+ SUBDIRS = yaml-0.1.4
2
+
3
+ EXTRA_DIST = yaml-0.1.4.tar.gz
@@ -0,0 +1,560 @@
1
+ # Makefile.in generated by automake 1.11 from Makefile.am.
2
+ # @configure_input@
3
+
4
+ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
+ # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6
+ # Inc.
7
+ # This Makefile.in is free software; the Free Software Foundation
8
+ # gives unlimited permission to copy and/or distribute it,
9
+ # with or without modifications, as long as this notice is preserved.
10
+
11
+ # This program is distributed in the hope that it will be useful,
12
+ # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13
+ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
+ # PARTICULAR PURPOSE.
15
+
16
+ @SET_MAKE@
17
+ VPATH = @srcdir@
18
+ pkgdatadir = $(datadir)/@PACKAGE@
19
+ pkgincludedir = $(includedir)/@PACKAGE@
20
+ pkglibdir = $(libdir)/@PACKAGE@
21
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
22
+ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23
+ install_sh_DATA = $(install_sh) -c -m 644
24
+ install_sh_PROGRAM = $(install_sh) -c
25
+ install_sh_SCRIPT = $(install_sh) -c
26
+ INSTALL_HEADER = $(INSTALL_DATA)
27
+ transform = $(program_transform_name)
28
+ NORMAL_INSTALL = :
29
+ PRE_INSTALL = :
30
+ POST_INSTALL = :
31
+ NORMAL_UNINSTALL = :
32
+ PRE_UNINSTALL = :
33
+ POST_UNINSTALL = :
34
+ build_triplet = @build@
35
+ host_triplet = @host@
36
+ subdir = contrib
37
+ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
38
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39
+ am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
40
+ $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
41
+ $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
42
+ $(top_srcdir)/configure.ac
43
+ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44
+ $(ACLOCAL_M4)
45
+ mkinstalldirs = $(install_sh) -d
46
+ CONFIG_HEADER = $(top_builddir)/config.h
47
+ CONFIG_CLEAN_FILES =
48
+ CONFIG_CLEAN_VPATH_FILES =
49
+ SOURCES =
50
+ DIST_SOURCES =
51
+ RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
52
+ html-recursive info-recursive install-data-recursive \
53
+ install-dvi-recursive install-exec-recursive \
54
+ install-html-recursive install-info-recursive \
55
+ install-pdf-recursive install-ps-recursive install-recursive \
56
+ installcheck-recursive installdirs-recursive pdf-recursive \
57
+ ps-recursive uninstall-recursive
58
+ RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
59
+ distclean-recursive maintainer-clean-recursive
60
+ AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
61
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
62
+ distdir
63
+ ETAGS = etags
64
+ CTAGS = ctags
65
+ DIST_SUBDIRS = $(SUBDIRS)
66
+ DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
67
+ am__relativize = \
68
+ dir0=`pwd`; \
69
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
70
+ sed_rest='s,^[^/]*/*,,'; \
71
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
72
+ sed_butlast='s,/*[^/]*$$,,'; \
73
+ while test -n "$$dir1"; do \
74
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
75
+ if test "$$first" != "."; then \
76
+ if test "$$first" = ".."; then \
77
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
78
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
79
+ else \
80
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
81
+ if test "$$first2" = "$$first"; then \
82
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
83
+ else \
84
+ dir2="../$$dir2"; \
85
+ fi; \
86
+ dir0="$$dir0"/"$$first"; \
87
+ fi; \
88
+ fi; \
89
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
90
+ done; \
91
+ reldir="$$dir2"
92
+ ACLOCAL = @ACLOCAL@
93
+ AMTAR = @AMTAR@
94
+ AR = @AR@
95
+ AUTOCONF = @AUTOCONF@
96
+ AUTOHEADER = @AUTOHEADER@
97
+ AUTOMAKE = @AUTOMAKE@
98
+ AWK = @AWK@
99
+ CC = @CC@
100
+ CCDEPMODE = @CCDEPMODE@
101
+ CFLAGS = @CFLAGS@
102
+ CPP = @CPP@
103
+ CPPFLAGS = @CPPFLAGS@
104
+ CXX = @CXX@
105
+ CXXCPP = @CXXCPP@
106
+ CXXDEPMODE = @CXXDEPMODE@
107
+ CXXFLAGS = @CXXFLAGS@
108
+ CYGPATH_W = @CYGPATH_W@
109
+ DEFS = @DEFS@
110
+ DEPDIR = @DEPDIR@
111
+ DSYMUTIL = @DSYMUTIL@
112
+ DUMPBIN = @DUMPBIN@
113
+ ECHO_C = @ECHO_C@
114
+ ECHO_N = @ECHO_N@
115
+ ECHO_T = @ECHO_T@
116
+ EGREP = @EGREP@
117
+ EXEEXT = @EXEEXT@
118
+ FGREP = @FGREP@
119
+ GREP = @GREP@
120
+ INSTALL = @INSTALL@
121
+ INSTALL_DATA = @INSTALL_DATA@
122
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
123
+ INSTALL_SCRIPT = @INSTALL_SCRIPT@
124
+ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125
+ LD = @LD@
126
+ LDFLAGS = @LDFLAGS@
127
+ LIBOBJS = @LIBOBJS@
128
+ LIBS = @LIBS@
129
+ LIBTOOL = @LIBTOOL@
130
+ LIPO = @LIPO@
131
+ LN_S = @LN_S@
132
+ LTLIBOBJS = @LTLIBOBJS@
133
+ MAKEINFO = @MAKEINFO@
134
+ MKDIR_P = @MKDIR_P@
135
+ NM = @NM@
136
+ NMEDIT = @NMEDIT@
137
+ OBJDUMP = @OBJDUMP@
138
+ OBJEXT = @OBJEXT@
139
+ OTOOL = @OTOOL@
140
+ OTOOL64 = @OTOOL64@
141
+ PACKAGE = @PACKAGE@
142
+ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
143
+ PACKAGE_NAME = @PACKAGE_NAME@
144
+ PACKAGE_STRING = @PACKAGE_STRING@
145
+ PACKAGE_TARNAME = @PACKAGE_TARNAME@
146
+ PACKAGE_URL = @PACKAGE_URL@
147
+ PACKAGE_VERSION = @PACKAGE_VERSION@
148
+ PATH_SEPARATOR = @PATH_SEPARATOR@
149
+ RANLIB = @RANLIB@
150
+ SED = @SED@
151
+ SET_MAKE = @SET_MAKE@
152
+ SHELL = @SHELL@
153
+ STRIP = @STRIP@
154
+ VERSION = @VERSION@
155
+ abs_builddir = @abs_builddir@
156
+ abs_srcdir = @abs_srcdir@
157
+ abs_top_builddir = @abs_top_builddir@
158
+ abs_top_srcdir = @abs_top_srcdir@
159
+ ac_ct_CC = @ac_ct_CC@
160
+ ac_ct_CXX = @ac_ct_CXX@
161
+ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
162
+ am__include = @am__include@
163
+ am__leading_dot = @am__leading_dot@
164
+ am__quote = @am__quote@
165
+ am__tar = @am__tar@
166
+ am__untar = @am__untar@
167
+ bindir = @bindir@
168
+ build = @build@
169
+ build_alias = @build_alias@
170
+ build_cpu = @build_cpu@
171
+ build_os = @build_os@
172
+ build_vendor = @build_vendor@
173
+ builddir = @builddir@
174
+ datadir = @datadir@
175
+ datarootdir = @datarootdir@
176
+ docdir = @docdir@
177
+ dvidir = @dvidir@
178
+ exec_prefix = @exec_prefix@
179
+ host = @host@
180
+ host_alias = @host_alias@
181
+ host_cpu = @host_cpu@
182
+ host_os = @host_os@
183
+ host_vendor = @host_vendor@
184
+ htmldir = @htmldir@
185
+ includedir = @includedir@
186
+ infodir = @infodir@
187
+ install_sh = @install_sh@
188
+ libdir = @libdir@
189
+ libexecdir = @libexecdir@
190
+ localedir = @localedir@
191
+ localstatedir = @localstatedir@
192
+ lt_ECHO = @lt_ECHO@
193
+ mandir = @mandir@
194
+ mkdir_p = @mkdir_p@
195
+ oldincludedir = @oldincludedir@
196
+ pdfdir = @pdfdir@
197
+ prefix = @prefix@
198
+ program_transform_name = @program_transform_name@
199
+ psdir = @psdir@
200
+ sbindir = @sbindir@
201
+ sharedstatedir = @sharedstatedir@
202
+ srcdir = @srcdir@
203
+ subdirs = @subdirs@
204
+ sysconfdir = @sysconfdir@
205
+ target_alias = @target_alias@
206
+ top_build_prefix = @top_build_prefix@
207
+ top_builddir = @top_builddir@
208
+ top_srcdir = @top_srcdir@
209
+ SUBDIRS = yaml-0.1.4
210
+ EXTRA_DIST = yaml-0.1.4.tar.gz
211
+ all: all-recursive
212
+
213
+ .SUFFIXES:
214
+ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
215
+ @for dep in $?; do \
216
+ case '$(am__configure_deps)' in \
217
+ *$$dep*) \
218
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
219
+ && { if test -f $@; then exit 0; else break; fi; }; \
220
+ exit 1;; \
221
+ esac; \
222
+ done; \
223
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign contrib/Makefile'; \
224
+ $(am__cd) $(top_srcdir) && \
225
+ $(AUTOMAKE) --foreign contrib/Makefile
226
+ .PRECIOUS: Makefile
227
+ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
228
+ @case '$?' in \
229
+ *config.status*) \
230
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
231
+ *) \
232
+ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
233
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
234
+ esac;
235
+
236
+ $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
237
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
238
+
239
+ $(top_srcdir)/configure: $(am__configure_deps)
240
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
241
+ $(ACLOCAL_M4): $(am__aclocal_m4_deps)
242
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
243
+ $(am__aclocal_m4_deps):
244
+
245
+ mostlyclean-libtool:
246
+ -rm -f *.lo
247
+
248
+ clean-libtool:
249
+ -rm -rf .libs _libs
250
+
251
+ # This directory's subdirectories are mostly independent; you can cd
252
+ # into them and run `make' without going through this Makefile.
253
+ # To change the values of `make' variables: instead of editing Makefiles,
254
+ # (1) if the variable is set in `config.status', edit `config.status'
255
+ # (which will cause the Makefiles to be regenerated when you run `make');
256
+ # (2) otherwise, pass the desired values on the `make' command line.
257
+ $(RECURSIVE_TARGETS):
258
+ @failcom='exit 1'; \
259
+ for f in x $$MAKEFLAGS; do \
260
+ case $$f in \
261
+ *=* | --[!k]*);; \
262
+ *k*) failcom='fail=yes';; \
263
+ esac; \
264
+ done; \
265
+ dot_seen=no; \
266
+ target=`echo $@ | sed s/-recursive//`; \
267
+ list='$(SUBDIRS)'; for subdir in $$list; do \
268
+ echo "Making $$target in $$subdir"; \
269
+ if test "$$subdir" = "."; then \
270
+ dot_seen=yes; \
271
+ local_target="$$target-am"; \
272
+ else \
273
+ local_target="$$target"; \
274
+ fi; \
275
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
276
+ || eval $$failcom; \
277
+ done; \
278
+ if test "$$dot_seen" = "no"; then \
279
+ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
280
+ fi; test -z "$$fail"
281
+
282
+ $(RECURSIVE_CLEAN_TARGETS):
283
+ @failcom='exit 1'; \
284
+ for f in x $$MAKEFLAGS; do \
285
+ case $$f in \
286
+ *=* | --[!k]*);; \
287
+ *k*) failcom='fail=yes';; \
288
+ esac; \
289
+ done; \
290
+ dot_seen=no; \
291
+ case "$@" in \
292
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
293
+ *) list='$(SUBDIRS)' ;; \
294
+ esac; \
295
+ rev=''; for subdir in $$list; do \
296
+ if test "$$subdir" = "."; then :; else \
297
+ rev="$$subdir $$rev"; \
298
+ fi; \
299
+ done; \
300
+ rev="$$rev ."; \
301
+ target=`echo $@ | sed s/-recursive//`; \
302
+ for subdir in $$rev; do \
303
+ echo "Making $$target in $$subdir"; \
304
+ if test "$$subdir" = "."; then \
305
+ local_target="$$target-am"; \
306
+ else \
307
+ local_target="$$target"; \
308
+ fi; \
309
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
310
+ || eval $$failcom; \
311
+ done && test -z "$$fail"
312
+ tags-recursive:
313
+ list='$(SUBDIRS)'; for subdir in $$list; do \
314
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
315
+ done
316
+ ctags-recursive:
317
+ list='$(SUBDIRS)'; for subdir in $$list; do \
318
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
319
+ done
320
+
321
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
322
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
323
+ unique=`for i in $$list; do \
324
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
325
+ done | \
326
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
327
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
328
+ mkid -fID $$unique
329
+ tags: TAGS
330
+
331
+ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
332
+ $(TAGS_FILES) $(LISP)
333
+ set x; \
334
+ here=`pwd`; \
335
+ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
336
+ include_option=--etags-include; \
337
+ empty_fix=.; \
338
+ else \
339
+ include_option=--include; \
340
+ empty_fix=; \
341
+ fi; \
342
+ list='$(SUBDIRS)'; for subdir in $$list; do \
343
+ if test "$$subdir" = .; then :; else \
344
+ test ! -f $$subdir/TAGS || \
345
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
346
+ fi; \
347
+ done; \
348
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
349
+ unique=`for i in $$list; do \
350
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
351
+ done | \
352
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
353
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
354
+ shift; \
355
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
356
+ test -n "$$unique" || unique=$$empty_fix; \
357
+ if test $$# -gt 0; then \
358
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
359
+ "$$@" $$unique; \
360
+ else \
361
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
362
+ $$unique; \
363
+ fi; \
364
+ fi
365
+ ctags: CTAGS
366
+ CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
367
+ $(TAGS_FILES) $(LISP)
368
+ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
369
+ unique=`for i in $$list; do \
370
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
371
+ done | \
372
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
373
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
374
+ test -z "$(CTAGS_ARGS)$$unique" \
375
+ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
376
+ $$unique
377
+
378
+ GTAGS:
379
+ here=`$(am__cd) $(top_builddir) && pwd` \
380
+ && $(am__cd) $(top_srcdir) \
381
+ && gtags -i $(GTAGS_ARGS) "$$here"
382
+
383
+ distclean-tags:
384
+ -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
385
+
386
+ distdir: $(DISTFILES)
387
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
388
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
389
+ list='$(DISTFILES)'; \
390
+ dist_files=`for file in $$list; do echo $$file; done | \
391
+ sed -e "s|^$$srcdirstrip/||;t" \
392
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
393
+ case $$dist_files in \
394
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
395
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
396
+ sort -u` ;; \
397
+ esac; \
398
+ for file in $$dist_files; do \
399
+ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
400
+ if test -d $$d/$$file; then \
401
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
402
+ if test -d "$(distdir)/$$file"; then \
403
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
404
+ fi; \
405
+ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
406
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
407
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
408
+ fi; \
409
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
410
+ else \
411
+ test -f "$(distdir)/$$file" \
412
+ || cp -p $$d/$$file "$(distdir)/$$file" \
413
+ || exit 1; \
414
+ fi; \
415
+ done
416
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
417
+ if test "$$subdir" = .; then :; else \
418
+ test -d "$(distdir)/$$subdir" \
419
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
420
+ || exit 1; \
421
+ fi; \
422
+ done
423
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
424
+ if test "$$subdir" = .; then :; else \
425
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
426
+ $(am__relativize); \
427
+ new_distdir=$$reldir; \
428
+ dir1=$$subdir; dir2="$(top_distdir)"; \
429
+ $(am__relativize); \
430
+ new_top_distdir=$$reldir; \
431
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
432
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
433
+ ($(am__cd) $$subdir && \
434
+ $(MAKE) $(AM_MAKEFLAGS) \
435
+ top_distdir="$$new_top_distdir" \
436
+ distdir="$$new_distdir" \
437
+ am__remove_distdir=: \
438
+ am__skip_length_check=: \
439
+ am__skip_mode_fix=: \
440
+ distdir) \
441
+ || exit 1; \
442
+ fi; \
443
+ done
444
+ check-am: all-am
445
+ check: check-recursive
446
+ all-am: Makefile
447
+ installdirs: installdirs-recursive
448
+ installdirs-am:
449
+ install: install-recursive
450
+ install-exec: install-exec-recursive
451
+ install-data: install-data-recursive
452
+ uninstall: uninstall-recursive
453
+
454
+ install-am: all-am
455
+ @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
456
+
457
+ installcheck: installcheck-recursive
458
+ install-strip:
459
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
460
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
461
+ `test -z '$(STRIP)' || \
462
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
463
+ mostlyclean-generic:
464
+
465
+ clean-generic:
466
+
467
+ distclean-generic:
468
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
469
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
470
+
471
+ maintainer-clean-generic:
472
+ @echo "This command is intended for maintainers to use"
473
+ @echo "it deletes files that may require special tools to rebuild."
474
+ clean: clean-recursive
475
+
476
+ clean-am: clean-generic clean-libtool mostlyclean-am
477
+
478
+ distclean: distclean-recursive
479
+ -rm -f Makefile
480
+ distclean-am: clean-am distclean-generic distclean-tags
481
+
482
+ dvi: dvi-recursive
483
+
484
+ dvi-am:
485
+
486
+ html: html-recursive
487
+
488
+ html-am:
489
+
490
+ info: info-recursive
491
+
492
+ info-am:
493
+
494
+ install-data-am:
495
+
496
+ install-dvi: install-dvi-recursive
497
+
498
+ install-dvi-am:
499
+
500
+ install-exec-am:
501
+
502
+ install-html: install-html-recursive
503
+
504
+ install-html-am:
505
+
506
+ install-info: install-info-recursive
507
+
508
+ install-info-am:
509
+
510
+ install-man:
511
+
512
+ install-pdf: install-pdf-recursive
513
+
514
+ install-pdf-am:
515
+
516
+ install-ps: install-ps-recursive
517
+
518
+ install-ps-am:
519
+
520
+ installcheck-am:
521
+
522
+ maintainer-clean: maintainer-clean-recursive
523
+ -rm -f Makefile
524
+ maintainer-clean-am: distclean-am maintainer-clean-generic
525
+
526
+ mostlyclean: mostlyclean-recursive
527
+
528
+ mostlyclean-am: mostlyclean-generic mostlyclean-libtool
529
+
530
+ pdf: pdf-recursive
531
+
532
+ pdf-am:
533
+
534
+ ps: ps-recursive
535
+
536
+ ps-am:
537
+
538
+ uninstall-am:
539
+
540
+ .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
541
+ install-am install-strip tags-recursive
542
+
543
+ .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
544
+ all all-am check check-am clean clean-generic clean-libtool \
545
+ ctags ctags-recursive distclean distclean-generic \
546
+ distclean-libtool distclean-tags distdir dvi dvi-am html \
547
+ html-am info info-am install install-am install-data \
548
+ install-data-am install-dvi install-dvi-am install-exec \
549
+ install-exec-am install-html install-html-am install-info \
550
+ install-info-am install-man install-pdf install-pdf-am \
551
+ install-ps install-ps-am install-strip installcheck \
552
+ installcheck-am installdirs installdirs-am maintainer-clean \
553
+ maintainer-clean-generic mostlyclean mostlyclean-generic \
554
+ mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
555
+ uninstall uninstall-am
556
+
557
+
558
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
559
+ # Otherwise a system limit (for SysV at least) may be exceeded.
560
+ .NOEXPORT: