#! /bin/sh -e
## fix_g++-4.4_ftbfs.dpatch by Miguel Landaeta <miguel@miguel.cc>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: building jabberd with binutils-gold fails because this new version
## DP: of linker is more stricter and requires all needed libraries listed
## DP: when it is building executables.
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"
if [ $# -ne 1 ]; then
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1
fi
case "$1" in
-patch) patch $patch_opts -p1 < $0;;
-unpatch) patch $patch_opts -Rp1 < $0;;
*)
echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
exit 1;;
esac
exit 0
@DPATCH@
diff --git a/configure b/configure
index 20ed3cc..b01a3e1 100755
--- a/configure
+++ b/configure
@@ -23004,6 +23004,10 @@ fi
ac_define_dir=`eval echo $ac_define_dir`
CONFIG_DIR="$ac_define_dir"
+# add missing build-depends, yes I know this is a quick and dirty hack,
+# the correct way would be upstream fixing configure.ac in order to generate
+# a complete configure script
+LIBS="${LIBS} -ltasn1 -lgcrypt"
cat >>confdefs.h <<_ACEOF
#define CONFIG_DIR "$ac_define_dir"