diff options
author | hobbs <hobbs> | 2009-04-28 16:53:59 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2009-04-28 16:53:59 (GMT) |
commit | 6da62179f41c6011115f80c8720eb1c6ac8fa5f9 (patch) | |
tree | 8b5fb1220dbab0488a6ea5bd57105a7639c28bfd /unix/configure | |
parent | b833b61c1a2034bc3c012917d44a1b2a29d26d9a (diff) | |
download | tk-6da62179f41c6011115f80c8720eb1c6ac8fa5f9.zip tk-6da62179f41c6011115f80c8720eb1c6ac8fa5f9.tar.gz tk-6da62179f41c6011115f80c8720eb1c6ac8fa5f9.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 894c350..c96f077 100755 --- a/unix/configure +++ b/unix/configure @@ -4593,11 +4593,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 |