added --with-ldap-prefix

This commit is contained in:
eknauel 2003-11-17 18:49:03 +00:00
parent b21414b345
commit 10c0e539ba
1 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,8 @@ AC_CONFIG_HEADERS(c/config.h)
AC_PROG_LIBTOOL
AC_PROG_CC
define([PREPEND], [[$2]="$[$2] [$1]"])
AC_ARG_WITH(scsh-includes,
AC_HELP_STRING([--with-scsh-includes=DIR],
[scsh include files are in DIR [/usr/local/include]]),
@ -22,6 +24,15 @@ AC_ARG_WITH(scsh-libraries,
scsh_libraries=/usr/local/lib/scsh)
AC_SUBST(scsh_libraries)
AC_ARG_WITH(ldap-prefix,
AC_HELP_STRING([--with-ldap-prefix=DIR],
[ldap lib and include has prefix DIR [/usr]]),
[ldap_lib=$withval/lib ldap_include=$withval/include],
[ldap_lib=/usr/lib ldap_include=/usr/include])
AC_SUBST(LDFLAGS, "$LDFLAGS -L${ldap_lib}")
AC_SUBST(CFLAGS, "$CFLAGS -I${ldap_include}")
AC_CHECK_LIB(ldap, ldap_init, [], AC_MSG_FAILURE("Could not find ldap library"))
AC_CHECK_HEADER([ldap.h], [], AC_MSG_FAILURE("Could not find ldap.h"))