Mercurial > hg > octave-lojdl > gnulib-hg
annotate m4/assert.m4 @ 5611:87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sun, 23 Jan 2005 08:06:57 +0000 |
parents | 7141ea4946af |
children | 69048e86dbdf |
rev | line source |
---|---|
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
1 #serial 5 |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
2 |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
3 # Copyright (C) 1998, 1999, 2001, 2004 Free Software Foundation, Inc. |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
4 # This file is free software; the Free Software Foundation |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
5 # gives unlimited permission to copy and/or distribute it, |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
6 # with or without modifications, as long as this notice is preserved. |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
5016
diff
changeset
|
7 |
1330 | 8 dnl based on code from Eleftherios Gkioulekas |
9 | |
5016
7141ea4946af
Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
Jim Meyering <jim@meyering.net>
parents:
3339
diff
changeset
|
10 AC_DEFUN([gl_ASSERT], |
1330 | 11 [ |
12 AC_MSG_CHECKING(whether to enable assertions) | |
13 AC_ARG_ENABLE(assert, | |
1672
004ad983c640
Use the 3-argument forms of AC_DEFINE* macros.
Jim Meyering <jim@meyering.net>
parents:
1330
diff
changeset
|
14 [ --disable-assert turn off assertions], |
004ad983c640
Use the 3-argument forms of AC_DEFINE* macros.
Jim Meyering <jim@meyering.net>
parents:
1330
diff
changeset
|
15 [ AC_MSG_RESULT(no) |
004ad983c640
Use the 3-argument forms of AC_DEFINE* macros.
Jim Meyering <jim@meyering.net>
parents:
1330
diff
changeset
|
16 AC_DEFINE(NDEBUG,1,[Define to 1 if assertions should be disabled.]) ], |
004ad983c640
Use the 3-argument forms of AC_DEFINE* macros.
Jim Meyering <jim@meyering.net>
parents:
1330
diff
changeset
|
17 [ AC_MSG_RESULT(yes) ] |
1330 | 18 ) |
19 ]) |