Mercurial > pidgin.yaz
comparison configure.ac @ 6701:b7e113a59b51
[gaim-migrate @ 7227]
Updated to MSN Protocol 9.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 02 Sep 2003 04:32:16 +0000 |
parents | c08d32c3213e |
children | 471eed8124d5 |
comparison
equal
deleted
inserted
replaced
6700:57161e3abbb5 | 6701:b7e113a59b51 |
---|---|
332 PERL_CFLAGS= | 332 PERL_CFLAGS= |
333 PERL_LIBS= | 333 PERL_LIBS= |
334 AM_CONDITIONAL(USE_PERL, false) | 334 AM_CONDITIONAL(USE_PERL, false) |
335 fi | 335 fi |
336 | 336 |
337 dnl ####################################################################### | |
338 dnl # SSL support | |
339 dnl # | |
340 dnl # Thanks go to Evolution for the checks. | |
341 dnl ####################################################################### | |
342 AC_ARG_ENABLE(ssl, | |
343 [ --enable-ssl=[yes,no,static] Turn on Secure Sockets Layer support [default=yes]], | |
344 [enable_nss="$enableval"], | |
345 [enable_nss="yes"]) | |
346 | |
347 AC_ARG_WITH(nspr-includes, | |
348 [ --with-nspr-includes=PREFIX Specify location of Mozilla nspr4 includes.], | |
349 [with_nspr_includes="$withval"]) | |
350 | |
351 AC_ARG_WITH(nspr-libs, | |
352 [ --with-nspr-libs=PREFIX Specify location of Mozilla nsp4 libs.], | |
353 [with_nspr_libs="$withval"]) | |
354 | |
355 AC_ARG_WITH(nss-includes, | |
356 [ --with-nss-includes=PREFIX Specify location of Mozilla nss3 includes.], | |
357 [with_nss_includes="$withval"]) | |
358 | |
359 AC_ARG_WITH(nss-libs, | |
360 [ --with-nss-libs=PREFIX Specify location of Mozilla nss3 libs.], | |
361 [with_nss_libs="$withval"]) | |
362 | |
363 msg_ssl="no" | |
364 | |
365 if test "x$enable_nss" = "xyes" || test "x$enable_nss" = "xstatic"; then | |
366 if test -n "$with_nspr_includes" || test -n "$with_nspr_libs" || \ | |
367 test -n "$with_nss_includes" || test -n "$with_nss_libs" || | |
368 test "x$enable_nss" = "xstatic"; then | |
369 | |
370 nss_manual_check="yes" | |
371 else | |
372 nss_manual_check="no" | |
373 fi | |
374 | |
375 if test "x$nss_manual_check" = "xno"; then | |
376 PKG_CHECK_MODULES(NSS, mozilla-nss, have_nss="yes") | |
377 | |
378 if test "x$have_nss" = "xyes"; then | |
379 mozilla_nspr="mozilla-nspr" | |
380 mozilla_nss="mozilla-nss" | |
381 | |
382 AC_DEFINE(HAVE_NSS, 1, [Define if you have Mozilla NSS]) | |
383 | |
384 msg_ssl="yes" | |
385 else | |
386 nss_manual_check="yes" | |
387 fi | |
388 fi | |
389 | |
390 if test "x$nss_manual_check" = "xyes"; then | |
391 mozilla_nss="" | |
392 have_nspr_includes="no" | |
393 | |
394 if test "x$with_nspr_includes" != "xno"; then | |
395 CPPFLAGS_save=$CPPFLAGS | |
396 | |
397 AC_MSG_CHECKING(for Mozilla nspr4 includes in $with_nspr_includes) | |
398 AC_MSG_RESULT("") | |
399 | |
400 CPPFLAGS="$CPPFLAGS -I$with_nspr_includes" | |
401 AC_CHECK_HEADERS(nspr.h prio.h, [ moz_nspr_includes="yes" ]) | |
402 CPPFLAGS=$CPPFLAGS_save | |
403 | |
404 if test "x$moz_nspr_includes" != "xno" -a \ | |
405 "x$moz_nspr_includes" != "x"; then | |
406 | |
407 have_nspr_includes="yes" | |
408 NSPR_CFLAGS="-I$with_nspr_includes" | |
409 fi | |
410 else | |
411 AC_MSG_CHECKING(for Mozilla nspr4 includes) | |
412 AC_MSG_RESULT(no) | |
413 fi | |
414 | |
415 have_nspr_libs="no" | |
416 | |
417 if test "x$with_nspr_libs" != "xno" -a \ | |
418 "x$have_nspr_includes" != "xno"; then | |
419 | |
420 CFLAGS_save=$CFLAGS | |
421 LDFLAGS_save=$LDFLAGS | |
422 | |
423 if test "$enable_nss" = "static"; then | |
424 if test -z "$with_nspr_libs"; then | |
425 AC_MSG_ERROR( | |
426 [Static linkage requested, but path to nspr libraries not set.] | |
427 [Please specify the path to libnspr4.a] | |
428 [Example: --with-nspr-libs=/usr/lib]) | |
429 else | |
430 nsprlibs="-ldl $with_nspr_libs/libplc4.a $with_nspr_libs/libplds4.a $with_nspr_libs/libnspr4.a $PTHREAD_LIB" | |
431 fi | |
432 else | |
433 nsprlibs="-ldl -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB" | |
434 fi | |
435 | |
436 AC_CACHE_CHECK([for Mozilla nspr libraries], moz_nspr_libs, | |
437 [ | |
438 LIBS_save=$LIBS | |
439 CFLAGS="$CFLAGS $NSPR_CFLAGS" | |
440 | |
441 LIBS="$nsprlibs" | |
442 | |
443 if test "x$with_nspr_libs" != "x"; then | |
444 LDFLAGS="$LDFLAGS -L$with_nspr_libs" | |
445 else | |
446 LDFLAGS="$LDFLAGS" | |
447 fi | |
448 | |
449 AC_TRY_LINK_FUNC(PR_Init, | |
450 [moz_nspr_libs="yes"], | |
451 [moz_nspr_libs="no"]) | |
452 | |
453 CFLAGS=$CFLAGS_save | |
454 LDFLAGS=$LDFLAGS_save | |
455 LIBS=$LIBS_save | |
456 ]) | |
457 | |
458 if test "x$moz_nspr_libs" != "xno"; then | |
459 have_nspr_libs="yes" | |
460 NSPR_LIBS="-L$with_nspr_libs $nsprlibs" | |
461 else | |
462 NSPR_CFLAGS="" | |
463 fi | |
464 else | |
465 AC_MSG_CHECKING(for Mozilla nspr4 libraries) | |
466 AC_MSG_RESULT(no) | |
467 fi | |
468 | |
469 if test "x$with_nss_includes" != "xno" -a \ | |
470 "x$have_nspr_libs" != "xno"; then | |
471 | |
472 CPPFLAGS_save=$CPPFLAGS | |
473 | |
474 AC_MSG_CHECKING(for Mozilla nss3 includes in $with_nss_includes) | |
475 AC_MSG_RESULT("") | |
476 | |
477 if test "x$with_nspr_includes" != "x"; then | |
478 CPPFLAGS="$CPPFLAGS -I$with_nspr_includs -I$with_nss_includes" | |
479 else | |
480 CPPFLAGS="$CPPFLAGS -I$with_nss_includes" | |
481 fi | |
482 | |
483 AC_CHECK_HEADERS(nss.h ssl.h smime.h, | |
484 [have_nss_includes="yes"], | |
485 [have_nss_includes="no"]) | |
486 | |
487 CPPFLAGS=$CPPFLAGS_save | |
488 | |
489 if test "x$have_nss_includes" = "xyes"; then | |
490 have_nss_includes="yes" | |
491 NSS_CFLAGS="-I$with_nss_includes" | |
492 else | |
493 NSPR_CFLAGS="" | |
494 NSPR_LIBS="" | |
495 fi | |
496 else | |
497 AC_MSG_CHECKING(for Mozilla nss3 includes) | |
498 AC_MSG_RESULT(no) | |
499 fi | |
500 | |
501 if test "x$with_nss_libs" != "xno" -a \ | |
502 "x$have_nss_includes" != "xno"; then | |
503 | |
504 LDFLAGS_save=$LDFLAGS | |
505 | |
506 if test "$enable_nss" = "static"; then | |
507 if test -z "$with_nss_libs"; then | |
508 AC_MSG_ERROR( | |
509 [Static linkage requested, but path to nss libraries not set.] | |
510 [Please specify the path to libnss3.a] | |
511 [Example: --with-nspr-libs=/usr/lib/mozilla]) | |
512 else | |
513 nsslibs="-ldb1 $with_nss_libs/libnssckfw.a $with_nss_libs/libasn1.a $with_nss_libs/libcrmf.a $with_nss_libs/libswfci.a $with_nss_libs/libjar.a $with_nss_libs/libpkcs12.a $with_nss_libs/libpkcs7.a $with_nss_libs/libpki1.a $with_nss_libs/libsmime.a $with_nss_libs/libssl.a $with_nss_libs/libnss.a $with_nss_libs/libpk11wrap.a $with_nss_libs/libsoftokn.a $with_nss_libs/libfreebl.a $with_nss_libs/libnsspki.a $with_nss_libs/libnssdev.a $with_nss_libs/libcryptohi.a $with_nss_libs/libcerthi.a $with_nss_libs/libcertdb.a $with_nss_libs/libsecutil.a $with_nss_libs/libnssb.a" | |
514 | |
515 case "$host" in | |
516 *solaris*) | |
517 nsslibs="$nsslibs $with_nss_libs/libfreeb1.a" | |
518 ;; | |
519 esac | |
520 fi | |
521 else | |
522 nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" | |
523 fi | |
524 | |
525 AC_CACHE_CHECK([for Mozilla nss libraries], moz_nss_libs, | |
526 [ | |
527 LIBS_save=$LIBS | |
528 LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs" | |
529 LIBS="$nsslibs $nsprlibs" | |
530 | |
531 AC_TRY_LINK_FUNC(NSS_Init, | |
532 [moz_nss_libs="yes"], | |
533 [moz_nss_libs="no"]) | |
534 | |
535 if test "x$moz_nss_libs" = "xno"; then | |
536 nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3" | |
537 LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs" | |
538 AC_TRY_LINK_FUNC(NSS_Init, | |
539 [moz_nss_libs="yes"], | |
540 [moz_nss_libs="no"]) | |
541 fi | |
542 | |
543 LDFLAGS=$LDFLAGS_save | |
544 LIBS=$LIBS_save | |
545 ]) | |
546 | |
547 if test "x$moz_nss_libs" != "xno"; then | |
548 AC_DEFINE(HAVE_NSS) | |
549 | |
550 NSS_LIBS="-L$with_nss_libs $nsslibs" | |
551 | |
552 if test "$enable_nss" = "static"; then | |
553 msg_ssl="yes (static)" | |
554 else | |
555 msg_ssl="yes" | |
556 fi | |
557 else | |
558 NSS_CFLAGS="" | |
559 NSPR_CFLAGS="" | |
560 NSPR_LIBS="" | |
561 fi | |
562 else | |
563 AC_MSG_CHECKING(for Mozilla nss libraries) | |
564 AC_MSG_ERROR(no) | |
565 fi | |
566 | |
567 NSS_CFLAGS="$NSPR_CFLAGS $NSS_CFLAGS" | |
568 NSS_LIBS="$NSPR_LIBS $NSS_LIBS" | |
569 fi | |
570 | |
571 AC_SUBST(NSS_CFLAGS) | |
572 AC_SUBST(NSS_LIBS) | |
573 fi | |
574 | |
337 dnl Check for Tcl | 575 dnl Check for Tcl |
338 if test "$enable_tcl" = yes; then | 576 if test "$enable_tcl" = yes; then |
339 AC_MSG_CHECKING([for tclConfig.sh]) | 577 AC_MSG_CHECKING([for tclConfig.sh]) |
340 TCLCONFIG=no | 578 TCLCONFIG=no |
341 for dir in $with_tclconfig /usr/lib /usr/local/lib; do | 579 for dir in $with_tclconfig /usr/lib /usr/local/lib; do |
437 | 675 |
438 if test "$ac_cv_cygwin" = yes ; then | 676 if test "$ac_cv_cygwin" = yes ; then |
439 LDADD="$LDADD -static" | 677 LDADD="$LDADD -static" |
440 DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall -g" | 678 DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall -g" |
441 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) | 679 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) |
442 fi | 680 fi |
443 | 681 |
444 AC_SUBST(DEBUG_CFLAGS) | 682 AC_SUBST(DEBUG_CFLAGS) |
445 AC_SUBST(LDADD) | 683 AC_SUBST(LDADD) |
446 AC_SUBST(LIBS) | 684 AC_SUBST(LIBS) |
447 | 685 |
569 echo Build with Tcl support........ : $enable_tcl | 807 echo Build with Tcl support........ : $enable_tcl |
570 echo Build with Tk support......... : $enable_tk | 808 echo Build with Tk support......... : $enable_tk |
571 echo Build with Audio support...... : $enable_audio | 809 echo Build with Audio support...... : $enable_audio |
572 echo Build with NAS support........ : $enable_nas | 810 echo Build with NAS support........ : $enable_nas |
573 echo Build with GtkSpell support... : $enable_gtkspell | 811 echo Build with GtkSpell support... : $enable_gtkspell |
812 echo Build with Mozilla NSS support : $msg_ssl | |
574 echo | 813 echo |
575 echo Use XScreenSaver Extension.... : $enable_xss | 814 echo Use XScreenSaver Extension.... : $enable_xss |
576 echo Use X Session Management...... : $enable_sm | 815 echo Use X Session Management...... : $enable_sm |
577 echo | 816 echo |
578 echo Print debugging messages...... : $enable_debug | 817 echo Print debugging messages...... : $enable_debug |