Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 35 lines (31 sloc) 1.532 kb
a93a278 Mike Lundy Mark vw_throw as noreturn explicitly
novas0x2a authored
1 dnl __BEGIN_LICENSE__
426c2c3 Zack Moratto all: Relicense VW as Apache 2
zmoratto authored
2 dnl Copyright (c) 2006-2012, United States Government as represented by the
3 dnl Administrator of the National Aeronautics and Space Administration. All
4 dnl rights reserved.
5 dnl
6 dnl The NASA Vision Workbench is licensed under the Apache License,
7 dnl Version 2.0 (the "License"); you may not use this file except in
8 dnl compliance with the License. You may obtain a copy of the License at
9 dnl http://www.apache.org/licenses/LICENSE-2.0
10 dnl
11 dnl Unless required by applicable law or agreed to in writing, software
12 dnl distributed under the License is distributed on an "AS IS" BASIS,
13 dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 dnl See the License for the specific language governing permissions and
15 dnl limitations under the License.
a93a278 Mike Lundy Mark vw_throw as noreturn explicitly
novas0x2a authored
16 dnl __END_LICENSE__
17
b1c122d Mike Lundy run relicense.pl
novas0x2a authored
18
a93a278 Mike Lundy Mark vw_throw as noreturn explicitly
novas0x2a authored
19 dnl Usage: AX_CHECK_FUNCTION_ATTRIBUTE([attr])
20
21 AC_DEFUN([AX_CHECK_FUNCTION_ATTRIBUTE],
22 [
23 AS_VAR_PUSHDEF([ac_var], ac_cv_func_attribute_[[$1]])dnl
24 AC_CACHE_CHECK([whether the current compiler supports $1], ac_var,
25 [
c4bf350 Mike Lundy fix warnings with autoconf 2.68
novas0x2a authored
26 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
a93a278 Mike Lundy Mark vw_throw as noreturn explicitly
novas0x2a authored
27 int f(int i) __attribute__(($1));
c4bf350 Mike Lundy fix warnings with autoconf 2.68
novas0x2a authored
28 ]], [])], [AS_VAR_SET(ac_var,yes)], [AS_VAR_SET(ac_var,no)])
a93a278 Mike Lundy Mark vw_throw as noreturn explicitly
novas0x2a authored
29 ])
30 AS_IF([test x"$ac_var" = "xyes"],
31 [AC_DEFINE([COMPILER_HAS_ATTRIBUTE_]AS_TR_CPP($1), [1], [does the compiler support function __attribute__(($1))?])],
32 [AC_DEFINE([COMPILER_HAS_ATTRIBUTE_]AS_TR_CPP($1), [0], [does the compiler support function __attribute__(($1))?])])
33 AS_VAR_POPDEF([ac_var])dnl
34 ])
Something went wrong with that request. Please try again.