pcp
[Top] [All Lists]

Re: configure.in

To: PCP <pcp@xxxxxxxxxxx>
Subject: Re: configure.in
From: Alan Hoyt <ahoyt@xxxxxxxxxxxxx>
Date: Tue, 17 Jun 2003 10:07:11 -0500
In-reply-to: <3EEE15B5.1040308@moser-inc.com>
References: <3EEE15B5.1040308@moser-inc.com>
Sender: pcp-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312
this works for me unless you wanted something like:

if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  ac_n= ac_c='
' ac_t=' '
else
  ac_n=-n ac_c= ac_t=
fi
else
ac_n= ac_c='\c' ac_t=
fi

- Alan -

Alan Hoyt wrote:

In configure.in, what's with $ac_n and $ac_c - these values are null and clear the echo flag settings made in the prior statement:

if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
then
if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
then
  echo_n= echo_c=
else
  echo_n=-n echo_c=
fi
else
echo_n= echo_c='\c'
fi

dnl echo_n set to -n if echo understands -n to supress newline
echo_n=$ac_n
AC_SUBST(echo_n)
dnl echo_c set to \c if echo understands \c to supress newline
echo_c=$ac_c
AC_SUBST(echo_c)

Easy fix unless you need them for something.

- Alan -





--- configure.in.orig   2003-06-16 14:52:49.540007000 +0000
+++ configure.in        2003-06-16 22:42:12.070002000 +0000
@@ -320,12 +320,7 @@
 else
   echo_n= echo_c='\c'
 fi
-
-dnl echo_n set to -n if echo understands -n to supress newline
-echo_n=$ac_n
 AC_SUBST(echo_n)
-dnl echo_c set to \c if echo understands \c to supress newline
-echo_c=$ac_c
 AC_SUBST(echo_c)
 
 dnl if /proc is not mounted, try and mount it
<Prev in Thread] Current Thread [Next in Thread>