qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] [PATCH] configure
@ 2007-05-09  3:39 Ben Taylor
  0 siblings, 0 replies; 13+ messages in thread
From: Ben Taylor @ 2007-05-09  3:39 UTC (permalink / raw)
  To: Thiemo Seufer, qemu-devel; +Cc: Jeff Chua


---- Jeff Chua <jeff.chua.linux@gmail.com> wrote: 
> For those who does minimal install. In this case,  texi2html would not
> be available on the system. I've seen quite a few systems without
> texi2html.
> 
> Again, the patch is not a MUST, but it's nice not to see unnecessary warning.

I suppose you could do a -n  "`texi2html -verbose 2>&1 | head -1 |grep 'This is texi2html'`"
which would be more representative if you have texi2html or not.

Ben

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [Qemu-devel] [PATCH] configure
@ 2007-05-09  8:51 Juergen Keil
  2007-05-09  9:18 ` Jeff Chua
  2007-05-09 13:50 ` Joachim Henke
  0 siblings, 2 replies; 13+ messages in thread
From: Juergen Keil @ 2007-05-09  8:51 UTC (permalink / raw)
  To: qemu-devel



> Thiemo Seufer wrote:
> Jeff Chua wrote:
> [snip]
> > @@ -567,7 +567,8 @@
> >    fi
> > 
> >    # Check if tools are available to build documentation.
> > -if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then
> > +if [ -x "`which texi2html 2>/dev/null`" \
> > +	-a -x "`which pod2man 2>/dev/null`" ]; then
> 
> Under which circumstances does "which" complain about unavailable
> executables?

 
Isn't the use of "which" wrong, anyway?  

"which" belongs to csh/tcsh, and tells you about csh's/tcsh's idea 
about a command or a csh command alias.

IMO, for a /bin/sh (or bash) script, using the "type" command would
be a better idea.

^ permalink raw reply	[flat|nested] 13+ messages in thread
* [Qemu-devel] [PATCH] configure
@ 2007-05-08 15:43 Jeff Chua
  2007-05-08 21:00 ` Thiemo Seufer
  0 siblings, 1 reply; 13+ messages in thread
From: Jeff Chua @ 2007-05-08 15:43 UTC (permalink / raw)
  To: qemu-devel



Avi had suggest I post this patch here so that it can be included in qemu 
instead of kvm.


Here's a little patch to silent ...
   	- sdl-config when SDK is compiled without static library
   	- texi2html when not found

Thanks,
Jeff


--- kvm/qemu/configure.org	2007-05-07 20:36:59 +0800
+++ kvm/qemu/configure	2007-05-07 20:40:58 +0800
@@ -523,8 +523,8 @@
    # static link with sdl ?
    if test "$sdl" = "yes" ; then
    aa="no"
-`$sdl_config --static-libs | grep \\\-laa > /dev/null` && aa="yes"
-sdl_static_libs=`$sdl_config --static-libs`
+`$sdl_config --static-libs 2>/dev/null | grep \\\-laa > /dev/null` && aa="yes"
+sdl_static_libs=`$sdl_config --static-libs 2>/dev/null`
    if [ "$aa" = "yes" ] ; then
      sdl_static_libs="$sdl_static_libs `aalib-config --static-libs`"
    fi
@@ -567,7 +567,8 @@
    fi

    # Check if tools are available to build documentation.
-if [ -x "`which texi2html`" ] && [ -x "`which pod2man`" ]; then
+if [ -x "`which texi2html 2>/dev/null`" \
+	-a -x "`which pod2man 2>/dev/null`" ]; then
      build_docs="yes"
    fi

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2007-05-09 17:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-09  3:39 [Qemu-devel] [PATCH] configure Ben Taylor
  -- strict thread matches above, loose matches on Subject: below --
2007-05-09  8:51 Juergen Keil
2007-05-09  9:18 ` Jeff Chua
2007-05-09  9:40   ` Andreas Schwab
2007-05-09 14:55     ` Jeff Chua
2007-05-09 17:10       ` Andreas Schwab
2007-05-09 13:50 ` Joachim Henke
2007-05-09 14:04   ` Thiemo Seufer
2007-05-08 15:43 Jeff Chua
2007-05-08 21:00 ` Thiemo Seufer
2007-05-09  0:18   ` Jeff Chua
2007-05-09  0:41     ` Thiemo Seufer
2007-05-09  3:22       ` Jeff Chua

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).