Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Configure Oops and make error



Vidiot <brown@xxxxxxxx> wrote:

> While running the configure script from zsh-2.6-beta10-hzoli10.2, I get:
> 
> checking where signal.h is located... grep: illegal option -- q
> Usage: grep -blcnsviwh [ -e ] pattern file . . .
> grep: illegal option -- q
> Usage: grep -blcnsviwh [ -e ] pattern file . . .
> /dev/null
> 
> Oops.  The system uses SunOS 4.1.3

Sorry for that. This grep was necessary because Linux may have signal.h in
either <asm/signal.h> or <linux/signal.h>. But under linux, <asm/signal.h>
always exists so we have to use grep do decide wether <asm/signal.h> or
<linux/signal.h> contains the relevant information.

The other problem was that make complained about missing autoheader. This was
because make wanted to remake stamp-h.in since it was older that
configure.in. Just touch stamp-h.in and remake, and it should work.

The patch below fixes hopefully fixes configure.

Do not forget to touch stamp-h.in after applying the patch. Or the best is to
mot use make in the main zsh directory. Just cd to Src, and do make there.

Zoltan

--- 1.3	1995/08/02 18:48:37
+++ configure	1995/08/07 09:16:06
@@ -2267,7 +2267,7 @@
 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
 for SIGNAL_H in /usr/include/bsd/sys/signal.h /usr/include/asm/signal.h /usr/include/linux/signal.h /usr/include/sys/signal.h /dev/null; do
   test -f $SIGNAL_H && \
-  grep -q '#[ 	]*define[ 	][ 	]*SIG[0-9A-Z]*[ 	]*[0-9][0-9]*' $SIGNAL_H && \
+  grep '#[ 	]*define[ 	][ 	]*SIG[0-9A-Z]*[ 	]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
   break
 done
 echo "$ac_t""$SIGNAL_H" 1>&6
--- 1.3	1995/08/02 18:48:37
+++ configure.in	1995/08/07 09:11:35
@@ -361,7 +361,7 @@
                 /dev/null;                      dnl Just in case we fall through
 do
   test -f $SIGNAL_H && \
-  grep -q '#[ 	]*define[ 	][ 	]*SIG[0-9A-Z]*[ 	]*[0-9][0-9]*' $SIGNAL_H && \
+  grep '#[ 	]*define[ 	][ 	]*SIG[0-9A-Z]*[ 	]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
   break
 done
 AC_MSG_RESULT($SIGNAL_H)



Messages sorted by: Reverse Date, Date, Thread, Author