Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
1.7 KiB

  1. dnl Process this file with autoconf to produce a configure script. -*-m4-*-
  2. AC_INIT(libspeex/speex.h)
  3. SPEEX_MAJOR_VERSION=1
  4. SPEEX_MINOR_VERSION=0
  5. SPEEX_MICRO_VERSION=1
  6. SPEEX_VERSION=1.0.1
  7. SPEEX_LT_CURRENT=2
  8. SPEEX_LT_REVISION=0
  9. SPEEX_LT_AGE=1
  10. AC_SUBST(SPEEX_LT_CURRENT)
  11. AC_SUBST(SPEEX_LT_REVISION)
  12. AC_SUBST(SPEEX_LT_AGE)
  13. # For automake.
  14. VERSION=$SPEEX_VERSION
  15. PACKAGE=speex
  16. AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
  17. AM_MAINTAINER_MODE
  18. AC_CANONICAL_HOST
  19. AM_PROG_LIBTOOL
  20. AC_C_BIGENDIAN
  21. AC_CHECK_HEADERS(sys/soundcard.h)
  22. AC_ARG_ENABLE(ogg,
  23. [ --enable-ogg=[yes/no] Turn on or off the use of ogg
  24. libraries [default=yes]],
  25. [case "${enableval}" in
  26. yes) useogg=true ;;
  27. no) useogg=false ;;
  28. *) AC_MSG_ERROR(bad value ${enableval} for --enable-ogg) ;;
  29. esac],[useogg=true])
  30. if test x$useogg = xtrue; then
  31. AC_PATH_LIBOGG
  32. fi
  33. if test "$have_libogg" = yes; then
  34. src=src
  35. else
  36. src=
  37. fi
  38. AC_SUBST(src)
  39. AC_CHECK_LIB(m, sin)
  40. AC_CHECK_LIB(gnugetopt, getopt_long)
  41. AC_DEFINE_UNQUOTED(VERSION, "${VERSION}")
  42. AC_ARG_ENABLE(sse, [ --enable-sse enable SSE support], [if test "$enableval" = yes; then AC_DEFINE(_USE_SSE) fi])
  43. dnl Output the makefiles and version.h.
  44. AC_OUTPUT([Makefile libspeex/Makefile src/Makefile doc/Makefile Speex.spec
  45. win32/Makefile win32/libspeex/Makefile win32/speexenc/Makefile
  46. win32/speexdec/Makefile ])
  47. if test "x$src" = "x"; then
  48. echo "You don't seem to have libogg installed. Only the Speex library (libspeex) will be built (no encoder/decoder executable)"
  49. echo "You can download libogg from http://www.ogg.org/ogg/index.html"
  50. fi
  51. echo "Type \"make; make install\" to compile and install Speex";