The OML4R library now supports sending measurement to different streams. The command line arguments define a 'default' stream but the program can define it's own by calling 'OML4R::Stream.create'. The new meta command 'stream' allows one to define on an MP bases define which stream to send it on. See the code at the end of the oml4r.rb file for an example.
Added a queue with the sender in a separate thread to not block the application of the OML server might be blocking. However, we aren't checking on queue length.
Major re-write of the OML4R library. Now supports multiple destination streams and even different databases. 'expID' has been replaced with 'domain'. See example at end of file and OMF's performance_monitor for how to use it. Really need to document the file.
Changed Stream to Channel and now also provided a module level 'create_channel' as well as a 'close' which blocks until the queue is emptied and the low-level IO device is being closed.
Make sure we are picking up the right app file provided as argument and also check first if it is readable.
Adding an OML4R example file which triggers a bug in the OML server due to a trailing empty string in a measurement tuple.
Remove RPM-building logic from main tree

See branch redhat/master

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Add AM_ commands for automake-1.12

Avoid complaints during autoreconf -i that:
 “linking libtool libraries using a non-POSIX
  /usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR'
  in 'configure.ac'”
and
  “compiling 'main.c' with per-target flags requires 'AM_PROG_CC_C_O' in
  'configure.ac'”

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Remove non-POSIX make syntax

 - Expand scaffold's name in configure and AC_SUBST it;
 - Use echo/sed-based substitution instead of $(var:old=new);
 - Avoid %-based implicit variables.

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
autoupdate(1) configure.ac

Keep the AC_PREREQ to 2.6

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Revert "Fix potential null pointer deref in net_stream.c"

There is a proper check for this in the while statement just after
there, before a call to open_socket. Then, that function only assigns
self->socket, and does not try to dereference it.

This reverts commit 11abbdd5f09d53a286cd057f6045506923490e6f.

fix: #757

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Build doc by default

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Vim modeline
Test case for issue #610

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Handle empty textmode string at the end of a line

This is a rather ugly patch. It shan't live long, though, as the server
code gets refactored to address #693 and related.

Fix: #610

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Detect Ruby 1.9 in configure script

 * m4/ax_prog_ruby_version.m4 and m4/ax_compare_version.m4 are from
 * [0],
commit 27948f49.
 * m4/ax_with_prog.m4 is from [0] 5e8fea7d.

[0] git://git.sv.gnu.org/autoconf-archive.git

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Only run issue610 test with Ruby>=1.9

Neither the :opts parameter to IO.popen nor Process.spawn are available
in Ruby<1.9.

This also requires generating issue610.rb at configure time to use the
detected Ruby>=1.9 if it is not the default one.

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Removed old file

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Detect Gem

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>
Detect the Bundler gem

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>