X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=configure.ac;h=b166c38ebe9724fc30ad11b629e645a51614509c;hb=refs%2Fheads%2Fv0.5.x;hp=da6af3d84fafc66a39b61ef66f8ab2a4e109064d;hpb=8206ff11b5450e27909f6867adbff8f6d051c315;p=grits diff --git a/configure.ac b/configure.ac index da6af3d..b166c38 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,65 @@ -AC_INIT([aweather], [0.1], [spenceal@rose-hulman.edu]) -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) -AC_PROG_CC +m4_define([grits_release], [0.5]) +m4_define([grits_version], [1:0:1]) +m4_define([grits_subdir], [grits0]) + +# Init and options +AC_INIT([grits], [grits_release], [andy753421@gmail.com]) +AM_INIT_AUTOMAKE([-Wall -Werror -Wno-portability foreign]) AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_MACRO_DIR([m4]) +#AM_SILENT_RULES([yes]) + +# For library versioning +LIB_VERSION=grits_version +GRITS_SUBDIR=grits_subdir +AC_SUBST(LIB_VERSION) +AC_SUBST(GRITS_SUBDIR) + +# Check for required programs +AC_PROG_CC +AC_PROG_LIBTOOL +DOLT +PKG_PROG_PKG_CONFIG +GTK_DOC_CHECK(1.9) + +# Check for required packages +PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.14 gobject-2.0 gthread-2.0) +PKG_CHECK_MODULES(CAIRO, cairo) +PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.16) +PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.26) + +# Test for Windows vs. Unix +case "${host}" in + *mingw32*) WIN32="yes" ;; + *cygwin*) WIN32="yes" ;; + *) WIN32="no" ;; +esac +if test "$WIN32" = yes; then + ac_default_prefix="/" +fi +AM_CONDITIONAL([WIN32], test "$WIN32" = "yes") +AM_CONDITIONAL([NOTWIN32], test "$WIN32" = "no") + +# Configure GL flags +if test "$WIN32" = yes; then + GL_CFLAGS="" + GL_LIBS="-lglu32 -lopengl32" +else + GL_CFLAGS="" + GL_LIBS="-lGL -lGLU" +fi +AC_SUBST([GL_CFLAGS]) +AC_SUBST([GL_LIBS]) + +# Output AC_CONFIG_FILES([ Makefile src/Makefile + src/data/Makefile + src/objects/Makefile + src/plugins/Makefile + src/grits.pc + docs/Makefile + docs/api/Makefile ]) AC_OUTPUT