-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'devel-fixes' of https://github.com/BenWiederhake/tgl
- Loading branch information
Showing
5 changed files
with
95 additions
and
342 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2308,102 +2308,6 @@ ac_config_headers="$ac_config_headers config.h" | |
|
||
|
||
|
||
# =========================================================================== | ||
# http://www.gnu.org/software/autoconf-archive/ax_gcc_builtin.html | ||
# =========================================================================== | ||
# | ||
# SYNOPSIS | ||
# | ||
# AX_GCC_BUILTIN(BUILTIN) | ||
# | ||
# DESCRIPTION | ||
# | ||
# This macro checks if the compiler supports one of GCC's built-in | ||
# functions; many other compilers also provide those same built-ins. | ||
# | ||
# The BUILTIN parameter is the name of the built-in function. | ||
# | ||
# If BUILTIN is supported define HAVE_<BUILTIN>. Keep in mind that since | ||
# builtins usually start with two underscores they will be copied over | ||
# into the HAVE_<BUILTIN> definition (e.g. HAVE___BUILTIN_EXPECT for | ||
# __builtin_expect()). | ||
# | ||
# The macro caches its result in the ax_cv_have_<BUILTIN> variable (e.g. | ||
# ax_cv_have___builtin_expect). | ||
# | ||
# The macro currently supports the following built-in functions: | ||
# | ||
# __builtin_assume_aligned | ||
# __builtin_bswap32 | ||
# __builtin_bswap64 | ||
# __builtin_choose_expr | ||
# __builtin___clear_cache | ||
# __builtin_clrsb | ||
# __builtin_clrsbl | ||
# __builtin_clrsbll | ||
# __builtin_clz | ||
# __builtin_clzl | ||
# __builtin_clzll | ||
# __builtin_complex | ||
# __builtin_constant_p | ||
# __builtin_ctz | ||
# __builtin_ctzl | ||
# __builtin_ctzll | ||
# __builtin_expect | ||
# __builtin_ffs | ||
# __builtin_ffsl | ||
# __builtin_ffsll | ||
# __builtin_fpclassify | ||
# __builtin_huge_val | ||
# __builtin_huge_valf | ||
# __builtin_huge_vall | ||
# __builtin_inf | ||
# __builtin_infd128 | ||
# __builtin_infd32 | ||
# __builtin_infd64 | ||
# __builtin_inff | ||
# __builtin_infl | ||
# __builtin_isinf_sign | ||
# __builtin_nan | ||
# __builtin_nand128 | ||
# __builtin_nand32 | ||
# __builtin_nand64 | ||
# __builtin_nanf | ||
# __builtin_nanl | ||
# __builtin_nans | ||
# __builtin_nansf | ||
# __builtin_nansl | ||
# __builtin_object_size | ||
# __builtin_parity | ||
# __builtin_parityl | ||
# __builtin_parityll | ||
# __builtin_popcount | ||
# __builtin_popcountl | ||
# __builtin_popcountll | ||
# __builtin_powi | ||
# __builtin_powif | ||
# __builtin_powil | ||
# __builtin_prefetch | ||
# __builtin_trap | ||
# __builtin_types_compatible_p | ||
# __builtin_unreachable | ||
# | ||
# Unsuppored built-ins will be tested with an empty parameter set and the | ||
# result of the check might be wrong or meaningless so use with care. | ||
# | ||
# LICENSE | ||
# | ||
# Copyright (c) 2013 Gabriele Svelto <[email protected]> | ||
# | ||
# Copying and distribution of this file, with or without modification, are | ||
# permitted in any medium without royalty provided the copyright notice | ||
# and this notice are preserved. This file is offered as-is, without any | ||
# warranty. | ||
|
||
#serial 2 | ||
|
||
|
||
|
||
|
||
# Checks for programs. | ||
ac_ext=c | ||
|
@@ -4271,7 +4175,7 @@ fi | |
|
||
|
||
# Checks for header files. | ||
for ac_header in execinfo.h fcntl.h malloc.h netdb.h stdlib.h string.h unistd.h arpa/inet.h mach/mach.h netinet/in.h sys/file.h sys/socket.h termios.h | ||
for ac_header in fcntl.h malloc.h netdb.h stdlib.h string.h unistd.h arpa/inet.h mach/mach.h netinet/in.h sys/file.h sys/socket.h termios.h | ||
do : | ||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | ||
|
@@ -4285,6 +4189,79 @@ fi | |
done | ||
|
||
|
||
# FreeBSD needs -lexecinfo | ||
for ac_header in execinfo.h | ||
do : | ||
ac_fn_c_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" | ||
if test "x$ac_cv_header_execinfo_h" = xyes; then : | ||
cat >>confdefs.h <<_ACEOF | ||
#define HAVE_EXECINFO_H 1 | ||
_ACEOF | ||
tgl_found_execinfo_header=yes; break; | ||
fi | ||
|
||
done | ||
|
||
if test "x$tgl_found_execinfo_header" = "xyes"; then : | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5 | ||
$as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; } | ||
if ${ac_cv_search_backtrace_symbols_fd+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
ac_func_search_save_LIBS=$LIBS | ||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
/* Override any GCC internal prototype to avoid an error. | ||
Use char because int might match the return type of a GCC | ||
builtin and then its argument prototype would still apply. */ | ||
#ifdef __cplusplus | ||
extern "C" | ||
#endif | ||
char backtrace_symbols_fd (); | ||
int | ||
main () | ||
{ | ||
return backtrace_symbols_fd (); | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
for ac_lib in '' execinfo; do | ||
if test -z "$ac_lib"; then | ||
ac_res="none required" | ||
else | ||
ac_res=-l$ac_lib | ||
LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
fi | ||
if ac_fn_c_try_link "$LINENO"; then : | ||
ac_cv_search_backtrace_symbols_fd=$ac_res | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext \ | ||
conftest$ac_exeext | ||
if ${ac_cv_search_backtrace_symbols_fd+:} false; then : | ||
break | ||
fi | ||
done | ||
if ${ac_cv_search_backtrace_symbols_fd+:} false; then : | ||
|
||
else | ||
ac_cv_search_backtrace_symbols_fd=no | ||
fi | ||
rm conftest.$ac_ext | ||
LIBS=$ac_func_search_save_LIBS | ||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5 | ||
$as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; } | ||
ac_res=$ac_cv_search_backtrace_symbols_fd | ||
if test "$ac_res" != no; then : | ||
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | ||
|
||
fi | ||
|
||
fi | ||
|
||
|
||
# Checks for typedefs, structures, and compiler characteristics. | ||
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | ||
if test "x$ac_cv_type_size_t" = xyes; then : | ||
|
@@ -4520,51 +4497,6 @@ done | |
|
||
|
||
|
||
|
||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5 | ||
$as_echo_n "checking for __builtin_bswap32... " >&6; } | ||
if ${ax_cv_have___builtin_bswap32+:} false; then : | ||
$as_echo_n "(cached) " >&6 | ||
else | ||
|
||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
/* end confdefs.h. */ | ||
int | ||
main () | ||
{ | ||
__builtin_bswap32(0) | ||
; | ||
return 0; | ||
} | ||
_ACEOF | ||
if ac_fn_c_try_link "$LINENO"; then : | ||
ax_cv_have___builtin_bswap32=yes | ||
else | ||
ax_cv_have___builtin_bswap32=no | ||
fi | ||
rm -f core conftest.err conftest.$ac_objext \ | ||
conftest$ac_exeext conftest.$ac_ext | ||
|
||
fi | ||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_bswap32" >&5 | ||
$as_echo "$ax_cv_have___builtin_bswap32" >&6; } | ||
|
||
if test yes = $ax_cv_have___builtin_bswap32; then : | ||
|
||
cat >>confdefs.h <<_ACEOF | ||
#define HAVE___BUILTIN_BSWAP32 1 | ||
_ACEOF | ||
|
||
fi | ||
|
||
|
||
|
||
|
||
|
||
|
||
ac_config_files="$ac_config_files Makefile" | ||
|
||
cat >confcache <<\_ACEOF | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.