diff options
author | hobbs <hobbs> | 2009-04-28 16:53:17 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2009-04-28 16:53:17 (GMT) |
commit | 554ab376d71ec5c1566db04e0bdadebf3d9dc1a6 (patch) | |
tree | 844eff74e12a55ca3b809ae5ec580788afeae6f1 /unix/tcl.m4 | |
parent | 8ffda9025c94616a1415f41f6daf5438c921f861 (diff) | |
download | tk-554ab376d71ec5c1566db04e0bdadebf3d9dc1a6.zip tk-554ab376d71ec5c1566db04e0bdadebf3d9dc1a6.tar.gz tk-554ab376d71ec5c1566db04e0bdadebf3d9dc1a6.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 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 9d653b1..5ab8549 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1162,11 +1162,12 @@ dnl AC_CHECK_TOOL(AR, ar) AS_IF([test "${TCL_THREADS}" = "1" -a "$GCC" != "yes"], [ # 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]) @@ -3011,7 +3012,7 @@ AC_DEFUN([SC_TCL_GETHOSTBYNAME_R], [AC_CHECK_FUNC(gethostbyname_r, [ #-------------------------------------------------------------------- # SC_TCL_GETADDRINFO # -# Check if we have 'getaddrinfo' +# Check if we have 'getaddrinfo' for hostname lookup and inet6/ipv6 # # Arguments: # None |