]> iEval git - fdkaac.git/blame - configure.ac
New upstream version 1.0.0
[fdkaac.git] / configure.ac
CommitLineData
48e2f01c 1m4_define([VERSION_H],m4_esyscmd([cat version.h]))
2changequote({{,}})dnl
3m4_define({{XX_VERSION}},m4_bregexp(VERSION_H,{{^const.*"\(.+\)";}},{{\1}}))
4changequote([,])dnl
5
6AC_INIT([fdkaac], [XX_VERSION], [honeycomb77@gmail.com])
7AC_CONFIG_HEADERS([config.h])
8AC_CONFIG_MACRO_DIR([m4])
9
10AM_INIT_AUTOMAKE
11
12AC_PROG_CC
bae3489b 13AM_PROG_CC_C_O
48e2f01c 14
d5a9697e 15AC_CHECK_HEADERS([sys/time.h])
374ae78b 16AC_CHECK_HEADERS([libcharset.h langinfo.h endian.h byteswap.h])
48e2f01c 17AC_CHECK_HEADERS([fdk-aac/aacenc_lib.h], ,
18 AC_MSG_ERROR([libfdk-aac is required]))
19
20AC_C_INLINE
21AC_C_BIGENDIAN
22AC_TYPE_INT16_T
23AC_TYPE_INT32_T
24AC_TYPE_INT64_T
25AC_TYPE_INT8_T
26AC_TYPE_SIZE_T
27AC_TYPE_UINT16_T
28AC_TYPE_UINT32_T
29AC_TYPE_UINT64_T
30AC_TYPE_UINT8_T
31AC_CHECK_TYPES([ptrdiff_t])
32
33AC_SYS_LARGEFILE
bd02d0e7 34AC_CHECK_TYPES([struct __timeb64],[],[],[[#include <sys/timeb.h>]])
48e2f01c 35AC_FUNC_FSEEKO
70e912ed 36AC_CHECK_FUNCS([sigaction gettimeofday nl_langinfo _vscprintf fseeko64])
d5a9697e 37AC_CHECK_FUNC(getopt_long)
38AM_CONDITIONAL([FDK_NO_GETOPT_LONG],[test "$ac_cv_func_getopt_long" != "yes"])
9ad6264b 39AC_SEARCH_LIBS([aacEncOpen],[fdk-aac],[],[],[])
48e2f01c 40
374ae78b
MG
41CHARSET_LIB=
42AC_CHECK_LIB([iconv], [locale_charset],
43 [CHARSET_LIB=-liconv],
44 [AC_CHECK_LIB([charset], [locale_charset], [CHARSET_LIB=-lcharset])])
45AC_SUBST([CHARSET_LIB])
46
48e2f01c 47AC_CANONICAL_HOST
48
49X_PLATFORM=posix
50case ${host} in
51*-*-mingw*)
52 X_PLATFORM=win32
53 ;;
54*)
55 AM_ICONV
56esac
57AM_CONDITIONAL([FDK_PLATFORM_POSIX],[test "$X_PLATFORM" = "posix"])
58AM_CONDITIONAL([FDK_PLATFORM_WIN32],[test "$X_PLATFORM" = "win32"])
59
60AC_CONFIG_FILES([Makefile])
61
62AC_OUTPUT
This page took 0.027359 seconds and 4 git commands to generate.