aboutsummaryrefslogtreecommitdiffstats
path: root/lang/sr/files/patch-aa
blob: 01b67d7c514ec4914181940d94775b3c3c812192 (plain) (blame)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--- configure.orig  Wed Dec 13 13:46:18 1995
+++ configure   Sun Jun 29 02:25:13 1997
@@ -77,6 +77,7 @@
 XINCL=/usr/include
 if [ -d /usr/X11/include/X11 ]; then XINCL=/usr/X11/include; fi
 if [ -d /usr/openwin/include/X11 ]; then XINCL=/usr/openwin/include; fi
+if [ -d ${X11BASE}/include/X11 ]; then XINCL=${X11BASE}/include; fi
 if [ ! -d $XINCL/X11 ]; then XINCL=; fi
 
 XTANGO=/home/sr/xtango/include
@@ -125,6 +126,19 @@
     LIBM="-lm -lc"
 fi
 
+# on FreeBSD, set X11R6 library
+if [ "`(uname -s) 2>/dev/null`" = "FreeBSD" ]; then
+    LIBR="-L${X11BASE}/lib"
+fi
+# on OpenBSD, set X11R6 library
+if [ "`(uname -s) 2>/dev/null`" = "OpenBSD" ]; then
+    LIBR="-L${X11BASE}/lib"
+fi
+# on NetBSD, set X11R6 library
+if [ "`(uname -s) 2>/dev/null`" = "NetBSD" ]; then
+    LIBR="-L${X11BASE}/lib"
+fi
+
 # if this looks like an Arizona system, use our srmap file
 if grep -s '^gmt:[^:]*:0*28:0*46:' /etc/passwd >/dev/null; then
     SRMAP=srmap.az
@@ -174,11 +188,27 @@
        MAN5=/usr/man/local/man5
        MANEXT=1
    else
+     if [ -d /usr/local/man ]; then
+             MAN1=/usr/local/man/man1
+             MAN3=/usr/local/man/man3
+             MAN5=/usr/local/man/man5
+        MANEXT=1
+     else
        MAN1=/usr/man/manl
        MAN3=/usr/man/manl
        MAN5=/usr/man/manl
        MANEXT=l
+     fi
    fi
+   ;;
+    prefix)
+   if [ "X${PREFIX}" = "X" ]; then PREFIX=/usr/local ; fi
+   SRCMD=${PREFIX}/bin
+   SRLIB=${PREFIX}/lib/sr
+   MAN1=${PREFIX}/man/man1
+   MAN3=${PREFIX}/man/man3
+   MAN5=${PREFIX}/man/man5
+       MANEXT=1
    ;;
     optlocal)
    SRCMD=/opt/local/bin