blob: 24cac62a8aa6c84c7ab6f6bed64ad5d59ce8603c (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
$NetBSD: patch-ab,v 1.6 2006/01/06 18:14:06 joerg Exp $
--- scripts/config.orig 2005-12-20 16:59:05.000000000 +0000
+++ scripts/config
@@ -52,7 +52,7 @@ Magic works with the following window co
CAT_EOF
set cflags=
-set cppflags='-I. -I${MAGICDIR}'
+set cppflags="${CPPFLAGS} "'-I. -I${MAGICDIR}'
set dflags=
set oflags=
@@ -191,15 +191,21 @@ case "1":
breaksw
case "2":
echo "NetBSD 1.x selected"
- set cpp = "/usr/libexec/cpp -P -traditional"
+ if (-f xx/usr/libexec/cpp) then
+ set cpp = "/usr/libexec/cpp -P -traditional"
+ else if (-f xx/usr/libexec/cpp0) then
+ set cpp = "/usr/libexec/cpp0 -P -traditional"
+ else
+ set cpp = "cc -E -traditional"
+ endif
if ($?usingX11) then
echo "NOTE: Since you are running NetBSD using X11, we're assuming"
echo " that you want to get the X11 library from either the normal"
echo " library area or from the directory /usr/X11R6/lib. If this"
echo " is not correct, edit the defs.mak file by hand after this"
echo " script completes."
- set gr_cflags=("$gr_cflags" -I/usr/X11R6/include)
- set gr_libs=(-L/usr/X11R6/lib "$gr_libs")
+ set gr_cflags=("$gr_cflags" -I${X11BASE}/include)
+ set gr_libs=(-L${X11BASE}/lib -R${X11BASE}/lib "$gr_libs")
endif
breaksw
case "3":
@@ -453,16 +459,10 @@ endif
set have_readline="no"
if ($readline == "y" || $readline == "yes") then
set dflags=("$dflags" -DUSE_READLINE)
- if ( -f /usr/lib/libreadline.so ) then
- if ( `nm /usr/lib/libreadline.so | grep pre_input | wc -l` > 0 ) then
- set have_readline="yes"
- set dflags=($dflags -DHAVE_READLINE)
- set rl_libs=($rl_libs -lreadline -ltermcap)
- if ( `nm /usr/lib/libreadline.so | grep rl_filename_completion_function | wc -l` > 0) then
- set dflags=($dflags -DREADLINE_4_DOT_2_PLUS)
- endif
- endif
- endif
+ set have_readline="yes"
+ set dflags=($dflags -DHAVE_READLINE)
+ set rl_libs=($rl_libs -lreadline -ltermcap)
+ set dflags=($dflags -DREADLINE_4_DOT_2_PLUS)
if ($?compileIRIX) then
echo "NOTE: Must compile with GNU make (gmake), not the IRIX make"
endif
|