blob: d9721dbe61f2ef52eabe4d8d808e703fb5bc2533 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
AC_PREREQ([2.65])
AC_INIT([demoscene-eo], 0.1, [https://www.pouzenc.fr/cgit/demoscene-eo], demoscene-eo)
AM_INIT_AUTOMAKE([foreign dist-bzip2])
AM_EXTRA_RECURSIVE_TARGETS([server])
AC_CONFIG_SRCDIR([src/demoscene-eo.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
# Checks for libraries.
AC_SEARCH_LIBS(caca_create_display, [caca])
AC_SEARCH_LIBS(SDL_Init, [SDL2])
AC_SEARCH_LIBS(glCompileShader, [GL])
AC_SEARCH_LIBS(gluLookAt, [glu])
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h strings.h sys/mman.h semaphore.h unistd.h sys/wait.h errno.h stdint.h stdio.h signal.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
AC_TYPE_UINT32_T
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MMAP
AC_CHECK_FUNCS([alarm atexit bzero])
ACX_PTHREAD
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
|