dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)

AC_INIT([ppViz], [0.1.1], [ipp-support@ifa.hawaii.edu])
AC_CONFIG_SRCDIR([src])

AM_INIT_AUTOMAKE([1.6 foreign dist-bzip2])
AM_CONFIG_HEADER([src/config.h])
AM_MAINTAINER_MODE

IPP_STDCFLAGS

AC_LANG(C)
AC_GNU_SOURCE
AC_PROG_CC_C99
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_SYS_LARGEFILE

PKG_CHECK_MODULES([PSLIB], [pslib >= 1.0.0])
PKG_CHECK_MODULES([PSMODULE], [psmodules >= 1.0.0])

dnl Set CFLAGS for build
IPP_STDOPTS
CFLAGS="${CFLAGS} -Wall -Werror"

IPP_VERSION

AC_SUBST([PPVIZ_CFLAGS])
AC_SUBST([PPVIZ_LIBS])

AC_CONFIG_FILES([
  Makefile
  src/Makefile
  src/ppVizPSF/Makefile
  src/ppCoord/Makefile
  src/ppVizPattern/Makefile
])

AC_OUTPUT
