Mercurial > hg > CbC > CbC_gcc
comparison libatomic/configure.ac @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 # Process this file with autoreconf to produce a configure script. | 1 # Process this file with autoreconf to produce a configure script. |
2 # Copyright (C) 2012-2017 Free Software Foundation, Inc. | 2 # Copyright (C) 2012-2018 Free Software Foundation, Inc. |
3 # | 3 # |
4 # This file is part of the GNU Atomic Library (libatomic). | 4 # This file is part of the GNU Atomic Library (libatomic). |
5 # | 5 # |
6 # Libatomic is free software; you can redistribute it and/or modify it | 6 # Libatomic is free software; you can redistribute it and/or modify it |
7 # under the terms of the GNU General Public License as published by | 7 # under the terms of the GNU General Public License as published by |
155 # Check for used threading-model | 155 # Check for used threading-model |
156 AC_MSG_CHECKING([for thread model used by GCC]) | 156 AC_MSG_CHECKING([for thread model used by GCC]) |
157 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` | 157 target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` |
158 AC_MSG_RESULT([$target_thread_file]) | 158 AC_MSG_RESULT([$target_thread_file]) |
159 | 159 |
160 case "$target" in | |
161 *aarch64*) | |
162 ACX_PROG_CC_WARNING_OPTS([-march=armv8-a+lse],[enable_aarch64_lse]) | |
163 ;; | |
164 esac | |
165 | |
160 # Get target configury. | 166 # Get target configury. |
161 . ${srcdir}/configure.tgt | 167 . ${srcdir}/configure.tgt |
162 if test -n "$UNSUPPORTED"; then | 168 if test -n "$UNSUPPORTED"; then |
163 AC_MSG_ERROR([Configuration ${target} is unsupported.]) | 169 AC_MSG_ERROR([Configuration ${target} is unsupported.]) |
164 fi | 170 fi |
171 | |
172 # Write out the ifunc resolver arg type. | |
173 AC_DEFINE_UNQUOTED(IFUNC_RESOLVER_ARGS, $IFUNC_RESOLVER_ARGS, | |
174 [Define ifunc resolver function argument.]) | |
165 | 175 |
166 # Disable fallbacks to __sync routines from libgcc. Otherwise we'll | 176 # Disable fallbacks to __sync routines from libgcc. Otherwise we'll |
167 # make silly decisions about what the cpu can do. | 177 # make silly decisions about what the cpu can do. |
168 CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS" | 178 CFLAGS="$save_CFLAGS -fno-sync-libcalls $XCFLAGS" |
169 | 179 |
236 # Add -Wall -Werror if we are using GCC. | 246 # Add -Wall -Werror if we are using GCC. |
237 if test "x$GCC" = "xyes"; then | 247 if test "x$GCC" = "xyes"; then |
238 XCFLAGS="$XCFLAGS -Wall -Werror" | 248 XCFLAGS="$XCFLAGS -Wall -Werror" |
239 fi | 249 fi |
240 | 250 |
251 # Add CET specific flags if CET is enabled | |
252 GCC_CET_FLAGS(CET_FLAGS) | |
253 XCFLAGS="$XCFLAGS $CET_FLAGS" | |
254 | |
241 XCFLAGS="$XCFLAGS $XPCFLAGS" | 255 XCFLAGS="$XCFLAGS $XPCFLAGS" |
242 | 256 |
243 AC_SUBST(config_path) | 257 AC_SUBST(config_path) |
244 AC_SUBST(XCFLAGS) | 258 AC_SUBST(XCFLAGS) |
245 AC_SUBST(XLDFLAGS) | 259 AC_SUBST(XLDFLAGS) |
246 AC_SUBST(LIBS) | 260 AC_SUBST(LIBS) |
247 AC_SUBST(SIZES) | 261 AC_SUBST(SIZES) |
248 | 262 |
249 AM_CONDITIONAL(HAVE_IFUNC, test x$libat_cv_have_ifunc = xyes) | 263 AM_CONDITIONAL(HAVE_IFUNC, test x$libat_cv_have_ifunc = xyes) |
264 AM_CONDITIONAL(ARCH_AARCH64_LINUX, | |
265 [expr "$config_path" : ".* linux/aarch64 .*" > /dev/null]) | |
250 AM_CONDITIONAL(ARCH_ARM_LINUX, | 266 AM_CONDITIONAL(ARCH_ARM_LINUX, |
251 [expr "$config_path" : ".* linux/arm .*" > /dev/null]) | 267 [expr "$config_path" : ".* linux/arm .*" > /dev/null]) |
252 AM_CONDITIONAL(ARCH_I386, | 268 AM_CONDITIONAL(ARCH_I386, |
253 [test "$ARCH" = x86 && test x$libat_cv_wordsize = x4]) | 269 [test "$ARCH" = x86 && test x$libat_cv_wordsize = x4]) |
254 AM_CONDITIONAL(ARCH_X86_64, | 270 AM_CONDITIONAL(ARCH_X86_64, |