Merge from vendor branch TNF:
[pkgsrc.git] / editors / xemacs / patches / patch-af
1 $NetBSD: patch-af,v 1.2 1999/06/29 23:13:41 tron Exp $
2
3 --- configure.in.orig   Sun Aug 15 03:29:49 1999
4 +++ configure.in        Mon Dec  6 11:20:27 1999
5 @@ -1027,6 +1027,7 @@
6  
7  dnl Straightforward machine determination
8  case "$canonical" in
9 +  arm-*-*         ) machine=arm ;;
10    sparc-*-*        ) machine=sparc ;;
11    alpha*-*-*       ) machine=alpha ;;
12    vax-*-*          ) machine=vax ;;
13 @@ -1101,10 +1102,10 @@
14      case "$canonical" in
15        i[[3-9]]86-*-netbsd*) machine=intel386 ;;
16        hp300-*-netbsd* | amiga-*-netbsd* | sun3-*-netbsd* | mac68k-*-netbsd* | da30-*-netbsd* | m68k-*-netbsd* )
17 -                      dnl Yes, this is somewhat bogus.
18 -                      machine=hp9000s300 ;;
19 +                      machine=m68k ;;
20        pc532-*-netbsd* | ns32k-*-netbsd* )  machine=ns32000 ;;
21        pmax-*-netbsd*  | mips-*-netbsd*  )  machine=pmax ;;
22 +      alpha-*-netbsd* ) machine=alpha ;;
23      esac
24    ;;
25  
26 @@ -1941,7 +1942,7 @@
27      decosf* | linux* | irix*) dash_r="-rpath " ;;
28      *)
29        dash_r=""
30 -      for try_dash_r in "-R" "-R " "-rpath "; do
31 +      for try_dash_r in "-Wl,-R" "-R" "-R " "-rpath "; do
32          xe_check_libs="${try_dash_r}/no/such/file-or-directory"
33          XE_PROTECT_LINKER_FLAGS(xe_check_libs)
34          AC_TRY_LINK(, , dash_r="$try_dash_r")
35 @@ -3485,6 +3486,9 @@
36      eval "with_${feature}=no"
37    done
38  fi dnl with_tty
39 +
40 +AC_CHECK_LIB(ossaudio, main, LIBOSSAUDIO=-lossaudio)
41 +AC_SUBST(LIBOSSAUDIO)
42  
43  dnl Do we need event-unixoid.o ?
44  test "$with_x11" = "yes" -o "$with_tty" = "yes" && XE_ADD_OBJS(event-unixoid.o)