From 4764f07dfeee9a3baa90399f9f2a18d7d5175fd2 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 31 Jul 2007 17:47:12 +0100 Subject: Move dbus-py-add-rst2htmlflag.m4 to jh-add-cflag.m4 - the contents of two of the .m4 files were the opposite of what they should be --- m4/dbus-py-add-rst2htmlflag.m4 | 20 -------------------- m4/jh-add-cflag.m4 | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+), 20 deletions(-) delete mode 100644 m4/dbus-py-add-rst2htmlflag.m4 create mode 100644 m4/jh-add-cflag.m4 diff --git a/m4/dbus-py-add-rst2htmlflag.m4 b/m4/dbus-py-add-rst2htmlflag.m4 deleted file mode 100644 index 75fa78c..0000000 --- a/m4/dbus-py-add-rst2htmlflag.m4 +++ /dev/null @@ -1,20 +0,0 @@ -dnl JH_ADD_CFLAG(FLAG) -dnl checks whether the C compiler supports the given flag, and if so, adds -dnl it to $CFLAGS. If the flag is already present in the list, then the -dnl check is not performed. -AC_DEFUN([JH_ADD_CFLAG], -[ -case " $CFLAGS " in -*@<:@\ \ @:>@$1@<:@\ \ @:>@*) - ;; -*) - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $1" - AC_MSG_CHECKING([whether [$]CC understands $1]) - AC_TRY_COMPILE([], [], [jh_has_option=yes], [jh_has_option=no]) - AC_MSG_RESULT($jh_has_option) - if test $jh_has_option = no; then - CFLAGS="$save_CFLAGS" - fi - ;; -esac]) diff --git a/m4/jh-add-cflag.m4 b/m4/jh-add-cflag.m4 new file mode 100644 index 0000000..75fa78c --- /dev/null +++ b/m4/jh-add-cflag.m4 @@ -0,0 +1,20 @@ +dnl JH_ADD_CFLAG(FLAG) +dnl checks whether the C compiler supports the given flag, and if so, adds +dnl it to $CFLAGS. If the flag is already present in the list, then the +dnl check is not performed. +AC_DEFUN([JH_ADD_CFLAG], +[ +case " $CFLAGS " in +*@<:@\ \ @:>@$1@<:@\ \ @:>@*) + ;; +*) + save_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $1" + AC_MSG_CHECKING([whether [$]CC understands $1]) + AC_TRY_COMPILE([], [], [jh_has_option=yes], [jh_has_option=no]) + AC_MSG_RESULT($jh_has_option) + if test $jh_has_option = no; then + CFLAGS="$save_CFLAGS" + fi + ;; +esac]) -- cgit v1.2.1