diff options
author | Dan Winship <danw@src.gnome.org> | 2002-03-05 16:57:29 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2002-03-05 16:57:29 +0000 |
commit | bef442d6ae99db3e3a4e1c2f026c97cd813b41d6 (patch) | |
tree | 3714dcade0783d6bb1e8ce9e707c2e783b9bb4b4 /macros/gnome-cxx-check.m4 | |
parent | fa9f9f29a7a287c1e8a4a8f00cbba0389264577e (diff) | |
download | shared-mime-info-bef442d6ae99db3e3a4e1c2f026c97cd813b41d6.tar.gz |
I'm not dead yet!
svn path=/trunk/; revision=2345
Diffstat (limited to 'macros/gnome-cxx-check.m4')
-rw-r--r-- | macros/gnome-cxx-check.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/macros/gnome-cxx-check.m4 b/macros/gnome-cxx-check.m4 new file mode 100644 index 00000000..3c54d62b --- /dev/null +++ b/macros/gnome-cxx-check.m4 @@ -0,0 +1,10 @@ +dnl GNOME_CHECK_CXX(not_found_string) +AC_DEFUN([GNOME_CHECK_CXX], +[ + # 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) +]) |