summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2001-07-09 07:32:46 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2001-07-09 07:32:46 +0000
commitc6541c0bb7e1497ec863e8fa2b74fd01ac0d66fd (patch)
tree882384993cf846b512ff0b1dcf5b2c49bedece66 /m4
parent47fef89432ea9a293168b62285811d4c8dda4180 (diff)
downloadmailutils-c6541c0bb7e1497ec863e8fa2b74fd01ac0d66fd.tar.gz
mailutils-c6541c0bb7e1497ec863e8fa2b74fd01ac0d66fd.tar.bz2
Settings specific to maintainer-mode.
Diffstat (limited to 'm4')
-rw-r--r--m4/maintain.m431
1 files changed, 31 insertions, 0 deletions
diff --git a/m4/maintain.m4 b/m4/maintain.m4
new file mode 100644
index 000000000..0f22b952a
--- /dev/null
+++ b/m4/maintain.m4
@@ -0,0 +1,31 @@
+dnl This file is part of GNU mailutils.
+dnl Copyright (C) 2001 Free Software Foundation, Inc.
+dnl
+dnl This file is free software; as a special exception the author gives
+dnl unlimited permission to copy and/or distribute it, with or without
+dnl modifications, as long as this notice is preserved.
+dnl
+dnl This program is distributed in the hope that it will be useful, but
+dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
+dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+dnl
+dnl Check for --enable-maintainer-mode and enable maintainer-specific
+dnl settings.
+
+AC_DEFUN(MU_MAINTAINER_MODE,
+ [AM_MAINTAINER_MODE
+ if test x"$USE_MAINTAINER_MODE" = xyes; then
+ if test x"$GCC" = xyes; then
+ AC_MSG_CHECKING(whether gcc accepts -ggdb)
+ CFLAGS="-ggdb"
+ AC_TRY_COMPILE([],void f(){},
+ AC_MSG_RESULT(yes),
+ [if test x"$ac_cv_prog_cc_g" = xyes; then
+ CFLAGS=-g
+ else
+ CFLAGS=
+ fi
+ AC_MSG_RESULT(no)])
+ CFLAGS="$CFLAGS -DMAINTAINER_MODE"
+ fi
+ fi])

Return to:

Send suggestions and report system problems to the System administrator.