diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index fa0bbcd9048..782bb4f467b 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2007-03-18 Andreas Schwab + + * acinclude.m4: Adjust regular expression for ld version + extraction. + * configure: Regenerate. + 2007-03-01 Brooks Moses * Makefile.am: Add install-pdf target as copied from diff --git a/libgomp/acinclude.m4 b/libgomp/acinclude.m4 index e8de93db1b1..acf47dfe378 100644 --- a/libgomp/acinclude.m4 +++ b/libgomp/acinclude.m4 @@ -148,7 +148,7 @@ AC_DEFUN([LIBGOMP_CHECK_LINKER_FEATURES], [ # does some of this, but throws away the result. changequote(,) ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` changequote([,]) libgomp_gnu_ld_version=`echo $ldver | \ $AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'` diff --git a/libgomp/configure b/libgomp/configure index 68d4c3842cf..5cd8ef564bc 100755 --- a/libgomp/configure +++ b/libgomp/configure @@ -9438,7 +9438,7 @@ _ACEOF # does some of this, but throws away the result. ldver=`$LD --version 2>/dev/null | head -1 | \ - sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'` + sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` libgomp_gnu_ld_version=`echo $ldver | \ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`