summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2017-12-02 13:14:20 -0700
committerEduardo Chappa <chappa@washington.edu>2017-12-02 13:14:20 -0700
commit04458e1f15f6e50d03325a89d30eeb63d90ff6c3 (patch)
treeee2c03d2c3e7ba8cad121830b13376aab38b8c40 /configure
parent0f9fea5d15563bb92c376aede610a5e7bc677ac8 (diff)
downloadalpine-04458e1f15f6e50d03325a89d30eeb63d90ff6c3.tar.xz
* Add /usr/local to add automatic support for ldap in Freebsd,
in case the user has ldap installed.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure27
1 files changed, 22 insertions, 5 deletions
diff --git a/configure b/configure
index 7294fa5f..3edf23d3 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.ac Rev:25 by chappa@washington.edu.
+# From configure.ac Rev:26 by chappa@washington.edu.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for alpine 2.21.9.
#
@@ -17623,14 +17623,24 @@ if test "x$with_ldap" = "xno" ; then
$as_echo "$as_me: Excluding LDAP Support" >&6;}
else
+ case $host in
+ *-*-freebsd*)
+ alpine_LDAPDIR="/usr/local"
+ alpine_LDAPINCLUDE="${LDAPDIR}/include"
+ alpine_LDAPLIB="${LDAPDIR}/lib"
+ ;;
+ esac;
+
alpine_with_ldap=yes
+
# Check whether --with-ldap-dir was given.
if test "${with_ldap_dir+set}" = set; then :
withval=$with_ldap_dir;
if test "x$withval" != "xno" ; then
- CPPFLAGS="$CPPFLAGS -I${withval}/include"
- LDFLAGS="$LDFLAGS -L${withval}/lib"
+ alpine_LDAPDIR="${withval}"
+ alpine_LDAPINCLUDE="${LDAPDIR}/include"
+ alpine_LDAPLIB="${LDAPDIR}/lib"
fi
fi
@@ -17641,7 +17651,7 @@ fi
if test "${with_ldap_include_dir+set}" = set; then :
withval=$with_ldap_include_dir;
if test "x$withval" != "xno" ; then
- CPPFLAGS="$CPPFLAGS -I$withval"
+ alpine_LDAPINCLUDE="$withval"
fi
fi
@@ -17652,11 +17662,18 @@ fi
if test "${with_ldap_lib_dir+set}" = set; then :
withval=$with_ldap_lib_dir;
if test "x$withval" != "xno" ; then
- LDFLAGS="$LDFLAGS -L$withval"
+ alpine_LDAPLIB="${withval}"
fi
fi
+
+ if test -n "$alpine_LDAPINCLUDE" ; then
+ CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
+ fi
+ if test -n "$alpine_LDAPLIB" ; then
+ LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
+ fi
fi