#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

CONFIGURE_FLAGS:= --disable-werror --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
                --disable-silent-rules --with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH)

MDDS_VER:=$(shell pkg-config --exists mdds-1.0 && echo 1.0 || echo 0.x)
CONFIGURE_FLAGS += --with-mdds=$(MDDS_VER)

%:
	dh $@ --parallel --with=autoreconf

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)
