-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
51 lines (41 loc) · 1.61 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.63])
AC_INIT([git-annex-utils], [0.05], [[email protected]])
AM_INIT_AUTOMAKE([dist-zip dist-bzip2 subdir-objects])
AC_CONFIG_SRCDIR([src/gadu-src/gadu.c])
AC_CONFIG_HEADERS([config.h])
#do checks with c++ preproc/compiler/etc...
AC_LANG([C])
# Checks for programs.
AC_PROG_CC
AM_PROG_CC_C_O #required for subdir-objects
#AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LIBTOOL
# AutoTroll with Qt.
#AT_WITH_QT
# Checks for libraries.
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS_ONCE([dirent.h getopt.h limits.h regex.h])
#AC_CHECK_HEADERS([])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_DECLS([PATH_MAX], [],
[AC_MSG_ERROR([Couln't find PATH_MAX. This should be defined in limits.h!])],
[#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif
])
# Checks for library functions.
AC_CHECK_FUNCS_ONCE([getopt_long])
AC_CHECK_FUNC([regexec],[],[AC_MSG_ERROR([Couldn't find regexec function!])])
#if we got regexec, we should also have regcomp and regfree
AC_CHECK_FUNC([readlink],[],[AC_MSG_ERROR([Couldn't find readlink function!])])
#TODO: someday we could make gmp optional
AC_CHECK_LIB(gmp,__gmpz_init,,[AC_MSG_ERROR([GNU MP not found, see http://gmplib.org/])])
AC_CHECK_HEADERS([gmp.h],[],[AC_MSG_ERROR([[Couldn't find gmp header!]])])
#set the default install dir to ./inst
#AC_PREFIX_DEFAULT([`pwd`/inst])
AC_CONFIG_FILES([Makefile src/Makefile man/gadu.1])
AC_OUTPUT