source: trunk/m4/ax_c_ifdef.m4 @ 2083

Last change on this file since 2083 was 2083, checked in by Peter, 12 years ago

Let user override the -D* flags that are set in configure. User can,
e.g, issue ./configure -DGSL_RANGE_CHECK=1 if he wants range check in
gsl but doesn't want the whole package that comes with --enable-debug.

serial in yat_add_flag.m4 is not updated because no point updating
serial multiple times between releases.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Date
File size: 928 bytes
Line 
1# ===========================================================================
2#           http://www.nongnu.org/autoconf-archive/ax_c_ifdef.html
3# ===========================================================================
4#
5# SYNOPSIS
6#
7#   AX_C_IFDEF(MACRO-NAME, ACTION-IF-DEF, ACTION-IF-NOT-DEF)
8#
9# DESCRIPTION
10#
11#   Check for the definition of macro MACRO-NAME using the current
12#   language's compiler.
13#
14# LICENSE
15#
16#   Copyright (c) 2008 Ludovic Courtes <ludo@chbouib.org>
17#
18#   Copying and distribution of this file, with or without modification, are
19#   permitted in any medium without royalty provided the copyright notice
20#   and this notice are preserved.
21
22AC_DEFUN([AX_C_IFDEF],
23  [AC_COMPILE_IFELSE([#ifndef $1
24                      # error "Macro $1 is undefined!"
25          /* For some compilers (eg. SGI's CC), #error is not
26             enough...  */
27          please, do fail
28          #endif],
29         [$2], [$3])])
Note: See TracBrowser for help on using the repository browser.