Commit f448ac15 by Phil Edwards

acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Run the test in LANG_CPLUSPLUS mode.

2001-11-06  Phil Edwards  <pme@gcc.gnu.org>

	* acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG):  Run the test in
	LANG_CPLUSPLUS mode.
	* aclocal.m4:  Regenerate.
	* configure:  Regenerate.

From-SVN: r46815
parent e0e00329
2001-11-06 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCPP_ENABLE_LONG_LONG): Run the test in
LANG_CPLUSPLUS mode.
* aclocal.m4: Regenerate.
* configure: Regenerate.
2001-11-05 Phil Edwards <pme@gcc.gnu.org> 2001-11-05 Phil Edwards <pme@gcc.gnu.org>
* porting.texi: Move... * porting.texi: Move...
......
...@@ -1500,8 +1500,10 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl ...@@ -1500,8 +1500,10 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
esac], esac],
enable_long_long=GLIBCPP_ENABLE_LONG_LONG_DEFAULT)dnl enable_long_long=GLIBCPP_ENABLE_LONG_LONG_DEFAULT)dnl
AC_MSG_CHECKING([for enabled long long I/O support]) AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_MSG_CHECKING([for enabled long long I/O support])
# iostreams require strtoll, strtoull to compile # iostreams require strtoll, strtoull to compile
AC_TRY_COMPILE([#include <stdlib.h>], AC_TRY_COMPILE([#include <stdlib.h>],
[char* tmp; strtoll("gnu", &tmp, 10);],,[enable_long_long=no]) [char* tmp; strtoll("gnu", &tmp, 10);],,[enable_long_long=no])
...@@ -1513,6 +1515,8 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl ...@@ -1513,6 +1515,8 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
AC_DEFINE(_GLIBCPP_USE_LONG_LONG) AC_DEFINE(_GLIBCPP_USE_LONG_LONG)
fi fi
AC_MSG_RESULT($enable_long_long) AC_MSG_RESULT($enable_long_long)
AC_LANG_RESTORE
]) ])
......
...@@ -1512,8 +1512,10 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl ...@@ -1512,8 +1512,10 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
esac], esac],
enable_long_long=GLIBCPP_ENABLE_LONG_LONG_DEFAULT)dnl enable_long_long=GLIBCPP_ENABLE_LONG_LONG_DEFAULT)dnl
AC_MSG_CHECKING([for enabled long long I/O support]) AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_MSG_CHECKING([for enabled long long I/O support])
# iostreams require strtoll, strtoull to compile # iostreams require strtoll, strtoull to compile
AC_TRY_COMPILE([#include <stdlib.h>], AC_TRY_COMPILE([#include <stdlib.h>],
[char* tmp; strtoll("gnu", &tmp, 10);],,[enable_long_long=no]) [char* tmp; strtoll("gnu", &tmp, 10);],,[enable_long_long=no])
...@@ -1525,6 +1527,8 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl ...@@ -1525,6 +1527,8 @@ AC_DEFUN(GLIBCPP_ENABLE_LONG_LONG, [dnl
AC_DEFINE(_GLIBCPP_USE_LONG_LONG) AC_DEFINE(_GLIBCPP_USE_LONG_LONG)
fi fi
AC_MSG_RESULT($enable_long_long) AC_MSG_RESULT($enable_long_long)
AC_LANG_RESTORE
]) ])
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment