Changeset e62a1d in git for m4/options.m4


Ignore:
Timestamp:
May 20, 2013, 4:27:50 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
35564a593038fa54330b221ac4ac3342667c31ea
Parents:
16f511afd4aa6b9ce29c1da0d049c151df5bc2b5
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-05-20 16:27:50+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-05-24 14:52:29+02:00
Message:
Disable debug by default (separated into m4/options.m4)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • m4/options.m4

    r16f511 re62a1d  
    6969AC_MSG_RESULT($ENABLE_PLURAL)
    7070])
     71
     72
     73
     74AC_DEFUN([SING_CHECK_DEBUG], [
     75 ENABLE_DEBUG="no"
     76
     77 AC_MSG_CHECKING([whether debugging checks should be embedded])
     78
     79 AC_ARG_ENABLE([debug],
     80  AS_HELP_STRING([--enable-debug], [build the debugging version of the libraries]),
     81  [if test "x$enableval" = "xyes"; then
     82  ENABLE_DEBUG="yes"
     83  fi])
     84 
     85 AM_CONDITIONAL(WANT_DEBUG, test x"${ENABLE_DEBUG}" == xyes)
     86 
     87 if test "x${ENABLE_DEBUG}" != xyes; then
     88  AC_MSG_RESULT([no])
     89  AC_DEFINE([OM_NDEBUG],1,"Disable OM Debug")
     90  AC_DEFINE([NDEBUG],1,"Disable Debug")
     91 else
     92  AC_MSG_RESULT([yes])
     93 fi
     94])
Note: See TracChangeset for help on using the changeset viewer.