configure.in
上传用户:wstnjxml
上传日期:2014-04-03
资源大小:7248k
文件大小:5k
源码类别:

Windows CE

开发平台:

C/C++

  1. dnl
  2. dnl This is the configure.in for faad2 related to unix creation
  3. dnl - libfaad.so
  4. dnl - libmp4ff.a (only static for moment)
  5. dnl - faad
  6. dnl - xmms input mp4/aac plugin
  7. dnl - mpeg4ip plugin (requires mpeg4ip's libmp4v2 to be installed)
  8. AC_INIT
  9. AC_CONFIG_AUX_DIR(.)
  10. AM_INIT_AUTOMAKE(faad2, 2.0)
  11. AC_PROG_LIBTOOL
  12. AC_SUBST(LIBTOOL_DEPS)
  13. dnl Checks for programs.
  14. AC_PROG_CC
  15. AC_PROG_CPP
  16. dnl disable for mpeg4ip plugin
  17. dnl AC_PROG_CXX
  18. AC_PROG_INSTALL
  19. AC_PROG_LN_S
  20. AC_PROG_MAKE_SET
  21. AC_CHECK_PROGS(RPMBUILD, rpmbuild, rpm)
  22. AM_CONFIG_HEADER(config.h)
  23. AC_ARG_WITH(xmms,[  --with-xmms             compile XMMS-1 plugin],
  24.      WITHXMMS=$withval, WITHXMMS=no)
  25. AC_ARG_WITH(drm,[  --with-drm              compile libfaad with DRM support],
  26.      WITHDRM=$withval, WITHDRM=no)
  27. dnl AC_ARG_WITH(mp4v2,[  --with-mp4v2            compile libmp4v2],
  28. dnl WITHMP4V2=$withval, WITHMP4V2=no)
  29. AC_ARG_WITH(mpeg4ip, [  --with-mpeg4ip          compile mpeg4ip plugin],
  30.      WITHMPEG4IP=$withval, WITHMPEG4IP=no)
  31. dnl Checks for header files required for mp4.h
  32. AC_HEADER_STDC
  33. AC_CHECK_HEADERS(stdint.h inttypes.h)
  34. AC_CHECK_HEADERS(mathf.h)
  35. AC_CHECK_HEADERS(float.h)
  36. AC_CHECK_FUNCS(strchr memcpy)
  37. AC_CHECK_HEADERS(sys/time.h)
  38. AC_HEADER_TIME
  39. dnl DRMS 
  40. AC_CHECK_HEADERS(errno.h sys/stat.h sys/types.h limits.h)
  41. AC_CHECK_HEADERS(sysfs/libsysfs.h)
  42. AC_CHECK_HEADERS(IOKit/IOKitLib.h,
  43.   [AC_CHECK_LIB(IOKit, main,
  44.     [AC_DEFINE(HAVE_IOKIT_IOKITLIB_H, 1, [Define if you have the IOKit API])
  45.      MP4FF_LIBS="-lIOKit"
  46.      AC_SUBST(MP4FF_LIBS)])])
  47. AC_CHECK_FUNCS(getpwuid)
  48. AC_C_INLINE
  49. AC_C_BIGENDIAN
  50. AC_TYPE_OFF_T
  51. AC_DEFUN(MY_CHECK_TYPEDEF_FROM_INCLUDE,
  52. [
  53.    AC_MSG_CHECKING([for $1])
  54.    AC_TRY_COMPILE([$2],
  55.                   [$1;],
  56.                   libfaad_ok=yes, libfaad_ok=no)
  57.    if test $libfaad_ok = yes; then
  58.       AC_DEFINE($3, 1, [Define if needed])
  59.       AC_MSG_RESULT([yes])
  60.    else
  61.       AC_MSG_RESULT([no])
  62. fi
  63. ])
  64. MY_CHECK_TYPEDEF_FROM_INCLUDE([float32_t temp],
  65.         [#include <sys/types.h>,
  66.         #include <sys/float.h>], [HAVE_FLOAT32_T])
  67. AC_CHECK_FUNCS(strsep)
  68. dnl MY_CHECK_TYPEDEF_FROM_INCLUDE([in_port_t temp],
  69. dnl         [#include <sys/types.h>
  70. dnl          #include <netinet/in.h>], [HAVE_IN_PORT_T])
  71. dnl MY_CHECK_TYPEDEF_FROM_INCLUDE([socklen_t temp],
  72. dnl         [#include <sys/types.h>
  73. dnl          #include <sys/socket.h>], HAVE_SOCKLEN_T)
  74. dnl MY_CHECK_TYPEDEF_FROM_INCLUDE([fpos_t foo; foo.__pos = 0;],
  75. dnl         [#include <stdio.h>],
  76. dnl         [HAVE_FPOS_T_POS])
  77. dnl AC_CHECK_PROG(external_mp4v2, mpeg4ip-config, yes, no)
  78. dnl AM_CONDITIONAL(WITH_MP4V2, false)
  79. dnl if test x$external_mp4v2 = xyes; then
  80. dnl   AM_CONDITIONAL(HAVE_MPEG4IP, true)
  81. dnl   MPEG4IP_PLAYER_PLUGIN_DIR=`mpeg4ip-config --player-plugin-dir`  
  82. dnl   AC_SUBST(MPEG4IP_PLAYER_PLUGIN_DIR)
  83. dnl   AC_MSG_NOTICE([*** Building with external mp4v2 ***])
  84. dnl else
  85. dnl   AC_MSG_NOTICE([*** Building with internal mp4v2 ***])
  86. dnl   AM_CONDITIONAL(HAVE_MPEG4IP, false)
  87. dnl   if test x$WITHMP4V2 = xyes; then
  88. dnl      AM_CONDITIONAL(WITH_MP4V2, true)
  89. dnl   fi
  90. dnl fi
  91. AC_CHECK_PROG(external_mp4v2, mpeg4ip-config, yes, no)
  92. AM_CONDITIONAL(HAVE_MPEG4IP_PLUG, false)
  93. if test x$WITHMPEG4IP = xyes; then
  94.    if test x$external_mp4v2 = xyes; then
  95.       AM_CONDITIONAL(HAVE_MPEG4IP_PLUG, true)
  96.       AC_MSG_NOTICE("Building MPEG4IP plugin")
  97.    else
  98. AC_MSG_NOTICE("MPEG4IP libmp4v2 is required for MPEG4IP plugin")
  99.    fi
  100. fi
  101. if test x$WITHXMMS = xyes; then
  102.   AC_CHECK_PROGS(XMMS_CONFIG, xmms-config,"not_found")
  103.   if test "$XMMS_CONFIG" = "not_found"; then
  104.     AC_MSG_ERROR("*** xmms-config not found - xmms plugin can't be build")
  105.   fi
  106.   AC_CHECK_HEADER(pthread.h,,
  107.            AC_MSG_ERROR(*** pthread headers support not installed or not found))
  108.   AC_CHECK_HEADER(id3.h,,
  109.        AC_MSG_ERROR(*** id3lib headers support not installed or not found))
  110.   AC_CHECK_PROGS(GTK_CONFIG, gtk-config, "not_found")
  111.   if test "$XGTK_CONFIG" = "not_found"; then
  112.     AC_MSG_ERROR("*** gtk-config not found - xmms plugin can't be build without")
  113.   fi
  114.   AM_CONDITIONAL(HAVE_XMMS, true)
  115. dnl  AC_MSG_NOTICE("xmms plugin requires libmp4v2 to be build")
  116. dnl  AM_CONDITIONAL(WITH_MP4V2, true)
  117. dnl  AC_CONFIG_FILES(plugins/xmms/Makefile plugins/xmms/src/Makefile)
  118. else
  119.  AC_MSG_NOTICE(no xmms build configured)
  120.  AM_CONDITIONAL(HAVE_XMMS, false)
  121. fi
  122. if test x$WITHDRM = xyes; then
  123.   AC_DEFINE(DRM, 1, [Define if you want to use libfaad together with Digital Radio Mondiale (DRM)])
  124. fi
  125. AC_CONFIG_FILES(libfaad/Makefile)
  126. AC_CONFIG_FILES(common/Makefile)
  127. AC_CONFIG_FILES(common/mp4ff/Makefile)
  128. AC_CONFIG_FILES(plugins/Makefile)
  129. AC_CONFIG_FILES(plugins/xmms/Makefile)
  130. AC_CONFIG_FILES(plugins/xmms/src/Makefile)
  131. dnl AC_CONFIG_FILES(plugins/mpeg4ip/Makefile)
  132. AC_CONFIG_FILES(faad2.spec)
  133. AC_CONFIG_FILES(frontend/Makefile)
  134. AC_CONFIG_FILES(Makefile)
  135. AC_OUTPUT