-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.in
34 lines (26 loc) · 845 Bytes
/
configure.in
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
# Process this file with autoconf to produce a configure script.
AC_INIT
AM_INIT_AUTOMAKE(adtool, 1.3.3)
# Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
AM_PROG_LIBTOOL
# Checks for libraries.
case "$host_os" in
*solaris*)
LDFLAGS="-lsocket -lposix4 $LDFLAGS"
esac
AC_ARG_WITH( ldap,
[ --with-ldap=DIR OpenLDAP install prefix ],
[
CFLAGS="-I${with_ldap}/include $CFLAGS"
LDFLAGS="-L${with_ldap}/lib $LDFLAGS"
])
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([memset strdup])
AC_CONFIG_FILES([config.h])
AC_OUTPUT(Makefile src/Makefile src/lib/Makefile src/tools/Makefile src/etc/Makefile doc/Makefile doc/man/Makefile doc/man/man1/Makefile doc/html/Makefile tests/Makefile)