summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorhobbs <hobbs>2002-02-05 01:30:42 (GMT)
committerhobbs <hobbs>2002-02-05 01:30:42 (GMT)
commit226f70068ceb9519f6e25f36a3694139837dfbe8 (patch)
tree2f2cf1803ef75abd5269478a26ca73d679e7b60c /unix/tcl.m4
parentb6b2117127594fb8420e5e25f8df8c3566be722a (diff)
downloadtcl-226f70068ceb9519f6e25f36a3694139837dfbe8.zip
tcl-226f70068ceb9519f6e25f36a3694139837dfbe8.tar.gz
tcl-226f70068ceb9519f6e25f36a3694139837dfbe8.tar.bz2
get full path to pwd to avoid errors on AIX-4.3
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m414
1 files changed, 9 insertions, 5 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 76eeace..d10d253 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -575,8 +575,8 @@ AC_DEFUN(SC_ENABLE_LANGINFO, [
# Flags used when running the compiler in debug mode
# CFLAGS_OPTIMIZE -
# Flags used when running the compiler in optimize mode
-#
# EXTRA_CFLAGS
+# PWD - full path to pwd executable
#
# Subst's the following vars:
# DL_LIBS
@@ -638,6 +638,10 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
fi
fi
+ # AIX 4.3.3 requires calling pwd by full path for some reason,
+ # so define a variable for it now.
+ AC_PATH_PROG(PWD, pwd)
+
# Step 2: check for existence of -ldl library. This is needed because
# Linux can use either -ldl or -ldld for dynamic loading.
@@ -817,7 +821,7 @@ dnl AC_CHECK_TOOL(AR, ar, :)
IRIX-4.*)
SHLIB_CFLAGS="-G 0"
SHLIB_SUFFIX=".a"
- SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
+ SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `${PWD}`/tclsh -r -G 0"
SHLIB_LD_LIBS='${LIBS}'
DL_OBJS="tclLoadAout.o"
DL_LIBS=""
@@ -979,7 +983,7 @@ dnl AC_CHECK_TOOL(AR, ar, :)
)
], [
SHLIB_CFLAGS=""
- SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r"
+ SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `${PWD}`/tclsh -r"
SHLIB_LD_LIBS='${LIBS}'
SHLIB_SUFFIX=".a"
DL_OBJS="tclLoadAout.o"
@@ -1103,7 +1107,7 @@ dnl AC_CHECK_TOOL(AR, ar, :)
;;
RISCos-*)
SHLIB_CFLAGS="-G 0"
- SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
+ SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `${PWD}`/tclsh -r -G 0"
SHLIB_LD_LIBS='${LIBS}'
SHLIB_SUFFIX=".a"
DL_OBJS="tclLoadAout.o"
@@ -1229,7 +1233,7 @@ dnl AC_CHECK_TOOL(AR, ar, :)
ULTRIX-4.*)
SHLIB_CFLAGS="-G 0"
SHLIB_SUFFIX=".a"
- SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0"
+ SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `${PWD}`/tclsh -r -G 0"
SHLIB_LD_LIBS='${LIBS}'
DL_OBJS="tclLoadAout.o"
DL_LIBS=""