Import Debian package 0.61.0-1+lenny1
[hcoop/debian/courier-authlib.git] / makedat / configure.in
CommitLineData
d9898ee8 1dnl Process this file with autoconf to produce a configure script.
0fde1ce3 2dnl $Id: configure.in,v 1.11 2008/05/08 15:38:46 mrsam Exp $
d9898ee8 3dnl
4dnl Copyright 1998 - 2001 Double Precision, Inc. See COPYING for
5dnl distribution information.
6
7AC_INIT(makedat, 0.60, [courier-users@lists.sourceforge.net])
8
9>confdefs.h # Kill PACKAGE_ macros
10
11AC_CONFIG_SRCDIR(makedatprog.c)
12AM_INIT_AUTOMAKE([foreign no-define])
13LPATH="$PATH:/usr/local/bin"
14AM_CONFIG_HEADER(config.h)
15
16dnl Checks for programs.
17AC_PROG_CC
18AC_PROG_INSTALL
19AC_PROG_LN_S
20AC_PATH_PROGS(PERL, perl5 perl, perl, $LPATH)
21AC_SUBST(PERL)
22AC_PATH_PROGS(CAT, cat, cat)
23AC_LIBTOOL_DLOPEN
24AM_PROG_LIBTOOL
25
26if test x$GCC = xyes
27then
28 CFLAGS="-Wall $CFLAGS"
29fi
30if test x$GXX = xyes
31then
32 CXXFLAGS="-Wall $CXXFLAGS"
33fi
34
35CFLAGS="-I$srcdir/.. -I.. $CFLAGS"
36CXXFLAGS="-I$srcdir/.. -I.. $CXXFLAGS"
37
38dnl Check whether we should use gdbm, or db.
39
d9898ee8 40. ../dbobj.config
0fde1ce3 41if test "$dblibrary" != ""
42then
43 dblibrary="../$dblibrary"
44fi
d9898ee8 45AC_SUBST(dblibrary)
d9898ee8 46
0fde1ce3 47makedatprog_target=""
48if test "$dblibrary" != ""
49then
50 makedatprog_target=makedatprog
51fi
52AC_SUBST(makedatprog_target)
d9898ee8 53AC_SUBST(dblibrary)
54
55dnl Checks for header files.
56AC_HEADER_STDC
57AC_CHECK_HEADERS(unistd.h)
58
59dnl Checks for typedefs, structures, and compiler characteristics.
60
61dnl Checks for library functions.
62
63AC_ARG_WITH(makedatprog,[ --with-makedatprog=filename Installed location and name of makedatprog], makedatprog="$withval", makedatprog="$bindir/makedatprog")
64
65makedatprogpath="$makedatprog"
66AC_SUBST(makedatprogpath)
67
68AC_OUTPUT(Makefile makedat)