autogen.sh 1014 Bytes
Newer Older
dkirov's avatar
dkirov committed
1
#!/usr/bin/env bash
2 3
  AM_ARGS="--add-missing --gnu --copy"
  CONF_ARGS=""
4
  if test x`uname -s 2>/dev/null` = 'xDarwin' -a -f /Library/Frameworks/GTK+.framework/Versions/Current/env; then
5 6 7 8 9
    . /Library/Frameworks/GTK+.framework/Versions/Current/env
    AM_ARGS="${AM_ARGS} --ignore-deps"
    CONF_ARGS="${CONF_ARGS} --disable-idle --without-x"
  fi

10
  echo "[encoding: UTF-8]" > po/POTFILES.in \
11
  && ls -1 data/gajim.desktop.in.in data/glade/*.glade \
12
  src/*py src/common/*py src/common/zeroconf/*.py src/osx/*.py >> \
13
  po/POTFILES.in || exit 1
14 15 16 17 18
  if test -z `which pkg-config 2>/dev/null`;then
    echo "***Error: pkg-config not found***"
	echo "See README.html for build requirements."
	exit 1
  fi
19

20 21
  which glibtoolize >/dev/null 2>&1 && LIBTOOLIZE="glibtoolize" || LIBTOOLIZE="libtoolize"

22 23
  mkdir -p config

dkirov's avatar
dkirov committed
24 25
  intltoolize --force --automake \
  && aclocal -I ./m4 \
26
  && $LIBTOOLIZE --copy --force --automake \
dkirov's avatar
dkirov committed
27
  && autoheader \
dkirov's avatar
dkirov committed
28
  && autoconf  \
29 30
  && automake ${AM_ARGS} \
  && ./configure ${CONF_ARGS} $@