summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2009-04-28 16:44:54 (GMT)
committerhobbs <hobbs>2009-04-28 16:44:54 (GMT)
commitc659ba60f74722c205c2800dc123b2eb96822f4a (patch)
treec882c66cf796079113032263255abe1fad689958
parent08b861f017795ecc7d98f42a55b4d7f2a2c4b9ca (diff)
downloadtcl-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.
-rwxr-xr-xunix/configure5
-rw-r--r--unix/tcl.m47
2 files changed, 7 insertions, 5 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
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