[4f7b3f]: configure.ac Maximize Restore History

Download this file

configure.ac    31 lines (26 with data), 1.1 kB

AC_INIT([asteroids3D], [0.5.1])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_HEADERS([config.h])
AC_PROG_INSTALL
AM_INIT_AUTOMAKE([-Wall foreign subdir-objects tar-pax no-dist-gzip dist-xz])
AC_PROG_CC
AM_PROG_CC_C_O

AC_ARG_WITH([gamesdir], AS_HELP_STRING([--with-gamesdir=PATH],
	[Path to game binary directory [[EPREFIX/games]]]),
	[gamesdir="$withval"], [gamesdir='${exec_prefix}/games'])
AC_ARG_WITH([gamedatadir], AS_HELP_STRING([--with-gamedatadir=PATH],
	[Path to textures and sounds [[DATADIR/games]]]),
	[gamedatadir="$withval"], [gamedatadir='${gamesdir}/${PACKAGE_NAME}-data'])
AC_SUBST([gamesdir])
AC_SUBST([gamedatadir])

PKG_CHECK_MODULES([libGL], [gl], [], [libGL_LIBS="-lGL"])
PKG_CHECK_MODULES([libGLU], [glu], [], [libGLU_LIBS="-lGLU"])
AC_CHECK_HEADERS([GL/gl.h GL/glu.h GL/glut.h])

regular_CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_REENTRANT"
regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
	-Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
	-Winline -pipe"
AC_SUBST([regular_CPPFLAGS])
AC_SUBST([regular_CFLAGS])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT