switch to collocatordb 1.3.2

Change-Id: I77420c7ef3b9184fa78107c42575c3f162c1ce20
diff --git a/Makefile.PL b/Makefile.PL
index 160fbf1..e095a24 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -3,6 +3,17 @@
 use strict;
 use warnings;
 use ExtUtils::MakeMaker;
+use lib qw(inc);
+use Devel::CheckLib;
+
+check_lib_or_exit(
+    cflags => '-Wall -Wno-unused-result -fno-rtti -O4 -I/usr/local/include',
+    header => ['unistd.h', 'stdio.h', 'stdlib.h', 'string.h', 'collocatordb.h'],
+    function => 'char *min_v = "1.3.2"; char *v = get_version(); if(strcmp(min_v, v) <= 0) { return 0; } else { fprintf(stderr, "Installed collocatordb version %s is too low. Minimally %s is required.\n", v, min_v); return(1); }',
+    libpath => ['/usr/lib', '/usr/local/lib64', '/usr/local/lib'],
+    incpath => ['/usr/include', '/usr/local/include'],
+    # debug => 1,
+    lib => 'collocatordb');
 
 WriteMakefile(
     NAME           => 'derekovecs::server',
@@ -15,6 +26,7 @@
      'Test::TempFile' => 0,
      "REST::Client" => 0,
      "Data::Dump" => 0,
+     "Devel::CheckLib" => ">=1.16",
     },
     PREREQ_PM      => {
         'Inline::C'                               => '0.82',