--with-pgsql-libs is ignored

Bug #1415750 reported by nobuhito on 2015-01-29
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sysbench
Undecided
Alexey Kopytov

Bug Description

If I specify to configure script --with-pgsql-libs, it is ignored.
following code is useful?

=== modified file 'm4/ac_check_pgsql.m4'
--- m4/ac_check_pgsql.m4 2015-01-29 05:53:15 +0000
+++ m4/ac_check_pgsql.m4 2015-01-29 06:00:34 +0000
@@ -28,6 +28,12 @@
                 [ac_cv_pgsql_libs=$withval])
 fi

+if test [ -n "$ac_cv_pgsql_libs" ]
+then
+ AC_CACHE_CHECK([PostgreSQL libraries], [ac_cv_pgsql_libs], [ac_cv_pgsql_libs=""])
+ PGSQL_LIBS="-L$ac_cv_pgsql_libs -lpq"
+fi
+
 # If some path is missing, try to autodetermine with pgsql_config
 if test [ -z "$ac_cv_pgsql_includes" -o -z "$ac_cv_pgsql_libs" ]
 then

Alexey Kopytov (akopytov) wrote :

Merged to both lp:sysbench/0.4 and lp:sysbench. Thanks.

Changed in sysbench:
status: New → Fix Committed
assignee: nobody → Alexey Kopytov (akopytov)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers