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
|