summaryrefslogtreecommitdiff
path: root/editors/emacs-snapshot/patches/patch-aa
blob: d48d5d37fd5a0469e1b9046b07887f764e379758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-aa,v 1.5 2013/02/12 04:47:31 minskim Exp $

Add DragonFly configuration.

--- configure.ac.orig	2013-02-07 14:39:42.000000000 +0000
+++ configure.ac
@@ -428,6 +428,15 @@ case "${canonical}" in
     opsys=gnu-linux
   ;;
 
+  ## DragonFly ports
+  *-*-dragonfly*)
+    opsys=dragonfly
+    case "${canonical}" in
+      i[3456]86-*-dragonfly*)     machine=intel386 ;;
+      amd64-*-dragonfly*|x86_64-*-dragonfly*) machine=amdx86-64 ;;
+    esac
+  ;;
+
   ## FreeBSD ports
   *-*-freebsd* )
     opsys=freebsd
@@ -1014,6 +1023,8 @@ case "$opsys" in
 
   freebsd) LIBS_SYSTEM="-lutil" ;;
 
+  dragonfly) LIBS_SYSTEM="-ltermlib" ;;
+
   hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
 
   sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
@@ -1071,6 +1082,10 @@ case $opsys in
     LIB_STANDARD=-lc
     START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
     ;;
+  dragonfly )
+    LIB_STANDARD=-lc
+    START_FILES='$(CRT_DIR)/crt1.o'
+    ;;
   dnl NB this may be adjusted below.
   netbsd | openbsd )
     LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'