summaryrefslogtreecommitdiff
path: root/config/tls.m4
diff options
context:
space:
mode:
authorJoseph Myers <jsm@polyomino.org.uk>2009-07-17 15:11:33 +0000
committerJoseph Myers <jsm@polyomino.org.uk>2009-07-17 15:11:33 +0000
commit8b6e67c8a425ac5d94025b793574b2e9c1c01679 (patch)
tree5e50a7032fcc245b59fa90c4bc13c30d4f3c8b56 /config/tls.m4
parente24a5f21869bf25318320dedae36dbbc02ae99ef (diff)
downloadgdb-8b6e67c8a425ac5d94025b793574b2e9c1c01679.tar.gz
PR other/40784
* tls.m4 (GCC_CHECK_TLS): Add extra quoting around argument to AC_LINK_IFELSE.
Diffstat (limited to 'config/tls.m4')
-rw-r--r--config/tls.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/config/tls.m4 b/config/tls.m4
index 4648a909880..0ae60460bab 100644
--- a/config/tls.m4
+++ b/config/tls.m4
@@ -79,9 +79,9 @@ AC_DEFUN([GCC_CHECK_TLS], [
CFLAGS="-fPIC $CFLAGS"
dnl If -shared works, test if TLS works in a shared library.
AC_LINK_IFELSE([int f() { return 0; }],
- AC_LINK_IFELSE([__thread int a; int b; int f() { return a = b; }],
+ [AC_LINK_IFELSE([__thread int a; int b; int f() { return a = b; }],
[gcc_cv_have_tls=yes],
- [gcc_cv_have_tls=no]),
+ [gcc_cv_have_tls=no])],
[gcc_cv_have_tls=yes])
CFLAGS="$chktls_save_CFLAGS"
LDFLAGS="$chktls_save_LDFLAGS"], [gcc_cv_have_tls=no])