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

AC_INIT([vo-amrwbenc], [0.1.0], [])
AC_CONFIG_AUX_DIR(.)
AC_CONFIG_MACRO_DIR([m4])
7 8
AM_INIT_AUTOMAKE([tar-ustar foreign])
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 25 26 27 28 29
# 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])

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

30
# Checks for programs.
31
AM_PROG_AS
32
AC_PROG_CC
Martin Storsjo's avatar
Martin Storsjo committed
33
AC_PROG_CXX
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET

# Setup for libtool
AC_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)

# Checks for libraries.
AC_CHECK_LIB([], [main])

# Checks for header files.
AC_CHECK_HEADERS([stdint.h stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_INT8_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset])

# soname version to use
# goes by ‘current[:revision[:age]]’ with the soname ending up as
# current.age.revision.
VO_AMRWBENC_VERSION=0:1:0
AC_SUBST(VO_AMRWBENC_VERSION)

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