--- configure.orig 2016-09-08 20:29:55.239121000 -0500 +++ configure 2016-09-08 20:30:26.951403000 -0500 @@ -45,7 +45,7 @@ fi # TODO: add pg_config, mysql_config etc! -LINK_SYSLIBDIRS="-L/usr/local/pgsql/lib -L/usr/local/lib -L/usr/lib" +LINK_SYSLIBDIRS="-L%%LOCALBASE%%/lib/postgresql -L%%LOCALBASE%%/lib/mysql -L%%LOCALBASE%%/lib -L/usr/lib" # ******************** usage ********************