summaryrefslogtreecommitdiff
path: root/x11/kdebase2/patches/patch-aa
blob: 80216e497eb0af105156e80f663547593b988905 (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
$NetBSD: patch-aa,v 1.2 2001/03/24 13:42:04 skrll Exp $

--- configure.orig	Thu Feb 22 13:17:34 2001
+++ configure
@@ -9944,7 +9944,9 @@
 
 
 
-for ac_func in getsecretkey getloadavg getusershell login_getclass auth_timeok
+ac_save_LIBS="$LIBS"
+LIBS="$LIBS -lutil"
+for ac_func in getsecretkey getloadavg getusershell login_getclass auth_timeok setusercontext
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
 echo "configure:9951: checking for $ac_func" >&5
@@ -10001,6 +10003,7 @@
   echo "$ac_t""no" 1>&6
 fi
 done
+LIBS="$ac_save_LIBS"
 
 
 # Extract the first word of "X", so it can be a program name with args.
@@ -11108,7 +11111,7 @@
 
     ac_save_ldflags="$LDFLAGS"
     ac_save_cflags="$CFLAGS"
-    LDFLAGS="$LDFLAGS $GL_LDFLAGS $X_LDFLAGS $all_libraries -lMesaGL -lMesaGLU -lX11 -lXext -lm $LIBSOCKET"
+    LDFLAGS="$LDFLAGS $GL_LDFLAGS $X_LDFLAGS $all_libraries -lGL -lGLU -lX11 -lXext -lm $LIBSOCKET"
     CFLAGS="$CFLAGS $X_INCLUDES"
     test -n "$GL_INCLUDE" && CFLAGS="-I$GL_INCLUDE $CFLAGS"
     cat > conftest.$ac_ext <<EOF
@@ -11173,13 +11176,13 @@
 
     if test "$GL_LDFLAGS" = ""; then
        if test "$ac_cv_have_gl" = "mesa"; then
-          GLLIB='-lMesaGL -lMesaGLU $(LIB_X11)'
+          GLLIB='-lGL -lGLU $(LIB_X11)'
        else
           GLLIB='-lGL -lGLU $(LIB_X11)'
        fi
     else
        if test "$ac_cv_have_gl" = "mesa"; then
-          GLLIB="$GL_LDFLAGS -lMesaGL -lMesaGLU "'$(LIB_X11)'
+          GLLIB="$GL_LDFLAGS -lGL -lGLU "'$(LIB_X11)'
        else
           GLLIB="$GL_LDFLAGS -lGL -lGLU "'$(LIB_X11)'
        fi
@@ -11576,6 +11579,7 @@
 case "$host" in 
   *-*-linux*) ksysguardd_compile=yes; UNAME='Linux' ;;
   *-*-freebsd*) ksysguardd_compile=yes; UNAME='FreeBSD' ;;
+  *-*-netbsd*) ksysguardd_compile=yes; UNAME='FreeBSD' ;;
 #  *-*-solaris*) ksysguardd_compile=yes; UNAME='Solaris' ;;
   *) ksysguard_compile=no; UNAME='' ;;
 esac