summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDavi Arnaut <davi.arnaut@oracle.com>2010-10-18 14:27:10 -0200
committerDavi Arnaut <davi.arnaut@oracle.com>2010-10-18 14:27:10 -0200
commit5aa81e380cde5bc9f9cd42787286d6db5292d631 (patch)
tree5b4cd4ca37fd09895ed6f6d2e2b122aad1adfda6 /config
parentcdddc7bfd58f900d63b21a811ad768849311c7b7 (diff)
downloadmariadb-git-5aa81e380cde5bc9f9cd42787286d6db5292d631.tar.gz
Bug#45288: pb2 returns a lot of compilation warnings on linux
Enable the MySQL maintainer-specific development environment (which add various warning related options to the compiler flags) if debugging support is enabled. config/ac-macros/maintainer.m4: Enable the maintainer mode if debug support is enabled. configure.in: Move debug argument to before the maintainer mode check.
Diffstat (limited to 'config')
-rw-r--r--config/ac-macros/maintainer.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/config/ac-macros/maintainer.m4 b/config/ac-macros/maintainer.m4
index 24be31395f2..5960853d7f1 100644
--- a/config/ac-macros/maintainer.m4
+++ b/config/ac-macros/maintainer.m4
@@ -8,7 +8,8 @@ AC_DEFUN([MY_MAINTAINER_MODE], [
[AS_HELP_STRING([--enable-mysql-maintainer-mode],
[Enable a MySQL maintainer-specific development environment])],
[USE_MYSQL_MAINTAINER_MODE=$enableval],
- [USE_MYSQL_MAINTAINER_MODE=no])
+ [AS_IF([test "$with_debug" != "no"],
+ [USE_MYSQL_MAINTAINER_MODE=yes], [USE_MYSQL_MAINTAINER_MODE=no])])
AC_MSG_RESULT([$USE_MYSQL_MAINTAINER_MODE])
])