about summary refs log tree commit diff
path: root/zshconfig.ac
diff options
context:
space:
mode:
authorGeoff Wing <gcw@users.sourceforge.net>2001-12-20 23:48:38 +0000
committerGeoff Wing <gcw@users.sourceforge.net>2001-12-20 23:48:38 +0000
commit6ed0f4c4e9c0de88d4aa12e6cf907ee5b5786da5 (patch)
tree4f69084362e351d0c7a678c6ca661625397a32d6 /zshconfig.ac
parent17502f6eb23dfddb9bdc705eb496ebf41aae4d7c (diff)
downloadzsh-6ed0f4c4e9c0de88d4aa12e6cf907ee5b5786da5.tar.gz
zsh-6ed0f4c4e9c0de88d4aa12e6cf907ee5b5786da5.tar.xz
zsh-6ed0f4c4e9c0de88d4aa12e6cf907ee5b5786da5.zip
16332: remove ansi2knr.c from our repository due to licence
differences.  Adjust the build process accordingly.  configure
will now abort if the user requests ansi2knr but no ansi2knr
is available.  ansi2knr is available from the main distribution
site and most mirrors
Diffstat (limited to 'zshconfig.ac')
-rw-r--r--zshconfig.ac13
1 files changed, 12 insertions, 1 deletions
diff --git a/zshconfig.ac b/zshconfig.ac
index 8191756db..956c527b6 100644
--- a/zshconfig.ac
+++ b/zshconfig.ac
@@ -289,7 +289,7 @@ fi
 dnl if the user hasn't specified CFLAGS, then
 dnl   if compiler is gcc, then use -O2 and some warning flags
 dnl   else use -O
-if test -n "$auto_cflags"; then
+if test -n "$auto_cflags" && test ."$ansi2knr" != .yes; then
   if test "${enable_zsh_debug}" = yes; then
     if test -n "$GCC"; then
       CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -ggdb"
@@ -462,6 +462,17 @@ AC_PROG_INSTALL             dnl Check for BSD compatible `install'
 AC_PROG_AWK                 dnl Check for mawk,gawk,nawk, then awk.
 AC_PROG_LN                  dnl Check for working ln, for "make install"
 AC_CHECK_PROGS([YODL], [yodl], [: yodl])
+AC_CHECK_PROGS([ANSI2KNR], [ansi2knr], [: ansi2knr])
+
+if test x"$ansi2knr" = xyes && test x"$ANSI2KNR" = x": ansi2knr"; then
+    echo "----------"
+    echo "configure fatal error:"
+    echo "ansi2knr was specified (--enable-ansi2knr) but the program could not be found."
+    echo "Either remove the configure option if it is not required or build the ansi2knr"
+    echo "program before reconfiguring Zsh.  The source code for ansi2knr is also"
+    echo "available in the GPL directory on Zsh distribution sites."
+    exit 1
+fi
 
 dnl ------------------
 dnl CHECK HEADER FILES