Description: Fixes autogen script
Author: Dennis Braun <d_braun@kabelmail.de>
Forwarded: no

--- sooperlooper.orig/autogen.sh
+++ sooperlooper/autogen.sh
@@ -44,7 +44,7 @@ PATH=$xtra_path$PATH
 export PATH
 
 acmacrodir=$pwd/aclocal
-custmacrodir=$pwd/m4
+custmacrodir=$pwd/aclocal
 
 system_macrodir=`aclocal --print-ac-dir`	
 
@@ -266,11 +266,6 @@ if [ "$libs_to_process" = "" ] ; then
     libs_to_process="libs $auto_lib_dirs $prog_dirs"
 fi
 
-for d in $libs_to_process
-do
-    (cd $d && echo "Building autoconf files for $d ..." && sh ./autogen.sh) || exit 1
-done
-
 echo "Building autoconf/automake files for the top level ..."
 aclocal $ACLOCAL_FLAGS && autoheader && automake --foreign --add-missing && autoconf
 
Index: sooperlooper/libs/midi++/configure.ac
===================================================================
--- sooperlooper.orig/libs/midi++/configure.ac
+++ sooperlooper/libs/midi++/configure.ac
@@ -42,7 +42,7 @@ fi
 dnl We may need C++-11 for some versions of sigc
 AX_CXX_COMPILE_STDCXX_11([noext], [mandatory])
 
-AM_OPT_FLAGS
+#AM_OPT_FLAGS
 
 AC_OBJEXT
 AC_LANG_CPLUSPLUS
@@ -241,7 +241,7 @@ AC_CHECK_FUNCS(strdup)
 dnl LTLIBOBJS=`echo "$LIBOBJS" | sed 's/\.o/.lo/g'`
 dnl AC_SUBST(LTLIBOBJS)
 
-AM_BUILD_ENVIRONMENT
+#AM_BUILD_ENVIRONMENT
 
 CXXFLAGS="$CXXFLAGS $GUI_INCLUDES $SIGCPP_CFLAGS"
 
Index: sooperlooper/libs/pbd/configure.ac
===================================================================
--- sooperlooper.orig/libs/pbd/configure.ac
+++ sooperlooper/libs/pbd/configure.ac
@@ -32,7 +32,7 @@ if test "$ac_cv_prog_cxx" = "no" ; then
    AC_MSG_ERROR([*** libpbd is C++. You don't appear to have a C++ compiler])
 fi
 
-AM_OPT_FLAGS
+#AM_OPT_FLAGS
 
 AC_ARG_ENABLE(optimize,
      [  --disable-optimize       avoid optimizations to allow for gdb debugging.],
@@ -209,7 +209,7 @@ then
 fi
 
 
-AM_BUILD_ENVIRONMENT
+#AM_BUILD_ENVIRONMENT
 
 CFLAGS="$CFLAGS $XML_CFLAGS $SIGCPP_CFLAGS $ICU_CLFAGS"
 CXXFLAGS="$CXXFLAGS $XML_CFLAGS $SIGCPP_CFLAGS $ICU_CFLAGS"
