Mercurial > emacs
comparison configure.in @ 90428:a8190f7e546e
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 285-296)
- Update from CVS
- Merge from gnus--rel--5.10
- Update from CVS: admin/FOR-RELEASE: Update refcard section.
* gnus--rel--5.10 (patch 102-104)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-64
author | Miles Bader <miles@gnu.org> |
---|---|
date | Wed, 07 Jun 2006 18:05:10 +0000 |
parents | bf2bc4490b64 2b8661046f9e |
children | 8a8e69664178 |
comparison
equal
deleted
inserted
replaced
90427:ddb25860d044 | 90428:a8190f7e546e |
---|---|
1487 AC_CONFIG_LIBOBJ_DIR(src) | 1487 AC_CONFIG_LIBOBJ_DIR(src) |
1488 | 1488 |
1489 dnl Do this early because it can frob feature test macros for Unix-98 &c. | 1489 dnl Do this early because it can frob feature test macros for Unix-98 &c. |
1490 AC_SYS_LARGEFILE | 1490 AC_SYS_LARGEFILE |
1491 | 1491 |
1492 | |
1493 dnl This function defintion taken from Gnome 2.0 | |
1494 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) | |
1495 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page | |
1496 dnl also defines GSTUFF_PKG_ERRORS on error | |
1497 AC_DEFUN([PKG_CHECK_MODULES], [ | |
1498 succeeded=no | |
1499 | |
1500 if test -z "$PKG_CONFIG"; then | |
1501 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | |
1502 fi | |
1503 | |
1504 if test "$PKG_CONFIG" = "no" ; then | |
1505 ifelse([$4], , [AC_MSG_ERROR([ | |
1506 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config.])], [$4]) | |
1507 else | |
1508 PKG_CONFIG_MIN_VERSION=0.9.0 | |
1509 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
1510 AC_MSG_CHECKING(for $2) | |
1511 | |
1512 if $PKG_CONFIG --exists "$2" ; then | |
1513 AC_MSG_RESULT(yes) | |
1514 succeeded=yes | |
1515 | |
1516 AC_MSG_CHECKING($1_CFLAGS) | |
1517 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` | |
1518 AC_MSG_RESULT($$1_CFLAGS) | |
1519 | |
1520 AC_MSG_CHECKING($1_LIBS) | |
1521 $1_LIBS=`$PKG_CONFIG --libs "$2"` | |
1522 AC_MSG_RESULT($$1_LIBS) | |
1523 else | |
1524 AC_MSG_RESULT(no) | |
1525 $1_CFLAGS="" | |
1526 $1_LIBS="" | |
1527 ## If we have a custom action on failure, don't print errors, but | |
1528 ## do set a variable so people can do so. | |
1529 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` | |
1530 ifelse([$4], ,echo $$1_PKG_ERRORS,) | |
1531 fi | |
1532 | |
1533 AC_SUBST($1_CFLAGS) | |
1534 AC_SUBST($1_LIBS) | |
1535 else | |
1536 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
1537 echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
1538 fi | |
1539 fi | |
1540 | |
1541 if test $succeeded = yes; then | |
1542 ifelse([$3], , :, [$3]) | |
1543 else | |
1544 ifelse([$4], , [AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.])], [$4]) | |
1545 fi | |
1546 ]) | |
1547 | |
1548 | |
1492 if test "${with_sound}" != "no"; then | 1549 if test "${with_sound}" != "no"; then |
1493 # Sound support for GNU/Linux and the free BSDs. | 1550 # Sound support for GNU/Linux and the free BSDs. |
1494 AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h soundcard.h) | 1551 AC_CHECK_HEADERS(machine/soundcard.h sys/soundcard.h soundcard.h) |
1495 # Emulation library used on NetBSD. | 1552 # Emulation library used on NetBSD. |
1496 AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=) | 1553 AC_CHECK_LIB(ossaudio, _oss_ioctl, LIBSOUND=-lossaudio, LIBSOUND=) |
1497 AC_SUBST(LIBSOUND) | 1554 AC_SUBST(LIBSOUND) |
1555 | |
1556 ALSA_REQUIRED=1.0.0 | |
1557 ALSA_MODULES="alsa >= $ALSA_REQUIRED" | |
1558 dnl Check if --with-pkg-config-prog has been given. | |
1559 if test "X${with_pkg_config_prog}" != X; then | |
1560 PKG_CONFIG="${with_pkg_config_prog}" | |
1561 fi | |
1562 PKG_CHECK_MODULES(ALSA, $ALSA_MODULES, HAVE_ALSA=yes, HAVE_ALSA=no) | |
1563 if test $HAVE_ALSA = yes; then | |
1564 LIBSOUND="$LIBSOUND $ALSA_LIBS" | |
1565 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" | |
1566 AC_DEFINE(HAVE_ALSA, 1, [Define to 1 if ALSA is available.]) | |
1567 fi | |
1568 AC_SUBST(CFLAGS_SOUND) | |
1498 fi | 1569 fi |
1499 | 1570 |
1500 dnl checks for header files | 1571 dnl checks for header files |
1501 AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ | 1572 AC_CHECK_HEADERS(sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ |
1502 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ | 1573 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ |
1949 else | 2020 else |
1950 HAVE_X11R5=no | 2021 HAVE_X11R5=no |
1951 AC_MSG_RESULT(before 5) | 2022 AC_MSG_RESULT(before 5) |
1952 fi | 2023 fi |
1953 fi | 2024 fi |
1954 | |
1955 dnl This function defintion taken from Gnome 2.0 | |
1956 dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not) | |
1957 dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page | |
1958 dnl also defines GSTUFF_PKG_ERRORS on error | |
1959 AC_DEFUN([PKG_CHECK_MODULES], [ | |
1960 succeeded=no | |
1961 | |
1962 if test -z "$PKG_CONFIG"; then | |
1963 AC_PATH_PROG(PKG_CONFIG, pkg-config, no) | |
1964 fi | |
1965 | |
1966 if test "$PKG_CONFIG" = "no" ; then | |
1967 echo "*** The pkg-config script could not be found. Make sure it is" | |
1968 echo "*** in your path, or give the full path to pkg-config with" | |
1969 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog." | |
1970 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
1971 else | |
1972 PKG_CONFIG_MIN_VERSION=0.9.0 | |
1973 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
1974 AC_MSG_CHECKING(for $2) | |
1975 | |
1976 if $PKG_CONFIG --exists "$2" ; then | |
1977 AC_MSG_RESULT(yes) | |
1978 succeeded=yes | |
1979 | |
1980 AC_MSG_CHECKING($1_CFLAGS) | |
1981 $1_CFLAGS=`$PKG_CONFIG --cflags "$2"` | |
1982 AC_MSG_RESULT($$1_CFLAGS) | |
1983 | |
1984 AC_MSG_CHECKING($1_LIBS) | |
1985 $1_LIBS=`$PKG_CONFIG --libs "$2"` | |
1986 AC_MSG_RESULT($$1_LIBS) | |
1987 else | |
1988 $1_CFLAGS="" | |
1989 $1_LIBS="" | |
1990 ## If we have a custom action on failure, don't print errors, but | |
1991 ## do set a variable so people can do so. | |
1992 $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` | |
1993 ifelse([$4], ,echo $$1_PKG_ERRORS,) | |
1994 fi | |
1995 | |
1996 AC_SUBST($1_CFLAGS) | |
1997 AC_SUBST($1_LIBS) | |
1998 else | |
1999 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
2000 echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
2001 fi | |
2002 fi | |
2003 | |
2004 if test $succeeded = yes; then | |
2005 ifelse([$3], , :, [$3]) | |
2006 else | |
2007 ifelse([$4], , [AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.])], [$4]) | |
2008 fi | |
2009 ]) | |
2010 | 2025 |
2011 HAVE_GTK=no | 2026 HAVE_GTK=no |
2012 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then | 2027 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then |
2013 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then | 2028 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then |
2014 AC_MSG_ERROR([Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}]); | 2029 AC_MSG_ERROR([Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}]); |
3008 #define HAVE_SOUND 1 | 3023 #define HAVE_SOUND 1 |
3009 #endif | 3024 #endif |
3010 #ifdef HAVE_SOUNDCARD_H | 3025 #ifdef HAVE_SOUNDCARD_H |
3011 #define HAVE_SOUND 1 | 3026 #define HAVE_SOUND 1 |
3012 #endif | 3027 #endif |
3028 #ifdef HAVE_ALSA | |
3029 #define HAVE_SOUND 1 | |
3030 #endif | |
3013 #endif /* __FreeBSD__ || __NetBSD__ || __linux__ */ | 3031 #endif /* __FreeBSD__ || __NetBSD__ || __linux__ */ |
3014 | 3032 |
3015 /* If using GNU, then support inline function declarations. */ | 3033 /* If using GNU, then support inline function declarations. */ |
3016 /* Don't try to switch on inline handling as detected by AC_C_INLINE | 3034 /* Don't try to switch on inline handling as detected by AC_C_INLINE |
3017 generally, because even if non-gcc compilers accept `inline', they | 3035 generally, because even if non-gcc compilers accept `inline', they |