--with-pgsql-libs is ignored

Bug #1415750 reported by nobuhito
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sysbench
Fix Committed
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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.