diff options
author | hobbs <hobbs> | 2009-04-28 16:42:04 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2009-04-28 16:42:04 (GMT) |
commit | 04ea78ea6abac1b67cda877f32c8a79a0496b44b (patch) | |
tree | f227279fb3c68c967e32a000e1a72122b03fbc25 /unix/tcl.m4 | |
parent | 4ce9fe53dec6acb9baef9825f09cccd3d2984204 (diff) | |
download | tcl-04ea78ea6abac1b67cda877f32c8a79a0496b44b.zip tcl-04ea78ea6abac1b67cda877f32c8a79a0496b44b.tar.gz tcl-04ea78ea6abac1b67cda877f32c8a79a0496b44b.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/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index f104704..21a2d93 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1064,11 +1064,12 @@ dnl AC_CHECK_TOOL(AR, ar) if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then # 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 AC_MSG_RESULT([Using $CC for compiling with threads]) |