ref: b0697be2af41889fedcaa7bcc3b1ddae8ef95b6a
dir: /configure.ac/
# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_INIT([Chocolate Duke3D], [1.0], [https://github.com/fabiensanglard/chocolate_duke3D/issues]) AC_CONFIG_SRCDIR([.]) AC_CONFIG_AUX_DIR([build-aux]) AM_INIT_AUTOMAKE([foreign]) AM_SILENT_RULES([yes]) # Checks for programs. AC_PROG_CC AC_PROG_RANLIB # Checks for libraries. PKG_CHECK_MODULES([SDL], [sdl], [], [ AC_CHECK_LIB([SDL], [main], [], [exit 1]) ]) PKG_CHECK_MODULES([SDL_MIXER], [SDL_mixer], [], [ AC_CHECK_LIB([SDL_mixer], [main], [], [exit 1]) ]) dnl Compiler flags CFLAGS_WARNINGS="-Wall -Wno-pointer-sign -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast -Wno-parentheses -Wno-unused-but-set-variable -Wno-unused-function" CFLAGS="${CFLAGS_WARNINGS} -DPLATFORM_UNIX $(pkg-config --cflags SDL_mixer) ${CFLAGS}" LDFLAGS="$(pkg-config --libs sdl) $(pkg-config --libs SDL_mixer) ${LDFLAGS}" # Checks for header files. AC_CHECK_HEADERS([assert.h enet/enet.h]) AC_CONFIG_FILES([Engine/src/Makefile Game/src/Makefile Game/src/audiolib/Makefile Game/src/midi/Makefile Makefile]) AC_OUTPUT