diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-27 12:45:13 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-27 12:45:13 +0000 |
commit | 268b9e9e95f56a59a8817b28ad59b53f40fc668d (patch) | |
tree | 5e9529982daf11d5b3ab800d4c58bc3fbee99d28 /libgfortran/configure | |
parent | e1910362719612f58bd1ea5050fa7a5175036abc (diff) | |
download | gcc-268b9e9e95f56a59a8817b28ad59b53f40fc668d.tar.gz |
2009-04-27 Basile Starynkevitch <basile@starynkevitch.net>
MERGED WITH TRUNK r146824::
* gcc/basilys.h: all GTY goes before the identifiers.
* gcc/basilys.c: removed errors.h include.
* gcc/run-basilys.h: ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@146839 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/configure')
-rwxr-xr-x | libgfortran/configure | 160 |
1 files changed, 160 insertions, 0 deletions
diff --git a/libgfortran/configure b/libgfortran/configure index 4032b208bd3..caaf4529b67 100755 --- a/libgfortran/configure +++ b/libgfortran/configure @@ -457,7 +457,11 @@ ac_includes_default="\ # include <unistd.h> #endif" +<<<<<<< .working ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir onestep_TRUE onestep_FALSE onestep host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AM_FCFLAGS AM_CFLAGS CFLAGS LIBGFOR_USE_SYMVER_TRUE LIBGFOR_USE_SYMVER_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran FPU_HOST_HEADER LIBOBJS LTLIBOBJS' +======= +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_libsubdir build_subdir host_subdir target_subdir onestep_TRUE onestep_FALSE onestep host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AM_FCFLAGS AM_CFLAGS CFLAGS LIBGFOR_USE_SYMVER_TRUE LIBGFOR_USE_SYMVER_FALSE SECTION_FLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran FPU_HOST_HEADER LIBOBJS LTLIBOBJS' +>>>>>>> .merge-right.r146824 ac_subst_files='' # Initialize some variables set by options. @@ -3463,6 +3467,73 @@ else fi +# Figure out whether the compiler supports "-ffunction-sections -fdata-sections", +# similarly to how libstdc++ does it +ac_test_CFLAGS="${CFLAGS+set}" +ac_save_CFLAGS="$CFLAGS" + +# Check for -ffunction-sections -fdata-sections +echo "$as_me:$LINENO: checking for gcc that supports -ffunction-sections -fdata-sections" >&5 +echo $ECHO_N "checking for gcc that supports -ffunction-sections -fdata-sections... $ECHO_C" >&6 +CFLAGS='-Werror -ffunction-sections -fdata-sections' +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +int foo; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_fdsections=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_fdsections=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +if test "$ac_test_CFLAGS" = set; then + CFLAGS="$ac_save_CFLAGS" +else + # this is the suspicious part + CFLAGS="" +fi +if test x"$ac_fdsections" = x"yes"; then + SECTION_FLAGS='-ffunction-sections -fdata-sections' +fi +echo "$as_me:$LINENO: result: $ac_fdsections" >&5 +echo "${ECHO_T}$ac_fdsections" >&6 + + # Find other programs we need. if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. @@ -4348,13 +4419,25 @@ if test "${lt_cv_nm_interface+set}" = set; then else lt_cv_nm_interface="BSD nm" echo "int some_variable = 0;" > conftest.$ac_ext +<<<<<<< .working (eval echo "\"\$as_me:4351: $ac_compile\"" >&5) +======= + (eval echo "\"\$as_me:4357: $ac_compile\"" >&5) +>>>>>>> .merge-right.r146824 (eval "$ac_compile" 2>conftest.err) cat conftest.err >&5 +<<<<<<< .working (eval echo "\"\$as_me:4354: $NM \\\"conftest.$ac_objext\\\"\"" >&5) +======= + (eval echo "\"\$as_me:4360: $NM \\\"conftest.$ac_objext\\\"\"" >&5) +>>>>>>> .merge-right.r146824 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) cat conftest.err >&5 +<<<<<<< .working (eval echo "\"\$as_me:4357: output\"" >&5) +======= + (eval echo "\"\$as_me:4363: output\"" >&5) +>>>>>>> .merge-right.r146824 cat conftest.out >&5 if $GREP 'External.*some_variable' conftest.out > /dev/null; then lt_cv_nm_interface="MS dumpbin" @@ -5409,7 +5492,11 @@ ia64-*-hpux*) ;; *-*-irix6*) # Find out which ABI we are using. +<<<<<<< .working echo '#line 5412 "configure"' > conftest.$ac_ext +======= + echo '#line 5520 "configure"' > conftest.$ac_ext +>>>>>>> .merge-right.r146824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? @@ -6514,11 +6601,19 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` +<<<<<<< .working (eval echo "\"\$as_me:6517: $lt_compile\"" >&5) +======= + (eval echo "\"\$as_me:7309: $lt_compile\"" >&5) +>>>>>>> .merge-right.r146824 (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 +<<<<<<< .working echo "$as_me:6521: \$? = $ac_status" >&5 +======= + echo "$as_me:7313: \$? = $ac_status" >&5 +>>>>>>> .merge-right.r146824 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. @@ -6836,11 +6931,19 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` +<<<<<<< .working (eval echo "\"\$as_me:6839: $lt_compile\"" >&5) +======= + (eval echo "\"\$as_me:7648: $lt_compile\"" >&5) +>>>>>>> .merge-right.r146824 (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 +<<<<<<< .working echo "$as_me:6843: \$? = $ac_status" >&5 +======= + echo "$as_me:7652: \$? = $ac_status" >&5 +>>>>>>> .merge-right.r146824 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. @@ -6941,11 +7044,19 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` +<<<<<<< .working (eval echo "\"\$as_me:6944: $lt_compile\"" >&5) +======= + (eval echo "\"\$as_me:7753: $lt_compile\"" >&5) +>>>>>>> .merge-right.r146824 (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 +<<<<<<< .working echo "$as_me:6948: \$? = $ac_status" >&5 +======= + echo "$as_me:7757: \$? = $ac_status" >&5 +>>>>>>> .merge-right.r146824 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -6996,11 +7107,19 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` +<<<<<<< .working (eval echo "\"\$as_me:6999: $lt_compile\"" >&5) +======= + (eval echo "\"\$as_me:7808: $lt_compile\"" >&5) +>>>>>>> .merge-right.r146824 (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 +<<<<<<< .working echo "$as_me:7003: \$? = $ac_status" >&5 +======= + echo "$as_me:7812: \$? = $ac_status" >&5 +>>>>>>> .merge-right.r146824 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -9848,7 +9967,11 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF +<<<<<<< .working #line 9851 "configure" +======= +#line 10675 "configure" +>>>>>>> .merge-right.r146824 #include "confdefs.h" #if HAVE_DLFCN_H @@ -9948,7 +10071,11 @@ else lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext <<_LT_EOF +<<<<<<< .working #line 9951 "configure" +======= +#line 10771 "configure" +>>>>>>> .merge-right.r146824 #include "confdefs.h" #if HAVE_DLFCN_H @@ -10278,7 +10405,11 @@ fi # Provide some information about the compiler. +<<<<<<< .working echo "$as_me:10281:" \ +======= +echo "$as_me:11097:" \ +>>>>>>> .merge-right.r146824 "checking for Fortran compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 @@ -10514,7 +10645,11 @@ fi # Provide some information about the compiler. +<<<<<<< .working echo "$as_me:10517:" \ +======= +echo "$as_me:11333:" \ +>>>>>>> .merge-right.r146824 "checking for Fortran compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 @@ -11230,11 +11365,19 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` +<<<<<<< .working (eval echo "\"\$as_me:11233: $lt_compile\"" >&5) +======= + (eval echo "\"\$as_me:12073: $lt_compile\"" >&5) +>>>>>>> .merge-right.r146824 (eval "$lt_compile" 2>conftest.err) ac_status=$? cat conftest.err >&5 +<<<<<<< .working echo "$as_me:11237: \$? = $ac_status" >&5 +======= + echo "$as_me:12077: \$? = $ac_status" >&5 +>>>>>>> .merge-right.r146824 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. @@ -11329,11 +11472,19 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` +<<<<<<< .working (eval echo "\"\$as_me:11332: $lt_compile\"" >&5) +======= + (eval echo "\"\$as_me:12172: $lt_compile\"" >&5) +>>>>>>> .merge-right.r146824 (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 +<<<<<<< .working echo "$as_me:11336: \$? = $ac_status" >&5 +======= + echo "$as_me:12176: \$? = $ac_status" >&5 +>>>>>>> .merge-right.r146824 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -11381,11 +11532,19 @@ else -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ -e 's:$: $lt_compiler_flag:'` +<<<<<<< .working (eval echo "\"\$as_me:11384: $lt_compile\"" >&5) +======= + (eval echo "\"\$as_me:12224: $lt_compile\"" >&5) +>>>>>>> .merge-right.r146824 (eval "$lt_compile" 2>out/conftest.err) ac_status=$? cat out/conftest.err >&5 +<<<<<<< .working echo "$as_me:11388: \$? = $ac_status" >&5 +======= + echo "$as_me:12228: \$? = $ac_status" >&5 +>>>>>>> .merge-right.r146824 if (exit $ac_status) && test -s out/conftest2.$ac_objext then # The compiler can only warn and ignore the option if not recognized @@ -34495,6 +34654,7 @@ s,@AM_CFLAGS@,$AM_CFLAGS,;t t s,@CFLAGS@,$CFLAGS,;t t s,@LIBGFOR_USE_SYMVER_TRUE@,$LIBGFOR_USE_SYMVER_TRUE,;t t s,@LIBGFOR_USE_SYMVER_FALSE@,$LIBGFOR_USE_SYMVER_FALSE,;t t +s,@SECTION_FLAGS@,$SECTION_FLAGS,;t t s,@AS@,$AS,;t t s,@ac_ct_AS@,$ac_ct_AS,;t t s,@AR@,$AR,;t t |