shithub: sox

Download patch

ref: af07e789ec6302adab05368ce18bfa1d3ed0f47f
parent: 2ae81f2e51b709c1a1af75ba99b08197ff06ed3a
author: cbagwell <cbagwell>
date: Sun Nov 21 22:29:08 EST 2004

in linux, add include path to /lib/modules for alsa headers.

--- a/Changelog
+++ b/Changelog
@@ -25,6 +25,8 @@
   o Added explicit rule for compile *.o from *.c so that
     CPPFLAGS is always referenced.  Not all platform's default
     rule includes CPPFLAGS (FreeBSD).
+  o Under linux, add include path to /lib/modules/* so that ALSA
+    include files can be auto detected.
 
 sox-12.17.6
 -----------
--- a/configure
+++ b/configure
@@ -1,7 +1,7 @@
 #! /bin/sh
-# From configure.in 1.5.
+# From configure.in 1.6.
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.59 for sox 12.17.6.
+# Generated by GNU Autoconf 2.59 for sox 12.17.7.
 #
 # Report bugs to <cbagwell@users.sourceforge.net>.
 #
@@ -269,9 +269,9 @@
 
 # Identity of this package.
 PACKAGE_NAME='sox'
-PACKAGE_TARNAME='"sox-12.17.6"'
-PACKAGE_VERSION='12.17.6'
-PACKAGE_STRING='sox 12.17.6'
+PACKAGE_TARNAME='"sox-12.17.7"'
+PACKAGE_VERSION='12.17.7'
+PACKAGE_STRING='sox 12.17.7'
 PACKAGE_BUGREPORT='cbagwell@users.sourceforge.net'
 
 ac_unique_file="sox.1"
@@ -781,7 +781,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures sox 12.17.6 to adapt to many kinds of systems.
+\`configure' configures sox 12.17.7 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -843,7 +843,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of sox 12.17.6:";;
+     short | recursive ) echo "Configuration of sox 12.17.7:";;
    esac
   cat <<\_ACEOF
 
@@ -969,7 +969,7 @@
 test -n "$ac_init_help" && exit 0
 if $ac_init_version; then
   cat <<\_ACEOF
-sox configure 12.17.6
+sox configure 12.17.7
 generated by GNU Autoconf 2.59
 
 Copyright (C) 2003 Free Software Foundation, Inc.
@@ -983,7 +983,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by sox $as_me 12.17.6, which was
+It was created by sox $as_me 12.17.7, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   $ $0 $@
@@ -2851,6 +2851,10 @@
 		CFLAGS="$CFLAGS -mno-cygwin"
 		CPPFLAGS="$CPPFLAGS -mno-cygwin"
 		LDFLAGS="$LDFLAGS -mno-cygwin"
+                ;;
+        *linux* )
+                CPPFLAGS="$CPPFLAGS -I/lib/modules/`uname -r`/build/include"
+                ;;
 esac
 
 if test "$GCC" = yes; then
@@ -6043,7 +6047,7 @@
 } >&5
 cat >&5 <<_CSEOF
 
-This file was extended by sox $as_me 12.17.6, which was
+This file was extended by sox $as_me 12.17.7, which was
 generated by GNU Autoconf 2.59.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -6103,7 +6107,7 @@
 
 cat >>$CONFIG_STATUS <<_ACEOF
 ac_cs_version="\\
-sox config.status 12.17.6
+sox config.status 12.17.7
 configured by $0, generated by GNU Autoconf 2.59,
   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
--- a/configure.in
+++ b/configure.in
@@ -3,9 +3,9 @@
 dnl configure.in
 dnl
 
-AC_REVISION(1.5)
+AC_REVISION(1.6)
 
-AC_INIT(sox, 12.17.6, cbagwell@users.sourceforge.net, "sox-12.17.6")
+AC_INIT(sox, 12.17.7, cbagwell@users.sourceforge.net, "sox-12.17.7")
 
 AC_CONFIG_SRCDIR(sox.1)
 
@@ -72,6 +72,10 @@
 		CFLAGS="$CFLAGS -mno-cygwin"
 		CPPFLAGS="$CPPFLAGS -mno-cygwin"
 		LDFLAGS="$LDFLAGS -mno-cygwin"
+                ;;
+        *linux* )
+                CPPFLAGS="$CPPFLAGS -I/lib/modules/`uname -r`/build/include"
+                ;;
 esac
 
 dnl Extra CFLAGS if we have gcc