Statistics
| Branch: | Tag: | Revision:

root / volk / config / lf_cc.m4 @ 79ca8f23

History | View | Annotate | Download (1.7 kB)

1 23914465 Tom Rondeau
dnl Autoconf support for C++
2 23914465 Tom Rondeau
dnl Copyright (C) 1988 Eleftherios Gkioulekas <[email protected]>
3 23914465 Tom Rondeau
dnl  
4 23914465 Tom Rondeau
dnl This program is free software; you can redistribute it and/or modify
5 23914465 Tom Rondeau
dnl it under the terms of the GNU General Public License as published by
6 23914465 Tom Rondeau
dnl the Free Software Foundation; either version 3 of the License, or
7 23914465 Tom Rondeau
dnl (at your option) any later version.
8 23914465 Tom Rondeau
dnl 
9 23914465 Tom Rondeau
dnl This program is distributed in the hope that it will be useful,
10 23914465 Tom Rondeau
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11 23914465 Tom Rondeau
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 23914465 Tom Rondeau
dnl GNU General Public License for more details.
13 23914465 Tom Rondeau
dnl 
14 23914465 Tom Rondeau
dnl You should have received a copy of the GNU General Public License
15 23914465 Tom Rondeau
dnl along with this program; if not, write to the Free Software 
16 23914465 Tom Rondeau
dnl Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301, USA.
17 23914465 Tom Rondeau
dnl 
18 23914465 Tom Rondeau
dnl As a special exception to the GNU General Public License, if you 
19 23914465 Tom Rondeau
dnl distribute this file as part of a program that contains a configuration 
20 23914465 Tom Rondeau
dnl script generated by Autoconf, you may include it under the same 
21 23914465 Tom Rondeau
dnl distribution terms that you use for the rest of that program.
22 23914465 Tom Rondeau
23 23914465 Tom Rondeau
# -------------------------------------------------------------------------
24 23914465 Tom Rondeau
# Use this macro to configure your C compiler
25 23914465 Tom Rondeau
# When called the macro does the following things:
26 23914465 Tom Rondeau
# 1. It finds an appropriate C compiler.
27 23914465 Tom Rondeau
#    If you passed the flag --with-cc=foo then it uses that
28 23914465 Tom Rondeau
#    particular compiler
29 23914465 Tom Rondeau
# 2. Check whether the compiler works.
30 23914465 Tom Rondeau
# 3. Checks whether the compiler accepts the -g 
31 23914465 Tom Rondeau
# -------------------------------------------------------------------------
32 23914465 Tom Rondeau
33 23914465 Tom Rondeau
AC_DEFUN([LF_CONFIGURE_CC],[
34 23914465 Tom Rondeau
  dnl Sing the song
35 23914465 Tom Rondeau
  AC_REQUIRE([AC_PROG_CC])dnl
36 23914465 Tom Rondeau
  AC_REQUIRE([AC_PROG_CPP])dnl
37 23914465 Tom Rondeau
  AC_REQUIRE([AC_AIX])dnl
38 23914465 Tom Rondeau
  AC_REQUIRE([AC_ISC_POSIX])dnl
39 23914465 Tom Rondeau
  AC_REQUIRE([AC_HEADER_STDC])dnl
40 23914465 Tom Rondeau
])