summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorb0ric <b0risov.alexandr@rambler.ru>2009-08-18 20:45:05 +0300
committerb0ric <b0risov.alexandr@rambler.ru>2009-08-18 20:45:05 +0300
commit7742a666d5ac98ea3a976336cf60a5530ab29e73 (patch)
treef985cda18f15f8a13feb5c10d17c5cc7a952f23a /configure.ac
parente5165d9838d03963284710e6b957fe9a3b0e267a (diff)
Autotools supportHEADmaster
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac35
1 files changed, 35 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..e354dad
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,35 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([wordextract], [0.2], [b0ric.alex@gmail.com])
+AC_INIT(wordxtract, 0.2, b0ric.alex@gmail.com)
+AM_INIT_AUTOMAKE([-Wall -Werror])
+AC_CONFIG_SRCDIR([src/dict.h])
+AC_CONFIG_HEADER([config.h])
+
+# Checks for programs.
+AC_PROG_CC
+AM_PATH_GTK_2_0([2.12.0])
+PKG_CHECK_MODULES(GTK, gtk+-2.0,, exit)
+AC_SUBST(GTK_LIBS)
+AC_SUBST(GTK_CFLAGS)
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_HEADER_STDC
+AC_CHECK_HEADERS([stdlib.h string.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_C_INLINE
+AC_TYPE_MODE_T
+
+# Checks for library functions.
+AC_FUNC_MALLOC
+AC_FUNC_STAT
+AC_CHECK_FUNCS([mkdir])
+
+AC_CONFIG_FILES([Makefile
+ src/Makefile])
+AC_OUTPUT