Blame autogen.sh

Packit 3ff832
#!/bin/sh
Packit 3ff832
# Run this to generate all the initial makefiles, etc.
Packit 3ff832
Packit 3ff832
srcdir=`dirname $0`
Packit 3ff832
test -z "$srcdir" && srcdir=.
Packit 3ff832
Packit 3ff832
PKG_NAME="ibus"
Packit 3ff832
Packit 3ff832
(test -f $srcdir/configure.ac \
Packit 3ff832
  && test -f $srcdir/README ) || {
Packit 3ff832
    echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
Packit 3ff832
    echo " top-level $PKG_NAME directory"
Packit 3ff832
    exit 1
Packit 3ff832
}
Packit 3ff832
Packit 3ff832
which gnome-autogen.sh || {
Packit 3ff832
    echo "Not found gnome-autogen.sh. You may need to install gnome-common"
Packit 3ff832
    exit 1
Packit 3ff832
}
Packit 3ff832
Packit 3ff832
(test -f $srcdir/ChangeLog) || {
Packit 3ff832
    touch $srcdir/ChangeLog
Packit 3ff832
}
Packit 3ff832
Packit 3ff832
CFLAGS=${CFLAGS-"-Wall -Wformat -Werror=format-security"}
Packit 3ff832
Packit 3ff832
# need --enable-gtk-doc for gnome-autogen.sh to make dist
Packit 3ff832
ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4" REQUIRED_AUTOMAKE_VERSION=1.11 CFLAGS="$CFLAGS" . gnome-autogen.sh "$@"