diff options
Diffstat (limited to 'libcilkrts/configure.ac')
-rw-r--r-- | libcilkrts/configure.ac | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/libcilkrts/configure.ac b/libcilkrts/configure.ac index 8ad647ea8e7..6edb9f7c917 100644 --- a/libcilkrts/configure.ac +++ b/libcilkrts/configure.ac @@ -1,8 +1,6 @@ -# @copyright -# Copyright (C) 2011-2013, Intel Corporation +# Copyright (C) 2011-2016, Intel Corporation # All rights reserved. # -# @copyright # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: @@ -17,7 +15,6 @@ # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # -# @copyright # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -30,6 +27,20 @@ # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY # WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. +# +# ********************************************************************* +# +# PLEASE NOTE: This file is a downstream copy of a file mainitained in +# a repository at cilkplus.org. Changes made to this file that are not +# submitted through the contribution process detailed at +# http://www.cilkplus.org/submit-cilk-contribution will be lost the next +# time that a new version is released. Changes only submitted to the +# GNU compiler collection or posted to the git repository at +# https://bitbucket.org/intelcilkruntime/intel-cilk-runtime.git are +# not tracked. +# +# We welcome your contributions to this open source project. Thank you +# for your assistance in helping us improve Cilk Plus. AC_INIT([Cilk Runtime Library], [2.0], [cilk@intel.com]) AC_PREREQ([2.64]) @@ -39,6 +50,10 @@ AC_PREREQ([2.64]) AC_CANONICAL_SYSTEM target_alias=${target_alias-$host_alias} AC_SUBST(target_alias) + +# Test for GNU extensions. Will define _GNU_SOURCE if they're available +AC_USE_SYSTEM_EXTENSIONS + AM_INIT_AUTOMAKE(foreign no-dist) AM_MAINTAINER_MODE @@ -134,6 +149,10 @@ case "${target}" in config_dir="x86" ;; + arm-*-*) + config_dir="arm" + ;; + *) config_dir="generic" ;; @@ -189,8 +208,7 @@ AC_LINK_IFELSE( # Check for pthread_{,attr_}[sg]etaffinity_np. AC_LINK_IFELSE( [AC_LANG_PROGRAM( - [#define _GNU_SOURCE - #include <pthread.h>], + [#include <pthread.h>], [cpu_set_t cpuset; pthread_attr_t attr; pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); |