[Xfce4-commits] <tumbler:master> Remove some unused macros.
Nick Schermer
noreply at xfce.org
Fri Apr 13 21:52:01 CEST 2012
Updating branch refs/heads/master
to 08abe3ca99212a3d4c8eb60a79472e4d684c9282 (commit)
from cd49e3811ece23fa34407342d56455889e3b5a70 (commit)
commit 08abe3ca99212a3d4c8eb60a79472e4d684c9282
Author: Nick Schermer <nick at xfce.org>
Date: Fri Apr 13 21:50:18 2012 +0200
Remove some unused macros.
m4/xdt-features.m4 | 132 +---------------------------------------------------
1 files changed, 1 insertions(+), 131 deletions(-)
diff --git a/m4/xdt-features.m4 b/m4/xdt-features.m4
index ea0c685..bd1ac0f 100644
--- a/m4/xdt-features.m4
+++ b/m4/xdt-features.m4
@@ -96,7 +96,7 @@ AC_HELP_STRING([--disable-debug], [Include no debugging support]),
ifelse([$CXX], , , [
dnl FIXME: should test on c++ compiler, but the following line causes
- dnl autoconf errors for projects that don't check for a
+ dnl autoconf errors for projects that do not check for a
dnl c++ compiler at all.
dnl AC_LANG_PUSH([C++])
dnl XDT_SUPPORTED_FLAGS([supported_CXXFLAGS], [$xdt_cv_additional_CFLAGS])
@@ -119,58 +119,6 @@ AC_HELP_STRING([--disable-debug], [Include no debugging support]),
fi
])
-
-dnl XDT_FEATURE_VISIBILITY()
-dnl
-dnl Checks to see if the compiler supports the 'visibility' attribute
-dnl If so, adds -DHAVE_GNUC_VISIBILTY to CPPFLAGS. Also sets the
-dnl automake conditional HAVE_GNUC_VISIBILITY.
-dnl
-AC_DEFUN([XDT_FEATURE_VISIBILITY],
-[
- AC_ARG_ENABLE([visibility],
- AC_HELP_STRING([--disable-visibility],
- [Don't use ELF visibility attributes]),
- [enable_visibility=$enableval], [enable_visibility=yes])
- have_gnuc_visibility=no
- if test "x$enable_visibility" != "xno"; then
- XDT_SUPPORTED_FLAGS([xdt_vis_test_cflags], [-Wall -Werror -Wno-unused-parameter])
- saved_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $xdt_vis_test_cflags"
- AC_MSG_CHECKING([whether $CC supports the GNUC visibility attribute])
- AC_COMPILE_IFELSE(AC_LANG_SOURCE(
- [
- void test_default (void);
- void test_hidden (void);
-
- 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="$saved_CFLAGS"
- fi
-
- if test "x$have_gnuc_visibility" = "xyes"; then
- CPPFLAGS="$CPPFLAGS -DHAVE_GNUC_VISIBILITY"
- XDT_SUPPORTED_FLAGS([xdt_vis_hidden_cflags], [-fvisibility=hidden])
- CFLAGS="$CFLAGS $xdt_vis_hidden_cflags"
- fi
-
- AM_CONDITIONAL([HAVE_GNUC_VISIBILITY], [test "x$have_gnuc_visibility" = "xyes"])
-])
-
dnl XDT_FEATURE_LINKER_OPTS
dnl
dnl Checks for and enables any special linker optimizations.
@@ -205,81 +153,3 @@ AC_DEFUN([XDT_FEATURE_LINKER_OPTS],
esac
fi
])
-
-dnl BM_DEBUG_SUPPORT()
-dnl
-AC_DEFUN([BM_DEBUG_SUPPORT],
-[
-dnl # --enable-debug
- AC_REQUIRE([XDT_FEATURE_DEBUG])
-
-dnl # --enable-profiling
- AC_ARG_ENABLE([profiling],
-AC_HELP_STRING([--enable-profiling],
- [Generate extra code to write profile information])
-AC_HELP_STRING([--disable-profiling],
- [No extra code for profiling (default)]),
- [], [enable_profiling=no])
-
- AC_MSG_CHECKING([whether to build with profiling support])
- if test x"$enable_profiling" != x"no"; then
- CFLAGS="$CFLAGS -pg"
- LDFLAGS="$LDFLAGS -pg"
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- fi
-
-dnl # --enable-gcov
- AC_ARG_ENABLE([gcov],
-AC_HELP_STRING([--enable-gcov],
- [compile with coverage profiling instrumentation (gcc only)])
-AC_HELP_STRING([--disable-gcov],
- [do not generate coverage profiling instrumentation (default)]),
- [], [enable_gcov=no])
-
- AC_MSG_CHECKING([whether to compile with coverage profiling instrumentation])
- if test x"$enable_gcov" != x"no"; then
- CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
- AC_MSG_RESULT([yes])
- else
- AC_MSG_RESULT([no])
- fi
-
-dnl # --disable-asserts
- AC_ARG_ENABLE([asserts],
-AC_HELP_STRING([--disable-asserts], [Disable assertions [DANGEROUS]]),
- [], [enable_asserts=yes])
-
- AC_MSG_CHECKING([whether to disable assertions])
- if test x"$enable_asserts" = x"no"; then
- AC_MSG_RESULT([yes])
- CPPFLAGS="$CPPFLAGS -DG_DISABLE_CHECKS -DG_DISABLE_ASSERT"
- CPPFLAGS="$CPPFLAGS -DG_DISABLE_CAST_CHECKS"
- else
- AC_MSG_RESULT([no])
- fi
-
-dnl # --enable-final
- AC_REQUIRE([AC_PROG_LD])
- AC_ARG_ENABLE([final],
-AC_HELP_STRING([--enable-final], [Build final version]),
- [], [enable_final=yes])
-
- AC_MSG_CHECKING([whether to build final version])
- if test x"$enable_final" = x"yes"; then
- AC_MSG_RESULT([yes])
- AC_MSG_CHECKING([whether $LD accepts -O1])
- case `$LD -O1 -v 2>&1 </dev/null` in
- *GNU* | *'with BFD'*)
- LDFLAGS="$LDFLAGS -Wl,-O1"
- AC_MSG_RESULT([yes])
- ;;
- *)
- AC_MSG_RESULT([no])
- ;;
- esac
- else
- AC_MSG_RESULT([no])
- fi
-])
More information about the Xfce4-commits
mailing list