diff options
author | Raja R Harinath <harinath@src.gnome.org> | 1999-01-20 11:33:28 +0800 |
---|---|---|
committer | Raja R Harinath <harinath@src.gnome.org> | 1999-01-20 11:33:28 +0800 |
commit | d2ef9770157ef4c8832cd330a91818d0ae929ff2 (patch) | |
tree | 812ab25d2da7e807407a508e5676de2f369b1fcd /macros/gnome-cxx-check.m4 | |
parent | e5e5df258a54dc493e2d0aa7403a619640486bd6 (diff) | |
download | gsoc2013-evolution-d2ef9770157ef4c8832cd330a91818d0ae929ff2.tar gsoc2013-evolution-d2ef9770157ef4c8832cd330a91818d0ae929ff2.tar.gz gsoc2013-evolution-d2ef9770157ef4c8832cd330a91818d0ae929ff2.tar.bz2 gsoc2013-evolution-d2ef9770157ef4c8832cd330a91818d0ae929ff2.tar.lz gsoc2013-evolution-d2ef9770157ef4c8832cd330a91818d0ae929ff2.tar.xz gsoc2013-evolution-d2ef9770157ef4c8832cd330a91818d0ae929ff2.tar.zst gsoc2013-evolution-d2ef9770157ef4c8832cd330a91818d0ae929ff2.zip |
Rewrite to be saner. Don't limit yourself to a fixed set of names for the
* gnome-cxx-check.m4 (GNOME_CHECK_CXX): Rewrite to be saner.
Don't limit yourself to a fixed set of names for the compiler.
svn path=/trunk/; revision=614
Diffstat (limited to 'macros/gnome-cxx-check.m4')
-rw-r--r-- | macros/gnome-cxx-check.m4 | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/macros/gnome-cxx-check.m4 b/macros/gnome-cxx-check.m4 index 8d76eb9d80..786138c5d9 100644 --- a/macros/gnome-cxx-check.m4 +++ b/macros/gnome-cxx-check.m4 @@ -1,15 +1,10 @@ -AC_DEFUN([GNOME_CHECK_CXX], +dnl GNOME_CHECK_CXX(not_found_string) +AC_DEFUN(GNOME_CHECK_CXX, [ - AC_CHECK_PROG(cxx_found, c++, yes, no) - AC_CHECK_PROG(cxx_found, g++, yes, no) - AC_CHECK_PROG(cxx_found, CC, yes, no) - AC_CHECK_PROG(cxx_found, cxx, yes, no) - AC_CHECK_PROG(cxx_found, cc++, yes, no) - - if test "x$cxx_found" = "xyes"; then - AC_PROG_CXX - else - AC_MSG_WARN(No C++ compiler - gnometris will not be built!) - fi - AM_CONDITIONAL(CXX_PRESENT, test "x$cxx_found" = xyes) + # see if a C++ compiler exists and works + AC_REQUIRE([AC_PROG_CXX])dnl + if test "x$ac_cv_prog_cxx_works" = xno; then + AC_MSG_WARN(ifelse([$1], , "No C++ compiler", [$1])) + fi + AM_CONDITIONAL(CXX_PRESENT, test "x$ac_cv_prog_cxx_works" != xno) ]) |