Merge pull request #1 from urbels/patch-1
fixed urls and added new version links for android deps
dnl Process this file with autoconf to produce a configure scriptdnl ------------------------------------------------dnl Initialization and Versioningdnl ------------------------------------------------AC_INIT(mdct.c)AC_CANONICAL_HOSTAC_CANONICAL_TARGETAM_CONFIG_HEADER([config.h])AM_INIT_AUTOMAKE(libvorbisidec,1.2.0)dnl Library versioningV_LIB_CURRENT=1V_LIB_REVISION=2V_LIB_AGE=0AC_SUBST(V_LIB_CURRENT)AC_SUBST(V_LIB_REVISION)AC_SUBST(V_LIB_AGE)dnl -------------------------------------------------- dnl Check for programsdnl -------------------------------------------------- dnl save $CFLAGS since AC_PROG_CC likes to insert "-g -O2"dnl if $CFLAGS is blankcflags_save="$CFLAGS"AC_PROG_CCAC_PROG_CPPCFLAGS="$cflags_save"AM_PROG_LIBTOOLdnl --------------------------------------------------dnl Set build flags based on environmentdnl --------------------------------------------------dnl Set some target optionscflags_save="$CFLAGS"ldflags_save="$LDFLAGS"if test -z "$GCC"; then case $host in arm-*-*) DEBUG="-g -D_ARM_ASSEM_" CFLAGS="-O -D_ARM_ASSEM_" PROFILE="-p -g -O -D_ARM_ASSEM_" ;; *) DEBUG="-g" CFLAGS="-O" PROFILE="-g -p" ;; esacelse case $host in arm-*-*) DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char -D_ARM_ASSEM_" CFLAGS="-O2 -D_ARM_ASSEM_ -fsigned-char" PROFILE="-W -pg -g -O2 -D_ARM_ASSEM_ -fsigned-char -fno-inline-functions";; *) DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char" CFLAGS="-O2 -Wall -fsigned-char" PROFILE="-Wall -pg -g -O2 -fsigned-char -fno-inline-functions";; esacfiCFLAGS="$CFLAGS $cflags_save -D_REENTRANT"LDFLAGS="$LDFLAGS $ldflags_save"# Test whenever ld supports -version-scriptAC_PROG_LDAC_PROG_LD_GNUif test "x$lt_cv_prog_gnu_ld" = "xyes"; then SHLIB_VERSION_ARG="Wl,--version-script=Version_script" dnl Set extra linker options case "$target_os" in linux* | solaris* ) SHLIB_VERSION_ARG="-Wl,--version-script=Version_script" ;; *) ;; esac LDFLAGS="$LDFLAGS $SHLIB_VERSION_ARG"fidnl --------------------------------------------------dnl Options dnl --------------------------------------------------AC_ARG_ENABLE( low-accuracy, [ --enable-low-accuracy enable 32 bit only multiply operations], CFLAGS="$CFLAGS -D_LOW_ACCURACY_")dnl --------------------------------------------------dnl Check for headersdnl --------------------------------------------------AC_CHECK_HEADER(memory.h,CFLAGS="$CFLAGS -DUSE_MEMORY_H",:)dnl --------------------------------------------------dnl Check for typedefs, structures, etcdnl --------------------------------------------------dnl nonednl --------------------------------------------------dnl Check for library functionsdnl --------------------------------------------------AC_FUNC_ALLOCAAC_FUNC_MEMCMPdnl --------------------------------------------------dnl Do substitutionsdnl --------------------------------------------------LIBS="$LIBS"AC_SUBST(LIBS)AC_SUBST(DEBUG)AC_SUBST(PROFILE)AC_OUTPUT(Makefile Version_script)