All of lore.kernel.org
 help / color / mirror / Atom feed
* Wierdness in alsa-driver configure script
@ 2010-02-10 21:59 Eliot Blennerhassett
  2010-02-11  7:43 ` Jaroslav Kysela
  0 siblings, 1 reply; 2+ messages in thread
From: Eliot Blennerhassett @ 2010-02-10 21:59 UTC (permalink / raw)
  To: alsa-devel

checking for kernel version... 2.6.28-17-generic
checking for GCC version... ./configure: eval: line 5540: syntax error
near unexpected token `)'
./configure: eval: line 5540: `my_compiler_version=4.3.3-5ubuntu4)'
Kernel compiler:  Used compiler: gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3


gcc --version gives (yes, it is ugly!):
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.

The following change works for this particular case, but perhaps there
is a better answer?

--- a/configure.in
+++ b/configure.in
@@ -363,7 +363,7 @@ AC_DEFUN([CHECK_COMPILER], [
       ;;
     [[0-9]].[[0-9]]*)
       if test -z "$ac_compiler_version"; then
-        ac_compiler_version="$i"
+        ac_compiler_version=`echo $i | sed -e
's|[[^0-9]]*\([[0-9.]]\+\).*$|\1|'`
       fi
       ;;
     esac

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

* Re: Wierdness in alsa-driver configure script
  2010-02-10 21:59 Wierdness in alsa-driver configure script Eliot Blennerhassett
@ 2010-02-11  7:43 ` Jaroslav Kysela
  0 siblings, 0 replies; 2+ messages in thread
From: Jaroslav Kysela @ 2010-02-11  7:43 UTC (permalink / raw)
  To: Eliot Blennerhassett; +Cc: alsa-devel

On Thu, 11 Feb 2010, Eliot Blennerhassett wrote:

> checking for kernel version... 2.6.28-17-generic
> checking for GCC version... ./configure: eval: line 5540: syntax error
> near unexpected token `)'
> ./configure: eval: line 5540: `my_compiler_version=4.3.3-5ubuntu4)'
> Kernel compiler:  Used compiler: gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
>
>
> gcc --version gives (yes, it is ugly!):
> gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
> Copyright (C) 2008 Free Software Foundation, Inc.
>
> The following change works for this particular case, but perhaps there
> is a better answer?
>
> --- a/configure.in
> +++ b/configure.in
> @@ -363,7 +363,7 @@ AC_DEFUN([CHECK_COMPILER], [
>       ;;
>     [[0-9]].[[0-9]]*)
>       if test -z "$ac_compiler_version"; then
> -        ac_compiler_version="$i"
> +        ac_compiler_version=`echo $i | sed -e
> 's|[[^0-9]]*\([[0-9.]]\+\).*$|\1|'`
>       fi
>       ;;
>     esac

I applied this change to the alsa-driver git tree. The compiler check is 
not so critical these days.

 					Jaroslav

-----
Jaroslav Kysela <perex@perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.

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

end of thread, other threads:[~2010-02-11  7:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-10 21:59 Wierdness in alsa-driver configure script Eliot Blennerhassett
2010-02-11  7:43 ` Jaroslav Kysela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.