summaryrefslogtreecommitdiffstats
path: root/unix/configure
diff options
context:
space:
mode:
authorhobbs <hobbs>2009-04-28 16:46:20 (GMT)
committerhobbs <hobbs>2009-04-28 16:46:20 (GMT)
commita084e20d7a737e54cee53c89b1ac6e0c0ecd5e8f (patch)
tree387a4d1ebe76266919dec30e413b1f2d84accd22 /unix/configure
parent654740f1977f59f7a256d1361589f3dd97083339 (diff)
downloadtcl-a084e20d7a737e54cee53c89b1ac6e0c0ecd5e8f.zip
tcl-a084e20d7a737e54cee53c89b1ac6e0c0ecd5e8f.tar.gz
tcl-a084e20d7a737e54cee53c89b1ac6e0c0ecd5e8f.tar.bz2
* unix/tcl.m4, unix/configure (SC_CONFIG_CFLAGS): harden the check
to add _r to CC on AIX with threads.
Diffstat (limited to 'unix/configure')
-rwxr-xr-xunix/configure5
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/configure b/unix/configure
index 503f4f5..6b4b375 100755
--- a/unix/configure
+++ b/unix/configure
@@ -6708,11 +6708,12 @@ fi
# AIX requires the _r compiler when gcc isn't being used
case "${CC}" in
- *_r)
+ *_r|*_r\ *)
# ok ...
;;
*)
- CC=${CC}_r
+ # Make sure only first arg gets _r
+ CC=`echo "$CC" | sed -e 's/^\([^ ]*\)/\1_r/'`
;;
esac
echo "$as_me:$LINENO: result: Using $CC for compiling with threads" >&5