summaryrefslogtreecommitdiff
path: root/build/c_std.m4
diff options
context:
space:
mode:
Diffstat (limited to 'build/c_std.m4')
-rw-r--r--build/c_std.m453
1 files changed, 32 insertions, 21 deletions
diff --git a/build/c_std.m4 b/build/c_std.m4
index f4a8b56f..606aef6e 100644
--- a/build/c_std.m4
+++ b/build/c_std.m4
@@ -1,22 +1,38 @@
-cv_c_std_time_t_is_not_int32
-## GLIBMM_CXX_HAS_NAMESPACE_STD()
+## Copyright (c) 2009, 2011 Openismus GmbH <http://www.openismus.com/>
##
-## Test whether libstdc++ declares namespace std. For safety,
-## also check whether several randomly selected STL symbols
-## are available in namespace std.
+## This file is part of glibmm.
##
-## On success, #define GLIBMM_HAVE_NAMESPACE_STD to 1.
+## glibmm is free software: you can redistribute it and/or modify it
+## under the terms of the GNU Lesser General Public License as published
+## by the Free Software Foundation, either version 2.1 of the License,
+## or (at your option) any later version.
+##
+## glibmm is distributed in the hope that it will be useful, but
+## WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+## See the GNU Lesser General Public License for more details.
+##
+## You should have received a copy of the GNU Lesser General Public License
+## along with this library. If not, see <http://www.gnu.org/licenses/>.
+
+#serial 20110910
+
+## GLIBMM_C_STD_TIME_T_IS_NOT_INT32
+##
+## Test whether time_t and gint32 are typedefs of the same builting type. If
+## they aren't then they can be used for method overload. In that case
+## GLIBMM_HAVE_C_STD_TIME_T_IS_NOT_INT32 is defined to 1.
##
AC_DEFUN([GLIBMM_C_STD_TIME_T_IS_NOT_INT32],
[
AC_CACHE_CHECK(
[whether time_t is not equivalent to gint32, meaning that it can be used for a method overload],
- [gtkmm_cv_c_std_time_t_is_not_int32],
+ [glibmm_cv_c_std_time_t_is_not_int32],
[
- AC_TRY_COMPILE(
- [
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM(
+ [[
#include <time.h>
- ],[
+ ]],[[
typedef signed int gint32;
class Test
{
@@ -26,18 +42,13 @@ AC_DEFUN([GLIBMM_C_STD_TIME_T_IS_NOT_INT32],
void something(time_t val)
{}
};
- ],
- [gtkmm_cv_c_std_time_t_is_not_int32="yes"],
- [gtkmm_cv_c_std_time_t_is_not_int32="no"]
+ ]])],
+ [glibmm_cv_c_std_time_t_is_not_int32='yes'],
+ [glibmm_cv_c_std_time_t_is_not_int32='no']
)
])
- if test "x${gtkmm_cv_c_std_time_t_is_not_int32}" = "xyes"; then
- {
- AC_DEFINE([GLIBMM_HAVE_C_STD_TIME_T_IS_NOT_INT32],[1], [Defined when time_t is not equivalent to gint32, meaning that it can be used for a method overload])
- }
- fi
+ AS_VAR_IF([glibmm_cv_c_std_time_t_is_not_int32], ['yes'],
+ [AC_DEFINE([GLIBMM_HAVE_C_STD_TIME_T_IS_NOT_INT32], [1],
+ [Defined when time_t is not equivalent to gint32, meaning that it can be used for a method overload])])[]dnl
])
-
-
-