autoconf
[Top][All Lists]
Advanced

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

Re: acinclude.m4 help?


From: Ralf Wildenhues
Subject: Re: acinclude.m4 help?
Date: Fri, 7 Oct 2005 14:55:07 +0200
User-agent: Mutt/1.5.11

Hi Jason,

* Jason Gerfen wrote on Fri, Oct 07, 2005 at 02:40:23PM CEST:
> 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.

You need at least some more quoting.

> 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.

  info Autoconf "M4 Quotation"

> dnl
> dnl --enable-ldap
> dnl
> AC_DEFUN(PKRB5_CHECK_LDAP,

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.))

                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

Macro calls (or names) inside macro arguments absolutely have to be
quoted (literals should even be doubly quoted, as in: `[[literal]]').

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]