X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=configure.ac;h=86851b9278bdc4b8214e2e8ae256ebc7d3566504;hb=db56ec5acf2817375064c3358a389ca89c24f1d4;hp=eddd02d7b177b0ea1085096baf1cd71b133fdf7a;hpb=572db8fa8aafe8aed0a18266e0c086da5cfe1948;p=platform%2Fupstream%2Flibvorbis.git diff --git a/configure.ac b/configure.ac index eddd02d..86851b9 100644 --- a/configure.ac +++ b/configure.ac @@ -7,6 +7,8 @@ dnl ------------------------------------------------ AC_INIT([libvorbis],[1.3.5],[vorbis-dev@xiph.org]) +AC_CONFIG_MACRO_DIR([m4]) + AC_CONFIG_SRCDIR([lib/mdct.c]) AC_CANONICAL_TARGET([]) @@ -17,6 +19,9 @@ AM_MAINTAINER_MODE dnl Add parameters for aclocal AC_SUBST(ACLOCAL_AMFLAGS, "-I m4") +dnl enable silent rules on automake 1.11 and later +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + dnl Library versioning dnl - library source changed -> increment REVISION dnl - interfaces added/removed/changed -> increment CURRENT, REVISION = 0 @@ -45,9 +50,9 @@ AC_SUBST(VE_LIB_CURRENT) AC_SUBST(VE_LIB_REVISION) AC_SUBST(VE_LIB_AGE) -dnl -------------------------------------------------- +dnl -------------------------------------------------- dnl Check for programs -dnl -------------------------------------------------- +dnl -------------------------------------------------- dnl save $CFLAGS since AC_PROG_CC likes to insert "-g -O2" dnl if $CFLAGS is blank @@ -88,10 +93,10 @@ fi AM_CONDITIONAL(BUILD_DOCS, [test "x$enable_docs" = xyes]) -AC_ARG_ENABLE(examples, - AS_HELP_STRING([--enable-examples], [build the examples])) - -AM_CONDITIONAL(BUILD_EXAMPLES, [test "x$enable_examples" = xyes]) +AC_ARG_ENABLE(examples, + AS_HELP_STRING([--enable-examples], [build the examples])) + +AM_CONDITIONAL(BUILD_EXAMPLES, [test "x$enable_examples" = xyes]) dnl -------------------------------------------------- dnl Set build flags based on environment @@ -101,14 +106,14 @@ dnl Set some target options cflags_save="$CFLAGS" if test -z "$GCC"; then - case $host in + case $host in *-*-irix*) - dnl If we're on IRIX, we wanna use cc even if gcc + dnl If we're on IRIX, we wanna use cc even if gcc dnl is there (unless the user has overriden us)... if test -z "$CC"; then CC=cc fi - DEBUG="-g -signed" + DEBUG="-g -signed" CFLAGS="-O2 -w -signed" PROFILE="-p -g3 -O2 -signed" ;; sparc-sun-solaris*) @@ -125,10 +130,10 @@ else AC_MSG_CHECKING([GCC version]) GCC_VERSION=`$CC -dumpversion` AC_MSG_RESULT([$GCC_VERSION]) - case $host in + case $host in *86-*-linux*) DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" - CFLAGS="-O3 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char" + CFLAGS="-O3 -Wall -Wextra -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char" # PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static" PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline" @@ -171,10 +176,10 @@ else CFLAGS=${OPT}" -D__NO_MATH_INLINES" PROFILE=${PROFILE}" -D__NO_MATH_INLINES" fi;; - powerpc-*-linux*spe) - DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES" - CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -D_REENTRANT" - PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";; + powerpc-*-linux*spe) + DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES" + CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -D_REENTRANT" + PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";; powerpc-*-linux*) DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES" CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"