acinclude.m4 help?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am pretty sure I am doing this according to the manual pages but it is still not working. I am attempting to modify an existing acinclude.m4 file to include some functionality I wrote into an existing shared object.

Now that I have tested the functionality of that code I am attempting to allow easier configuration through the ./configure shell script.

Here is the bit I am adding, but when I run aclocal, autoconf, automake the option does not appear in the ./configure --help menu, nor does it link against the -lldap libs. Any help, pointers, tips, tutorials are appreciated.

acinclude.m4

dnl
dnl --enable-ldap
dnl
AC_DEFUN(PKRB5_CHECK_LDAP,
[
       AC_ARG_ENABLE(ldap,[
       Optional LDAP Support: *NEW
         --enable-ldap          Enable ldap support for non-local users
(requires OpenLDAP libraries @ http://www.openldap.org and configuration of the /etc/pam_krb5+ldap.conf file.)], [enable_ldap="$enableval"], [enable_ldap="no"])

       if test "$enable_ldap" = "yes"; then
AC_DEFINE(_LIBLDAP,1,[Define if you require OpenLDAP support.]) AC_CHECK_HEADER(ldap.h, :, AC_MSG_ERROR(ldap.h not found! Please install the OpenLDAP libraries from openldap.org.))
               LIBS="-lldap $ac_save__LIBS"
               _LIBLDAP=yes
       fi
])dnl

--
Jason Gerfen

"My girlfriend threated to
leave me if I went boarding...
I will miss her."
~ DIATRIBE aka FBITKK



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux