~ubuntu-branches/ubuntu/maverick/uim/maverick

« back to all changes in this revision

Viewing changes to sigscheme/libgcroots/m4/ax_func_getcontext.m4

  • Committer: Bazaar Package Importer
  • Author(s): Masahito Omote
  • Date: 2008-06-25 19:56:33 UTC
  • mfrom: (3.1.18 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080625195633-8jljph4rfq00l8o7
Tags: 1:1.5.1-2
* uim-tcode: provide tutcode-custom.scm, tutcode-bushudic.scm
  and tutcode-rule.scm (Closes: #482659)
* Fix FTBFS: segv during compile (Closes: #483078).
  I personally think this bug is not specific for uim but is a optimization
  problem on gcc-4.3.1. (https://bugs.freedesktop.org/show_bug.cgi?id=16477)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
##### 
 
2
#
 
3
# SYNOPSIS
 
4
#
 
5
#   AX_FUNC_GETCONTEXT
 
6
#
 
7
# DESCRIPTION
 
8
#
 
9
#   Checks whether getcontext(3) is available.
 
10
#
 
11
#   This macro uses compile-time detection and so is cross-compile
 
12
#   ready.
 
13
#
 
14
# LAST MODIFICATION
 
15
#
 
16
#   2006-12-25
 
17
#
 
18
# COPYLEFT
 
19
#
 
20
#   Copyright (c) 2006 YAMAMOTO Kengo <yamaken AT bp.iij4u.or.jp>
 
21
#
 
22
#   Copying and distribution of this file, with or without
 
23
#   modification, are permitted in any medium without royalty provided
 
24
#   the copyright notice and this notice are preserved.
 
25
 
 
26
AC_DEFUN([AX_FUNC_GETCONTEXT], [
 
27
  AC_CACHE_CHECK([for getcontext],
 
28
                 [ax_cv_func_getcontext],
 
29
                 [AC_LINK_IFELSE(
 
30
                    AC_LANG_PROGRAM([[@%:@include <ucontext.h>]],
 
31
                                    [[ucontext_t ctx;
 
32
                                      return getcontext(&ctx);]]),
 
33
                    [ax_cv_func_getcontext=yes],
 
34
                    [ax_cv_func_getcontext=no])])
 
35
  if test "x$ax_cv_func_getcontext" = xyes; then
 
36
    AC_DEFINE([HAVE_GETCONTEXT], [1],
 
37
              [Define to 1 if you have the `getcontext' function.])
 
38
  fi
 
39
])