fix nameprep for wrong jids. Fixes #6925
[gajim.git] / autogen.sh
blob433d39a4ed0eb48abff82a6306bd535cf95dab58
1 #!/usr/bin/env bash
2 gajimversion="0.14.0.1"
3 if [ -d ".hg" ]; then
4 node=$(hg tip --template "{node}")
5 hgversion="-${node:0:12}"
6 else
7 hgversion=""
8 fi
9 echo "define([AC_PACKAGE_VERSION], [${gajimversion}${hgversion}])" > m4/hgversion.m4
11 AM_ARGS="--add-missing --gnu --copy -Wno-portability"
12 CONF_ARGS=""
13 if test x`uname -s 2>/dev/null` = 'xDarwin' -a -f /Library/Frameworks/GTK+.framework/Versions/Current/env; then
14 . /Library/Frameworks/GTK+.framework/Versions/Current/env
15 AM_ARGS="${AM_ARGS} --ignore-deps"
16 CONF_ARGS="${CONF_ARGS} --disable-idle --without-x"
19 echo "[encoding: UTF-8]" > po/POTFILES.in \
20 && for p in `ls data/gui/*.ui`; do echo "[type: gettext/glade]$p" >> \
21 po/POTFILES.in; done \
22 && ls -1 data/gajim.desktop.in.in \
23 src/*py src/common/*py src/common/zeroconf/*.py src/plugins/*.py| grep -v ipython_view.py >> \
24 po/POTFILES.in || exit 1
25 if test -z `which pkg-config 2>/dev/null`;then
26 echo "***Error: pkg-config not found***"
27 echo "See README.html for build requirements."
28 exit 1
31 which glibtoolize >/dev/null 2>&1 && LIBTOOLIZE="glibtoolize" || LIBTOOLIZE="libtoolize"
33 mkdir -p config
35 intltoolize --force --automake \
36 && aclocal -I ./m4 \
37 && $LIBTOOLIZE --copy --force --automake \
38 && autoheader \
39 && autoconf \
40 && automake ${AM_ARGS} \
41 && ./configure ${CONF_ARGS} $@