- Timestamp:
- 2010-06-03T11:00:45Z (14 years ago)
- Branches:
- master
- Children:
- a6b2f13
- Parents:
- 5f8ab6a9 (diff), f4bcc22 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r5f8ab6a9 r814aa52 20 20 ipcsocket='/var/run/bitlbee.sock' 21 21 pcdir='$prefix/lib/pkgconfig' 22 systemlibdirs="/lib / usr/lib /usr/local/lib"22 systemlibdirs="/lib /lib64 /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64" 23 23 24 24 msn=1 … … 26 26 oscar=1 27 27 yahoo=1 28 twitter=1 28 29 29 30 debug=0 … … 67 68 --oscar=0/1 Disable/enable Oscar part (ICQ, AIM) $oscar 68 69 --yahoo=0/1 Disable/enable Yahoo part $yahoo 70 --twitter=0/1 Disable/enable Twitter part $twitter 69 71 70 72 --debug=0/1 Disable/enable debugging $debug … … 158 160 159 161 echo CFLAGS=$CFLAGS >> Makefile.settings 160 echo CFLAGS+=-I`pwd` - iquote`pwd`/lib -iquote`pwd`/protocols -I. >> Makefile.settings162 echo CFLAGS+=-I`pwd` -I`pwd`/lib -I`pwd`/protocols -I. >> Makefile.settings 161 163 162 164 echo CFLAGS+=-DHAVE_CONFIG_H >> Makefile.settings … … 269 271 detect_ldap() 270 272 { 271 TMPFILE=$(mktemp )273 TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX) 272 274 if $CC -o $TMPFILE -shared -lldap 2>/dev/null >/dev/null; then 273 275 cat<<EOF>>Makefile.settings … … 297 299 detect_resolv_dynamic() 298 300 { 299 echo "$RESOLV_TESTCODE" | $CC -o /dev/null -x c - -lresolv >/dev/null 2>/dev/null 301 TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX) 302 ret=1 303 echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -lresolv >/dev/null 2>/dev/null 300 304 if [ "$?" = "0" ]; then 301 305 echo 'EFLAGS+=-lresolv' >> Makefile.settings 302 return 0 303 fi 304 305 return 1 306 ret=0 307 fi 308 309 rm -f $TMPFILE 310 return $ret 306 311 } 307 312 308 313 detect_resolv_static() 309 314 { 315 TMPFILE=$(mktemp /tmp/bitlbee-configure.XXXXXX) 316 ret=1 310 317 for i in $systemlibdirs; do 311 318 if [ -f $i/libresolv.a ]; then 312 echo "$RESOLV_TESTCODE" | $CC -o /dev/null-x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null319 echo "$RESOLV_TESTCODE" | $CC -o $TMPFILE -x c - -Wl,$i/libresolv.a >/dev/null 2>/dev/null 313 320 if [ "$?" = "0" ]; then 314 321 echo 'EFLAGS+='$i'/libresolv.a' >> Makefile.settings 315 ret urn0322 ret=0 316 323 fi 317 324 fi 318 325 done 319 326 320 return 1 327 rm -f $TMPFILE 328 return $ret 321 329 } 322 330 … … 494 502 fi 495 503 504 if ! make helloworld > /dev/null 2>&1; then 505 echo "WARNING: Your version of make (BSD make?) does not support BitlBee's makefiles." 506 echo "BitlBee needs GNU make to build properly. On most systems GNU make is available" 507 echo "under the name 'gmake'." 508 echo 509 if gmake helloworld > /dev/null 2>&1; then 510 echo "gmake seems to be available on your machine, great." 511 echo 512 else 513 echo "gmake is not installed (or not working). Please try to install it." 514 echo 515 fi 516 fi 517 496 518 cat <<EOF>bitlbee.pc 497 519 prefix=$prefix … … 542 564 fi 543 565 566 if [ "$twitter" = 0 ]; then 567 echo '#undef WITH_TWITTER' >> config.h 568 else 569 echo '#define WITH_TWITTER' >> config.h 570 protocols=$protocols'twitter ' 571 protoobjs=$protoobjs'twitter_mod.o ' 572 fi 573 544 574 if [ "$protocols" = "PROTOCOLS = " ]; then 545 575 echo "Warning: You haven't selected any communication protocol to compile!"
Note: See TracChangeset
for help on using the changeset viewer.