bug on configure.in



In the configure.in, there are 3 "if test ! $?;
then" statements.  they have to be "if test ! $? =
0; then" statements because test program test not
the value but the length of argument.

I add a patch following.  It was made from the
gtk+-971109.

*** configure.in.orig	Mon Nov 10 08:25:59 1997
--- configure.in	Fri Nov 21 15:51:15 1997
***************
*** 46,63 ****
  
  if eval "test x$GCC = xyes"; then
    test `echo "$CFLAGS" | grep "\-Wall" > /dev/null 2> /dev/null`
!   if test ! $?; then
      CFLAGS="$CFLAGS -Wall"
    fi
  
    if eval "test x$enable_ansi = xyes"; then
      test `echo "$CFLAGS" | grep "\-ansi" > /dev/null 2> /dev/null`
!     if test ! $?; then
        CFLAGS="$CFLAGS -ansi"
      fi
  
      test `echo "$CFLAGS" | grep "\-pedantic" > /dev/null 2> /dev/null`
!     if test ! $?; then
        CFLAGS="$CFLAGS -pedantic"
      fi
    fi
--- 46,63 ----
  
  if eval "test x$GCC = xyes"; then
    test `echo "$CFLAGS" | grep "\-Wall" > /dev/null 2> /dev/null`
!   if test ! $? = 0; then
      CFLAGS="$CFLAGS -Wall"
    fi
  
    if eval "test x$enable_ansi = xyes"; then
      test `echo "$CFLAGS" | grep "\-ansi" > /dev/null 2> /dev/null`
!     if test ! $? = 0; then
        CFLAGS="$CFLAGS -ansi"
      fi
  
      test `echo "$CFLAGS" | grep "\-pedantic" > /dev/null 2> /dev/null`
!     if test ! $? = 0; then
        CFLAGS="$CFLAGS -pedantic"
      fi
    fi


Regards,
-- Kazushi Marukawa



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]