about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrey Borzenkov <bor@users.sourceforge.net>2001-06-29 14:59:42 +0000
committerAndrey Borzenkov <bor@users.sourceforge.net>2001-06-29 14:59:42 +0000
commitfcd204718ef7b3636232b5136f5a8465a3b6c8e3 (patch)
tree73cc8ff66305ad536881c675974ada5f0f9603b6
parent0b8e4008b63cafea7d13cd6340261c9af12362e3 (diff)
downloadzsh-fcd204718ef7b3636232b5136f5a8465a3b6c8e3.tar.gz
zsh-fcd204718ef7b3636232b5136f5a8465a3b6c8e3.tar.xz
zsh-fcd204718ef7b3636232b5136f5a8465a3b6c8e3.zip
15180: final AIX touch - default to termcap and add -shared flag (or
-bM:SRE for native compiler) for modules
-rw-r--r--ChangeLog6
-rw-r--r--Etc/MACHINES8
-rw-r--r--zshconfig.ac7
3 files changed, 19 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index f8372ddbc..9ff1b0824 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-06-29  Andrej Borsenkow  <bor@zsh.org>
+
+	* 15180: zshconfig.ac, Etc/MACHINES: make AIX default to termcap
+	as workaround for apparent AIX curses bug; add flags to create
+	modules with shared object type. Mention curses problem.
+
 2001-06-29  Clint Adams  <clint@zsh.org>
 
 	* Bart: 15083 plus comments: Functions/Zle/bash-backward-kill-word:
diff --git a/Etc/MACHINES b/Etc/MACHINES
index 5ccbb3c45..22f7e7c03 100644
--- a/Etc/MACHINES
+++ b/Etc/MACHINES
@@ -72,7 +72,7 @@ HP: HP-UX 9, 10.20, 11.0
 	Compiling with gcc 2.7.1 is known to fail with header file
 	conflicts on HP-UX 11.  Use the HP ANSI C compiler.
 
-IBM: AIX 3.2, 4.1
+IBM: AIX 3.2, 4.x
 	Should build `out-of-the-box', but --enable-zsh-mem will not work.
 
 	On 3.2, for 64-bit integer support you need to compile with gcc, as
@@ -82,6 +82,12 @@ IBM: AIX 3.2, 4.1
 	4.1, though native cc works. More information about this problem
 	would be appreciated.
 
+	It was reported, that at least some 4.x versions have problem
+	with curses - variables boolcodes and some other are declared
+	in term.h but missing is libcurses.a. That makes native compiler
+	very unhappy (GCC 3.0 apparently does not mind). Zsh now defaults
+	to termcap on AIX; any info about this problem is appreciated.
+
 Linux: Linux 2.* (various 32-bit and 64-bit processors)
 	Should build `out-of-the-box'.
 
diff --git a/zshconfig.ac b/zshconfig.ac
index 376529be7..fae7f3982 100644
--- a/zshconfig.ac
+++ b/zshconfig.ac
@@ -553,7 +553,7 @@ else
   termcap_curses_order="termcap curses ncurses"
 fi],
 [case "$host_os" in
-  aix*|hpux10.*|hpux11.*|solaris*)
+  hpux10.*|hpux11.*|solaris*)
       termcap_curses_order="curses ncurses termcap" ;;
   *)             termcap_curses_order="termcap curses ncurses" ;;
 esac])dnl
@@ -1535,6 +1535,11 @@ if test "x$aixdynamic" = xyes; then
   DL_EXT="${DL_EXT=so}"
   DLLD="${DLLD=$CC}"
   zsh_cv_func_dlsym_needs_underscore=no
+  if test -n "$GCC"; then
+    DLLDFLAGS=${DLLDFLAGS=-shared}
+  else
+    DLLDFLAGS=${DLLDFLAGS=-bM:SRE}
+  fi
   DLLDFLAGS=${DLLDFLAGS=}
   EXTRA_LDFLAGS=${EXTRA_LDFLAGS=}
   EXPOPT=${LDARG}-bE: