diff --git a/configure.ac b/configure.ac index 5523cde..cc3fd55 100644 --- a/configure.ac +++ b/configure.ac @@ -5,7 +5,7 @@ AC_PREREQ([2.69]) m4_define([pipecolors_version_major],[0]) m4_define([pipecolors_version_minor],[2]) -m4_define([pipecolors_version_micro],[0]) +m4_define([pipecolors_version_micro],[1]) m4_define([pipecolors_version], [pipecolors_version_major.pipecolors_version_minor.pipecolors_version_micro]) @@ -24,12 +24,14 @@ AC_CANONICAL_TARGET AC_CANONICAL_HOST AC_CANONICAL_BUILD PKG_PROG_PKG_CONFIG -AM_INIT_AUTOMAKE([gnu dist-bzip2 dist-zip]) -AM_SILENT_RULES -AC_GNU_SOURCE +AM_INIT_AUTOMAKE([dist-bzip2 dist-zip]) + +#AC_GNU_SOURCE + +# Checks for programs. AC_PROG_INSTALL -AC_PROG_CXXCPP +AC_PROG_CXX AM_PROG_AR AC_PROG_LIBTOOL AC_PROG_LN_S @@ -38,14 +40,19 @@ LT_INIT AC_LANG_CPLUSPLUS AC_PREFIX_DEFAULT([/usr]) -# Checks for programs. - AC_CONFIG_MACRO_DIR([m4]) AC_SUBST([LIBTOOL_DEPS]) +# Check for functions AC_CHECK_FUNCS([vasprintf], [], [AC_MSG_ERROR([Why don't you have this? Install basic c++ header files.])]) -AC_CHECK_HEADERS([stdarg.h stdlib.h unistd.h string iostream map],[],[AC_MSG_ERROR([We couldn't find one or more of the required headers.])]) + +# Check for Headers +AC_CHECK_HEADERS([cstdio iostream cstring cstdlib cstdarg],[],[AC_MSG_ERROR([We couldn't find one or more of the required headers.])]) + +# Check for boost_regex header AC_CHECK_HEADER([boost/regex.hpp],[],[AC_MSG_ERROR([Please install the libboost-regex header library.])]) + +# Check that we can use boost_regex.so AC_CHECK_LIB([boost_regex], [main], [], [AC_MSG_ERROR([Please install the libboost-regex libs on your system.])]) @@ -63,10 +70,10 @@ AM_COND_IF([PC_REMOVE_INVALID], [AC_MSG_NOTICE([Invalid pipe codes will be filtered.])], [AC_MSG_NOTICE([Invalid pipe codes will not be filtered.])]) -AC_ARG_ENABLE([the-force], - [AC_HELP_STRING([--enable-the-force], [use the force [default=no]])], - [], [enable_the_force=no]) -AM_CONDITIONAL([ENABLE_THE_FORCE], [test "x$enable_the_force" = "xyes"]) +#AC_ARG_ENABLE([the-force], +# [AC_HELP_STRING([--enable-the-force], [use the force [default=no]])], +# [], [enable_the_force=no]) +#AM_CONDITIONAL([ENABLE_THE_FORCE], [test "x$enable_the_force" = "xyes"]) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile src/libpipecolors.pc:src/libpipecolors.pc.in src/libpipecolors.h:src/libpipecolors.h.in],[],[APIVERSION=PIPECOLORS_VERSION]) diff --git a/dist/pipecolors-0.2.1.tar.bz2 b/dist/pipecolors-0.2.1.tar.bz2 new file mode 100644 index 0000000..97449c1 Binary files /dev/null and b/dist/pipecolors-0.2.1.tar.bz2 differ diff --git a/dist/pipecolors-0.2.1.tar.gz b/dist/pipecolors-0.2.1.tar.gz new file mode 100644 index 0000000..3b55fdf Binary files /dev/null and b/dist/pipecolors-0.2.1.tar.gz differ diff --git a/dist/pipecolors-0.2.1.zip b/dist/pipecolors-0.2.1.zip new file mode 100644 index 0000000..b43df7b Binary files /dev/null and b/dist/pipecolors-0.2.1.zip differ diff --git a/releases/timestamp b/dist/timestamp similarity index 100% rename from releases/timestamp rename to dist/timestamp diff --git a/src/Makefile.am b/src/Makefile.am index 73840ab..a66a664 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,4 +1,4 @@ -pkgconfig_DATA = libpipecolors.pc +pkgconfig_DATA = libpipecolors.pc pipecolors.pc AM_LDFLAGS = $(LDFLAGS) @@ -29,7 +29,11 @@ MAINTAINERCLEANFILES = \ config.h.in~ \ config.log \ stamp-h1 \ - Makefile.in + Makefile.in \ + pipecolors.pc libtool: $(LIBTOOL_DEPS) $(SHELL) ../config.status libtool + +pipecolors.pc: + cp libpipecolors.pc pipecolors.pc diff --git a/src/libpipecolors.pc.in b/src/libpipecolors.pc.in index c141cf6..9c7c94d 100644 --- a/src/libpipecolors.pc.in +++ b/src/libpipecolors.pc.in @@ -7,4 +7,4 @@ Name: libpipecolors Description: Uses old renegade pipe color codes to print colors to the terminal Version: @PACKAGE_VERSION@ Libs: -L${libdir} -lpipecolors -Cflags: -I${includedir}/pipecolors +Cflags: -I${includedir}