[Xfce4-commits] <xfconf:master> use XDT_FEATURE_LINKER_OPTS and XDT_FEATURE_VISIBILTY, req xdt 4.7.1

Brian J. Tarricone noreply at xfce.org
Sat Sep 19 23:34:03 CEST 2009


Updating branch refs/heads/master
         to ba4157eb192c32273cca26ad679ea04e2af8a922 (commit)
       from e623c119542028d5e4cb34087e772cc4ecf9f15e (commit)

commit ba4157eb192c32273cca26ad679ea04e2af8a922
Author: Brian J. Tarricone <brian at tarricone.org>
Date:   Sat Sep 19 14:33:10 2009 -0700

    use XDT_FEATURE_LINKER_OPTS and XDT_FEATURE_VISIBILTY, req xdt 4.7.1

 autogen.sh      |    2 +-
 configure.ac.in |   36 +++++++-----------------------------
 2 files changed, 8 insertions(+), 30 deletions(-)

diff --git a/autogen.sh b/autogen.sh
index 942a602..9cdd7aa 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -18,6 +18,6 @@ EOF
   exit 1
 }
 
-XDT_AUTOGEN_REQUIRED_VERSION=4.7.0 xdt-autogen $@
+XDT_AUTOGEN_REQUIRED_VERSION=4.7.1 xdt-autogen $@
 
 # vi:set ts=2 sw=2 et ai:
diff --git a/configure.ac.in b/configure.ac.in
index dd892bf..994a0aa 100644
--- a/configure.ac.in
+++ b/configure.ac.in
@@ -16,6 +16,8 @@ m4_define([xfconf_version_build], [@REVISION@])
 m4_define([xfconf_version_tag], [git])
 m4_define([xfconf_version], [xfconf_version_major().xfconf_version_minor().xfconf_version_micro()ifelse(xfconf_version_nano(), [], [], [.xfconf_version_nano()])ifelse(xfconf_version_tag(), [git], [xfconf_version_tag()-xfconf_version_build()], [xfconf_version_tag()])])
 
+m4_define([xfconf_default_debug], [ifelse(xfconf_version_tag(), [git], [yes], [minimum])])
+
 dnl init autoconf
 AC_INIT([xfconf], [xfconf_version], [http://bugzilla.xfce.org/])
 AC_PREREQ([2.50])
@@ -154,7 +156,7 @@ if test "x$xfconf_backend_perchannel_xml" = "xyes"; then
 fi
 
 dnl check for debugging support
-XDT_FEATURE_DEBUG
+XDT_FEATURE_DEBUG([xfconf_default_debug])
 dnl gtk-doc is broken
 XDT_SUPPORTED_FLAGS([GTK_DOC_EXTRA_CFLAGS], [-Wno-sign-compare])
 AC_SUBST([GTK_DOC_EXTRA_CFLAGS])
@@ -169,34 +171,10 @@ if test "x$enable_checks" = "xyes"; then
 fi
 
 dnl check whether the compiler supports the visibility attribute
-AC_ARG_ENABLE([visibility],
-              AC_HELP_STRING([--disable-visibility],
-                             [Don't use ELF visibility attributes]),
-                             [], [enable_visibility=yes])
-have_gnuc_visibility=no
-if test "x$enable_visibility" != "xno"; then
-    save_CFLAGS="$CFLAGS"
-    CFLAGS="$CFLAGS -Wall -Werror"
-    AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
-    AC_COMPILE_IFELSE(AC_LANG_SOURCE(
-    [
-        void __attribute__ ((visibility("default"))) test_default (void) {}
-        void __attribute__ ((visibility("hidden"))) test_hidden (void) {}
-        int main (int argc, char **argv) { test_default (); test_hidden (); return 0; }
-    ]),
-    [
-        have_gnuc_visibility=yes
-        AC_MSG_RESULT([yes])
-    ],
-    [
-        AC_MSG_RESULT([no])
-    ])
-    CFLAGS="$save_CFLAGS"
-fi
-if test "x$have_gnuc_visibility" = "xyes"; then
-    CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
-fi
-AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test "x$have_gnuc_visibility" = "xyes"])
+XDT_FEATURE_VISIBILITY
+
+dnl add -O1 and --as-needed to LDFLAGS if supported
+XDT_FEATURE_LINKER_OPTS
 
 AC_ARG_ENABLE([profiling],
               AC_HELP_STRING([--enable-profiling],



More information about the Xfce4-commits mailing list