Changeset 5973412
- Timestamp:
- 2006-06-03T20:52:40Z (19 years ago)
- Branches:
- master
- Children:
- 0025b51
- Parents:
- 9779c18
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r9779c18 r5973412 143 143 144 144 if [ -n "$CC" ]; then 145 echo "CC=$CC" >> Makefile.settings;145 CC=$CC 146 146 elif type gcc > /dev/null 2> /dev/null; then 147 echo "CC=gcc" >> Makefile.settings;147 CC=gcc 148 148 elif type cc > /dev/null 2> /dev/null; then 149 echo "CC=cc" >> Makefile.settings;149 CC=cc 150 150 else 151 151 echo 'Cannot find a C compiler, aborting.' 152 152 exit 1; 153 153 fi 154 155 echo "CC=$CC" >> Makefile.settings; 154 156 155 157 if [ -n "$LD" ]; then … … 208 210 detect_ldap() 209 211 { 210 if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG ldb; then 212 TMPFILE=`mktemp` 213 if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then 211 214 cat<<EOF>>Makefile.settings 212 EFLAGS+= `$PKG_CONFIG --libs ldb`213 CFLAGS+= `$PKG_CONFIG --cflags ldb`215 EFLAGS+=-lldap 216 CFLAGS+= 214 217 EOF 215 218 ldap=1 219 rm -f $TMPFILE 216 220 ret=1 217 221 else 222 ldap=0 218 223 ret=0 219 224 fi … … 286 291 if [ "$ldap" = 0 ]; then 287 292 echo "LDAP_OBJ=\# no ldap" >> Makefile.settings 288 echo "#undef LDAP" >> config.h293 echo "#undef WITH_LDAP" >> config.h 289 294 elif [ "$ldap" = 1 ]; then 290 echo "#define LDAP 1" >> config.h295 echo "#define WITH_LDAP 1" >> config.h 291 296 echo "LDAP_OBJ=storage_ldap.o" >> Makefile.settings 292 297 fi
Note: See TracChangeset
for help on using the changeset viewer.