Changes in configure [574af7e:5973412]
Legend:
- Unmodified
- Added
- Removed
-
configure
r574af7e r5973412 28 28 strip=1 29 29 ipv6=1 30 ldap=auto 30 31 ssl=auto 31 32 … … 63 64 64 65 --ipv6=0/1 IPv6 socket support $ipv6 66 67 --ldap=0/1/auto LDAP support $ldap 65 68 66 69 --ssl=... SSL library to use (gnutls, nss, openssl, bogus, auto) … … 140 143 141 144 if [ -n "$CC" ]; then 142 echo "CC=$CC" >> Makefile.settings;145 CC=$CC 143 146 elif type gcc > /dev/null 2> /dev/null; then 144 echo "CC=gcc" >> Makefile.settings;147 CC=gcc 145 148 elif type cc > /dev/null 2> /dev/null; then 146 echo "CC=cc" >> Makefile.settings;149 CC=cc 147 150 else 148 151 echo 'Cannot find a C compiler, aborting.' 149 152 exit 1; 150 153 fi 154 155 echo "CC=$CC" >> Makefile.settings; 151 156 152 157 if [ -n "$LD" ]; then … … 201 206 ret=0; 202 207 fi; 208 } 209 210 detect_ldap() 211 { 212 TMPFILE=`mktemp` 213 if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then 214 cat<<EOF>>Makefile.settings 215 EFLAGS+=-lldap 216 CFLAGS+= 217 EOF 218 ldap=1 219 rm -f $TMPFILE 220 ret=1 221 else 222 ldap=0 223 ret=0 224 fi 203 225 } 204 226 … … 263 285 fi 264 286 287 if [ "$ldap" = "auto" ]; then 288 detect_ldap 289 fi 290 291 if [ "$ldap" = 0 ]; then 292 echo "LDAP_OBJ=\# no ldap" >> Makefile.settings 293 echo "#undef WITH_LDAP" >> config.h 294 elif [ "$ldap" = 1 ]; then 295 echo "#define WITH_LDAP 1" >> config.h 296 echo "LDAP_OBJ=storage_ldap.o" >> Makefile.settings 297 fi 298 265 299 if [ "$strip" = 0 ]; then 266 300 echo "STRIP=\# skip strip" >> Makefile.settings; … … 416 450 echo ' Building without IM-protocol support. We wish you a lot of fun...'; 417 451 fi 452 453 if [ "$ldap" = "0" ]; then 454 echo " LDAP storage backend disabled." 455 else 456 echo " LDAP storage backend enabled." 457 fi
Note: See TracChangeset
for help on using the changeset viewer.