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
data/COPYING CHANGED
@@ -1,5 +1,5 @@
1
- Rice 1.1
2
- Copyright (C) 2009 Paul Brannan <pbrannan@atdesk.com>
1
+ Copyright (C) 2013 Paul Brannan <pbrannan@atdesk.com>,
2
+ Jason Roelofs <jasongroelofs@gmail.com>
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
5
5
  modification, are permitted provided that the following conditions
data/Doxyfile CHANGED
@@ -23,7 +23,7 @@ PROJECT_NAME = Rice
23
23
  # This could be handy for archiving the generated documentation or
24
24
  # if some version control system is used.
25
25
 
26
- PROJECT_NUMBER = 1.4.3
26
+ PROJECT_NUMBER = 1.5.0
27
27
 
28
28
  # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
29
29
  # base path where the generated documentation will be put.
data/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.
@@ -44,9 +44,27 @@
44
44
  #
45
45
  # This is usually added to MOSTLYCLEANFILES.
46
46
  VPATH = @srcdir@
47
+ am__make_dryrun = \
48
+ { \
49
+ am__dry=no; \
50
+ case $$MAKEFLAGS in \
51
+ *\\[\ \ ]*) \
52
+ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
53
+ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
54
+ *) \
55
+ for am__flg in $$MAKEFLAGS; do \
56
+ case $$am__flg in \
57
+ *=*|--*) ;; \
58
+ *n*) am__dry=yes; break;; \
59
+ esac; \
60
+ done;; \
61
+ esac; \
62
+ test $$am__dry = yes; \
63
+ }
47
64
  pkgdatadir = $(datadir)/@PACKAGE@
48
- pkglibdir = $(libdir)/@PACKAGE@
49
65
  pkgincludedir = $(includedir)/@PACKAGE@
66
+ pkglibdir = $(libdir)/@PACKAGE@
67
+ pkglibexecdir = $(libexecdir)/@PACKAGE@
50
68
  am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
51
69
  install_sh_DATA = $(install_sh) -c -m 644
52
70
  install_sh_PROGRAM = $(install_sh) -c
@@ -61,11 +79,11 @@ PRE_UNINSTALL = :
61
79
  POST_UNINSTALL = :
62
80
  build_triplet = @build@
63
81
  host_triplet = @host@
64
- DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
65
- $(srcdir)/Makefile.in $(srcdir)/doxygen.am \
66
- $(top_srcdir)/configure \
82
+ DIST_COMMON = $(srcdir)/doxygen.am $(srcdir)/Makefile.in \
83
+ $(srcdir)/Makefile.am $(top_srcdir)/configure \
84
+ $(am__configure_deps) \
67
85
  $(top_srcdir)/rice/detail/ruby_version_code.hpp.in COPYING \
68
- TODO config.guess config.sub depcomp install-sh missing
86
+ README TODO config.guess config.sub depcomp install-sh missing
69
87
  subdir = .
70
88
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
71
89
  am__aclocal_m4_deps = $(top_srcdir)/ruby.ac $(top_srcdir)/doxygen.ac \
@@ -77,33 +95,108 @@ am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
77
95
  mkinstalldirs = $(install_sh) -d
78
96
  CONFIG_HEADER = $(top_builddir)/rice/config.hpp
79
97
  CONFIG_CLEAN_FILES = rice/detail/ruby_version_code.hpp
98
+ CONFIG_CLEAN_VPATH_FILES =
99
+ AM_V_P = $(am__v_P_@AM_V@)
100
+ am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
101
+ am__v_P_0 = false
102
+ am__v_P_1 = :
103
+ AM_V_GEN = $(am__v_GEN_@AM_V@)
104
+ am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
105
+ am__v_GEN_0 = @echo " GEN " $@;
106
+ am__v_GEN_1 =
107
+ AM_V_at = $(am__v_at_@AM_V@)
108
+ am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
109
+ am__v_at_0 = @
110
+ am__v_at_1 =
80
111
  SOURCES =
81
112
  DIST_SOURCES =
82
- RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
83
- html-recursive info-recursive install-data-recursive \
84
- install-dvi-recursive install-exec-recursive \
85
- install-html-recursive install-info-recursive \
86
- install-pdf-recursive install-ps-recursive install-recursive \
87
- installcheck-recursive installdirs-recursive pdf-recursive \
88
- ps-recursive uninstall-recursive
113
+ RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
114
+ ctags-recursive dvi-recursive html-recursive info-recursive \
115
+ install-data-recursive install-dvi-recursive \
116
+ install-exec-recursive install-html-recursive \
117
+ install-info-recursive install-pdf-recursive \
118
+ install-ps-recursive install-recursive installcheck-recursive \
119
+ installdirs-recursive pdf-recursive ps-recursive \
120
+ tags-recursive uninstall-recursive
121
+ am__can_run_installinfo = \
122
+ case $$AM_UPDATE_INFO_DIR in \
123
+ n|no|NO) false;; \
124
+ *) (install-info --version) >/dev/null 2>&1;; \
125
+ esac
89
126
  RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
90
127
  distclean-recursive maintainer-clean-recursive
128
+ am__recursive_targets = \
129
+ $(RECURSIVE_TARGETS) \
130
+ $(RECURSIVE_CLEAN_TARGETS) \
131
+ $(am__extra_recursive_targets)
132
+ AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
133
+ cscope distdir dist dist-all distcheck
134
+ am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
135
+ # Read a list of newline-separated strings from the standard input,
136
+ # and print each of them once, without duplicates. Input order is
137
+ # *not* preserved.
138
+ am__uniquify_input = $(AWK) '\
139
+ BEGIN { nonempty = 0; } \
140
+ { items[$$0] = 1; nonempty = 1; } \
141
+ END { if (nonempty) { for (i in items) print i; }; } \
142
+ '
143
+ # Make sure the list of sources is unique. This is necessary because,
144
+ # e.g., the same source file might be shared among _SOURCES variables
145
+ # for different programs/libraries.
146
+ am__define_uniq_tagged_files = \
147
+ list='$(am__tagged_files)'; \
148
+ unique=`for i in $$list; do \
149
+ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
150
+ done | $(am__uniquify_input)`
91
151
  ETAGS = etags
92
152
  CTAGS = ctags
153
+ CSCOPE = cscope
93
154
  DIST_SUBDIRS = $(SUBDIRS)
94
155
  DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
95
156
  distdir = $(PACKAGE)-$(VERSION)
96
157
  top_distdir = "$(distdir)"
97
158
  am__remove_distdir = \
98
- { test ! -d "$(distdir)" \
99
- || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
100
- && rm -fr "$(distdir)"; }; }
159
+ if test -d "$(distdir)"; then \
160
+ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
161
+ && rm -rf "$(distdir)" \
162
+ || { sleep 5 && rm -rf "$(distdir)"; }; \
163
+ else :; fi
164
+ am__post_remove_distdir = $(am__remove_distdir)
165
+ am__relativize = \
166
+ dir0=`pwd`; \
167
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
168
+ sed_rest='s,^[^/]*/*,,'; \
169
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
170
+ sed_butlast='s,/*[^/]*$$,,'; \
171
+ while test -n "$$dir1"; do \
172
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
173
+ if test "$$first" != "."; then \
174
+ if test "$$first" = ".."; then \
175
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
176
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
177
+ else \
178
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
179
+ if test "$$first2" = "$$first"; then \
180
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
181
+ else \
182
+ dir2="../$$dir2"; \
183
+ fi; \
184
+ dir0="$$dir0"/"$$first"; \
185
+ fi; \
186
+ fi; \
187
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
188
+ done; \
189
+ reldir="$$dir2"
101
190
  DIST_ARCHIVES = "$(distdir)".tar.gz
102
191
  GZIP_ENV = --best
192
+ DIST_TARGETS = dist-gzip
103
193
  distuninstallcheck_listfiles = find . -type f -print
194
+ am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
195
+ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
104
196
  distcleancheck_listfiles = find . -type f -print
105
197
  ACLOCAL = @ACLOCAL@
106
198
  AMTAR = @AMTAR@
199
+ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
107
200
  AUTOCONF = @AUTOCONF@
108
201
  AUTOHEADER = @AUTOHEADER@
109
202
  AUTOMAKE = @AUTOMAKE@
@@ -160,6 +253,7 @@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
160
253
  PACKAGE_NAME = @PACKAGE_NAME@
161
254
  PACKAGE_STRING = @PACKAGE_STRING@
162
255
  PACKAGE_TARNAME = @PACKAGE_TARNAME@
256
+ PACKAGE_URL = @PACKAGE_URL@
163
257
  PACKAGE_VERSION = @PACKAGE_VERSION@
164
258
  PATH_SEPARATOR = @PATH_SEPARATOR@
165
259
  RANLIB = @RANLIB@
@@ -229,6 +323,7 @@ sharedstatedir = @sharedstatedir@
229
323
  srcdir = @srcdir@
230
324
  sysconfdir = @sysconfdir@
231
325
  target_alias = @target_alias@
326
+ top_build_prefix = @top_build_prefix@
232
327
  top_builddir = @top_builddir@
233
328
  top_srcdir = @top_srcdir@
234
329
  AUTOMAKE_OPTIONS = foreign 1.5
@@ -273,21 +368,21 @@ EXTRA_DIST = \
273
368
  all: all-recursive
274
369
 
275
370
  .SUFFIXES:
276
- am--refresh:
371
+ am--refresh: Makefile
277
372
  @:
278
373
  $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(srcdir)/doxygen.am $(am__configure_deps)
279
374
  @for dep in $?; do \
280
375
  case '$(am__configure_deps)' in \
281
376
  *$$dep*) \
282
- echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
283
- cd $(srcdir) && $(AUTOMAKE) --foreign \
377
+ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
378
+ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
284
379
  && exit 0; \
285
380
  exit 1;; \
286
381
  esac; \
287
382
  done; \
288
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
289
- cd $(top_srcdir) && \
290
- $(AUTOMAKE) --foreign Makefile
383
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
384
+ $(am__cd) $(top_srcdir) && \
385
+ $(AUTOMAKE) --foreign Makefile
291
386
  .PRECIOUS: Makefile
292
387
  Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
293
388
  @case '$?' in \
@@ -298,25 +393,27 @@ Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
298
393
  echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
299
394
  cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
300
395
  esac;
396
+ $(srcdir)/doxygen.am:
301
397
 
302
398
  $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
303
399
  $(SHELL) ./config.status --recheck
304
400
 
305
401
  $(top_srcdir)/configure: $(am__configure_deps)
306
- cd $(srcdir) && $(AUTOCONF)
402
+ $(am__cd) $(srcdir) && $(AUTOCONF)
307
403
  $(ACLOCAL_M4): $(am__aclocal_m4_deps)
308
- cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
404
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
405
+ $(am__aclocal_m4_deps):
309
406
  rice/detail/ruby_version_code.hpp: $(top_builddir)/config.status $(top_srcdir)/rice/detail/ruby_version_code.hpp.in
310
407
  cd $(top_builddir) && $(SHELL) ./config.status $@
311
408
 
312
409
  # This directory's subdirectories are mostly independent; you can cd
313
- # into them and run `make' without going through this Makefile.
314
- # To change the values of `make' variables: instead of editing Makefiles,
315
- # (1) if the variable is set in `config.status', edit `config.status'
316
- # (which will cause the Makefiles to be regenerated when you run `make');
317
- # (2) otherwise, pass the desired values on the `make' command line.
318
- $(RECURSIVE_TARGETS):
319
- @failcom='exit 1'; \
410
+ # into them and run 'make' without going through this Makefile.
411
+ # To change the values of 'make' variables: instead of editing Makefiles,
412
+ # (1) if the variable is set in 'config.status', edit 'config.status'
413
+ # (which will cause the Makefiles to be regenerated when you run 'make');
414
+ # (2) otherwise, pass the desired values on the 'make' command line.
415
+ $(am__recursive_targets):
416
+ @fail= failcom='exit 1'; \
320
417
  for f in x $$MAKEFLAGS; do \
321
418
  case $$f in \
322
419
  *=* | --[!k]*);; \
@@ -325,7 +422,11 @@ $(RECURSIVE_TARGETS):
325
422
  done; \
326
423
  dot_seen=no; \
327
424
  target=`echo $@ | sed s/-recursive//`; \
328
- list='$(SUBDIRS)'; for subdir in $$list; do \
425
+ case "$@" in \
426
+ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
427
+ *) list='$(SUBDIRS)' ;; \
428
+ esac; \
429
+ for subdir in $$list; do \
329
430
  echo "Making $$target in $$subdir"; \
330
431
  if test "$$subdir" = "."; then \
331
432
  dot_seen=yes; \
@@ -333,65 +434,20 @@ $(RECURSIVE_TARGETS):
333
434
  else \
334
435
  local_target="$$target"; \
335
436
  fi; \
336
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
437
+ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
337
438
  || eval $$failcom; \
338
439
  done; \
339
440
  if test "$$dot_seen" = "no"; then \
340
441
  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
341
442
  fi; test -z "$$fail"
342
443
 
343
- $(RECURSIVE_CLEAN_TARGETS):
344
- @failcom='exit 1'; \
345
- for f in x $$MAKEFLAGS; do \
346
- case $$f in \
347
- *=* | --[!k]*);; \
348
- *k*) failcom='fail=yes';; \
349
- esac; \
350
- done; \
351
- dot_seen=no; \
352
- case "$@" in \
353
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
354
- *) list='$(SUBDIRS)' ;; \
355
- esac; \
356
- rev=''; for subdir in $$list; do \
357
- if test "$$subdir" = "."; then :; else \
358
- rev="$$subdir $$rev"; \
359
- fi; \
360
- done; \
361
- rev="$$rev ."; \
362
- target=`echo $@ | sed s/-recursive//`; \
363
- for subdir in $$rev; do \
364
- echo "Making $$target in $$subdir"; \
365
- if test "$$subdir" = "."; then \
366
- local_target="$$target-am"; \
367
- else \
368
- local_target="$$target"; \
369
- fi; \
370
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
371
- || eval $$failcom; \
372
- done && test -z "$$fail"
373
- tags-recursive:
374
- list='$(SUBDIRS)'; for subdir in $$list; do \
375
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
376
- done
377
- ctags-recursive:
378
- list='$(SUBDIRS)'; for subdir in $$list; do \
379
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
380
- done
444
+ ID: $(am__tagged_files)
445
+ $(am__define_uniq_tagged_files); mkid -fID $$unique
446
+ tags: tags-recursive
447
+ TAGS: tags
381
448
 
382
- ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
383
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
384
- unique=`for i in $$list; do \
385
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
386
- done | \
387
- $(AWK) ' { files[$$0] = 1; } \
388
- END { for (i in files) print i; }'`; \
389
- mkid -fID $$unique
390
- tags: TAGS
391
-
392
- TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
393
- $(TAGS_FILES) $(LISP)
394
- tags=; \
449
+ tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
450
+ set x; \
395
451
  here=`pwd`; \
396
452
  if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
397
453
  include_option=--etags-include; \
@@ -403,42 +459,59 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
403
459
  list='$(SUBDIRS)'; for subdir in $$list; do \
404
460
  if test "$$subdir" = .; then :; else \
405
461
  test ! -f $$subdir/TAGS || \
406
- tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
462
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
407
463
  fi; \
408
464
  done; \
409
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
410
- unique=`for i in $$list; do \
411
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
412
- done | \
413
- $(AWK) ' { files[$$0] = 1; } \
414
- END { for (i in files) print i; }'`; \
415
- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
465
+ $(am__define_uniq_tagged_files); \
466
+ shift; \
467
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
416
468
  test -n "$$unique" || unique=$$empty_fix; \
417
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
418
- $$tags $$unique; \
469
+ if test $$# -gt 0; then \
470
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
471
+ "$$@" $$unique; \
472
+ else \
473
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
474
+ $$unique; \
475
+ fi; \
419
476
  fi
420
- ctags: CTAGS
421
- CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
422
- $(TAGS_FILES) $(LISP)
423
- tags=; \
424
- here=`pwd`; \
425
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
426
- unique=`for i in $$list; do \
427
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
428
- done | \
429
- $(AWK) ' { files[$$0] = 1; } \
430
- END { for (i in files) print i; }'`; \
431
- test -z "$(CTAGS_ARGS)$$tags$$unique" \
477
+ ctags: ctags-recursive
478
+
479
+ CTAGS: ctags
480
+ ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
481
+ $(am__define_uniq_tagged_files); \
482
+ test -z "$(CTAGS_ARGS)$$unique" \
432
483
  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
433
- $$tags $$unique
484
+ $$unique
434
485
 
435
486
  GTAGS:
436
487
  here=`$(am__cd) $(top_builddir) && pwd` \
437
- && cd $(top_srcdir) \
438
- && gtags -i $(GTAGS_ARGS) $$here
488
+ && $(am__cd) $(top_srcdir) \
489
+ && gtags -i $(GTAGS_ARGS) "$$here"
490
+ cscope: cscope.files
491
+ test ! -s cscope.files \
492
+ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
493
+ clean-cscope:
494
+ -rm -f cscope.files
495
+ cscope.files: clean-cscope cscopelist
496
+ cscopelist: cscopelist-recursive
497
+
498
+ cscopelist-am: $(am__tagged_files)
499
+ list='$(am__tagged_files)'; \
500
+ case "$(srcdir)" in \
501
+ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
502
+ *) sdir=$(subdir)/$(srcdir) ;; \
503
+ esac; \
504
+ for i in $$list; do \
505
+ if test -f "$$i"; then \
506
+ echo "$(subdir)/$$i"; \
507
+ else \
508
+ echo "$$sdir/$$i"; \
509
+ fi; \
510
+ done >> $(top_builddir)/cscope.files
439
511
 
440
512
  distclean-tags:
441
513
  -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
514
+ -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
442
515
 
443
516
  distdir: $(DISTFILES)
444
517
  $(am__remove_distdir)
@@ -458,62 +531,84 @@ distdir: $(DISTFILES)
458
531
  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
459
532
  if test -d $$d/$$file; then \
460
533
  dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
534
+ if test -d "$(distdir)/$$file"; then \
535
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
536
+ fi; \
461
537
  if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
462
- cp -pR $(srcdir)/$$file "$(distdir)"$$dir || exit 1; \
538
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
539
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
463
540
  fi; \
464
- cp -pR $$d/$$file "$(distdir)"$$dir || exit 1; \
541
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
465
542
  else \
466
- test -f "$(distdir)"/$$file \
467
- || cp -p $$d/$$file "$(distdir)"/$$file \
543
+ test -f "$(distdir)/$$file" \
544
+ || cp -p $$d/$$file "$(distdir)/$$file" \
468
545
  || exit 1; \
469
546
  fi; \
470
547
  done
471
- list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
548
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
472
549
  if test "$$subdir" = .; then :; else \
473
- test -d "$(distdir)/$$subdir" \
474
- || $(MKDIR_P) "$(distdir)/$$subdir" \
475
- || exit 1; \
476
- distdir=`$(am__cd) "$(distdir)" && pwd`; \
477
- top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
478
- (cd $$subdir && \
550
+ $(am__make_dryrun) \
551
+ || test -d "$(distdir)/$$subdir" \
552
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
553
+ || exit 1; \
554
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
555
+ $(am__relativize); \
556
+ new_distdir=$$reldir; \
557
+ dir1=$$subdir; dir2="$(top_distdir)"; \
558
+ $(am__relativize); \
559
+ new_top_distdir=$$reldir; \
560
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
561
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
562
+ ($(am__cd) $$subdir && \
479
563
  $(MAKE) $(AM_MAKEFLAGS) \
480
- top_distdir="$$top_distdir" \
481
- distdir="$$distdir/$$subdir" \
564
+ top_distdir="$$new_top_distdir" \
565
+ distdir="$$new_distdir" \
482
566
  am__remove_distdir=: \
483
567
  am__skip_length_check=: \
568
+ am__skip_mode_fix=: \
484
569
  distdir) \
485
570
  || exit 1; \
486
571
  fi; \
487
572
  done
488
- -find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
573
+ -test -n "$(am__skip_mode_fix)" \
574
+ || find "$(distdir)" -type d ! -perm -755 \
575
+ -exec chmod u+rwx,go+rx {} \; -o \
489
576
  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
490
577
  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
491
578
  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
492
579
  || chmod -R a+r "$(distdir)"
493
580
  dist-gzip: distdir
494
581
  tardir="$(distdir)" && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >"$(distdir)".tar.gz
495
- $(am__remove_distdir)
582
+ $(am__post_remove_distdir)
496
583
 
497
584
  dist-bzip2: distdir
498
- tardir="$(distdir)" && $(am__tar) | bzip2 -9 -c >"$(distdir)".tar.bz2
499
- $(am__remove_distdir)
585
+ tardir="$(distdir)" && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >"$(distdir)".tar.bz2
586
+ $(am__post_remove_distdir)
587
+
588
+ dist-lzip: distdir
589
+ tardir="$(distdir)" && $(am__tar) | lzip -c $${LZIP_OPT--9} >"$(distdir)".tar.lz
590
+ $(am__post_remove_distdir)
591
+
592
+ dist-xz: distdir
593
+ tardir="$(distdir)" && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >"$(distdir)".tar.xz
594
+ $(am__post_remove_distdir)
500
595
 
501
596
  dist-tarZ: distdir
502
597
  tardir="$(distdir)" && $(am__tar) | compress -c >"$(distdir)".tar.Z
503
- $(am__remove_distdir)
598
+ $(am__post_remove_distdir)
504
599
 
505
600
  dist-shar: distdir
506
601
  shar "$(distdir)" | GZIP=$(GZIP_ENV) gzip -c >"$(distdir)".shar.gz
507
- $(am__remove_distdir)
602
+ $(am__post_remove_distdir)
508
603
 
509
604
  dist-zip: distdir
510
605
  -rm -f "$(distdir)".zip
511
606
  zip -rq "$(distdir)".zip "$(distdir)"
512
- $(am__remove_distdir)
607
+ $(am__post_remove_distdir)
513
608
 
514
- dist dist-all: distdir
515
- tardir="$(distdir)" && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >"$(distdir)".tar.gz
516
- $(am__remove_distdir)
609
+ dist dist-all:
610
+ $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
611
+ $(am__post_remove_distdir)
517
612
 
518
613
  # This target untars the dist file and tries a VPATH configuration. Then
519
614
  # it guarantees that the distribution is self-contained by making another
@@ -521,24 +616,31 @@ dist dist-all: distdir
521
616
  distcheck: dist
522
617
  case '$(DIST_ARCHIVES)' in \
523
618
  *.tar.gz*) \
524
- GZIP=$(GZIP_ENV) gunzip -c "$(distdir)".tar.gz | $(am__untar) ;;\
619
+ GZIP=$(GZIP_ENV) gzip -dc "$(distdir)".tar.gz | $(am__untar) ;;\
525
620
  *.tar.bz2*) \
526
- bunzip2 -c "$(distdir)".tar.bz2 | $(am__untar) ;;\
621
+ bzip2 -dc "$(distdir)".tar.bz2 | $(am__untar) ;;\
622
+ *.tar.lz*) \
623
+ lzip -dc "$(distdir)".tar.lz | $(am__untar) ;;\
624
+ *.tar.xz*) \
625
+ xz -dc "$(distdir)".tar.xz | $(am__untar) ;;\
527
626
  *.tar.Z*) \
528
627
  uncompress -c "$(distdir)".tar.Z | $(am__untar) ;;\
529
628
  *.shar.gz*) \
530
- GZIP=$(GZIP_ENV) gunzip -c "$(distdir)".shar.gz | unshar ;;\
629
+ GZIP=$(GZIP_ENV) gzip -dc "$(distdir)".shar.gz | unshar ;;\
531
630
  *.zip*) \
532
631
  unzip "$(distdir)".zip ;;\
533
632
  esac
534
- chmod -R a-w "$(distdir)"; chmod a+w "$(distdir)"
535
- mkdir "$(distdir)"/_build
536
- mkdir "$(distdir)"/_inst
633
+ chmod -R a-w "$(distdir)"
634
+ chmod u+w "$(distdir)"
635
+ mkdir "$(distdir)"/_build "$(distdir)"/_inst
537
636
  chmod a-w "$(distdir)"
637
+ test -d "$(distdir)"/_build || exit 0; \
538
638
  dc_install_base=`$(am__cd) "$(distdir)"/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
539
639
  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
540
- && cd "$(distdir)"/_build \
640
+ && am__cwd=`pwd` \
641
+ && $(am__cd) "$(distdir)"/_build \
541
642
  && ../configure --srcdir=.. --prefix="$$dc_install_base" \
643
+ $(AM_DISTCHECK_CONFIGURE_FLAGS) \
542
644
  $(DISTCHECK_CONFIGURE_FLAGS) \
543
645
  && $(MAKE) $(AM_MAKEFLAGS) \
544
646
  && $(MAKE) $(AM_MAKEFLAGS) dvi \
@@ -559,14 +661,24 @@ distcheck: dist
559
661
  && rm -rf "$$dc_destdir" \
560
662
  && $(MAKE) $(AM_MAKEFLAGS) dist \
561
663
  && rm -rf $(DIST_ARCHIVES) \
562
- && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
563
- $(am__remove_distdir)
664
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
665
+ && cd "$$am__cwd" \
666
+ || exit 1
667
+ $(am__post_remove_distdir)
564
668
  @(echo "$(distdir) archives ready for distribution: "; \
565
669
  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
566
670
  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
567
671
  distuninstallcheck:
568
- @cd $(distuninstallcheck_dir) \
569
- && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
672
+ @test -n '$(distuninstallcheck_dir)' || { \
673
+ echo 'ERROR: trying to run $@ with an empty' \
674
+ '$$(distuninstallcheck_dir)' >&2; \
675
+ exit 1; \
676
+ }; \
677
+ $(am__cd) '$(distuninstallcheck_dir)' || { \
678
+ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
679
+ exit 1; \
680
+ }; \
681
+ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
570
682
  || { echo "ERROR: files left after uninstall:" ; \
571
683
  if test -n "$(DESTDIR)"; then \
572
684
  echo " (check DESTDIR support)"; \
@@ -597,16 +709,22 @@ install-am: all-am
597
709
 
598
710
  installcheck: installcheck-recursive
599
711
  install-strip:
600
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
601
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
602
- `test -z '$(STRIP)' || \
603
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
712
+ if test -z '$(STRIP)'; then \
713
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
714
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
715
+ install; \
716
+ else \
717
+ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
718
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
719
+ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
720
+ fi
604
721
  mostlyclean-generic:
605
722
 
606
723
  clean-generic:
607
724
 
608
725
  distclean-generic:
609
726
  -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
727
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
610
728
 
611
729
  maintainer-clean-generic:
612
730
  @echo "This command is intended for maintainers to use"
@@ -626,6 +744,8 @@ dvi-am:
626
744
 
627
745
  html: html-recursive
628
746
 
747
+ html-am:
748
+
629
749
  info: info-recursive
630
750
 
631
751
  info-am:
@@ -634,18 +754,28 @@ install-data-am:
634
754
 
635
755
  install-dvi: install-dvi-recursive
636
756
 
757
+ install-dvi-am:
758
+
637
759
  install-exec-am:
638
760
 
639
761
  install-html: install-html-recursive
640
762
 
763
+ install-html-am:
764
+
641
765
  install-info: install-info-recursive
642
766
 
767
+ install-info-am:
768
+
643
769
  install-man:
644
770
 
645
771
  install-pdf: install-pdf-recursive
646
772
 
773
+ install-pdf-am:
774
+
647
775
  install-ps: install-ps-recursive
648
776
 
777
+ install-ps-am:
778
+
649
779
  installcheck-am:
650
780
 
651
781
  maintainer-clean: maintainer-clean-recursive
@@ -668,23 +798,22 @@ ps-am:
668
798
 
669
799
  uninstall-am:
670
800
 
671
- .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
672
- install-strip
673
-
674
- .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
675
- all all-am am--refresh check check-am clean clean-generic \
676
- ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
677
- dist-shar dist-tarZ dist-zip distcheck distclean \
678
- distclean-generic distclean-tags distcleancheck distdir \
679
- distuninstallcheck dvi dvi-am html html-am info info-am \
680
- install install-am install-data install-data-am install-dvi \
681
- install-dvi-am install-exec install-exec-am install-html \
682
- install-html-am install-info install-info-am install-man \
683
- install-pdf install-pdf-am install-ps install-ps-am \
684
- install-strip installcheck installcheck-am installdirs \
685
- installdirs-am maintainer-clean maintainer-clean-generic \
686
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
687
- tags-recursive uninstall uninstall-am
801
+ .MAKE: $(am__recursive_targets) install-am install-strip
802
+
803
+ .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
804
+ am--refresh check check-am clean clean-cscope clean-generic \
805
+ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
806
+ dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
807
+ distcheck distclean distclean-generic distclean-tags \
808
+ distcleancheck distdir distuninstallcheck dvi dvi-am html \
809
+ html-am info info-am install install-am install-data \
810
+ install-data-am install-dvi install-dvi-am install-exec \
811
+ install-exec-am install-html install-html-am install-info \
812
+ install-info-am install-man install-pdf install-pdf-am \
813
+ install-ps install-ps-am install-strip installcheck \
814
+ installcheck-am installdirs installdirs-am maintainer-clean \
815
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
816
+ pdf-am ps ps-am tags tags-am uninstall uninstall-am
688
817
 
689
818
 
690
819
  @DX_COND_doc_TRUE@@DX_COND_ps_TRUE@doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
@@ -738,6 +867,7 @@ doc: doxygen-doc
738
867
  rice/README.doxygen: README
739
868
  @echo Generating documentation
740
869
  @$(RUBY) -e 'File.open("README") { |i| File.open("rice/README.doxygen", "w") { |o| o.puts "/*! #{i.gets}"; i.each_line { |l| o.puts " * #{l}" if l !~ /^\\comment/ and l !~ /^vim:/ }; o.puts " */" } }'
870
+
741
871
  # Tell versions [3.59,3.63) of GNU make to not export all variables.
742
872
  # Otherwise a system limit (for SysV at least) may be exceeded.
743
873
  .NOEXPORT: