# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.66]) AC_INIT(usrbinjava, 2, dev@lists.clearlinux.org) AM_INIT_AUTOMAKE([foreign -Wall -W subdir-objects]) AM_SILENT_RULES([yes]) AC_PROG_CC AM_PROG_CC_C_O AC_LANG(C) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_HEADERS([config.h]) have_coverage=no AC_ARG_ENABLE(coverage, AS_HELP_STRING([--enable-coverage], [enable test coverage])) if test "x$enable_coverage" = "xyes" ; then AC_CHECK_PROG(lcov_found, [lcov], [yes], [no]) if test "x$lcov_found" = xno ; then AC_MSG_ERROR([*** lcov support requested but the program was not found]) else lcov_version_major="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 1`" lcov_version_minor="`lcov --version | cut -d ' ' -f 4 | cut -d '.' -f 2`" if test "$lcov_version_major" -eq 1 -a "$lcov_version_minor" -lt 10; then AC_MSG_ERROR([*** lcov version is too old. 1.10 required]) else have_coverage=yes AC_DEFINE([COVERAGE], [1], [Coverage enabled]) fi fi fi AM_CONDITIONAL([COVERAGE], [test "$have_coverage" = "yes"]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT AC_MSG_RESULT([ $PACKAGE_NAME $VERSION ======== prefix: ${prefix} libdir: ${libdir} sysconfdir: ${sysconfdir} exec_prefix: ${exec_prefix} bindir: ${bindir} datarootdir: ${datarootdir} compiler: ${CC} cflags: ${CFLAGS} ldflags: ${LDFLAGS} ])