aboutsummaryrefslogtreecommitdiff
path: root/libf2c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-04-11 04:20:21 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2003-04-11 04:20:21 +0000
commitb1e0a93ee513ccd9fa7d32947f2f568d379f358e (patch)
treeb9a805ddb7ada8ca9a398d4f1efeb0bc74658fae /libf2c
parente6670c79c78c657ab11b2f89ee0413492f17b92f (diff)
downloadgcc-b1e0a93ee513ccd9fa7d32947f2f568d379f358e.zip
gcc-b1e0a93ee513ccd9fa7d32947f2f568d379f358e.tar.gz
gcc-b1e0a93ee513ccd9fa7d32947f2f568d379f358e.tar.bz2
libtool.m4 (lt_cv_deplibs_check_method): Use pass_all on mips*.
* libtool.m4 (lt_cv_deplibs_check_method): Use pass_all on mips*. * */configure: Rebuilt. From-SVN: r65459
Diffstat (limited to 'libf2c')
-rwxr-xr-xlibf2c/configure39
1 files changed, 29 insertions, 10 deletions
diff --git a/libf2c/configure b/libf2c/configure
index c05b3f9..8faafe6 100755
--- a/libf2c/configure
+++ b/libf2c/configure
@@ -1605,7 +1605,7 @@ irix5* | irix6*)
# This must be Linux ELF.
linux-gnu*)
case $host_cpu in
- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
+ alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
lt_cv_deplibs_check_method=pass_all ;;
*)
# glibc up to 2.1.1 does not perform some relocations on ARM
@@ -2588,15 +2588,34 @@ trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
# Transform confdefs.h into DEFS.
# Protect against shell expansion while executing Makefile rules.
# Protect against Makefile macro expansion.
-cat > conftest.defs <<\EOF
-s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
-s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
-s%\[%\\&%g
-s%\]%\\&%g
-s%\$%$$%g
-EOF
-DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
-rm -f conftest.defs
+#
+# If the first sed substitution is executed (which looks for macros that
+# take arguments), then we branch to the quote section. Otherwise,
+# look for a macro that doesn't take arguments.
+cat >confdef2opt.sed <<\_ACEOF
+t clear
+: clear
+s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
+t quote
+s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
+t quote
+d
+: quote
+s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
+s,\[,\\&,g
+s,\],\\&,g
+s,\$,$$,g
+p
+_ACEOF
+# We use echo to avoid assuming a particular line-breaking character.
+# The extra dot is to prevent the shell from consuming trailing
+# line-breaks from the sub-command output. A line-break within
+# single-quotes doesn't work because, if this script is created in a
+# platform that uses two characters for line-breaks (e.g., DOS), tr
+# would break.
+ac_LF_and_DOT=`echo; echo .`
+DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
+rm -f confdef2opt.sed
# Without the "./", some shells look in PATH for config.status.