diff options
Diffstat (limited to 'gcc/configure')
-rwxr-xr-x | gcc/configure | 103 |
1 files changed, 82 insertions, 21 deletions
diff --git a/gcc/configure b/gcc/configure index 70b92fecb11..b15da5e852e 100755 --- a/gcc/configure +++ b/gcc/configure @@ -741,6 +741,8 @@ ac_subst_vars='LTLIBOBJS LIBOBJS enable_plugin pluginlibs +LIBELFINC +LIBELFLIBS CLOOGINC CLOOGLIBS GDBMINC @@ -810,6 +812,7 @@ subdirs slibdir dollar gcc_tooldir +enable_lto MAINT zlibinc zlibdir @@ -1065,7 +1068,9 @@ PPLINC GDBMLIBS GDBMINC CLOOGLIBS -CLOOGINC' +CLOOGINC +LIBELFLIBS +LIBELFINC' # Initialize some variables set by options. @@ -1805,6 +1810,8 @@ Some influential environment variables: GDBMINC How to find GDBM include files CLOOGLIBS How to link CLOOG CLOOGINC How to find CLOOG include files + LIBELFLIBS How to link libelf + LIBELFINC How to find libelf include files Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. @@ -11571,13 +11578,13 @@ if test "${lt_cv_nm_interface+set}" = set; then : else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:11574: $ac_compile\"" >&5) + (eval echo "\"\$as_me:11581: $ac_compile\"" >&5) (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 - (eval echo "\"\$as_me:11577: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval echo "\"\$as_me:11584: $NM \\\"conftest.$ac_objext\\\"\"" >&5) (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 - (eval echo "\"\$as_me:11580: output\"" >&5) + (eval echo "\"\$as_me:11587: output\"" >&5) cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" @@ -12782,7 +12789,7 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. - echo '#line 12785 "configure"' > conftest.$ac_ext + echo '#line 12792 "configure"' > conftest.$ac_ext if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -14442,11 +14449,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14445: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14452: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:14449: \$? = $ac_status" >&5 + echo "$as_me:14456: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -14781,11 +14788,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14784: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14791: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:14788: \$? = $ac_status" >&5 + echo "$as_me:14795: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -14886,11 +14893,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14889: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14896: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:14893: \$? = $ac_status" >&5 + echo "$as_me:14900: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -14941,11 +14948,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:14944: $lt_compile\"" >&5) + (eval echo "\"\$as_me:14951: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:14948: \$? = $ac_status" >&5 + echo "$as_me:14955: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -17323,7 +17330,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 17326 "configure" +#line 17333 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -17419,7 +17426,7 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF -#line 17422 "configure" +#line 17429 "configure" #include "confdefs.h" #if HAVE_DLFCN_H @@ -19375,11 +19382,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19378: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19385: $lt_compile\"" >&5) (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 - echo "$as_me:19382: \$? = $ac_status" >&5 + echo "$as_me:19389: \$? = $ac_status" >&5 if (exit $ac_status) && test -s "$ac_outfile"; then # The compiler can only warn and ignore the option if not recognized # So say no if there are warnings other than the usual output. @@ -19474,11 +19481,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19477: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19484: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:19481: \$? = $ac_status" >&5 + echo "$as_me:19488: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -19526,11 +19533,11 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:19529: $lt_compile\"" >&5) + (eval echo "\"\$as_me:19536: $lt_compile\"" >&5) (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 - echo "$as_me:19533: \$? = $ac_status" >&5 + echo "$as_me:19540: \$? = $ac_status" >&5 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -21548,6 +21555,42 @@ cat >>confdefs.h <<_ACEOF _ACEOF +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for cfi sections directive" >&5 +$as_echo_n "checking assembler for cfi sections directive... " >&6; } +if test "${gcc_cv_as_cfi_sections_directive+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + gcc_cv_as_cfi_sections_directive=no + if test x$gcc_cv_as != x; then + echo ' .text + .cfi_sections .debug_frame, .eh_frame + .cfi_startproc + .cfi_endproc' > conftest.s + if { ac_try='$gcc_cv_as -o conftest.o conftest.s >&5' + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 + (eval $ac_try) 2>&5 + ac_status=$? + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; } + then + gcc_cv_as_cfi_sections_directive=yes + else + echo "configure: failed program was" >&5 + cat conftest.s >&5 + fi + rm -f conftest.o conftest.s + fi +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_sections_directive" >&5 +$as_echo "$gcc_cv_as_cfi_sections_directive" >&6; } + + +cat >>confdefs.h <<_ACEOF +#define HAVE_GAS_CFI_SECTIONS_DIRECTIVE `if test $gcc_cv_as_cfi_sections_directive = yes; + then echo 1; else echo 0; fi` +_ACEOF + + # GAS versions up to and including 2.11.0 may mis-optimize # .eh_frame data. { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for eh_frame optimization" >&5 @@ -24730,6 +24773,16 @@ do all_compilers="$all_compilers $compilers" all_outputs="$all_outputs $outputs" all_gtfiles="$all_gtfiles [$subdir] $gtfiles" + case ",$enable_languages," in + *,lto,*) + +$as_echo "#define ENABLE_LTO 1" >>confdefs.h + + enable_lto=yes + + ;; + *) ;; + esac done # Pick up gtfiles for c @@ -24914,6 +24967,14 @@ $as_echo "#define HAVE_cloog 1" >>confdefs.h fi + + +if test "x${LIBELFLIBS}" != "x" ; then + +$as_echo "#define HAVE_libelf 1" >>confdefs.h + +fi + # Check for plugin support # Check whether --enable-plugin was given. if test "${enable_plugin+set}" = set; then : |