1 dnl Process this file with autoconf to produce a configure script.
3 dnl Copyright 2007 Johannes Lehtinen
4 dnl This configure.ac script is free software; Johannes Lehtinen gives
5 dnl unlimited permission to copy, distribute and modify it.
7 # Autoconf initialization
8 # -----------------------
9 AC_INIT([C-Pluff examples], [unspecified], [johannes.lehtinen@iki.fi], [cpluff-examples])
10 AC_COPYRIGHT([Copyright 2007 Johannes Lehtinen
11 This configure script is free software; Johannes Lehtinen gives unlimited
12 permission to copy, distribute and modify it.])
13 AC_CONFIG_SRCDIR([cpfile/README.txt])
14 AC_CONFIG_AUX_DIR([auxliary])
16 # Automake initialization
17 # -----------------------
18 AM_INIT_AUTOMAKE([foreign])
20 # C/C++ compiler settings
24 if test -z "$CC"; then
25 AC_MSG_ERROR([C compiler was not found (required)])
33 # Check for C-Pluff loader
34 # ------------------------
35 AC_CHECK_PROG([CPLUFF_LOADER], [cpluff-loader], [cpluff-loader])
36 if test -z "$CPLUFF_LOADER"; then
37 AC_MSG_ERROR([C-Pluff Loader, cpluff-loader, not found])
40 # Check for C-Pluff headers and library
41 # -------------------------------------
42 AC_CHECK_HEADER([cpluff.h],, AC_MSG_ERROR([C-Pluff header files not found]))
43 AC_CHECK_LIB([cpluff], [cp_init],, AC_MSG_ERROR([C-Pluff libraries not found]))
45 # Check for stat/lstat functions
46 # ------------------------------
47 AC_CHECK_FUNCS([stat lstat])
51 AC_CONFIG_FILES([Makefile
54 cpfile/plugins/Makefile
55 cpfile/plugins/cext/Makefile
56 cpfile/plugins/core/Makefile
57 cpfile/plugins/extension/Makefile
58 cpfile/plugins/special/Makefile