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

« back to all changes in this revision

Viewing changes to ffcall/m4/cc-gcc.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_GCC],
13
 
[AC_REQUIRE([AC_PROG_CPP])
14
 
AC_CACHE_CHECK(whether using GNU C, cl_cv_prog_cc_gcc, [
15
 
AC_EGREP_CPP(yes,[#ifdef __GNUC__
16
 
  yes
17
 
#endif
18
 
], cl_cv_prog_cc_gcc=yes, cl_cv_prog_cc_gcc=no)
19
 
])
20
 
if test $cl_cv_prog_cc_gcc = yes; then
21
 
  CC_GCC=true
22
 
  GCC_X_NONE='-x none'
23
 
else
24
 
  CC_GCC=false
25
 
  GCC_X_NONE=''
26
 
fi
27
 
AC_SUBST(CC_GCC)dnl
28
 
AC_SUBST(GCC_X_NONE)dnl
29
 
])