fi
-# From configure.in Revision: 1.8
+# From configure.in Revision: 1.9
if test x$with_rlm_counter != xno; then
-ac_safe=`echo "gdbm.h" | sed 'y%./+-%__p_%'`
+ac_safe=`echo "gdbm.h" | sed 'y%./+-%__pm%'`
echo $ac_n "checking for gdbm.h""... $ac_c" 1>&6
echo "configure:837: checking for gdbm.h" >&5
cat > conftest.$ac_ext <<EOF
#line 844 "configure"
#include "confdefs.h"
-#include <gdbm.h>
+
+ #include <gdbm.h>
int main() {
int a = 1;
; return 0; }
EOF
-if { (eval echo configure:851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
smart_include=" "
else
CFLAGS="$old_CFLAGS -I$try"
cat > conftest.$ac_ext <<EOF
-#line 895 "configure"
+#line 896 "configure"
#include "confdefs.h"
-#include <gdbm.h>
+
+ #include <gdbm.h>
int main() {
int a = 1;
; return 0; }
EOF
-if { (eval echo configure:902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
smart_include="-I$try"
else
+sm_lib_safe=`echo "gdbm" | sed 'y%./+-%__p_%'`
+sm_func_safe=`echo "gdbm_open" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
-echo "configure:932: checking for gdbm_open in -lgdbm" >&5
+echo "configure:936: checking for gdbm_open in -lgdbm" >&5
smart_lib=
smart_lib_dir=
old_LIBS="$LIBS"
LIBS="$LIBS -lgdbm"
cat > conftest.$ac_ext <<EOF
-#line 940 "configure"
+#line 944 "configure"
#include "confdefs.h"
extern char gdbm_open();
int main() {
gdbm_open()
; return 0; }
EOF
-if { (eval echo configure:947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-lgdbm"
else
LIBS="$old_LIBS -L$try -lgdbm"
cat > conftest.$ac_ext <<EOF
-#line 1016 "configure"
+#line 1020 "configure"
#include "confdefs.h"
extern char gdbm_open();
int main() {
gdbm_open()
; return 0; }
EOF
-if { (eval echo configure:1023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-L$try -lgdbm"
else
if test "x$smart_lib" != "x"; then
echo "$ac_t""yes" 1>&6
- eval "ac_cv_lib_gdbm_gdbm_open=yes"
+ eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
LIBS="$old_LIBS $smart_lib"
SMART_LIBS="$SMART_LIBS $smart_lib"
else
if test "x$fail" = "x"; then
echo $ac_n "checking to see GDBM_SYNC status""... $ac_c" 1>&6
-echo "configure:1053: checking to see GDBM_SYNC status" >&5
+echo "configure:1057: checking to see GDBM_SYNC status" >&5
cat > conftest.$ac_ext <<EOF
-#line 1055 "configure"
+#line 1059 "configure"
#include "confdefs.h"
#include <gdbm.h>
old_LIBS=$LIBS
LIBS="$LIBS $SMART_LIBS"
echo $ac_n "checking for gdbm_fdesc""... $ac_c" 1>&6
-echo "configure:1090: checking for gdbm_fdesc" >&5
+echo "configure:1094: checking for gdbm_fdesc" >&5
if eval "test \"`echo '$''{'ac_cv_func_gdbm_fdesc'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 1095 "configure"
+#line 1099 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char gdbm_fdesc(); below. */
; return 0; }
EOF
-if { (eval echo configure:1118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_gdbm_fdesc=yes"
else
fi
-# From configure.in Revision: 1.8
+# From configure.in Revision: 1.9
fail=
smart_try_dir=$rlm_ldap_include_dir
-ac_safe=`echo "lber.h" | sed 'y%./+-%__p_%'`
+ac_safe=`echo "lber.h" | sed 'y%./+-%__pm%'`
echo $ac_n "checking for lber.h""... $ac_c" 1>&6
echo "configure:849: checking for lber.h" >&5
cat > conftest.$ac_ext <<EOF
#line 856 "configure"
#include "confdefs.h"
-#include <lber.h>
+
+ #include <lber.h>
int main() {
int a = 1;
; return 0; }
EOF
-if { (eval echo configure:863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:864: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
smart_include=" "
else
CFLAGS="$old_CFLAGS -I$try"
cat > conftest.$ac_ext <<EOF
-#line 907 "configure"
+#line 908 "configure"
#include "confdefs.h"
-#include <lber.h>
+
+ #include <lber.h>
int main() {
int a = 1;
; return 0; }
EOF
-if { (eval echo configure:914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
smart_include="-I$try"
else
-ac_safe=`echo "ldap.h" | sed 'y%./+-%__p_%'`
+ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
echo $ac_n "checking for ldap.h""... $ac_c" 1>&6
-echo "configure:945: checking for ldap.h" >&5
+echo "configure:947: checking for ldap.h" >&5
smart_include=
smart_include_dir=
old_CFLAGS="$CFLAGS"
cat > conftest.$ac_ext <<EOF
-#line 952 "configure"
+#line 954 "configure"
#include "confdefs.h"
-#include <ldap.h>
+
+ #include <ldap.h>
int main() {
int a = 1;
; return 0; }
EOF
-if { (eval echo configure:959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:962: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
smart_include=" "
else
CFLAGS="$old_CFLAGS -I$try"
cat > conftest.$ac_ext <<EOF
-#line 1003 "configure"
+#line 1006 "configure"
#include "confdefs.h"
-#include <ldap.h>
+
+ #include <ldap.h>
int main() {
int a = 1;
; return 0; }
EOF
-if { (eval echo configure:1010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:1014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
smart_include="-I$try"
else
+sm_lib_safe=`echo "sasl" | sed 'y%./+-%__p_%'`
+sm_func_safe=`echo "sasl_encode" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for sasl_encode in -lsasl""... $ac_c" 1>&6
-echo "configure:1041: checking for sasl_encode in -lsasl" >&5
+echo "configure:1047: checking for sasl_encode in -lsasl" >&5
smart_lib=
smart_lib_dir=
old_LIBS="$LIBS"
LIBS="$LIBS -lsasl"
cat > conftest.$ac_ext <<EOF
-#line 1049 "configure"
+#line 1055 "configure"
#include "confdefs.h"
extern char sasl_encode();
int main() {
sasl_encode()
; return 0; }
EOF
-if { (eval echo configure:1056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-lsasl"
else
LIBS="$old_LIBS -L$try -lsasl"
cat > conftest.$ac_ext <<EOF
-#line 1125 "configure"
+#line 1131 "configure"
#include "confdefs.h"
extern char sasl_encode();
int main() {
sasl_encode()
; return 0; }
EOF
-if { (eval echo configure:1132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-L$try -lsasl"
else
if test "x$smart_lib" != "x"; then
echo "$ac_t""yes" 1>&6
- eval "ac_cv_lib_sasl_sasl_encode=yes"
+ eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
LIBS="$old_LIBS $smart_lib"
SMART_LIBS="$SMART_LIBS $smart_lib"
else
+sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
+sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for DH_new in -lcrypto""... $ac_c" 1>&6
-echo "configure:1159: checking for DH_new in -lcrypto" >&5
+echo "configure:1167: checking for DH_new in -lcrypto" >&5
smart_lib=
smart_lib_dir=
old_LIBS="$LIBS"
LIBS="$LIBS -lcrypto"
cat > conftest.$ac_ext <<EOF
-#line 1167 "configure"
+#line 1175 "configure"
#include "confdefs.h"
extern char DH_new();
int main() {
DH_new()
; return 0; }
EOF
-if { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-lcrypto"
else
LIBS="$old_LIBS -L$try -lcrypto"
cat > conftest.$ac_ext <<EOF
-#line 1243 "configure"
+#line 1251 "configure"
#include "confdefs.h"
extern char DH_new();
int main() {
DH_new()
; return 0; }
EOF
-if { (eval echo configure:1250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-L$try -lcrypto"
else
if test "x$smart_lib" != "x"; then
echo "$ac_t""yes" 1>&6
- eval "ac_cv_lib_crypto_DH_new=yes"
+ eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
LIBS="$old_LIBS $smart_lib"
SMART_LIBS="$SMART_LIBS $smart_lib"
else
+sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
+sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
-echo "configure:1277: checking for SSL_new in -lssl" >&5
+echo "configure:1287: checking for SSL_new in -lssl" >&5
smart_lib=
smart_lib_dir=
old_LIBS="$LIBS"
LIBS="$LIBS -lssl"
cat > conftest.$ac_ext <<EOF
-#line 1285 "configure"
+#line 1295 "configure"
#include "confdefs.h"
extern char SSL_new();
int main() {
SSL_new()
; return 0; }
EOF
-if { (eval echo configure:1292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-lssl"
else
LIBS="$old_LIBS -L$try -lssl"
cat > conftest.$ac_ext <<EOF
-#line 1361 "configure"
+#line 1371 "configure"
#include "confdefs.h"
extern char SSL_new();
int main() {
SSL_new()
; return 0; }
EOF
-if { (eval echo configure:1368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-L$try -lssl"
else
if test "x$smart_lib" != "x"; then
echo "$ac_t""yes" 1>&6
- eval "ac_cv_lib_ssl_SSL_new=yes"
+ eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
LIBS="$old_LIBS $smart_lib"
SMART_LIBS="$SMART_LIBS $smart_lib"
else
smart_try_dir=$rlm_ldap_lib_dir
+sm_lib_safe=`echo "lber" | sed 'y%./+-%__p_%'`
+sm_func_safe=`echo "ber_init" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for ber_init in -llber""... $ac_c" 1>&6
-echo "configure:1397: checking for ber_init in -llber" >&5
+echo "configure:1409: checking for ber_init in -llber" >&5
smart_lib=
smart_lib_dir=
old_LIBS="$LIBS"
LIBS="$LIBS -llber"
cat > conftest.$ac_ext <<EOF
-#line 1405 "configure"
+#line 1417 "configure"
#include "confdefs.h"
extern char ber_init();
int main() {
ber_init()
; return 0; }
EOF
-if { (eval echo configure:1412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-llber"
else
LIBS="$old_LIBS -L$try -llber"
cat > conftest.$ac_ext <<EOF
-#line 1481 "configure"
+#line 1493 "configure"
#include "confdefs.h"
extern char ber_init();
int main() {
ber_init()
; return 0; }
EOF
-if { (eval echo configure:1488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-L$try -llber"
else
if test "x$smart_lib" != "x"; then
echo "$ac_t""yes" 1>&6
- eval "ac_cv_lib_lber_ber_init=yes"
+ eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
LIBS="$old_LIBS $smart_lib"
SMART_LIBS="$SMART_LIBS $smart_lib"
else
if test "x$ac_cv_header_pthread_h" = "xyes"; then
+sm_lib_safe=`echo "ldap_r" | sed 'y%./+-%__p_%'`
+sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for ldap_init in -lldap_r""... $ac_c" 1>&6
-echo "configure:1519: checking for ldap_init in -lldap_r" >&5
+echo "configure:1533: checking for ldap_init in -lldap_r" >&5
smart_lib=
smart_lib_dir=
old_LIBS="$LIBS"
LIBS="$LIBS -lldap_r"
cat > conftest.$ac_ext <<EOF
-#line 1527 "configure"
+#line 1541 "configure"
#include "confdefs.h"
extern char ldap_init();
int main() {
ldap_init()
; return 0; }
EOF
-if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-lldap_r"
else
LIBS="$old_LIBS -L$try -lldap_r"
cat > conftest.$ac_ext <<EOF
-#line 1603 "configure"
+#line 1617 "configure"
#include "confdefs.h"
extern char ldap_init();
int main() {
ldap_init()
; return 0; }
EOF
-if { (eval echo configure:1610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-L$try -lldap_r"
else
if test "x$smart_lib" != "x"; then
echo "$ac_t""yes" 1>&6
- eval "ac_cv_lib_ldap_r_ldap_init=yes"
+ eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
LIBS="$old_LIBS $smart_lib"
SMART_LIBS="$SMART_LIBS $smart_lib"
else
else
+sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
+sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for ldap_init in -lldap""... $ac_c" 1>&6
-echo "configure:1643: checking for ldap_init in -lldap" >&5
+echo "configure:1659: checking for ldap_init in -lldap" >&5
smart_lib=
smart_lib_dir=
old_LIBS="$LIBS"
LIBS="$LIBS -lldap"
cat > conftest.$ac_ext <<EOF
-#line 1651 "configure"
+#line 1667 "configure"
#include "confdefs.h"
extern char ldap_init();
int main() {
ldap_init()
; return 0; }
EOF
-if { (eval echo configure:1658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-lldap"
else
LIBS="$old_LIBS -L$try -lldap"
cat > conftest.$ac_ext <<EOF
-#line 1727 "configure"
+#line 1743 "configure"
#include "confdefs.h"
extern char ldap_init();
int main() {
ldap_init()
; return 0; }
EOF
-if { (eval echo configure:1734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-L$try -lldap"
else
if test "x$smart_lib" != "x"; then
echo "$ac_t""yes" 1>&6
- eval "ac_cv_lib_ldap_ldap_init=yes"
+ eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
LIBS="$old_LIBS $smart_lib"
SMART_LIBS="$SMART_LIBS $smart_lib"
else
if test x"$libldap" != "x"; then
+sm_lib_safe=`echo ""$libldap"" | sed 'y%./+-%__p_%'`
+sm_func_safe=`echo "ldap_start_tls_s" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for ldap_start_tls_s in -l"$libldap"""... $ac_c" 1>&6
-echo "configure:1770: checking for ldap_start_tls_s in -l"$libldap"" >&5
+echo "configure:1788: checking for ldap_start_tls_s in -l"$libldap"" >&5
smart_lib=
smart_lib_dir=
old_LIBS="$LIBS"
LIBS="$LIBS -l"$libldap""
cat > conftest.$ac_ext <<EOF
-#line 1778 "configure"
+#line 1796 "configure"
#include "confdefs.h"
extern char ldap_start_tls_s();
int main() {
ldap_start_tls_s()
; return 0; }
EOF
-if { (eval echo configure:1785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-l"$libldap""
else
LIBS="$old_LIBS -L$try -l"$libldap""
cat > conftest.$ac_ext <<EOF
-#line 1854 "configure"
+#line 1872 "configure"
#include "confdefs.h"
extern char ldap_start_tls_s();
int main() {
ldap_start_tls_s()
; return 0; }
EOF
-if { (eval echo configure:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
smart_lib="-L$try -l"$libldap""
else
if test "x$smart_lib" != "x"; then
echo "$ac_t""yes" 1>&6
- eval "ac_cv_lib_"$libldap"_ldap_start_tls_s=yes"
+ eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
LIBS="$old_LIBS $smart_lib"
SMART_LIBS="$SMART_LIBS $smart_lib"
else