configure.ac 1.54 KB
Newer Older
1 2 3
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

4
AC_INIT([vo-amrwbenc], [0.1.2], [http://sourceforge.net/projects/opencore-amr/])
5 6
AC_CONFIG_AUX_DIR(.)
AC_CONFIG_MACRO_DIR([m4])
7
AM_INIT_AUTOMAKE([tar-ustar])
8
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9 10 11 12 13 14 15
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE

# Cross compiling support
AC_CANONICAL_BUILD
AC_CANONICAL_HOST

16 17 18 19 20 21 22 23 24
# Various options for configure
AC_ARG_ENABLE([armv5e],
            [AS_HELP_STRING([--enable-armv5e],
               [enable ARMV5E assembler (default is no)])],
            [armv5e=$enableval], [armv5e=no])
AC_ARG_ENABLE([armv7neon],
            [AS_HELP_STRING([--enable-armv7neon],
               [enable ARMV7 neon assembler (default is no)])],
            [armv7neon=$enableval], [armv7neon=no])
25 26 27 28
AC_ARG_ENABLE([example],
            [AS_HELP_STRING([--enable-example],
                [enable example encoding program (default is no)])],
            [example=$enableval], [example=no])
29 30 31 32

# Automake conditionals to set
AM_CONDITIONAL(ARMV5E, test x$armv5e = xyes)
AM_CONDITIONAL(ARMV7NEON, test x$armv7neon = xyes)
33
AM_CONDITIONAL(EXAMPLE, test x$example = xyes)
34

35
# Checks for programs.
36
AM_PROG_AS
37
AC_PROG_CC_C99
38 39 40 41 42 43 44 45

# Setup for libtool
AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)

# soname version to use
# goes by ‘current[:revision[:age]]’ with the soname ending up as
# current.age.revision.
46
VO_AMRWBENC_VERSION=0:3:0
47 48 49 50 51
AC_SUBST(VO_AMRWBENC_VERSION)

AC_CONFIG_FILES([Makefile
                 vo-amrwbenc.pc])
AC_OUTPUT