Re: Why does 'AC_MSG_CHECKING' output extra junk.

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

 



Am Freitag, den 07.08.2009, 12:45 +0100 schrieb Dr. David Kirkby:
> If I have this in my configure.ac
> 
> AC_MSG_CHECKING([if gcc uses the GNU or Sun linker])
> 
> then run the configure script, I see:
> 
> checking if gcc uses the GNU or Sun linker... checking for a sed that 
> does not truncate output... /opt/csw/bin/gsed
> 
> I've not asked it to check for sed, so why is it putting that in the end?

Because you don't output any result to your own check. AC_MSG_CHECKING
doesn't output a newline at the end. So what you see is the next check.
One would usually use the macros like that:

AC_MSG_CHECKING([for foo])
test ... ; then
	AC_MSG_RESULT([yes])
else
	AC_MSG_RESULT([no])
fi

Regards, Daniel



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux