X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=m4%2Fensc_cxxcompiler.m4;fp=m4%2Fensc_cxxcompiler.m4;h=ec6da3a5496dd591efd70aebfd4efc876f515849;hb=d56ea1e992af7da828e89b98f2878bcc04250708;hp=51c7a78722b535020f5641495f77f9052fbee908;hpb=616c79d7eee3bff076671ee8d475df2f2b640a16;p=util-vserver.git diff --git a/m4/ensc_cxxcompiler.m4 b/m4/ensc_cxxcompiler.m4 index 51c7a78..ec6da3a 100644 --- a/m4/ensc_cxxcompiler.m4 +++ b/m4/ensc_cxxcompiler.m4 @@ -1,16 +1,17 @@ -dnl $Id: ensc_cxxcompiler.m4 2007 2005-04-10 00:52:57Z ensc $ +dnl $Id: ensc_cxxcompiler.m4 2846 2009-08-23 12:36:40Z ensc $ -dnl Copyright (C) 2002 Enrico Scholz -dnl +dnl Copyright (C) 2002, 2003, 2004, 2005, 2009 +dnl Enrico Scholz +dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; version 2 of the License. -dnl +dnl the Free Software Foundation; version 2 and/or 3 of the License. +dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. -dnl +dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -20,18 +21,18 @@ AC_DEFUN([ENSC_CXXCOMPILER], AC_REQUIRE([AC_PROG_CXX]) AC_CACHE_CHECK([whether $CXX is a C++ compiler], [ensc_cv_cxx_cxxcompiler], - [ + [ AC_LANG_PUSH(C++) AC_COMPILE_IFELSE([ #include - ], - [ensc_cv_cxx_cxxcompiler=yes], - [ensc_cv_cxx_cxxcompiler=no]) + ], + [ensc_cv_cxx_cxxcompiler=yes], + [ensc_cv_cxx_cxxcompiler=no]) AC_LANG_POP(C++) - ]) + ]) AM_CONDITIONAL(ENSC_HAVE_CXX_COMPILER, - [test x"$ensc_cv_cxx_cxxcompiler" = xyes]) + [test x"$ensc_cv_cxx_cxxcompiler" = xyes]) if test x"$ensc_cv_cxx_cxxcompiler" = xno; then AC_MSG_WARN([*** some programs will not be built because a C++ compiler is lacking]) @@ -43,7 +44,7 @@ AC_DEFUN([ENSC_C99COMPILER], AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([whether $CC is a C99 compiler], [ensc_cv_c99_c99compiler], - [ + [ AC_LANG_PUSH(C) AC_COMPILE_IFELSE([ int main(int argc, char *argv[]) { @@ -51,14 +52,14 @@ int main(int argc, char *argv[]) { if (0) return 0; int b; } - ], - [ensc_cv_c99_c99compiler=yes], - [ensc_cv_c99_c99compiler=no]) + ], + [ensc_cv_c99_c99compiler=yes], + [ensc_cv_c99_c99compiler=no]) AC_LANG_POP(C) - ]) + ]) AM_CONDITIONAL(ENSC_HAVE_C99_COMPILER, - [test x"$ensc_cv_c99_c99compiler" = xyes]) + [test x"$ensc_cv_c99_c99compiler" = xyes]) if test x"$ensc_cv_c99_c99compiler" = xno; then AC_MSG_WARN([*** some programs will not be built because system is lacking a C99 compiler])