1dnl                                               -*- Autoconf -*-
2dnl Process this file with autoconf to produce a configure script.
3
4AC_INIT([vo-amrwbenc], [0.1.3], [http://sourceforge.net/projects/opencore-amr/])
5AC_CONFIG_AUX_DIR(.)
6AC_CONFIG_MACRO_DIR([m4])
7AM_INIT_AUTOMAKE([tar-ustar foreign])
8m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
9AM_MAINTAINER_MODE
10
11dnl Various options for configure
12AC_ARG_ENABLE([armv5e],
13            [AS_HELP_STRING([--enable-armv5e],
14               [enable ARMV5E assembler (default is no)])],
15            [armv5e=$enableval], [armv5e=no])
16AC_ARG_ENABLE([armv7neon],
17            [AS_HELP_STRING([--enable-armv7neon],
18               [enable ARMV7 neon assembler (default is no)])],
19            [armv7neon=$enableval], [armv7neon=no])
20AC_ARG_ENABLE([example],
21            [AS_HELP_STRING([--enable-example],
22                [enable example encoding program (default is no)])],
23            [example=$enableval], [example=no])
24
25dnl Automake conditionals to set
26AM_CONDITIONAL(ARMV5E, test x$armv5e = xyes)
27AM_CONDITIONAL(ARMV7NEON, test x$armv7neon = xyes)
28AM_CONDITIONAL(EXAMPLE, test x$example = xyes)
29
30dnl Checks for programs.
31AM_PROG_AS
32AC_PROG_CC_C99
33
34dnl Setup for libtool
35LT_INIT
36
37dnl soname version to use
38dnl goes by ‘current[:revision[:age]]’ with the soname ending up as
39dnl current.age.revision.
40VO_AMRWBENC_VERSION=0:4:0
41AC_SUBST(VO_AMRWBENC_VERSION)
42
43AC_CONFIG_FILES([Makefile
44                 vo-amrwbenc.pc])
45AC_OUTPUT
46