Mercurial > hg > xemacs-beta
comparison configure.ac @ 2663:d5a00a8fb31a
[xemacs-hg @ 2005-03-14 12:22:16 by malcolmp]
configure.ac: Check $ac_cv_build, not $canonical, when working out whether to
link against libossaudio.so on NetBSD.
author | malcolmp |
---|---|
date | Mon, 14 Mar 2005 12:22:22 +0000 |
parents | 3580ae2ce979 |
children | 4f72b178ae35 |
comparison
equal
deleted
inserted
replaced
2662:5d63eacf17f1 | 2663:d5a00a8fb31a |
---|---|
1198 | 1198 |
1199 case "$ac_cv_build" in | 1199 case "$ac_cv_build" in |
1200 | 1200 |
1201 dnl NetBSD ports | 1201 dnl NetBSD ports |
1202 *-*-netbsd* ) | 1202 *-*-netbsd* ) |
1203 case "ac_cv_build" in | 1203 case "${ac_cv_build}" in |
1204 i[[3-9]]86-*-netbsd*) machine=intel386 ;; | 1204 i[[3-9]]86-*-netbsd*) machine=intel386 ;; |
1205 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* ) | 1205 hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* ) |
1206 dnl Yes, this is somewhat bogus. | 1206 dnl Yes, this is somewhat bogus. |
1207 machine=hp9000s300 ;; | 1207 machine=hp9000s300 ;; |
1208 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;; | 1208 pc532-*-netbsd* | ns32k-*-netbsd* ) machine=ns32000 ;; |
4728 dnl Check for Linux/BSD native sound (also on recent Cygwins) | 4728 dnl Check for Linux/BSD native sound (also on recent Cygwins) |
4729 if test -z "$sound_found"; then | 4729 if test -z "$sound_found"; then |
4730 for dir in "machine" "sys" "linux"; do | 4730 for dir in "machine" "sys" "linux"; do |
4731 AC_CHECK_HEADER([${dir}/soundcard.h], [ | 4731 AC_CHECK_HEADER([${dir}/soundcard.h], [ |
4732 sound_found=yes | 4732 sound_found=yes |
4733 case "$canonical" in | 4733 case "${ac_cv_build}" in |
4734 *netbsd* ) | 4734 *netbsd* ) |
4735 # #### this is probably not the right way to do this | 4735 # #### this is probably not the right way to do this |
4736 # we should port to native NetBSD stuff | 4736 # we should port to native NetBSD stuff |
4737 | |
4738 dnl Aidan says: We have other things to be doing. If some | |
4739 dnl energetic NetBSD partisan volunteers, then yeah, cool, | |
4740 dnl but as it is, this works, and is unlikely to stop | |
4741 dnl working any time soon. | |
4742 | |
4737 AC_CHECK_LIB(ossaudio, _oss_ioctl, | 4743 AC_CHECK_LIB(ossaudio, _oss_ioctl, |
4738 [native_sound_lib=-lossaudio | 4744 [with_native_sound_lib=-lossaudio |
4739 AC_MSG_WARN([Using NetBSD-deprecated -lossaudio])], | 4745 AC_MSG_WARN([Using NetBSD-deprecated -lossaudio])], |
4740 [sound_found=no]) | 4746 [sound_found=no]) |
4741 ;; | 4747 ;; |
4742 dnl Aidan sez: OpenBSD as well can use Linux's sound API, and needs | 4748 dnl Aidan sez: OpenBSD as well can use Linux's sound API, and needs |
4743 dnl the same library. Add here! | 4749 dnl the same library. Add here! |