From 2a4b4913701131f80a6dc1c4e2ff9ffd405e2c9d Mon Sep 17 00:00:00 2001 From: bangerth Date: Sun, 14 Oct 2012 21:59:54 +0000 Subject: [PATCH] Check for availability of . git-svn-id: https://svn.dealii.org/trunk@27122 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/configure | 6 ++- deal.II/configure.in | 1 + deal.II/include/deal.II/base/config.h.in | 48 ++---------------------- 3 files changed, 9 insertions(+), 46 deletions(-) diff --git a/deal.II/configure b/deal.II/configure index 32475c7437..da6d3051d4 100755 --- a/deal.II/configure +++ b/deal.II/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 26920 . +# From configure.in Revision: 27121 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for deal.II 7.3.pre. # @@ -2342,6 +2342,7 @@ as_fn_append ac_func_list " gethostname" as_fn_append ac_func_list " getpid" as_fn_append ac_header_list " sys/syscall.h" as_fn_append ac_header_list " sys/times.h" +as_fn_append ac_header_list " sys/time.h" # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false @@ -8974,6 +8975,9 @@ done + + + for ac_func in times do : ac_fn_cxx_check_func "$LINENO" "times" "ac_cv_func_times" diff --git a/deal.II/configure.in b/deal.II/configure.in index 209e59e784..aab6919282 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -243,6 +243,7 @@ DEAL_II_CHECK_ERROR_CODES_DEFINITION AC_CHECK_FUNCS_ONCE([gethostname getpid]) AC_CHECK_HEADERS_ONCE([sys/syscall.h]) AC_CHECK_HEADERS_ONCE([sys/times.h]) +AC_CHECK_HEADERS_ONCE([sys/time.h]) AC_CHECK_FUNCS(times) DEAL_II_CHECK_BROKEN_SOCKETS diff --git a/deal.II/include/deal.II/base/config.h.in b/deal.II/include/deal.II/base/config.h.in index 37e5c6c7c6..b34f2d87c3 100644 --- a/deal.II/include/deal.II/base/config.h.in +++ b/deal.II/include/deal.II/base/config.h.in @@ -60,10 +60,6 @@ linking. For the details, look at aclocal.m4 in the top-level directory. */ #undef DEAL_II_ANON_NAMESPACE_LINKAGE_BUG -/* Defined if the compiler has a problem with using arrays as arguments in - functions */ -#undef DEAL_II_ARRAY_ARG_BUG - /* Defined if the compiler has a problem with assigning arrays in conditionals */ #undef DEAL_II_ARRAY_CONDITIONAL_DECAY_BUG @@ -122,11 +118,6 @@ directory for a description of this bug. */ #undef DEAL_II_EXPLICIT_DESTRUCTOR_BUG -/* Defined if the compiler needs a workaround for certain problems with taking - the address of template template functions. For the details, look at - aclocal.m4 in the top-level directory. */ -#undef DEAL_II_FUNPTR_TEMPLATE_TEMPLATE_BUG - /* Defined if the compiler has a bug with dynamic casting and dynamic libraries */ #undef DEAL_II_HAVE_DARWIN_DYNACAST_BUG @@ -150,11 +141,6 @@ */ #undef DEAL_II_LOCAL_TYPEDEF_COMP_WORKAROUND -/* Defined if the compiler gets an internal compiler upon some code involving - long doubles, and with optimization. For the details, look at aclocal.m4 in - the top-level directory. */ -#undef DEAL_II_LONG_DOUBLE_LOOP_BUG - /* Major version number of deal.II */ #undef DEAL_II_MAJOR @@ -168,11 +154,6 @@ directory for a description of this bug. */ #undef DEAL_II_MEMBER_OP_TEMPLATE_INST -/* Defined if the compiler refuses to specialize an outer class template while - keeping a member as a template. For the exact failure mode, look at - aclocal.m4 in the top-level directory. */ -#undef DEAL_II_MEMBER_TEMPLATE_SPECIALIZATION_BUG - /* Defined if the compiler refuses to allow the explicit specialization of static member variables. For the exact failure mode, look at aclocal.m4 in the top-level directory. */ @@ -192,27 +173,6 @@ /* enable multigrid compatibility mode */ #undef DEAL_II_MULTIGRID_COMPATIBILITY -/* Define if we have to work around a bug in gcc with marking all instances of - a template class as friends to this class if the class is inside a - namespace. See the aclocal.m4 file in the top-level directory for a - description of this bug. */ -#undef DEAL_II_NAMESP_TEMPL_FRIEND_BUG - -/* Define if we have to work around another bug in gcc with marking all - instances of a template class as friends to this class if the class is - inside a namespace. See the aclocal.m4 file in the top-level directory for - a description of this bug. */ -#undef DEAL_II_NAMESP_TEMPL_FRIEND_BUG2 - -/* Defined if the compiler does not properly implement the resolution of - defect report #45 to the C++ standard, which makes nested types implicit - friends of the enclosing class. */ -#undef DEAL_II_NESTED_CLASS_FRIEND_BUG - -/* Defined if the compiler does not understand friend declarations for nested - member classes when giving a full class specification. */ -#undef DEAL_II_NESTED_CLASS_TEMPL_FRIEND_BUG - /* Path to the deal.II directory */ #undef DEAL_II_PATH @@ -226,11 +186,6 @@ */ #undef DEAL_II_TEMPLATE_SPEC_ACCESS_WORKAROUND -/* Defined if the compiler refuses to allow a typedef to a template template - class template parameter. For the exact failure mode, look at aclocal.m4 in - the top-level directory. */ -#undef DEAL_II_TEMPLATE_TEMPLATE_TYPEDEF_BUG - /* Defined if the compiler requires the use of the template keyword for disambiguation keyword in certain contexts in which it is not supposed to do so. For the exact failure mode, look at aclocal.m4 in the top-level @@ -554,6 +509,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIMES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TIME_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H -- 2.39.5