Building lame 3.92 on SCO OpenServer 5.0.6a with gcc 3.2, I encountered
the following problems:

- If the configure script detects gcc, it stores the output of "gcc
  --version" in the variable $GCC_version.  It then uses this variable
  to determine optimization flags.  gcc 3.2, in addition to the gcc version
  number, outputs a copywrite notice.  Consequently, the test for the
  value of $GCC_version can never match.  Other gcc versions may behave
  similarly.  This issue is not specific to SCO OpenServer.

- The configure script assumes that gnu ld is being used if gcc is
  detected and adds -pipe to CFLAGS.  On SCO OpenServer, the native ld
  is used with gcc and does not understand -pipe.

Here is a patch which addresses these issues.  Would using a current
version of autoconfig to generate configure also fix them?


*** lame-3.92-orig/configure    2002-04-15 12:54:58.000000000 -0400
--- lame-3.92/configure 2002-09-21 13:40:22.000000000 -0400
***************
*** 2733,2739 ****
  if test "${GCC}" = "yes"; then
        echo $ac_n "checking version of GCC""... $ac_c" 1>&6
  echo "configure:2736: checking version of GCC" >&5
!       GCC_version=`${CC} --version`
        echo "$ac_t""${GCC_version}" 1>&6
  fi
  
--- 2733,2739 ----
  if test "${GCC}" = "yes"; then
        echo $ac_n "checking version of GCC""... $ac_c" 1>&6
  echo "configure:2736: checking version of GCC" >&5
!       GCC_version=`${CC} --version | sed -n '1,1s/[^0-9]*\([0-9].*\)/\1/p'`
        echo "$ac_t""${GCC_version}" 1>&6
  fi
  
***************
*** 5529,5535 ****
  if test "x$GCC" = "xyes"; then
        # gcc defaults. OS specific options go in versious sections below
        # from the gcc man pages:  "there is no reason to use -pedantic"
!       CFLAGS="-Wall -pipe ${CFLAGS}"
  
        case "${GCC_version}" in
        2.96*)
--- 5529,5539 ----
  if test "x$GCC" = "xyes"; then
        # gcc defaults. OS specific options go in versious sections below
        # from the gcc man pages:  "there is no reason to use -pedantic"
!       if test "$with_gnu_ld" = "yes"; then
!               CFLAGS="-Wall -pipe ${CFLAGS}"
!       else
!               CFLAGS="-Wall ${CFLAGS}"
!       fi
  
        case "${GCC_version}" in
        2.96*)

-- 
Roger Cornelius        [EMAIL PROTECTED]
_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to