Mercurial > hg > CbC > CbC_gcc
comparison libbacktrace/configure @ 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 |
---|---|
741 with_pic | 741 with_pic |
742 enable_fast_install | 742 enable_fast_install |
743 with_gnu_ld | 743 with_gnu_ld |
744 enable_libtool_lock | 744 enable_libtool_lock |
745 enable_largefile | 745 enable_largefile |
746 enable_cet | |
746 with_system_libunwind | 747 with_system_libunwind |
747 enable_host_shared | 748 enable_host_shared |
748 ' | 749 ' |
749 ac_precious_vars='build_alias | 750 ac_precious_vars='build_alias |
750 host_alias | 751 host_alias |
1383 --enable-static[=PKGS] build static libraries [default=yes] | 1384 --enable-static[=PKGS] build static libraries [default=yes] |
1384 --enable-fast-install[=PKGS] | 1385 --enable-fast-install[=PKGS] |
1385 optimize for fast installation [default=yes] | 1386 optimize for fast installation [default=yes] |
1386 --disable-libtool-lock avoid locking (might break parallel builds) | 1387 --disable-libtool-lock avoid locking (might break parallel builds) |
1387 --disable-largefile omit support for large files | 1388 --disable-largefile omit support for large files |
1389 --enable-cet enable Intel CET in target libraries [default=no] | |
1388 --enable-host-shared build host code as shared libraries | 1390 --enable-host-shared build host code as shared libraries |
1389 | 1391 |
1390 Optional Packages: | 1392 Optional Packages: |
1391 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | 1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1392 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | 1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
11144 lt_cv_dlopen_self=cross | 11146 lt_cv_dlopen_self=cross |
11145 else | 11147 else |
11146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 11148 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11147 lt_status=$lt_dlunknown | 11149 lt_status=$lt_dlunknown |
11148 cat > conftest.$ac_ext <<_LT_EOF | 11150 cat > conftest.$ac_ext <<_LT_EOF |
11149 #line 11149 "configure" | 11151 #line 11151 "configure" |
11150 #include "confdefs.h" | 11152 #include "confdefs.h" |
11151 | 11153 |
11152 #if HAVE_DLFCN_H | 11154 #if HAVE_DLFCN_H |
11153 #include <dlfcn.h> | 11155 #include <dlfcn.h> |
11154 #endif | 11156 #endif |
11250 lt_cv_dlopen_self_static=cross | 11252 lt_cv_dlopen_self_static=cross |
11251 else | 11253 else |
11252 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | 11254 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
11253 lt_status=$lt_dlunknown | 11255 lt_status=$lt_dlunknown |
11254 cat > conftest.$ac_ext <<_LT_EOF | 11256 cat > conftest.$ac_ext <<_LT_EOF |
11255 #line 11255 "configure" | 11257 #line 11257 "configure" |
11256 #include "confdefs.h" | 11258 #include "confdefs.h" |
11257 | 11259 |
11258 #if HAVE_DLFCN_H | 11260 #if HAVE_DLFCN_H |
11259 #include <dlfcn.h> | 11261 #include <dlfcn.h> |
11260 #endif | 11262 #endif |
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5 | 11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5 |
11781 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; } | 11783 $as_echo "$libbacktrace_cv_c_random_seed_string" >&6; } |
11782 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then | 11784 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then |
11783 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@" | 11785 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@" |
11784 fi | 11786 fi |
11787 fi | |
11788 | |
11789 if test -n "${with_target_subdir}"; then | |
11790 # Add CET specific flags is Intel CET is enabled. | |
11791 # Check whether --enable-cet was given. | |
11792 if test "${enable_cet+set}" = set; then : | |
11793 enableval=$enable_cet; | |
11794 case "$enableval" in | |
11795 yes|no|auto) ;; | |
11796 *) as_fn_error "Unknown argument to enable/disable cet" "$LINENO" 5 ;; | |
11797 esac | |
11798 | |
11799 else | |
11800 enable_cet=no | |
11801 fi | |
11802 | |
11803 | |
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5 | |
11805 $as_echo_n "checking for CET support... " >&6; } | |
11806 | |
11807 case "$host" in | |
11808 i[34567]86-*-linux* | x86_64-*-linux*) | |
11809 case "$enable_cet" in | |
11810 auto) | |
11811 # Check if target supports multi-byte NOPs | |
11812 # and if assembler supports CET insn. | |
11813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11814 /* end confdefs.h. */ | |
11815 | |
11816 int | |
11817 main () | |
11818 { | |
11819 | |
11820 #if !defined(__SSE2__) | |
11821 #error target does not support multi-byte NOPs | |
11822 #else | |
11823 asm ("setssbsy"); | |
11824 #endif | |
11825 | |
11826 ; | |
11827 return 0; | |
11828 } | |
11829 _ACEOF | |
11830 if ac_fn_c_try_compile "$LINENO"; then : | |
11831 enable_cet=yes | |
11832 else | |
11833 enable_cet=no | |
11834 fi | |
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11836 ;; | |
11837 yes) | |
11838 # Check if assembler supports CET. | |
11839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11840 /* end confdefs.h. */ | |
11841 | |
11842 int | |
11843 main () | |
11844 { | |
11845 asm ("setssbsy"); | |
11846 ; | |
11847 return 0; | |
11848 } | |
11849 _ACEOF | |
11850 if ac_fn_c_try_compile "$LINENO"; then : | |
11851 | |
11852 else | |
11853 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5 | |
11854 fi | |
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11856 ;; | |
11857 esac | |
11858 ;; | |
11859 *) | |
11860 enable_cet=no | |
11861 ;; | |
11862 esac | |
11863 if test x$enable_cet = xyes; then | |
11864 CET_FLAGS="-fcf-protection -mshstk" | |
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11866 $as_echo "yes" >&6; } | |
11867 else | |
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11869 $as_echo "no" >&6; } | |
11870 fi | |
11871 | |
11872 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS" | |
11785 fi | 11873 fi |
11786 | 11874 |
11787 | 11875 |
11788 ac_ext=c | 11876 ac_ext=c |
11789 ac_cpp='$CPP $CPPFLAGS' | 11877 ac_cpp='$CPP $CPPFLAGS' |
12883 LIBS=$ac_check_lib_save_LIBS | 12971 LIBS=$ac_check_lib_save_LIBS |
12884 fi | 12972 fi |
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 | 12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 |
12886 $as_echo "$ac_cv_lib_z_compress" >&6; } | 12974 $as_echo "$ac_cv_lib_z_compress" >&6; } |
12887 if test "x$ac_cv_lib_z_compress" = x""yes; then : | 12975 if test "x$ac_cv_lib_z_compress" = x""yes; then : |
12888 cat >>confdefs.h <<_ACEOF | |
12889 #define HAVE_LIBZ 1 | |
12890 _ACEOF | |
12891 | |
12892 LIBS="-lz $LIBS" | |
12893 | |
12894 fi | |
12895 | |
12896 if test $ac_cv_lib_z_compress = "yes"; then | |
12897 | 12976 |
12898 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h | 12977 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h |
12899 | 12978 |
12900 fi | 12979 fi |
12980 | |
12901 if test "$ac_cv_lib_z_compress" = yes; then | 12981 if test "$ac_cv_lib_z_compress" = yes; then |
12902 HAVE_ZLIB_TRUE= | 12982 HAVE_ZLIB_TRUE= |
12903 HAVE_ZLIB_FALSE='#' | 12983 HAVE_ZLIB_FALSE='#' |
12904 else | 12984 else |
12905 HAVE_ZLIB_TRUE='#' | 12985 HAVE_ZLIB_TRUE='#' |