]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
motion: fix postgresql support
authorPeter Seiderer <ps.report@gmx.net>
Mon, 17 Oct 2016 20:01:28 +0000 (22:01 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 19 Oct 2016 21:36:48 +0000 (23:36 +0200)
The commandline paramter to enable/disable postgresql support is
called '--with-pgsql/--without-pgsql' and not '--with-postgresql/
--without-postgresql'.

Fixes [1] in case postgresql development files are installed on the host:

  checking for PostgreSQL... testing
  checking autodect pgsql headers... yes /usr/include/postgresql
  checking autodect pgsql libs... /usr/lib64
  checking for PQconnectStart in -lpq... no
  configure: error: PostgreSQL support can't build without PostgreSQL libraries

[1] http://autobuild.buildroot.net/results/749/7497730da2affffe0e5b9b790081de10c269f416

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/motion/motion.mk

index cf9be7602a0debbca188bb6a082a06b083e94b89..16ce406f84f22aa94406586c8fe8bfc014cc57af 100644 (file)
@@ -44,11 +44,11 @@ endif
 ifeq ($(BR2_PACKAGE_POSTGRESQL),y)
 MOTION_DEPENDENCIES += postgresql
 MOTION_CONF_OPTS += \
-       --with-postgresql \
+       --with-pgsql \
        --with-pgsql-include=$(STAGING_DIR)/usr/include \
        --with-pgsql-lib=$(STAGING_DIR)/usr/lib
 else
-MOTION_CONF_OPTS += --without-postgresql
+MOTION_CONF_OPTS += --without-pgsql
 endif
 
 ifeq ($(BR2_PACKAGE_SDL),y)