Add a regresion test for compression levels.
[platform/upstream/flac.git] / autogen.sh
index 273e543..3290f2e 100755 (executable)
 #
 # before running autogen.sh
 #
+# If you are running on OS X and get errors related to the AM_ICONV
+# and/or AM_LANGINFO_CODESET macros, replace those 2 lines in
+# configure.in with
+#
+#   AC_DEFINE([HAVE_ICONV], [], [Whether we have libiconv available]) LIBICONV="-liconv"
+#   AC_SUBST(LIBICONV)
+#
+# See also http://lists.xiph.org/pipermail/flac-dev/2007-September/002384.html
+#
 # Also watchout, if you replace ltmain.sh, there is a bug in some
 # versions of libtool (or maybe autoconf) on some platforms where the
 # configure-generated libtool does not have $SED defined.  See also:
@@ -49,7 +58,7 @@ echo "checking for autoconf... "
 VERSIONGREP="sed -e s/.*[^0-9\.]\([0-9][0-9]*\.[0-9][0-9]*\).*/\1/"
 VERSIONMKMAJ="sed -e s/\([0-9][0-9]*\)[^0-9].*/\\1/"
 VERSIONMKMIN="sed -e s/.*[0-9][0-9]*\.//"
-                                                                                
+
 # do we need automake?
 if test -r Makefile.am; then
   AM_OPTIONS=`fgrep AUTOMAKE_OPTIONS Makefile.am`
@@ -136,6 +145,10 @@ if test -z "$*"; then
         echo "to pass any to it, please specify them on the $0 command line."
 fi
 
+if test ! -f config.rpath ; then
+       touch config.rpath
+fi
+
 echo "Generating configuration files for $package, please wait...."
 
 echo "  $ACLOCAL $ACLOCAL_FLAGS"
@@ -150,4 +163,4 @@ echo "  autoconf"
 autoconf || exit 1
 
 cd $olddir
-$srcdir/configure --enable-maintainer-mode "$@" && echo
+$srcdir/configure "$@" && echo