rice 1.4.3 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. data/COPYING +2 -2
  2. data/Doxyfile +1 -1
  3. data/Makefile.in +296 -166
  4. data/README +18 -13
  5. data/Rakefile +3 -2
  6. data/aclocal.m4 +375 -248
  7. data/config.guess +296 -261
  8. data/config.sub +268 -94
  9. data/configure +2789 -3054
  10. data/configure.ac +1 -1
  11. data/depcomp +403 -197
  12. data/extconf.rb +14 -3
  13. data/install-sh +139 -119
  14. data/missing +154 -306
  15. data/rice/Builtin_Object_defn.hpp +0 -1
  16. data/rice/Constructor.hpp +31 -30
  17. data/rice/Data_Object_defn.hpp +8 -2
  18. data/rice/Hash.hpp +26 -9
  19. data/rice/Hash.ipp +52 -60
  20. data/rice/Makefile.am +0 -1
  21. data/rice/Makefile.in +278 -152
  22. data/rice/Module_impl.ipp +1 -1
  23. data/rice/VM.cpp +1 -11
  24. data/rice/config.hpp +3 -0
  25. data/rice/config.hpp.in +3 -0
  26. data/rice/detail/Auto_Function_Wrapper.hpp +69 -0
  27. data/rice/detail/Auto_Function_Wrapper.ipp +815 -512
  28. data/rice/detail/Auto_Member_Function_Wrapper.hpp +69 -0
  29. data/rice/detail/Auto_Member_Function_Wrapper.ipp +543 -272
  30. data/rice/detail/object_call.hpp +1 -0
  31. data/rice/detail/ruby.hpp +0 -9
  32. data/rice/detail/ruby_version_code.hpp +1 -1
  33. data/rice/detail/st.hpp +0 -38
  34. data/rice/protect.hpp +1 -0
  35. data/rice/protect.ipp +1 -0
  36. data/rice/to_from_ruby.ipp +1 -1
  37. data/ruby.ac +2 -2
  38. data/ruby/Makefile.in +221 -134
  39. data/ruby/lib/Makefile.in +133 -44
  40. data/ruby/lib/mkmf-rice.rb.in +1 -4
  41. data/ruby/lib/version.rb +1 -1
  42. data/sample/Makefile.in +96 -31
  43. data/test/Makefile.am +0 -1
  44. data/test/Makefile.in +617 -219
  45. data/test/ext/Makefile.in +96 -31
  46. data/test/test_Class.cpp +2 -2
  47. data/test/test_Data_Object.cpp +11 -11
  48. data/test/test_Hash.cpp +7 -4
  49. data/test/test_Module.cpp +17 -1
  50. data/test/test_To_From_Ruby.cpp +44 -0
  51. data/test/test_rice.rb +2 -2
  52. metadata +29 -43
  53. data/rice/Allocation_Strategies.hpp +0 -37
  54. data/test/test_Allocation_Strategies.cpp +0 -77
@@ -65,4 +65,5 @@ Object call(Identifier id, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5,
65
65
  template<typename T0, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10, typename T11, typename T12, typename T13, typename T14>
66
66
  Object call(Identifier id, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8, T9 arg9, T10 arg10, T11 arg11, T12 arg12, T13 arg13, T14 arg14) const;
67
67
 
68
+
68
69
  #endif
data/rice/detail/ruby.hpp CHANGED
@@ -16,17 +16,8 @@
16
16
 
17
17
  #include "ruby_version_code.hpp"
18
18
 
19
- // workaround for ruby 1.8.4, which defines eaccess and shouldn't
20
- #if RICE__RUBY_VERSION_CODE <= 184
21
- #define eaccess ruby_eaccess
22
- #endif
23
-
24
19
  #include <ruby.h>
25
20
 
26
- #if RICE__RUBY_VERSION_CODE <= 184
27
- #undef eaccess
28
- #endif
29
-
30
21
  #ifdef WIN32
31
22
  #include "win32.hpp"
32
23
  #endif
@@ -1,6 +1,6 @@
1
1
  #ifndef Rice__detail__ruby_version_code__hpp
2
2
  #define Rice__detail__ruby_version_code__hpp
3
3
 
4
- #define RICE__RUBY_VERSION_CODE 192
4
+ #define RICE__RUBY_VERSION_CODE 200
5
5
 
6
6
  #endif // Rice__detail__ruby_version_code__hpp
data/rice/detail/st.hpp CHANGED
@@ -19,42 +19,4 @@ extern "C"
19
19
  #endif
20
20
  }
21
21
 
22
- // Older versions of Ruby don't have proper signatures for the st_
23
- // functions
24
-
25
- #if RICE__RUBY_VERSION_CODE < 180
26
-
27
- typedef char * st_data_t;
28
-
29
- namespace Exc_Ruby
30
- {
31
-
32
- namespace detail
33
- {
34
-
35
- extern "C" typedef int (*St_Insert_Signature)(
36
- st_table * table,
37
- st_data_t key,
38
- st_data_t * value);
39
- extern "C" typedef int (*St_Lookup_Signature)(
40
- st_table * table,
41
- st_data_t key,
42
- st_data_t * value);
43
- extern "C" typedef st_table* (*St_Init_Table_Signature)(
44
- struct st_hash_type * type);
45
-
46
- #define st_insert(table, key, value) \
47
- ((::Exc_Ruby::detail::St_Insert_Signature)(st_insert))(table, key, value)
48
- #define st_lookup(table, key, value) \
49
- ((::Exc_Ruby::detail::St_Lookup_Signature)(st_lookup))(table, key, value)
50
- #define st_init_table(type) \
51
- ((::Exc_Ruby::detail::St_Init_Table_Signature)(st_init_table))(type)
52
-
53
- } // namespace detail
54
-
55
- } // namespace Exc_Ruby
56
-
57
- #endif // RICE__RUBY_VERSION_CODE < 180
58
-
59
22
  #endif // Exc_Ruby___cpp__st__hpp_
60
-
data/rice/protect.hpp CHANGED
@@ -81,6 +81,7 @@ VALUE protect(Fun fun, T0 const & t0, T1 const & t1, T2 const & t2, T3 const & t
81
81
  template<typename Fun, typename T0, typename T1, typename T2, typename T3, typename T4, typename T5, typename T6, typename T7, typename T8, typename T9, typename T10, typename T11, typename T12, typename T13, typename T14>
82
82
  VALUE protect(Fun fun, T0 const & t0, T1 const & t1, T2 const & t2, T3 const & t3, T4 const & t4, T5 const & t5, T6 const & t6, T7 const & t7, T8 const & t8, T9 const & t9, T10 const & t10, T11 const & t11, T12 const & t12, T13 const & t13, T14 const & t14);
83
83
 
84
+
84
85
  #endif // DOXYGEN
85
86
 
86
87
  } // namespace Rice
data/rice/protect.ipp CHANGED
@@ -1126,6 +1126,7 @@ inline VALUE protect(Fun fun, T0 const & t0, T1 const & t1, T2 const & t2, T3 co
1126
1126
  }
1127
1127
 
1128
1128
  // ---------------------------------------------------------------------
1129
+
1129
1130
  } // namespace Rice
1130
1131
 
1131
1132
 
@@ -164,7 +164,7 @@ char from_ruby<char>(Rice::Object x)
164
164
  {
165
165
  if(x.rb_type() == T_STRING)
166
166
  {
167
- if(RSTRING_LEN(x.value()) == 0)
167
+ if(RSTRING_LEN(x.value()) == 1)
168
168
  {
169
169
  return RSTRING_PTR(x.value())[0];
170
170
  }
data/ruby.ac CHANGED
@@ -1,6 +1,6 @@
1
1
  dnl Get a key from ruby's configuration table
2
2
  AC_DEFUN([RUBY_CONFIG], [
3
- $RUBY -rrbconfig -e "puts(Config::CONFIG[['$1']] || '')"])
3
+ $RUBY -rrbconfig -e "puts(RbConfig::CONFIG[['$1']] || '')"])
4
4
 
5
5
  AC_DEFUN([RB_INIT_RUBY], [
6
6
 
@@ -77,7 +77,7 @@ else
77
77
  RUBY_SITELIBDIR=`RUBY_CONFIG(sitelibdir)`
78
78
  else
79
79
  sitelibdir_no_prefix=`$RUBY -rrbconfig \
80
- -e "include Config; \
80
+ -e "include RbConfig; \
81
81
  puts CONFIG[['sitelibdir']].sub(CONFIG[['prefix']], '')"`
82
82
  RUBY_SITELIBDIR="${prefix}/${sitelibdir_no_prefix}"
83
83
  fi
data/ruby/Makefile.in CHANGED
@@ -1,8 +1,8 @@
1
- # Makefile.in generated by automake 1.10 from Makefile.am.
1
+ # Makefile.in generated by automake 1.13.1 from Makefile.am.
2
2
  # @configure_input@
3
3
 
4
- # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5
- # 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
4
+ # Copyright (C) 1994-2012 Free Software Foundation, Inc.
5
+
6
6
  # This Makefile.in is free software; the Free Software Foundation
7
7
  # gives unlimited permission to copy and/or distribute it,
8
8
  # with or without modifications, as long as this notice is preserved.
@@ -14,9 +14,27 @@
14
14
 
15
15
  @SET_MAKE@
16
16
  VPATH = @srcdir@
17
+ am__make_dryrun = \
18
+ { \
19
+ am__dry=no; \
20
+ case $$MAKEFLAGS in \
21
+ *\\[\ \ ]*) \
22
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
23
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
24
+ *) \
25
+ for am__flg in $$MAKEFLAGS; do \
26
+ case $$am__flg in \
27
+ *=*|--*) ;; \
28
+ *n*) am__dry=yes; break;; \
29
+ esac; \
30
+ done;; \
31
+ esac; \
32
+ test $$am__dry = yes; \
33
+ }
17
34
  pkgdatadir = $(datadir)/@PACKAGE@
18
- pkglibdir = $(libdir)/@PACKAGE@
19
35
  pkgincludedir = $(includedir)/@PACKAGE@
36
+ pkglibdir = $(libdir)/@PACKAGE@
37
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
20
38
  am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
21
39
  install_sh_DATA = $(install_sh) -c -m 644
22
40
  install_sh_PROGRAM = $(install_sh) -c
@@ -32,7 +50,7 @@ POST_UNINSTALL = :
32
50
  build_triplet = @build@
33
51
  host_triplet = @host@
34
52
  subdir = ruby
35
- DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
53
+ DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am
36
54
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
37
55
  am__aclocal_m4_deps = $(top_srcdir)/ruby.ac $(top_srcdir)/doxygen.ac \
38
56
  $(top_srcdir)/configure.ac
@@ -41,23 +59,91 @@ am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
41
59
  mkinstalldirs = $(install_sh) -d
42
60
  CONFIG_HEADER = $(top_builddir)/rice/config.hpp
43
61
  CONFIG_CLEAN_FILES =
62
+ CONFIG_CLEAN_VPATH_FILES =
63
+ AM_V_P = $(am__v_P_@AM_V@)
64
+ am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
65
+ am__v_P_0 = false
66
+ am__v_P_1 = :
67
+ AM_V_GEN = $(am__v_GEN_@AM_V@)
68
+ am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
69
+ am__v_GEN_0 = @echo " GEN " $@;
70
+ am__v_GEN_1 =
71
+ AM_V_at = $(am__v_at_@AM_V@)
72
+ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
73
+ am__v_at_0 = @
74
+ am__v_at_1 =
44
75
  SOURCES =
45
76
  DIST_SOURCES =
46
- RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
47
- html-recursive info-recursive install-data-recursive \
48
- install-dvi-recursive install-exec-recursive \
49
- install-html-recursive install-info-recursive \
50
- install-pdf-recursive install-ps-recursive install-recursive \
51
- installcheck-recursive installdirs-recursive pdf-recursive \
52
- ps-recursive uninstall-recursive
77
+ RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
78
+ ctags-recursive dvi-recursive html-recursive info-recursive \
79
+ install-data-recursive install-dvi-recursive \
80
+ install-exec-recursive install-html-recursive \
81
+ install-info-recursive install-pdf-recursive \
82
+ install-ps-recursive install-recursive installcheck-recursive \
83
+ installdirs-recursive pdf-recursive ps-recursive \
84
+ tags-recursive uninstall-recursive
85
+ am__can_run_installinfo = \
86
+ case $$AM_UPDATE_INFO_DIR in \
87
+ n|no|NO) false;; \
88
+ *) (install-info --version) >/dev/null 2>&1;; \
89
+ esac
53
90
  RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
54
91
  distclean-recursive maintainer-clean-recursive
92
+ am__recursive_targets = \
93
+ $(RECURSIVE_TARGETS) \
94
+ $(RECURSIVE_CLEAN_TARGETS) \
95
+ $(am__extra_recursive_targets)
96
+ AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
97
+ distdir
98
+ am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
99
+ # Read a list of newline-separated strings from the standard input,
100
+ # and print each of them once, without duplicates. Input order is
101
+ # *not* preserved.
102
+ am__uniquify_input = $(AWK) '\
103
+ BEGIN { nonempty = 0; } \
104
+ { items[$$0] = 1; nonempty = 1; } \
105
+ END { if (nonempty) { for (i in items) print i; }; } \
106
+ '
107
+ # Make sure the list of sources is unique. This is necessary because,
108
+ # e.g., the same source file might be shared among _SOURCES variables
109
+ # for different programs/libraries.
110
+ am__define_uniq_tagged_files = \
111
+ list='$(am__tagged_files)'; \
112
+ unique=`for i in $$list; do \
113
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
114
+ done | $(am__uniquify_input)`
55
115
  ETAGS = etags
56
116
  CTAGS = ctags
57
117
  DIST_SUBDIRS = $(SUBDIRS)
58
118
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
119
+ am__relativize = \
120
+ dir0=`pwd`; \
121
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
122
+ sed_rest='s,^[^/]*/*,,'; \
123
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
124
+ sed_butlast='s,/*[^/]*$$,,'; \
125
+ while test -n "$$dir1"; do \
126
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
127
+ if test "$$first" != "."; then \
128
+ if test "$$first" = ".."; then \
129
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
130
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
131
+ else \
132
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
133
+ if test "$$first2" = "$$first"; then \
134
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
135
+ else \
136
+ dir2="../$$dir2"; \
137
+ fi; \
138
+ dir0="$$dir0"/"$$first"; \
139
+ fi; \
140
+ fi; \
141
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
142
+ done; \
143
+ reldir="$$dir2"
59
144
  ACLOCAL = @ACLOCAL@
60
145
  AMTAR = @AMTAR@
146
+ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
61
147
  AUTOCONF = @AUTOCONF@
62
148
  AUTOHEADER = @AUTOHEADER@
63
149
  AUTOMAKE = @AUTOMAKE@
@@ -114,6 +200,7 @@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
114
200
  PACKAGE_NAME = @PACKAGE_NAME@
115
201
  PACKAGE_STRING = @PACKAGE_STRING@
116
202
  PACKAGE_TARNAME = @PACKAGE_TARNAME@
203
+ PACKAGE_URL = @PACKAGE_URL@
117
204
  PACKAGE_VERSION = @PACKAGE_VERSION@
118
205
  PATH_SEPARATOR = @PATH_SEPARATOR@
119
206
  RANLIB = @RANLIB@
@@ -183,6 +270,7 @@ sharedstatedir = @sharedstatedir@
183
270
  srcdir = @srcdir@
184
271
  sysconfdir = @sysconfdir@
185
272
  target_alias = @target_alias@
273
+ top_build_prefix = @top_build_prefix@
186
274
  top_builddir = @top_builddir@
187
275
  top_srcdir = @top_srcdir@
188
276
  SUBDIRS = lib
@@ -193,14 +281,14 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
193
281
  @for dep in $?; do \
194
282
  case '$(am__configure_deps)' in \
195
283
  *$$dep*) \
196
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
197
- && exit 0; \
284
+ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
285
+ && { if test -f $@; then exit 0; else break; fi; }; \
198
286
  exit 1;; \
199
287
  esac; \
200
288
  done; \
201
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ruby/Makefile'; \
202
- cd $(top_srcdir) && \
203
- $(AUTOMAKE) --gnu ruby/Makefile
289
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu ruby/Makefile'; \
290
+ $(am__cd) $(top_srcdir) && \
291
+ $(AUTOMAKE) --gnu ruby/Makefile
204
292
  .PRECIOUS: Makefile
205
293
  Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
206
294
  @case '$?' in \
@@ -218,15 +306,16 @@ $(top_srcdir)/configure: $(am__configure_deps)
218
306
  cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
219
307
  $(ACLOCAL_M4): $(am__aclocal_m4_deps)
220
308
  cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
309
+ $(am__aclocal_m4_deps):
221
310
 
222
311
  # This directory's subdirectories are mostly independent; you can cd
223
- # into them and run `make' without going through this Makefile.
224
- # To change the values of `make' variables: instead of editing Makefiles,
225
- # (1) if the variable is set in `config.status', edit `config.status'
226
- # (which will cause the Makefiles to be regenerated when you run `make');
227
- # (2) otherwise, pass the desired values on the `make' command line.
228
- $(RECURSIVE_TARGETS):
229
- @failcom='exit 1'; \
312
+ # into them and run 'make' without going through this Makefile.
313
+ # To change the values of 'make' variables: instead of editing Makefiles,
314
+ # (1) if the variable is set in 'config.status', edit 'config.status'
315
+ # (which will cause the Makefiles to be regenerated when you run 'make');
316
+ # (2) otherwise, pass the desired values on the 'make' command line.
317
+ $(am__recursive_targets):
318
+ @fail= failcom='exit 1'; \
230
319
  for f in x $$MAKEFLAGS; do \
231
320
  case $$f in \
232
321
  *=* | --[!k]*);; \
@@ -235,7 +324,11 @@ $(RECURSIVE_TARGETS):
235
324
  done; \
236
325
  dot_seen=no; \
237
326
  target=`echo $@ | sed s/-recursive//`; \
238
- list='$(SUBDIRS)'; for subdir in $$list; do \
327
+ case "$@" in \
328
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
329
+ *) list='$(SUBDIRS)' ;; \
330
+ esac; \
331
+ for subdir in $$list; do \
239
332
  echo "Making $$target in $$subdir"; \
240
333
  if test "$$subdir" = "."; then \
241
334
  dot_seen=yes; \
@@ -243,65 +336,20 @@ $(RECURSIVE_TARGETS):
243
336
  else \
244
337
  local_target="$$target"; \
245
338
  fi; \
246
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
339
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
247
340
  || eval $$failcom; \
248
341
  done; \
249
342
  if test "$$dot_seen" = "no"; then \
250
343
  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
251
344
  fi; test -z "$$fail"
252
345
 
253
- $(RECURSIVE_CLEAN_TARGETS):
254
- @failcom='exit 1'; \
255
- for f in x $$MAKEFLAGS; do \
256
- case $$f in \
257
- *=* | --[!k]*);; \
258
- *k*) failcom='fail=yes';; \
259
- esac; \
260
- done; \
261
- dot_seen=no; \
262
- case "$@" in \
263
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
264
- *) list='$(SUBDIRS)' ;; \
265
- esac; \
266
- rev=''; for subdir in $$list; do \
267
- if test "$$subdir" = "."; then :; else \
268
- rev="$$subdir $$rev"; \
269
- fi; \
270
- done; \
271
- rev="$$rev ."; \
272
- target=`echo $@ | sed s/-recursive//`; \
273
- for subdir in $$rev; do \
274
- echo "Making $$target in $$subdir"; \
275
- if test "$$subdir" = "."; then \
276
- local_target="$$target-am"; \
277
- else \
278
- local_target="$$target"; \
279
- fi; \
280
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
281
- || eval $$failcom; \
282
- done && test -z "$$fail"
283
- tags-recursive:
284
- list='$(SUBDIRS)'; for subdir in $$list; do \
285
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
286
- done
287
- ctags-recursive:
288
- list='$(SUBDIRS)'; for subdir in $$list; do \
289
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
290
- done
346
+ ID: $(am__tagged_files)
347
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
348
+ tags: tags-recursive
349
+ TAGS: tags
291
350
 
292
- ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
293
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
294
- unique=`for i in $$list; do \
295
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
296
- done | \
297
- $(AWK) ' { files[$$0] = 1; } \
298
- END { for (i in files) print i; }'`; \
299
- mkid -fID $$unique
300
- tags: TAGS
301
-
302
- TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
303
- $(TAGS_FILES) $(LISP)
304
- tags=; \
351
+ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
352
+ set x; \
305
353
  here=`pwd`; \
306
354
  if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
307
355
  include_option=--etags-include; \
@@ -313,39 +361,49 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
313
361
  list='$(SUBDIRS)'; for subdir in $$list; do \
314
362
  if test "$$subdir" = .; then :; else \
315
363
  test ! -f $$subdir/TAGS || \
316
- tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
364
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
317
365
  fi; \
318
366
  done; \
319
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
320
- unique=`for i in $$list; do \
321
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
322
- done | \
323
- $(AWK) ' { files[$$0] = 1; } \
324
- END { for (i in files) print i; }'`; \
325
- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
367
+ $(am__define_uniq_tagged_files); \
368
+ shift; \
369
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
326
370
  test -n "$$unique" || unique=$$empty_fix; \
327
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
328
- $$tags $$unique; \
371
+ if test $$# -gt 0; then \
372
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
373
+ "$$@" $$unique; \
374
+ else \
375
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
376
+ $$unique; \
377
+ fi; \
329
378
  fi
330
- ctags: CTAGS
331
- CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
332
- $(TAGS_FILES) $(LISP)
333
- tags=; \
334
- here=`pwd`; \
335
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
336
- unique=`for i in $$list; do \
337
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
338
- done | \
339
- $(AWK) ' { files[$$0] = 1; } \
340
- END { for (i in files) print i; }'`; \
341
- test -z "$(CTAGS_ARGS)$$tags$$unique" \
379
+ ctags: ctags-recursive
380
+
381
+ CTAGS: ctags
382
+ ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
383
+ $(am__define_uniq_tagged_files); \
384
+ test -z "$(CTAGS_ARGS)$$unique" \
342
385
  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
343
- $$tags $$unique
386
+ $$unique
344
387
 
345
388
  GTAGS:
346
389
  here=`$(am__cd) $(top_builddir) && pwd` \
347
- && cd $(top_srcdir) \
348
- && gtags -i $(GTAGS_ARGS) $$here
390
+ && $(am__cd) $(top_srcdir) \
391
+ && gtags -i $(GTAGS_ARGS) "$$here"
392
+ cscopelist: cscopelist-recursive
393
+
394
+ cscopelist-am: $(am__tagged_files)
395
+ list='$(am__tagged_files)'; \
396
+ case "$(srcdir)" in \
397
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
398
+ *) sdir=$(subdir)/$(srcdir) ;; \
399
+ esac; \
400
+ for i in $$list; do \
401
+ if test -f "$$i"; then \
402
+ echo "$(subdir)/$$i"; \
403
+ else \
404
+ echo "$$sdir/$$i"; \
405
+ fi; \
406
+ done >> $(top_builddir)/cscope.files
349
407
 
350
408
  distclean-tags:
351
409
  -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
@@ -366,29 +424,41 @@ distdir: $(DISTFILES)
366
424
  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
367
425
  if test -d $$d/$$file; then \
368
426
  dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
427
+ if test -d "$(distdir)/$$file"; then \
428
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
429
+ fi; \
369
430
  if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
370
- cp -pR $(srcdir)/$$file "$(distdir)"$$dir || exit 1; \
431
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
432
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
371
433
  fi; \
372
- cp -pR $$d/$$file "$(distdir)"$$dir || exit 1; \
434
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
373
435
  else \
374
- test -f "$(distdir)"/$$file \
375
- || cp -p $$d/$$file "$(distdir)"/$$file \
436
+ test -f "$(distdir)/$$file" \
437
+ || cp -p $$d/$$file "$(distdir)/$$file" \
376
438
  || exit 1; \
377
439
  fi; \
378
440
  done
379
- list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
441
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
380
442
  if test "$$subdir" = .; then :; else \
381
- test -d "$(distdir)/$$subdir" \
382
- || $(MKDIR_P) "$(distdir)/$$subdir" \
383
- || exit 1; \
384
- distdir=`$(am__cd) "$(distdir)" && pwd`; \
385
- top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
386
- (cd $$subdir && \
443
+ $(am__make_dryrun) \
444
+ || test -d "$(distdir)/$$subdir" \
445
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
446
+ || exit 1; \
447
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
448
+ $(am__relativize); \
449
+ new_distdir=$$reldir; \
450
+ dir1=$$subdir; dir2="$(top_distdir)"; \
451
+ $(am__relativize); \
452
+ new_top_distdir=$$reldir; \
453
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
454
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
455
+ ($(am__cd) $$subdir && \
387
456
  $(MAKE) $(AM_MAKEFLAGS) \
388
- top_distdir="$$top_distdir" \
389
- distdir="$$distdir/$$subdir" \
457
+ top_distdir="$$new_top_distdir" \
458
+ distdir="$$new_distdir" \
390
459
  am__remove_distdir=: \
391
460
  am__skip_length_check=: \
461
+ am__skip_mode_fix=: \
392
462
  distdir) \
393
463
  || exit 1; \
394
464
  fi; \
@@ -408,16 +478,22 @@ install-am: all-am
408
478
 
409
479
  installcheck: installcheck-recursive
410
480
  install-strip:
411
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
412
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
413
- `test -z '$(STRIP)' || \
414
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
481
+ if test -z '$(STRIP)'; then \
482
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
483
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
484
+ install; \
485
+ else \
486
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
487
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
488
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
489
+ fi
415
490
  mostlyclean-generic:
416
491
 
417
492
  clean-generic:
418
493
 
419
494
  distclean-generic:
420
495
  -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
496
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
421
497
 
422
498
  maintainer-clean-generic:
423
499
  @echo "This command is intended for maintainers to use"
@@ -436,6 +512,8 @@ dvi-am:
436
512
 
437
513
  html: html-recursive
438
514
 
515
+ html-am:
516
+
439
517
  info: info-recursive
440
518
 
441
519
  info-am:
@@ -444,18 +522,28 @@ install-data-am:
444
522
 
445
523
  install-dvi: install-dvi-recursive
446
524
 
525
+ install-dvi-am:
526
+
447
527
  install-exec-am:
448
528
 
449
529
  install-html: install-html-recursive
450
530
 
531
+ install-html-am:
532
+
451
533
  install-info: install-info-recursive
452
534
 
535
+ install-info-am:
536
+
453
537
  install-man:
454
538
 
455
539
  install-pdf: install-pdf-recursive
456
540
 
541
+ install-pdf-am:
542
+
457
543
  install-ps: install-ps-recursive
458
544
 
545
+ install-ps-am:
546
+
459
547
  installcheck-am:
460
548
 
461
549
  maintainer-clean: maintainer-clean-recursive
@@ -476,21 +564,20 @@ ps-am:
476
564
 
477
565
  uninstall-am:
478
566
 
479
- .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
480
- install-strip
481
-
482
- .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
483
- all all-am check check-am clean clean-generic ctags \
484
- ctags-recursive distclean distclean-generic distclean-tags \
485
- distdir dvi dvi-am html html-am info info-am install \
486
- install-am install-data install-data-am install-dvi \
487
- install-dvi-am install-exec install-exec-am install-html \
488
- install-html-am install-info install-info-am install-man \
489
- install-pdf install-pdf-am install-ps install-ps-am \
490
- install-strip installcheck installcheck-am installdirs \
491
- installdirs-am maintainer-clean maintainer-clean-generic \
492
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
493
- tags-recursive uninstall uninstall-am
567
+ .MAKE: $(am__recursive_targets) install-am install-strip
568
+
569
+ .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
570
+ check-am clean clean-generic cscopelist-am ctags ctags-am \
571
+ distclean distclean-generic distclean-tags distdir dvi dvi-am \
572
+ html html-am info info-am install install-am install-data \
573
+ install-data-am install-dvi install-dvi-am install-exec \
574
+ install-exec-am install-html install-html-am install-info \
575
+ install-info-am install-man install-pdf install-pdf-am \
576
+ install-ps install-ps-am install-strip installcheck \
577
+ installcheck-am installdirs installdirs-am maintainer-clean \
578
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
579
+ pdf-am ps ps-am tags tags-am uninstall uninstall-am
580
+
494
581
 
495
582
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
496
583
  # Otherwise a system limit (for SysV at least) may be exceeded.