comparison configure.ac @ 22615:0f8fe131008a

Make ./configure fail immediately if requirements for enabled options are not met. This should provide more reproducible feature sets for users instead of picking up what development packages happen to be installed when they compile. Options can of course be disabled with the --disable-XXX arguments. Some of the cases that this will now fail on by default may not be considered essential, if people feel that about any of them then we should switch the features to disabled by default.
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 02 Apr 2008 16:45:07 +0000
parents 8cc5ba6f9081
children 589803e5ce7b
comparison
equal deleted inserted replaced
22614:8cc5ba6f9081 22615:0f8fe131008a
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 #######################################################################
1154 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60], [ 1204 PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60 dbus-glib-1 >= 0.60], [
1155 AC_SUBST(DBUS_CFLAGS) 1205 AC_SUBST(DBUS_CFLAGS)
1156 AC_SUBST(DBUS_LIBS) 1206 AC_SUBST(DBUS_LIBS)
1157 enable_dbus=yes 1207 enable_dbus=yes
1158 ], [ 1208 ], [
1159 enable_dbus=no 1209 AC_MSG_ERROR([
1160 ]) 1210 D-Bus development headers not found.
1211 Use --disable-dbus if you do not need D-Bus support.
1212 ])])
1161 1213
1162 dnl Check for libnm_glib; if we don't have it, oh well 1214 dnl Check for libnm_glib; if we don't have it, oh well
1163 if test "x$enable_libnm" = "xyes" ; then 1215 if test "x$enable_libnm" = "xyes" ; then
1164 LIBNM_CFLAGS="" 1216 LIBNM_CFLAGS=""
1165 LIBNM_LIBS="" 1217 LIBNM_LIBS=""
1168 AC_DEFINE(HAVE_LIBNM, 1, [Define if you have NetworkManager]) 1220 AC_DEFINE(HAVE_LIBNM, 1, [Define if you have NetworkManager])
1169 enable_libnm=yes 1221 enable_libnm=yes
1170 ], 1222 ],
1171 [ 1223 [
1172 AC_MSG_RESULT(no) 1224 AC_MSG_RESULT(no)
1173 enable_libnm=no 1225 AC_MSG_ERROR([
1174 ]) 1226 NetworkManager development headers not found.
1227 Use --disable-nm if you do not need NetworkManager support.
1228 ])])
1175 AC_SUBST(LIBNM_CFLAGS) 1229 AC_SUBST(LIBNM_CFLAGS)
1176 AC_SUBST(LIBNM_LIBS) 1230 AC_SUBST(LIBNM_LIBS)
1177 fi 1231 fi
1178 else 1232 else
1179 enable_libnm=no 1233 enable_libnm=no
1317 AC_SUBST(MONO_CFLAGS) 1371 AC_SUBST(MONO_CFLAGS)
1318 AC_SUBST(MONO_LIBS) 1372 AC_SUBST(MONO_LIBS)
1319 enable_mono=yes 1373 enable_mono=yes
1320 ], [ 1374 ], [
1321 AC_MSG_RESULT(no) 1375 AC_MSG_RESULT(no)
1322 enable_mono=no 1376 AC_MSG_ERROR([
1377 Mono development headers not found.
1378 Use --disable-mono if you do not need Mono support.
1379 ])
1323 ]) 1380 ])
1324 if test x"$enable_mono" = x"yes"; then 1381 if test x"$enable_mono" = x"yes"; then
1325 oldLIBS="$LIBS" 1382 oldLIBS="$LIBS"
1326 LIBS="$LIBS $MONO_LIBS" 1383 LIBS="$LIBS $MONO_LIBS"
1327 AC_MSG_CHECKING(for libmono) 1384 AC_MSG_CHECKING(for libmono)
1352 AC_ARG_ENABLE(perl, [AC_HELP_STRING([--disable-perl], [compile without perl scripting])], , enable_perl=yes) 1409 AC_ARG_ENABLE(perl, [AC_HELP_STRING([--disable-perl], [compile without perl scripting])], , enable_perl=yes)
1353 1410
1354 if test "$enable_plugins" = no ; then 1411 if test "$enable_plugins" = no ; then
1355 enable_perl=no 1412 enable_perl=no
1356 fi 1413 fi
1357 1414 looked_for_perl="no"
1358 if test "$enable_perl" = yes ; then 1415 if test "$enable_perl" = yes ; then
1416 looked_for_perl="yes"
1359 AC_PATH_PROG(perlpath, perl) 1417 AC_PATH_PROG(perlpath, perl)
1360 AC_MSG_CHECKING(for Perl compile flags) 1418 AC_MSG_CHECKING(for Perl compile flags)
1361 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` 1419 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
1362 if test "_$PERL_CFLAGS" = _ ; then 1420 if test "_$PERL_CFLAGS" = _ ; then
1363 AC_MSG_RESULT([not found, building without perl.]) 1421 AC_MSG_RESULT([not found, building without perl.])
1480 PERL_CFLAGS= 1538 PERL_CFLAGS=
1481 PERL_LIBS= 1539 PERL_LIBS=
1482 AM_CONDITIONAL(USE_PERL, false) 1540 AM_CONDITIONAL(USE_PERL, false)
1483 fi 1541 fi
1484 1542
1543 if test "x$looked_for_perl" = "xyes" -a "x$enable_perl" = "xno"; then
1544 AC_MSG_ERROR([
1545 Perl development headers not found.
1546 Use --disable-perl if you do not need Perl scripting support.
1547 ])
1548 fi
1549
1485 dnl ####################################################################### 1550 dnl #######################################################################
1486 dnl # SSL support 1551 dnl # SSL support
1487 dnl # 1552 dnl #
1488 dnl # Thanks go to Evolution for the checks. 1553 dnl # Thanks go to Evolution for the checks.
1489 dnl ####################################################################### 1554 dnl #######################################################################
1499 [ --enable-nss=[yes,no,static] attempt to use Mozilla libnss for SSL support [default=yes]], 1564 [ --enable-nss=[yes,no,static] attempt to use Mozilla libnss for SSL support [default=yes]],
1500 [enable_nss="$enableval"], 1565 [enable_nss="$enableval"],
1501 [enable_nss="yes"]) 1566 [enable_nss="yes"])
1502 1567
1503 msg_ssl="None. MSN, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!" 1568 msg_ssl="None. MSN, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!"
1504 1569 looked_for_gnutls="no"
1505 dnl # 1570 dnl #
1506 dnl # Check for GnuTLS if it's specified. 1571 dnl # Check for GnuTLS if it's specified.
1507 dnl # 1572 dnl #
1508 if test "x$enable_gnutls" != "xno"; then 1573 if test "x$enable_gnutls" != "xno"; then
1509 enable_gnutls="no" 1574 enable_gnutls="no"
1510 prefix=`eval echo $prefix` 1575 prefix=`eval echo $prefix`
1576 looked_for_gnutls="yes"
1511 1577
1512 AC_ARG_WITH(gnutls-includes, 1578 AC_ARG_WITH(gnutls-includes,
1513 [ --with-gnutls-includes=PREFIX location of GnuTLS includes.], 1579 [ --with-gnutls-includes=PREFIX location of GnuTLS includes.],
1514 [ with_gnutls_includes="$withval" ], 1580 [ with_gnutls_includes="$withval" ],
1515 [ with_gnutls_includes="$prefix/include" ]) 1581 [ with_gnutls_includes="$prefix/include" ])
1589 1655
1590 1656
1591 dnl # 1657 dnl #
1592 dnl # Check for NSS if it's specified, or if GnuTLS checks failed. 1658 dnl # Check for NSS if it's specified, or if GnuTLS checks failed.
1593 dnl # 1659 dnl #
1660 looked_for_nss="no"
1594 if test "x$enable_nss" != "xno"; then 1661 if test "x$enable_nss" != "xno"; then
1662 looked_for_nss="yes"
1595 1663
1596 AC_ARG_WITH(nspr-includes, 1664 AC_ARG_WITH(nspr-includes,
1597 [AC_HELP_STRING([--with-nspr-includes=PREFIX], [specify location of Mozilla nspr4 includes.])], 1665 [AC_HELP_STRING([--with-nspr-includes=PREFIX], [specify location of Mozilla nspr4 includes.])],
1598 [with_nspr_includes="$withval"]) 1666 [with_nspr_includes="$withval"])
1599 1667
1869 msg_ssl="$msg_nss and $msg_gnutls" 1937 msg_ssl="$msg_nss and $msg_gnutls"
1870 elif test "x$msg_nss" != "x"; then 1938 elif test "x$msg_nss" != "x"; then
1871 msg_ssl=$msg_nss 1939 msg_ssl=$msg_nss
1872 elif test "x$msg_gnutls" != "x"; then 1940 elif test "x$msg_gnutls" != "x"; then
1873 msg_ssl=$msg_gnutls 1941 msg_ssl=$msg_gnutls
1942 elif test "x$looked_for_gnutls" = "xyes" -a "x$looked_for_nss" = "xyes"; then
1943 AC_MSG_ERROR([
1944 Neither GnuTLS or NSS SSL development headers found.
1945 Use --disable-nss --disable-gnutls if you do not need SSL support.
1946 MSN, Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!
1947 ])
1948 elif test "x$looked_for_gnutls" = "xyes"; then
1949 AC_MSG_ERROR([
1950 GnuTLS SSL development headers not found.
1951 Use --disable-gnutls if you do not need SSL support.
1952 MSN, Novell Groupwise and Google Talk will not work without SSL support.
1953 ])
1954 elif test "x$looked_for_nss" = "xyes"; then
1955 AC_MSG_ERROR([
1956 NSS SSL development headers not found.
1957 Use --disable-nss if you do not need SSL support.
1958 MSN, Novell Groupwise and Google Talk will not work without SSL support.
1959 ])
1874 fi 1960 fi
1875 1961
1876 dnl ####################################################################### 1962 dnl #######################################################################
1877 dnl # Check for Tcl 1963 dnl # Check for Tcl
1878 dnl ####################################################################### 1964 dnl #######################################################################
1902 fi 1988 fi
1903 done 1989 done
1904 if test "$TCLCONFIG" = "no"; then 1990 if test "$TCLCONFIG" = "no"; then
1905 AC_MSG_RESULT([no]) 1991 AC_MSG_RESULT([no])
1906 enable_tcl=no 1992 enable_tcl=no
1993 AC_MSG_ERROR([
1994 Tcl development headers not found.
1995 Use --disable-tcl if you do not need Tcl scripting support.
1996 ])
1907 else 1997 else
1908 . $TCLCONFIG 1998 . $TCLCONFIG
1909 AC_MSG_CHECKING([Tcl version compatability]) 1999 AC_MSG_CHECKING([Tcl version compatability])
1910 if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then 2000 if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then
1911 AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 or later required]) 2001 AC_MSG_RESULT([bad, $TCL_VERSION found but 8.3 or later required])
1966 fi 2056 fi
1967 done 2057 done
1968 if test "$TKCONFIG" = "no"; then 2058 if test "$TKCONFIG" = "no"; then
1969 AC_MSG_RESULT([no]) 2059 AC_MSG_RESULT([no])
1970 enable_tk=no 2060 enable_tk=no
2061 AC_MSG_ERROR([
2062 Tk development headers not found.
2063 Use --disable-tk if you do not need Tk scripting support.
2064 ])
1971 else 2065 else
1972 . $TKCONFIG 2066 . $TKCONFIG
1973 eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\"" 2067 eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\""
1974 AC_MSG_CHECKING([for Tk linkability]) 2068 AC_MSG_CHECKING([for Tk linkability])
1975 oldCPPFLAGS=$CPPFLAGS 2069 oldCPPFLAGS=$CPPFLAGS