1 m4_define([VERSION_H],m4_esyscmd([cat version.h]))
3 m4_define({{XX_VERSION}},m4_bregexp(VERSION_H,{{^const.*"\(.+\)";}},{{\1}}))
6 AC_INIT([fdkaac], [XX_VERSION], [honeycomb77@gmail.com])
7 AC_CONFIG_HEADERS([config.h])
8 AC_CONFIG_MACRO_DIR([m4])
15 AC_CHECK_HEADERS([sys/time.h])
16 AC_CHECK_HEADERS([localcharset.h langinfo.h endian.h byteswap.h])
17 AC_CHECK_HEADERS([fdk-aac/aacenc_lib.h], ,
18 AC_MSG_ERROR([libfdk-aac is required]))
31 AC_CHECK_TYPES([ptrdiff_t])
34 AC_CHECK_TYPES([struct __timeb64],[],[],[[#include <sys/timeb.h>]])
36 AC_CHECK_FUNCS([sigaction gettimeofday nl_langinfo _vscprintf fseeko64])
37 AC_CHECK_FUNC(getopt_long)
38 AM_CONDITIONAL([FDK_NO_GETOPT_LONG],[test "$ac_cv_func_getopt_long" != "yes"])
39 AC_SEARCH_LIBS([aacEncOpen],[fdk-aac],[],[],[])
51 AM_CONDITIONAL([FDK_PLATFORM_POSIX],[test "$X_PLATFORM" = "posix"])
52 AM_CONDITIONAL([FDK_PLATFORM_WIN32],[test "$X_PLATFORM" = "win32"])
54 AC_CONFIG_FILES([Makefile])