File: configure.in

package info (click to toggle)
ldapdiff 0.9.2-1.1
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 716 kB
  • ctags: 182
  • sloc: ansic: 2,392; sh: 768; makefile: 11
file content (47 lines) | stat: -rw-r--r-- 1,236 bytes parent folder | download | duplicates (2)
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
# Process this file with autoconf to produce a configure script.
AC_INIT([ldapdiff])
AM_INIT_AUTOMAKE([ldapdiff],[0.9.2],[Thomas.Reith@rhoen.de])
AC_CONFIG_SRCDIR([ldapdiff.c])

# Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S

# Checks for libraries.
AC_CHECK_LIB(lber, main)
AC_CHECK_LIB(ldap, main)
AC_CHECK_LIB(nsl, main)
AC_CHECK_LIB(resolv, main)
AC_CHECK_LIB(socket, main)
AC_CHECK_LIB(dl, main)

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([getopt.h errno.h stdlib.h string.h time.h syslog.h types.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([memset strchr strdup strerror])

AC_ARG_WITH(ldap-dir, [  --with-ldap-dir=DIR     base directory of ldap SDK])
AC_ARG_WITH(iconv-dir,[  --with-iconv-dir=DIR    base directory of libiconv])

if test -n "$with_ldap_dir"; then
  CPPFLAGS="$CPPFLAGS -I$with_ldap_dir/include"
  LDFLAGS="$LDFLAGS -L$with_ldap_dir/lib"
  LIBS="-lldap -llber $LIBS"
fi

if test -n "$with_iconv_dir"; then
  CPPFLAGS="$CPPFLAGS -I$with_iconv_dir/include"
  LDFLAGS="$LDFLAGS -L$with_iconv_dir/lib"
  LIBS="-liconv $LIBS"
fi

AC_CONFIG_FILES([Makefile])
AC_OUTPUT