Changes in configure [ceebeb1:823de9d]
Legend:
- Unmodified
- Added
- Removed
-
configure
rceebeb1 r823de9d 31 31 gcov=0 32 32 plugins=1 33 otr=auto 33 34 34 35 events=glib … … 71 72 --gcov=0/1 Disable/enable test coverage reporting $gcov 72 73 --plugins=0/1 Disable/enable plugins support $plugins 74 --otr=0/1 Disable/enable OTR encryption support $otr 73 75 74 76 --events=... Event handler (glib, libevent) $events … … 156 158 157 159 echo CFLAGS=$CFLAGS >> Makefile.settings 158 echo CFLAGS+=-I`pwd` - iquote`pwd`/lib -iquote`pwd`/protocols -I. >> Makefile.settings160 echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings 159 161 160 162 echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings … … 267 269 detect_ldap() 268 270 { 269 TMPFILE= $(mktemp)271 TMPFILE=`mktemp` 270 272 if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then 271 273 cat<<EOF>>Makefile.settings … … 280 282 ret=0 281 283 fi 282 }283 284 RESOLV_TESTCODE='285 #include <arpa/nameser.h>286 #include <resolv.h>287 288 int main()289 {290 ns_initparse( NULL, 0, NULL );291 ns_parserr( NULL, ns_s_an, 0, NULL );292 }293 '294 295 detect_resolv_dynamic()296 {297 echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null298 if [ "$?" = "0" ]; then299 echo 'EFLAGS+=-lresolv' >> Makefile.settings300 return 0301 fi302 303 return 1304 }305 306 detect_resolv_static()307 {308 for i in $systemlibdirs; do309 if [ -f $i/libresolv.a ]; then310 echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null311 if [ "$?" = "0" ]; then312 echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings313 return 0314 fi315 fi316 done317 318 return 1319 284 } 320 285 … … 360 325 361 326 ## Yes, you, at the console! How can you authenticate if you don't have any SSL!? 362 if [ "$msn" = "1" -o "$yahoo" = "1"]; then327 if [ "$msn" = "1" ]; then 363 328 echo 364 echo 'WARNING: The MSN and Yahoo! modules will not work without SSL. Disabling.' 329 echo 'Real SSL support is necessary for MSN authentication, will build without' 330 echo 'MSN protocol support.' 365 331 msn=0 366 yahoo=0367 332 fi 368 333 … … 386 351 echo 'SSL_CLIENT=ssl_'$ssl'.o' >> Makefile.settings 387 352 388 if detect_resolv_dynamic || detect_resolv_static; then 389 echo '#define HAVE_RESOLV_A' >> config.h 390 fi 353 for i in $systemlibdirs; do 354 if [ -f $i/libresolv.a ]; then 355 echo '#define HAVE_RESOLV_A' >> config.h 356 echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings 357 break 358 fi 359 done 391 360 392 361 STORAGES="text xml" … … 444 413 fi 445 414 446 if [ ! -e doc/user-guide/help.txt ] && ! type xmlto > /dev/null 2> /dev/null; then 447 echo 448 echo 'WARNING: Building from an unreleased source tree without prebuilt helpfile.' 449 echo 'Install xmlto if you want online help to work.' 415 otrprefix="" 416 for i in / /usr /usr/local; do 417 if [ -f ${i}/lib/libotr.a ]; then 418 otrprefix=${i} 419 break 420 fi 421 done 422 if [ "$otr" = "auto" ]; then 423 if [ -n "$otrprefix" ]; then 424 otr=1 425 else 426 otr=0 427 fi 428 fi 429 if [ "$otr" = 1 ]; then 430 echo '#define WITH_OTR' >> config.h 431 echo "EFLAGS+=-L${otrprefix}/lib -lotr" >> Makefile.settings 432 echo "CFLAGS+=-I${otrprefix}/include" >> Makefile.settings 433 else 434 echo '#undef WITH_OTR' >> config.h 450 435 fi 451 436 … … 535 520 ;; 536 521 Darwin ) 537 echo 'STRIP=\# skip strip' >> Makefile.settings538 522 ;; 539 523 IRIX ) … … 576 560 fi 577 561 562 if [ "$otr" = "1" ]; then 563 echo ' Off-the-Record (OTR) Messaging enabled.' 564 else 565 echo ' Off-the-Record (OTR) Messaging disabled.' 566 fi 567 578 568 echo ' Using event handler: '$events 579 569 echo ' Using SSL library: '$ssl
Note: See TracChangeset
for help on using the changeset viewer.