"Fossies" - the Fresh Open Source Software Archive

Member "faac-1_30/configure.ac" (16 Oct 2019, 1687 Bytes) of package /linux/misc/faac-1_30.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "configure.ac": 1.29.9_vs_1.29.9.2.

    1 AC_PREREQ(2.50)
    2 AC_INIT(faac, 1.30, https://sourceforge.net/p/faac/bugs/)
    3 AC_CONFIG_AUX_DIR(.)
    4 AM_INIT_AUTOMAKE([subdir-objects])
    5 
    6 AM_CONFIG_HEADER(config.h)
    7 AH_TOP([#ifndef CONFIG_H
    8 #define CONFIG_H])
    9 AH_BOTTOM([#endif /* CONFIG_H */])
   10 
   11 AC_ARG_ENABLE( drm,  [  --enable-drm            Digital Radio Mondiale support], enable_drm=$enableval, enable_drm=no)
   12 
   13 AC_DEFUN([MY_DEFINE], [ AC_DEFINE($1, 1, [define if needed]) ])
   14 
   15 CFLAGS=${CFLAGS:-"-O2 -Wall -fexceptions"}
   16 
   17 AC_PROG_CC
   18 AC_PROG_CXX
   19 AM_PROG_LIBTOOL
   20 
   21 AC_CHECK_HEADERS(getopt.h immintrin.h)
   22 
   23 AC_CHECK_DECL(strcasecmp, MY_DEFINE(HAVE_STRCASECMP))
   24 
   25 AC_CHECK_LIB(gnugetopt, getopt_long)
   26 
   27 dnl Check for DRM mode
   28 if test "x$enable_drm" = "xyes"; then
   29     AC_DEFINE(DRM, 1, [Define if you want to encode for DRM])
   30     AM_CONDITIONAL(USE_DRM, true)
   31       CFLAGS="$CFLAGS -DDRM"
   32 else
   33     AM_CONDITIONAL(USE_DRM, false)
   34 fi
   35 
   36 AM_CONDITIONAL(MINGW, test "$host_os" = "mingw32")
   37 AM_CONDITIONAL(CPUSSE, test "$host_cpu" = "x86_64" || test "$host_cpu" = "i686")
   38 
   39 AC_CHECK_TOOL(WINDRES, windres)
   40 
   41 AC_C_BIGENDIAN
   42 
   43 dnl Checks for header files required for mp4.h
   44 AC_HEADER_STDC
   45 AC_SYS_LARGEFILE
   46 AC_CHECK_HEADERS(stdint.h inttypes.h)
   47 AC_CHECK_HEADERS(mathf.h)
   48 AC_CHECK_HEADERS(float.h)
   49 AC_CHECK_DECL(strchr, MY_DEFINE(HAVE_STRCHR))
   50 AC_CHECK_DECL(memcpy, MY_DEFINE(HAVE_MEMCPY))
   51 AC_CHECK_DECL(strsep, MY_DEFINE(HAVE_STRSEP))
   52 AC_CHECK_HEADERS(sys/time.h)
   53 AC_HEADER_TIME
   54 AC_TYPE_OFF_T
   55 AC_CHECK_TYPES([in_port_t, socklen_t], , , 
   56 	[#include <sys/types.h>
   57 	 #include <sys/socket.h>
   58 	 #include <netinet/in.h>])
   59 AC_CHECK_MEMBERS(fpos_t.__pos,,, [#include <stdio.h>])
   60 
   61 AC_OUTPUT([
   62 common/Makefile
   63 libfaac/Makefile
   64 frontend/Makefile
   65 include/Makefile
   66 Makefile])