dnl Copyright 2009 Eric Anholt dnl All Rights Reserved. dnl dnl Permission is hereby granted, free of charge, to any person obtaining a dnl copy of this software and associated documentation files (the "Software"), dnl to deal in the Software without restriction, including without limitation dnl the rights to use, copy, modify, merge, publish, distribute, sublicense, dnl and/or sell copies of the Software, and to permit persons to whom the dnl Software is furnished to do so, subject to the following conditions: dnl dnl The above copyright notice and this permission notice (including the next dnl paragraph) shall be included in all copies or substantial portions of the dnl Software. dnl dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR dnl IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, dnl FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL dnl THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER dnl LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING dnl FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER dnl DEALINGS IN THE SOFTWARE. dnl dnl Authors: dnl Eric Anholt dnl dnl Process this file with autoconf to create configure. AC_PREREQ([2.57]) AC_INIT(glass, 0.1, [eric@anholt.net], glass) AC_CONFIG_SRCDIR([Makefile.am]) AM_CONFIG_HEADER([config.h]) AC_CONFIG_AUX_DIR(.) AC_PROG_LIBTOOL AM_INIT_AUTOMAKE([dist-bzip2]) AM_MAINTAINER_MODE AC_DISABLE_STATIC AC_PROG_CC dnl Use lots of warning flags with GCC WARN_CFLAGS="" if test "x$GCC" = "xyes"; then WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \ -Wmissing-prototypes -Wmissing-declarations \ -Wnested-externs -fno-strict-aliasing -Wno-switch-enum" fi AC_SUBST([WARN_CFLAGS]) PKG_CHECK_MODULES(GL, [gl glu3 sdl]) GL_LIBS="$GL_LIBS -lGLEW" dnl libpng check, taken from cairo. Yuck. use_png=no for l in libpng12 libpng13 libpng10 ; do if $PKG_CONFIG --exists $l ; then png_REQUIRES=$l use_png=yes break fi done if test "x$use_png" = "xyes" ; then PKG_CHECK_MODULES(PNG, $png_REQUIRES) else AC_MSG_WARN([Could not find libpng in the pkg-config search path]) fi AC_OUTPUT([ Makefile ])