]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/configure.in
Initial check of the LDAP C++ SDK written by Ralf Haferkamp <rhafer@suse.de>
[openldap] / contrib / ldapc++ / configure.in
1 dnl Copyright 2000, OpenLDAP Foundation, All Rights Reserved.
2 dnl COPYING RESTRICTIONS APPLY, see COPYRIGHT file
3   
4   
5 dnl Process this file with autoconf to produce a configure script.
6
7
8 AC_INIT(src/main.cpp)
9 AM_INIT_AUTOMAKE(main, 0.0.1)
10 AM_CONFIG_HEADER(src/config.h)
11
12
13 dnl Checks for programs.
14 AC_PROG_CXX
15 AC_PROG_RANLIB
16 dnl AC_PROG_MAKE_SET
17 AC_ARG_ENABLE(debug,--disable-debug,[
18         ],[
19         CXXFLAGS="-g -O0 -Wall"
20         ]
21 )
22
23 AC_ARG_WITH(libldap,[  --with-libldap=DIR          Path to the libldap library [/usr/local/lib]],[
24         LIBS="$LIBS -L$with_libldap"    
25         ],[
26         LIBS="$LIBS -L/usr/local/lib"   
27         ]
28 )
29
30 AC_ARG_WITH(ldap-includes,[  --with-ldap-includes=DIR    Path to the libldap include files [/usr/local/include]],[
31         CPPFLAGS="$CPPFLAGS -I$with_ldap_includes"      
32         ],[
33         CPPFLAGS="$CPPFLAGS -I/usr/local/include"
34         ]
35 )
36 dnl Checks for libraries.
37 AC_CHECK_LIB(resolv,main)
38 AC_CHECK_LIB(lber,main)
39 AC_CHECK_LIB(ldap,main)
40 dnl Checks for header files.
41 AC_HEADER_TIME
42 AC_CHECK_HEADER(ldap.h)
43 AC_CHECK_HEADER(lber.h)
44
45 dnl Checks for typedefs, structures, and compiler characteristics.
46
47 dnl Checks for library functions.
48
49 AC_OUTPUT(Makefile src/Makefile)