Commit from LXDE Pootle server by user jcsl.: 229 of 288 strings translated (0 need...
[lxde/lxappearance.git] / configure.ac
index acc9add..ca0f3ff 100644 (file)
@@ -1,22 +1,18 @@
 #                                               -*- Autoconf -*-
 # Process this file with autoconf to produce a configure script.
 AC_PREREQ([2.64])
-AC_INIT([lxappearance],[0.5.4],[http://lxde.org/])
+AC_INIT([lxappearance],[0.5.6],[http://lxde.org/])
 AM_INIT_AUTOMAKE([1.11 -Wall -Werror foreign subdir-objects no-dist-gzip dist-xz])
 
 # intltool
 IT_PROG_INTLTOOL([0.40.0])
 
-#Initialize libtool
-LT_PREREQ([2.2.6])
-LT_INIT()
-
 # Support silent build rules. Disable by either passing --disable-silent-rules
 # to configure or passing V=1 to make
 AM_SILENT_RULES([yes])
 
 AC_CONFIG_HEADERS([config.h])
-AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_MACRO_DIR([.])
 
 # C compiler
 AC_PROG_CC
@@ -62,7 +58,7 @@ AC_SUBST(XLIB_LIBS)
 
 if test "x$enable_gtk3" = "xyes" ; then
   CFLAGS="$CFLAGS -DENABLE_GTK3"
-  gtk_modules="gtk+-3.0 >= 3.0.0"
+  gtk_modules="gtk+-3.0 >= 3.0.0 gthread-2.0"
 else
   gtk_modules="gtk+-2.0 >= 2.12.0 gthread-2.0"
 fi
@@ -108,16 +104,25 @@ if test x"$enable_more_warnings" = x"yes"; then
 fi
 AC_SUBST(ADDITIONAL_FLAGS)
 
-AC_ARG_ENABLE(man,
-       [AS_HELP_STRING([--enable-man],
-               [regenerate roff man pages from Docbook @<:@default=no@:>@])],
-       [enable_man="${enableval}"],
-       [enable_man=no]
+AC_ARG_ENABLE(debug,
+    [AC_HELP_STRING([--enable-debug],
+        [build lxappearance with debug support @<:@default=no@:>@])],
+    [enable_debug="${enableval}"],
+    [enable_debug=no]
 )
 
 if test "$enable_debug" = "yes"; then
     # turn on debug and disable optimization
     CPPFLAGS="$CPPFLAGS -DG_ENABLE_DEBUG -O0 -g"
+    case "$CC" in
+    gcc*)
+        CPPFLAGS="$CPPFLAGS -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers"
+        ;;
+    *)
+        ;;
+    esac
+    dnl Be more strict on portability
+    CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=700"
 else
     # turn off glib debug checks
     CPPFLAGS="$CPPFLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
@@ -157,7 +162,7 @@ AC_CONFIG_FILES([
     Makefile
     data/Makefile
     data/ui/Makefile
-    data/ui/about.ui
+    data/ui/about.glade
     data/lxappearance.pc
     man/Makefile
     po/Makefile.in