comparison configure.ac @ 27817:3c26ef82d556

propagate from branch 'im.pidgin.pidgin' (head a32d1e1358009ce730a50b32e63fbe6c3a63c4fb) to branch 'im.pidgin.pidgin.yaz' (head 45a0829edb54b3543727448c64974e743fefe761)
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sat, 05 Apr 2008 13:15:49 +0000
parents f2d96d120309 0f8fe131008a
children 030185a59a1a
comparison
equal deleted inserted replaced
27816:f2d96d120309 27817:3c26ef82d556
402 [AC_MSG_RESULT(no) 402 [AC_MSG_RESULT(no)
403 if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then 403 if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then
404 X11_LIBS="$x_libpath_add" 404 X11_LIBS="$x_libpath_add"
405 X11_CFLAGS="$x_incpath_add" 405 X11_CFLAGS="$x_incpath_add"
406 else 406 else
407 with_x=no 407 AC_MSG_ERROR([
408 X11 development headers not found.
409 Use --without-x if you do not need X11 support.
410 ])
408 fi 411 fi
409 ]) 412 ])
410 AC_SUBST(X11_LIBS) 413 AC_SUBST(X11_LIBS)
411 AC_SUBST(X11_CFLAGS) 414 AC_SUBST(X11_CFLAGS)
415 else
416 enable_screensaver=no
417 enable_sm=no
418 enable_gestures=no
412 fi 419 fi
413 420
414 dnl ####################################################################### 421 dnl #######################################################################
415 dnl # Check for XScreenSaver 422 dnl # Check for XScreenSaver
416 dnl ####################################################################### 423 dnl #######################################################################
436 LIBS="$old_LIBS" 443 LIBS="$old_LIBS"
437 444
438 if test "x$enable_screensaver" = "xyes" ; then 445 if test "x$enable_screensaver" = "xyes" ; then
439 AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.]) 446 AC_DEFINE(USE_SCREENSAVER, 1, [Define if we're using XScreenSaver.])
440 AC_SUBST(XSS_LIBS) 447 AC_SUBST(XSS_LIBS)
448 else
449 AC_MSG_ERROR([
450 XScreenSaver extension development headers not found.
451 Use --disable-screensaver if you do not need XScreenSaver extension support,
452 this is required for detecting idle time by mouse and keyboard usage.
453 ])
441 fi 454 fi
442 else 455 else
443 enable_screensaver=no 456 AC_MSG_ERROR([X support is required to build with XScreenSaver extensions])
444 fi 457 fi
445 fi 458 fi
446 459
447 dnl ####################################################################### 460 dnl #######################################################################
448 dnl # Check for X session management libs 461 dnl # Check for X session management libs
459 fi 472 fi
460 473
461 if test "x$enable_sm" = "xyes"; then 474 if test "x$enable_sm" = "xyes"; then
462 AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.]) 475 AC_DEFINE(USE_SM, 1, [Define if we're using X Session Management.])
463 AC_SUBST(SM_LIBS) 476 AC_SUBST(SM_LIBS)
477 else
478 AC_MSG_ERROR([
479 X session management development headers not found.
480 Use --disable-sm if you do not need session management support.
481 ])
464 fi 482 fi
465 else 483 else
466 enable_sm=no 484 AC_MSG_ERROR([X support is required to build with X session management support])
467 fi 485 fi
468 fi 486 fi
469 487
470 dnl ####################################################################### 488 dnl #######################################################################
471 dnl # Check for X11 to allow the gestures plugin 489 dnl # Check for X11 to allow the gestures plugin
480 dnl # Check for startup notification 498 dnl # Check for startup notification
481 dnl ####################################################################### 499 dnl #######################################################################
482 if test "x$enable_startup_notification" = "xyes"; then 500 if test "x$enable_startup_notification" = "xyes"; then
483 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, [libstartup-notification-1.0 >= 0.5], , [ 501 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, [libstartup-notification-1.0 >= 0.5], , [
484 AC_MSG_RESULT(no) 502 AC_MSG_RESULT(no)
485 enable_startup_notification=no 503 AC_MSG_ERROR([
486 ]) 504 Startup notification development headers not found.
505 Use --disable-startup-notification if you do not need it.
506 ])])
487 507
488 if test "x$enable_startup_notification" = "xyes"; then 508 if test "x$enable_startup_notification" = "xyes"; then
489 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.]) 509 AC_DEFINE(HAVE_STARTUP_NOTIFICATION, 1, [Define if we're using libstartup-notification.])
490 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS) 510 AC_SUBST(STARTUP_NOTIFICATION_CFLAGS)
491 AC_SUBST(STARTUP_NOTIFICATION_LIBS) 511 AC_SUBST(STARTUP_NOTIFICATION_LIBS)
496 dnl # Check for GtkSpell 516 dnl # Check for GtkSpell
497 dnl ####################################################################### 517 dnl #######################################################################
498 if test "x$enable_gtkspell" = "xyes" ; then 518 if test "x$enable_gtkspell" = "xyes" ; then
499 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , [ 519 PKG_CHECK_MODULES(GTKSPELL, gtkspell-2.0 >= 2.0.2, , [
500 AC_MSG_RESULT(no) 520 AC_MSG_RESULT(no)
501 enable_gtkspell=no 521 AC_MSG_ERROR([
502 ]) 522 GtkSpell development headers not found.
523 Use --disable-gtkspell if you do not need it.
524 ])])
503 if test "x$enable_gtkspell" = "xyes" ; then 525 if test "x$enable_gtkspell" = "xyes" ; then
504 AC_DEFINE(USE_GTKSPELL, 1, [Define if we're using GtkSpell]) 526 AC_DEFINE(USE_GTKSPELL, 1, [Define if we're using GtkSpell])
505 AC_SUBST(GTKSPELL_CFLAGS) 527 AC_SUBST(GTKSPELL_CFLAGS)
506 AC_SUBST(GTKSPELL_LIBS) 528 AC_SUBST(GTKSPELL_LIBS)
507 fi 529 fi
526 fi 548 fi
527 if test "x$enable_gevolution" = "xyes"; then 549 if test "x$enable_gevolution" = "xyes"; then
528 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.]) 550 AC_DEFINE(HAVE_EVOLUTION_ADDRESSBOOK, 1, [Define if we're using evolution addressbook.])
529 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS) 551 AC_SUBST(EVOLUTION_ADDRESSBOOK_CFLAGS)
530 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS) 552 AC_SUBST(EVOLUTION_ADDRESSBOOK_LIBS)
553 else
554 AC_MSG_ERROR([
555 Evolution development headers not found.
556 Use --disable-gevolution if you do not need it.
557 ])
531 fi 558 fi
532 fi 559 fi
533 560
534 dnl ####################################################################### 561 dnl #######################################################################
535 dnl # Check for libsqlite3 (for the Contact Availability Prediction plugin) 562 dnl # Check for libsqlite3 (for the Contact Availability Prediction plugin)
536 dnl ####################################################################### 563 dnl #######################################################################
537 if test "x$enable_cap" = "xyes"; then 564 if test "x$enable_cap" = "xyes"; then
538 PKG_CHECK_MODULES(SQLITE3, sqlite3 >= 3.3,,[ 565 PKG_CHECK_MODULES(SQLITE3, sqlite3 >= 3.3,,[
539 AC_MSG_RESULT(no) 566 AC_MSG_RESULT(no)
540 enable_cap="no" 567 AC_MSG_ERROR([
541 ]) 568 sqlite3 development headers not found.
569 Use --disable-cap if you do not need the Contact Availability Prediction plugin.
570 ])])
542 fi 571 fi
543 572
544 573
545 else # GTK 574 else # GTK
546 enable_cap=no 575 enable_cap=no
673 [ AC_DEFINE(GST_CAN_DISABLE_FORKING, [], 702 [ AC_DEFINE(GST_CAN_DISABLE_FORKING, [],
674 [Define if gst_registry_fork_set_enabled exists])], 703 [Define if gst_registry_fork_set_enabled exists])],
675 [], [$GSTREAMER_LIBS]) 704 [], [$GSTREAMER_LIBS])
676 ], [ 705 ], [
677 AC_MSG_RESULT(no) 706 AC_MSG_RESULT(no)
678 enable_gst="no" 707 AC_MSG_ERROR([
679 ]) 708 GStreamer development headers not found.
709 Use --disable-gstreamer if you do not need GStreamer (sound) support.
710 ])])
680 fi 711 fi
681 712
682 dnl ####################################################################### 713 dnl #######################################################################
683 dnl # Check for Meanwhile headers (for Sametime) 714 dnl # Check for Meanwhile headers (for Sametime)
684 dnl ####################################################################### 715 dnl #######################################################################
685 PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [ 716 AC_ARG_ENABLE(meanwhile,
686 have_meanwhile="yes" 717 [AC_HELP_STRING([--disable-meanwhile],
687 ], [ 718 [compile without meanwhile (required for Sametime support)])],
688 have_meanwhile="no" 719 enable_meanwhile="$enableval", enable_meanwhile="yes")
689 ]) 720 if test "x$enable_meanwhile" = "xyes"; then
721 PKG_CHECK_MODULES(MEANWHILE, [meanwhile >= 1.0.0 meanwhile < 2.0.0], [
722 have_meanwhile="yes"
723 ], [
724 have_meanwhile="no"
725 AC_MSG_ERROR([
726 Meanwhile development headers not found.
727 Use --disable-meanwhile if you do not need meanwhile (Sametime) support.
728 ])])
729 fi
690 AC_SUBST(MEANWHILE_CFLAGS) 730 AC_SUBST(MEANWHILE_CFLAGS)
691 AC_SUBST(MEANWHILE_LIBS) 731 AC_SUBST(MEANWHILE_LIBS)
692 732
693 dnl ####################################################################### 733 dnl #######################################################################
694 dnl # Check for Native Avahi headers (for Bonjour) 734 dnl # Check for Native Avahi headers (for Bonjour)
695 dnl ####################################################################### 735 dnl #######################################################################
736 AC_ARG_ENABLE(avahi,
737 [AC_HELP_STRING([--disable-avahi],
738 [compile without avahi (required for Bonjour support)])],
739 enable_avahi="$enableval", enable_avahi="yes")
696 AC_ARG_WITH(avahi-client-includes, [AC_HELP_STRING([--with-avahi-client-includes=DIR], [compile the Bonjour plugin against the Avahi Client includes in DIR])], [ac_avahi_client_includes="$withval"], [ac_avahi_client_includes="no"]) 740 AC_ARG_WITH(avahi-client-includes, [AC_HELP_STRING([--with-avahi-client-includes=DIR], [compile the Bonjour plugin against the Avahi Client includes in DIR])], [ac_avahi_client_includes="$withval"], [ac_avahi_client_includes="no"])
697 AC_ARG_WITH(avahi-client-libs, [AC_HELP_STRING([--with-avahi-client-libs=DIR], [compile the Bonjour plugin against the Avahi Client libs in DIR])], [ac_avahi_client_libs="$withval"], [ac_avahi_client_libs="no"]) 741 AC_ARG_WITH(avahi-client-libs, [AC_HELP_STRING([--with-avahi-client-libs=DIR], [compile the Bonjour plugin against the Avahi Client libs in DIR])], [ac_avahi_client_libs="$withval"], [ac_avahi_client_libs="no"])
698 AVAHI_CFLAGS="" 742 AVAHI_CFLAGS=""
699 AVAHI_LIBS="" 743 AVAHI_LIBS=""
700 744
722 if test "$ac_avahi_client_libs" != "no"; then 766 if test "$ac_avahi_client_libs" != "no"; then
723 AVAHI_LIBS="-L$ac_avahi_client_libs -lavahi-common -lavahi-client -lavahi-glib " 767 AVAHI_LIBS="-L$ac_avahi_client_libs -lavahi-common -lavahi-client -lavahi-glib "
724 fi 768 fi
725 AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS) 769 AC_CHECK_LIB(avahi-client, avahi_client_new, [avahilibs=yes], [avahilibs=no], $AVAHI_LIBS)
726 770
771 if test "x$enable_avahi" = "xyes" -a \( "x$avahiincludes" = "xno" -o "x$avahilibs" = "xno" \); then
772 AC_MSG_ERROR([
773 avahi development headers not found.
774 Use --disable-avahi if you do not need avahi (Bonjour) support.
775 ])
776 fi
727 AC_SUBST(AVAHI_CFLAGS) 777 AC_SUBST(AVAHI_CFLAGS)
728 AC_SUBST(AVAHI_LIBS) 778 AC_SUBST(AVAHI_LIBS)
729 779
730 780
731 dnl ####################################################################### 781 dnl #######################################################################
1148 if test "x$enable_dbus" = "xyes" ; then 1198 if test "x$enable_dbus" = "xyes" ; then
1149 AC_CHECK_PROG(enable_dbus, dbus-binding-tool, yes, no) 1199 AC_CHECK_PROG(enable_dbus, dbus-binding-tool, yes, no)
1150 fi 1200 fi
1151 1201
1152 if test "x$enable_dbus" = "xyes" ; then 1202 if test "x$enable_dbus" = "xyes" ; then
1153 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.35 dbus-glib-1 >= 0.35], [ 1203 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60], [
1154 AC_SUBST(DBUS_CFLAGS) 1204 AC_SUBST(DBUS_CFLAGS)
1155 AC_SUBST(DBUS_LIBS) 1205 AC_SUBST(DBUS_LIBS)
1156 enable_dbus=yes 1206 enable_dbus=yes
1157 ], [ 1207 ], [
1158 enable_dbus=no 1208 AC_MSG_ERROR([
1159 ]) 1209 D-Bus development headers not found.
1210 Use --disable-dbus if you do not need D-Bus support.
1211 ])])
1160 1212
1161 dnl Check for libnm_glib; if we don't have it, oh well 1213 dnl Check for libnm_glib; if we don't have it, oh well
1162 if test "x$enable_libnm" = "xyes" ; then 1214 if test "x$enable_libnm" = "xyes" ; then
1163 LIBNM_CFLAGS="" 1215 LIBNM_CFLAGS=""
1164 LIBNM_LIBS="" 1216 LIBNM_LIBS=""
1167 AC_DEFINE(HAVE_LIBNM, 1, [Define if you have NetworkManager]) 1219 AC_DEFINE(HAVE_LIBNM, 1, [Define if you have NetworkManager])
1168 enable_libnm=yes 1220 enable_libnm=yes
1169 ], 1221 ],
1170 [ 1222 [
1171 AC_MSG_RESULT(no) 1223 AC_MSG_RESULT(no)
1172 enable_libnm=no 1224 AC_MSG_ERROR([
1173 ]) 1225 NetworkManager development headers not found.
1226 Use --disable-nm if you do not need NetworkManager support.
1227 ])])
1174 AC_SUBST(LIBNM_CFLAGS) 1228 AC_SUBST(LIBNM_CFLAGS)
1175 AC_SUBST(LIBNM_LIBS) 1229 AC_SUBST(LIBNM_LIBS)
1176 fi 1230 fi
1177 else 1231 else
1178 enable_libnm=no 1232 enable_libnm=no
1316 AC_SUBST(MONO_CFLAGS) 1370 AC_SUBST(MONO_CFLAGS)
1317 AC_SUBST(MONO_LIBS) 1371 AC_SUBST(MONO_LIBS)
1318 enable_mono=yes 1372 enable_mono=yes
1319 ], [ 1373 ], [
1320 AC_MSG_RESULT(no) 1374 AC_MSG_RESULT(no)
1321 enable_mono=no 1375 AC_MSG_ERROR([
1376 Mono development headers not found.
1377 Use --disable-mono if you do not need Mono support.
1378 ])
1322 ]) 1379 ])
1323 if test x"$enable_mono" = x"yes"; then 1380 if test x"$enable_mono" = x"yes"; then
1324 oldLIBS="$LIBS" 1381 oldLIBS="$LIBS"
1325 LIBS="$LIBS $MONO_LIBS" 1382 LIBS="$LIBS $MONO_LIBS"
1326 AC_MSG_CHECKING(for libmono) 1383 AC_MSG_CHECKING(for libmono)
1351 AC_ARG_ENABLE(perl, [AC_HELP_STRING([--disable-perl], [compile without perl scripting])], , enable_perl=yes) 1408 AC_ARG_ENABLE(perl, [AC_HELP_STRING([--disable-perl], [compile without perl scripting])], , enable_perl=yes)
1352 1409
1353 if test "$enable_plugins" = no ; then 1410 if test "$enable_plugins" = no ; then
1354 enable_perl=no 1411 enable_perl=no
1355 fi 1412 fi
1356 1413 looked_for_perl="no"
1357 if test "$enable_perl" = yes ; then 1414 if test "$enable_perl" = yes ; then
1415 looked_for_perl="yes"
1358 AC_PATH_PROG(perlpath, perl) 1416 AC_PATH_PROG(perlpath, perl)
1359 AC_MSG_CHECKING(for Perl compile flags) 1417 AC_MSG_CHECKING(for Perl compile flags)
1360 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` 1418 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
1361 if test "_$PERL_CFLAGS" = _ ; then 1419 if test "_$PERL_CFLAGS" = _ ; then
1362 AC_MSG_RESULT([not found, building without perl.]) 1420 AC_MSG_RESULT([not found, building without perl.])
1479 PERL_CFLAGS= 1537 PERL_CFLAGS=
1480 PERL_LIBS= 1538 PERL_LIBS=
1481 AM_CONDITIONAL(USE_PERL, false) 1539 AM_CONDITIONAL(USE_PERL, false)
1482 fi 1540 fi
1483 1541
1542 if test "x$looked_for_perl" = "xyes" -a "x$enable_perl" = "xno"; then
1543 AC_MSG_ERROR([
1544 Perl development headers not found.
1545 Use --disable-perl if you do not need Perl scripting support.
1546 ])
1547 fi
1548
1484 dnl ####################################################################### 1549 dnl #######################################################################
1485 dnl # SSL support 1550 dnl # SSL support
1486 dnl # 1551 dnl #
1487 dnl # Thanks go to Evolution for the checks. 1552 dnl # Thanks go to Evolution for the checks.
1488 dnl ####################################################################### 1553 dnl #######################################################################
1489 1554
1490 dnl These two are inverses of each other <-- stolen from evolution! 1555 dnl These two are inverses of each other <-- stolen from evolution!
1491 1556
1492 AC_ARG_ENABLE(gnutls, 1557 AC_ARG_ENABLE(gnutls,
1493 [ --enable-gnutls=[yes,no] attempt to use GnuTLS for SSL support (preferred) [default=yes]], 1558 [ --enable-gnutls=[yes,no] attempt to use GnuTLS for SSL support [default=yes]],
1494 [enable_gnutls="$enableval"], 1559 [enable_gnutls="$enableval"],
1495 [enable_gnutls="yes"]) 1560 [enable_gnutls="yes"])
1496 1561
1497 AC_ARG_ENABLE(nss, 1562 AC_ARG_ENABLE(nss,
1498 [ --enable-nss=[yes,no,static] attempt to use Mozilla libnss for SSL support [default=yes]], 1563 [ --enable-nss=[yes,no,static] attempt to use Mozilla libnss for SSL support [default=yes]],
1499 [enable_nss="$enableval"], 1564 [enable_nss="$enableval"],
1500 [enable_nss="yes"]) 1565 [enable_nss="yes"])
1501 1566
1502 msg_ssl="None. MSN, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!" 1567 msg_ssl="None. MSN, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!"
1503 1568 looked_for_gnutls="no"
1504 dnl # 1569 dnl #
1505 dnl # Check for GnuTLS if it's specified. 1570 dnl # Check for GnuTLS if it's specified.
1506 dnl # 1571 dnl #
1507 if test "x$enable_gnutls" != "xno"; then 1572 if test "x$enable_gnutls" != "xno"; then
1508 enable_gnutls="no" 1573 enable_gnutls="no"
1509 prefix=`eval echo $prefix` 1574 prefix=`eval echo $prefix`
1575 looked_for_gnutls="yes"
1510 1576
1511 AC_ARG_WITH(gnutls-includes, 1577 AC_ARG_WITH(gnutls-includes,
1512 [ --with-gnutls-includes=PREFIX location of GnuTLS includes.], 1578 [ --with-gnutls-includes=PREFIX location of GnuTLS includes.],
1513 [ with_gnutls_includes="$withval" ], 1579 [ with_gnutls_includes="$withval" ],
1514 [ with_gnutls_includes="$prefix/include" ]) 1580 [ with_gnutls_includes="$prefix/include" ])
1588 1654
1589 1655
1590 dnl # 1656 dnl #
1591 dnl # Check for NSS if it's specified, or if GnuTLS checks failed. 1657 dnl # Check for NSS if it's specified, or if GnuTLS checks failed.
1592 dnl # 1658 dnl #
1659 looked_for_nss="no"
1593 if test "x$enable_nss" != "xno"; then 1660 if test "x$enable_nss" != "xno"; then
1661 looked_for_nss="yes"
1594 1662
1595 AC_ARG_WITH(nspr-includes, 1663 AC_ARG_WITH(nspr-includes,
1596 [AC_HELP_STRING([--with-nspr-includes=PREFIX], [specify location of Mozilla nspr4 includes.])], 1664 [AC_HELP_STRING([--with-nspr-includes=PREFIX], [specify location of Mozilla nspr4 includes.])],
1597 [with_nspr_includes="$withval"]) 1665 [with_nspr_includes="$withval"])
1598 1666
1868 msg_ssl="$msg_nss and $msg_gnutls" 1936 msg_ssl="$msg_nss and $msg_gnutls"
1869 elif test "x$msg_nss" != "x"; then 1937 elif test "x$msg_nss" != "x"; then
1870 msg_ssl=$msg_nss 1938 msg_ssl=$msg_nss
1871 elif test "x$msg_gnutls" != "x"; then 1939 elif test "x$msg_gnutls" != "x"; then
1872 msg_ssl=$msg_gnutls 1940 msg_ssl=$msg_gnutls
1941 elif test "x$looked_for_gnutls" = "xyes" -a "x$looked_for_nss" = "xyes"; then
1942 AC_MSG_ERROR([
1943 Neither GnuTLS or NSS SSL development headers found.
1944 Use --disable-nss --disable-gnutls if you do not need SSL support.
1945 MSN, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!
1946 ])
1947 elif test "x$looked_for_gnutls" = "xyes"; then
1948 AC_MSG_ERROR([
1949 GnuTLS SSL development headers not found.
1950 Use --disable-gnutls if you do not need SSL support.
1951 MSN, Novell Groupwise and Google Talk will not work without SSL support.
1952 ])
1953 elif test "x$looked_for_nss" = "xyes"; then
1954 AC_MSG_ERROR([
1955 NSS SSL development headers not found.
1956 Use --disable-nss if you do not need SSL support.
1957 MSN, Novell Groupwise and Google Talk will not work without SSL support.
1958 ])
1873 fi 1959 fi
1874 1960
1875 dnl ####################################################################### 1961 dnl #######################################################################
1876 dnl # Check for Tcl 1962 dnl # Check for Tcl
1877 dnl ####################################################################### 1963 dnl #######################################################################
1901 fi 1987 fi
1902 done 1988 done
1903 if test "$TCLCONFIG" = "no"; then 1989 if test "$TCLCONFIG" = "no"; then
1904 AC_MSG_RESULT([no]) 1990 AC_MSG_RESULT([no])
1905 enable_tcl=no 1991 enable_tcl=no
1992 AC_MSG_ERROR([
1993 Tcl development headers not found.
1994 Use --disable-tcl if you do not need Tcl scripting support.
1995 ])
1906 else 1996 else
1907 . $TCLCONFIG 1997 . $TCLCONFIG
1908 AC_MSG_CHECKING([Tcl version compatability]) 1998 AC_MSG_CHECKING([Tcl version compatability])
1909 if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then 1999 if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then
1910 AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 or later required]) 2000 AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 or later required])
1965 fi 2055 fi
1966 done 2056 done
1967 if test "$TKCONFIG" = "no"; then 2057 if test "$TKCONFIG" = "no"; then
1968 AC_MSG_RESULT([no]) 2058 AC_MSG_RESULT([no])
1969 enable_tk=no 2059 enable_tk=no
2060 AC_MSG_ERROR([
2061 Tk development headers not found.
2062 Use --disable-tk if you do not need Tk scripting support.
2063 ])
1970 else 2064 else
1971 . $TKCONFIG 2065 . $TKCONFIG
1972 eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\"" 2066 eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\""
1973 AC_MSG_CHECKING([for Tk linkability]) 2067 AC_MSG_CHECKING([for Tk linkability])
1974 oldCPPFLAGS=$CPPFLAGS 2068 oldCPPFLAGS=$CPPFLAGS
2132 2226
2133 dnl ####################################################################### 2227 dnl #######################################################################
2134 dnl # Check for check 2228 dnl # Check for check
2135 dnl ####################################################################### 2229 dnl #######################################################################
2136 PKG_CHECK_MODULES(CHECK,[check >= 0.9.4],:,[ 2230 PKG_CHECK_MODULES(CHECK,[check >= 0.9.4],:,[
2137 ifdef([AM_PATH_CHECK], 2231 ifdef([[AM_PATH_CHECK]],
2138 [AM_PATH_CHECK(0.8.2,:,:)], 2232 [AM_PATH_CHECK(0.8.2,:,:)],
2139 [AC_MSG_RESULT([no, testing is disabled])]) 2233 [AC_MSG_RESULT([no, testing is disabled])])
2140 ]) 2234 ])
2141 AM_CONDITIONAL(HAVE_CHECK, [test "x$CHECK_LIBS" != "x"]) 2235 AM_CONDITIONAL(HAVE_CHECK, [test "x$CHECK_LIBS" != "x"])
2142 AC_SUBST(CHECK_CFLAGS) 2236 AC_SUBST(CHECK_CFLAGS)