aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-05-25 19:47:57 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-10-23 19:03:35 +0800
commitcc88cb87e38a54bb73926a2dbe67be416ef1cbd6 (patch)
treeccf5b0bfc44fb159746ddf7898483611d7521015
parentc5abfdfed55676136808fea854d9ad3ed7bd458e (diff)
downloadgsoc2013-empathy-cc88cb87e38a54bb73926a2dbe67be416ef1cbd6.tar
gsoc2013-empathy-cc88cb87e38a54bb73926a2dbe67be416ef1cbd6.tar.gz
gsoc2013-empathy-cc88cb87e38a54bb73926a2dbe67be416ef1cbd6.tar.bz2
gsoc2013-empathy-cc88cb87e38a54bb73926a2dbe67be416ef1cbd6.tar.lz
gsoc2013-empathy-cc88cb87e38a54bb73926a2dbe67be416ef1cbd6.tar.xz
gsoc2013-empathy-cc88cb87e38a54bb73926a2dbe67be416ef1cbd6.tar.zst
gsoc2013-empathy-cc88cb87e38a54bb73926a2dbe67be416ef1cbd6.zip
remove m4/acinclude.m4
We have our own errors management now.
-rw-r--r--m4/acinclude.m465
1 files changed, 0 insertions, 65 deletions
diff --git a/m4/acinclude.m4 b/m4/acinclude.m4
deleted file mode 100644
index 18cf7c868..000000000
--- a/m4/acinclude.m4
+++ /dev/null
@@ -1,65 +0,0 @@
-dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
-
-AC_DEFUN([IDT_COMPILE_WARNINGS],[
- if test -f $srcdir/autogen.sh; then
- default_compile_warnings="error"
- else
- default_compile_warnings="no"
- fi
-
- AC_ARG_WITH(compile-warnings,
- AS_HELP_STRING([--with-compile-warnings=@<:@no/yes/error@:>@],
- [Compiler warnings]),
- [enable_compile_warnings="$withval"],
- [enable_compile_warnings="$default_compile_warnings"])
-
- warnCFLAGS=
- if test "x$GCC" != xyes; then
- enable_compile_warnings=no
- fi
-
- warning_flags=
- realsave_CFLAGS="$CFLAGS"
-
- case "$enable_compile_warnings" in
- no)
- warning_flags=
- ;;
- yes)
- warning_flags="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations"
- ;;
- maximum|error)
- warning_flags="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wchar-subscripts -Wnested-externs -Wpointer-arith"
- CFLAGS="$warning_flags $CFLAGS"
- for option in -Wno-sign-compare -Wno-pointer-sign -Wformat; do
- SAVE_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $option"
- AC_MSG_CHECKING([whether gcc understands $option])
- AC_TRY_COMPILE([], [],
- has_option=yes,
- has_option=no,)
- CFLAGS="$SAVE_CFLAGS"
- AC_MSG_RESULT($has_option)
- if test $has_option = yes; then
- warning_flags="$warning_flags $option"
- fi
- unset has_option
- unset SAVE_CFLAGS
- done
- unset option
- if test "$enable_compile_warnings" = "error" ; then
- warning_flags="$warning_flags -Werror"
- fi
- ;;
- *)
- AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
- ;;
- esac
- CFLAGS="$realsave_CFLAGS"
- AC_MSG_CHECKING(what warning flags to pass to the C compiler)
- AC_MSG_RESULT($warning_flags)
-
- WARN_CFLAGS="$warning_flags"
- AC_SUBST(WARN_CFLAGS)
-])
-