~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to src/m4/cc-ema.m4

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Copyright (C) 1993-2002 Free Software Foundation, Inc.
2
 
dnl This file is free software, distributed under the terms of the GNU
3
 
dnl General Public License.  As a special exception to the GNU General
4
 
dnl Public License, this file may be distributed as part of a program
5
 
dnl that contains a configuration script generated by Autoconf, under
6
 
dnl the same distribution terms as the rest of that program.
7
 
 
8
 
dnl From Bruno Haible, Marcus Daniels.
9
 
 
10
 
AC_PREREQ(2.13)
11
 
 
12
 
AC_DEFUN([CL_CC_NEED_DEEMA],
13
 
[AC_REQUIRE([AC_PROG_CPP])
14
 
AC_CACHE_CHECK(whether CPP likes empty macro arguments, cl_cv_prog_cc_ema, [
15
 
AC_TRY_CPP([#define divide(x,y,q_zuw,r_zuw) (r_zuw(x)-(q_zuw(x)/(y))*(y))
16
 
foo(x,y) int x,y; { int q; divide(x,y,q=,); return q; }],
17
 
cl_cv_prog_cc_ema=yes, cl_cv_prog_cc_ema=no)
18
 
])
19
 
if test $cl_cv_prog_cc_ema = yes; then
20
 
  CC_NEED_DEEMA=false
21
 
else
22
 
  CC_NEED_DEEMA=true
23
 
fi
24
 
AC_SUBST(CC_NEED_DEEMA)dnl
25
 
])