0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00
obs-studio/configure.ac

80 lines
1.7 KiB
Plaintext

# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.67])
AC_INIT([obs], [0.0.1], [obs.jim@gmail.com])
AC_CONFIG_SRCDIR([libobs/obs.c])
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
LT_INIT
AM_INIT_AUTOMAKE([foreign])
AM_SILENT_RULES([yes])
# Checks for programs.
AC_PROG_CC_STDC
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_SED
AX_CXX_COMPILE_STDCXX_11
# AX_EXT
AX_APPEND_FLAG(["-msse2"], [CPPFLAGS])
case $host_os in
mingw*)
AM_CONDITIONAL([OS_WIN], true)
AM_CONDITIONAL([OS_OSX], false)
AM_CONDITIONAL([OS_NIX], false)
;;
darwin*)
AM_CONDITIONAL([OS_WIN], false)
AM_CONDITIONAL([OS_OSX], true)
AM_CONDITIONAL([OS_NIX], false)
;;
*) #TODO - fix nix, but not with sticks, and definitely not with bricks
AM_CONDITIONAL([OS_WIN], false)
AM_CONDITIONAL([OS_OSX], false)
AM_CONDITIONAL([OS_NIX], true)
PKG_CHECK_MODULES([X11], [x11])
;;
esac
# Checks for header files.
AC_PATH_X
AC_CHECK_HEADERS([inttypes.h limits.h malloc.h stddef.h stdint.h stdlib.h string.h sys/timeb.h wchar.h wctype.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_INT8_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
AC_CHECK_TYPES([ptrdiff_t])
# Checks for library functions.
AC_FUNC_FSEEKO
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_STRTOD
AC_CHECK_FUNCS([memmove memset socket strstr strtol strtoul])
AC_CONFIG_FILES([makefile
build/makefile
test/makefile
test/test-input/makefile
test/win/makefile
libobs/makefile
libobs-opengl/makefile])
AC_OUTPUT