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