diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..54dfbe0 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,14 @@ +bin_PROGRAMS = grabc + +grabc_SOURCES = grabc.c + +grabc_CFLAGS = $(X_CFLAGS) +grabc_LDADD = $(X_LIBS) + +EXTRA_DIST = \ + grabc.pod + +man_MANS = grabc.1 + +grabc.1: grabc.pod + pod2man --date="2018-04-16" < $< > $@ diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..fa65967 --- /dev/null +++ b/configure.ac @@ -0,0 +1,28 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.69]) +AC_INIT([grabc], [1.0.2], [https://github.com/muquit/grabc/issues]) +AC_CONFIG_SRCDIR([grabc.c]) +AC_CONFIG_HEADERS([config.h]) +AM_INIT_AUTOMAKE([foreign]) + +# Checks for programs. +AC_PROG_CC +AC_PROG_INSTALL +AC_PROG_MAKE_SET + +# Checks for libraries. +AC_CHECK_LIB([X11], [XOpenDisplay]) + +# Checks for header files. +AC_PATH_XTRA +AC_CHECK_HEADERS([unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. +AC_CHECK_FUNCS([strtol]) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT