diff options
author | hobbs <hobbs> | 2009-04-28 16:44:54 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2009-04-28 16:44:54 (GMT) |
commit | c659ba60f74722c205c2800dc123b2eb96822f4a (patch) | |
tree | c882c66cf796079113032263255abe1fad689958 /unix/configure | |
parent | 08b861f017795ecc7d98f42a55b4d7f2a2c4b9ca (diff) | |
download | tcl-c659ba60f74722c205c2800dc123b2eb96822f4a.zip tcl-c659ba60f74722c205c2800dc123b2eb96822f4a.tar.gz tcl-c659ba60f74722c205c2800dc123b2eb96822f4a.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-x | unix/configure | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/configure b/unix/configure index 230f188..897ab57 100755 --- a/unix/configure +++ b/unix/configure @@ -6707,11 +6707,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 |