Imported Upstream version 0.66.1
[hcoop/debian/courier-authlib.git] / libs / numlib / configure.ac
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
3 dnl Copyright 1998 - 2010 Double Precision, Inc. See COPYING for
4 dnl distribution information.
5
6 AC_PREREQ(2.59)
7 AC_INIT(numlib, 0.10, courier-users@lists.sourceforge.net)
8
9 >confdefs.h # Kill PACKAGE_ macros
10
11 AC_CONFIG_SRCDIR([atotimet.c])
12 AC_CONFIG_AUX_DIR(../..)
13 AM_CONFIG_HEADER([config.h])
14 AM_INIT_AUTOMAKE([foreign no-define])
15
16 dnl Checks for programs.
17 AC_PROG_AWK
18 AC_PROG_CC
19 AC_PROG_INSTALL
20 AC_PROG_LN_S
21 AC_PROG_LIBTOOL
22
23 if test "$GCC" = "yes"
24 then
25 CFLAGS="$CFLAGS -Wall"
26 fi
27
28 CFLAGS="-I.. -I${srcdir}/.. $CFLAGS"
29
30 dnl Checks for libraries.
31
32 dnl Checks for header files.
33
34 AC_CHECK_HEADERS(unistd.h stdint.h)
35
36 AC_CHECK_TYPE(int64_t, [ : ],
37 [
38 AC_DEFINE_UNQUOTED(int64_t,long long,[default definition of int64_t])
39 ])
40
41 dnl Checks for typedefs, structures, and compiler characteristics.
42 AC_TYPE_UID_T
43 AC_TYPE_PID_T
44 AC_SYS_LARGEFILE
45
46 dnl Checks for library functions.
47
48 AC_CHECK_FUNCS(setgroups initgroups)
49 AC_OUTPUT(Makefile)