From: Ben Elliston Date: Thu, 31 Dec 1998 18:48:05 +0000 (+0000) Subject: 1999-01-01 Ben Elliston X-Git-Tag: autoconf-2-13-rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d15cc94264d36d8a11354c3e100bd691df05c3e;p=thirdparty%2Fautoconf.git 1999-01-01 Ben Elliston * acspecific.m4 (AC_PROG_CXX_WORKS): Specify an explicit return type for `main' to keep modern C++ compilers happy. --- diff --git a/ChangeLog b/ChangeLog index 4769c70c..a65fb247 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-01-01 Ben Elliston + + * acspecific.m4 (AC_PROG_CXX_WORKS): Specify an explicit return + type for `main' to keep modern C++ compilers happy. + 1998-12-27 Ben Elliston * autoconf.texi (AC_PROG_INSTALL): Update. diff --git a/acspecific.m4 b/acspecific.m4 index 66142d24..0b9aab74 100644 --- a/acspecific.m4 +++ b/acspecific.m4 @@ -217,7 +217,7 @@ AC_DEFUN(AC_PROG_CXX_WORKS, [AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works]) AC_LANG_SAVE AC_LANG_CPLUSPLUS -AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross) +AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross) AC_LANG_RESTORE AC_MSG_RESULT($ac_cv_prog_cxx_works) if test $ac_cv_prog_cxx_works = no; then diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4 index 66142d24..0b9aab74 100644 --- a/lib/autoconf/specific.m4 +++ b/lib/autoconf/specific.m4 @@ -217,7 +217,7 @@ AC_DEFUN(AC_PROG_CXX_WORKS, [AC_MSG_CHECKING([whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works]) AC_LANG_SAVE AC_LANG_CPLUSPLUS -AC_TRY_COMPILER([main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross) +AC_TRY_COMPILER([int main(){return(0);}], ac_cv_prog_cxx_works, ac_cv_prog_cxx_cross) AC_LANG_RESTORE AC_MSG_RESULT($ac_cv_prog_cxx_works) if test $ac_cv_prog_cxx_works = no; then