Check for gsettings-schema-convert for dconf support
[platform/upstream/ibus.git] / autogen.sh
index 62ebe94..1c82d5f 100755 (executable)
@@ -14,8 +14,15 @@ PKG_NAME="ibus"
 }
 
 which gnome-autogen.sh || {
-    echo "You need to install gnome-common from the GNOME CVS"
+    echo "Not found gnome-autogen.sh. You may need to install gnome-common"
     exit 1
 }
 
-ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4" REQUIRED_AUTOMAKE_VERSION=1.8 . gnome-autogen.sh
+(test -f $srcdir/ChangeLog) || {
+    touch $srcdir/ChangeLog
+}
+
+CFLAGS=${CFLAGS-"-Wall -Werror -Wformat -Werror=format-security"}
+
+# need --enable-gtk-doc for gnome-autogen.sh to make dist
+ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I m4" REQUIRED_AUTOMAKE_VERSION=1.11 CFLAGS="$CFLAGS" . gnome-autogen.sh "$@"