summaryrefslogtreecommitdiff
path: root/www/libproxy/patches/patch-aa
blob: 50cba8953852b91f1166cba259498cd88723c520 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
$NetBSD: patch-aa,v 1.2 2009/03/12 13:31:48 hasso Exp $

--- configure.ac.orig	2009-03-12 12:13:00 +0200
+++ configure.ac	2009-03-12 12:15:44 +0200
@@ -41,14 +41,14 @@ AC_ARG_WITH([gnome],
             [AS_HELP_STRING([--with-gnome],
             [build GNOME configuration plugin @<:@automatic@:>@])],
             [],
-            [test x$have_gconf == xyes && 
-             test x$have_x11   == xyes &&
-             test x$have_xmu   == xyes &&
+            [test x$have_gconf = xyes && 
+             test x$have_x11   = xyes &&
+             test x$have_xmu   = xyes &&
              with_gnome=yes])
 if test x$with_gnome = xyes; then
-	if test x$have_gconf == xyes && \
-	   test x$have_x11 == xyes && \
-	   test x$have_xmu == xyes; then
+	if test x$have_gconf = xyes && \
+	   test x$have_x11 = xyes && \
+	   test x$have_xmu = xyes; then
 		GNOME_CFLAGS="$x11_CFLAGS $xmu_CFLAGS $gconf_CFLAGS"
 		GNOME_LIBS="$x11_LIBS $xmu_LIBS $gconf_LIBS"
 		AC_SUBST(GNOME_CFLAGS)
@@ -67,12 +67,12 @@ AC_ARG_WITH([kde],
             [AS_HELP_STRING([--with-kde],
             [build KDE configuration plugin @<:@automatic@:>@])],
             [],
-            [test x$have_x11   == xyes &&
-             test x$have_xmu   == xyes &&
+            [test x$have_x11   = xyes &&
+             test x$have_xmu   = xyes &&
              with_kde=yes])
 if test x$with_kde = xyes; then
-	if test x$have_x11 == xyes && \
-	   test x$have_xmu == xyes; then
+	if test x$have_x11 = xyes && \
+	   test x$have_xmu = xyes; then
 		KDE_CFLAGS="$x11_CFLAGS $xmu_CFLAGS"
 		KDE_LIBS="$x11_LIBS $xmu_LIBS"
 		AC_SUBST(KDE_CFLAGS)
@@ -91,9 +91,9 @@ AC_ARG_WITH([webkit],
             [AS_HELP_STRING([--with-webkit],
             [build WebKit JavaScriptCore PAC runner plugin @<:@automatic@:>@])],
             [],
-            [test x$have_webkit == xyes && with_webkit=yes])
+            [test x$have_webkit = xyes && with_webkit=yes])
 if test x$with_webkit = xyes; then
-	if test x$have_webkit == xyes; then
+	if test x$have_webkit = xyes; then
 		WEBKIT_CFLAGS="$webkit_CFLAGS"
 		WEBKIT_LIBS="$webkit_LIBS"
 		AC_SUBST(WEBKIT_CFLAGS)
@@ -112,9 +112,9 @@ AC_ARG_WITH([mozjs],
             [AS_HELP_STRING([--with-mozjs],
             [build Mozilla JavaScript PAC runner plugin @<:@automatic@:>@])],
             [],
-            [test x$have_mozjs == xyes && with_mozjs=yes])
+            [test x$have_mozjs = xyes && with_mozjs=yes])
 if test x$with_mozjs = xyes; then
-	if test x$have_mozjs == xyes; then
+	if test x$have_mozjs = xyes; then
 		MOZJS_CFLAGS="$mozjs_CFLAGS"
 		MOZJS_LIBS="$mozjs_LIBS"
 		AC_SUBST(MOZJS_CFLAGS)
@@ -133,9 +133,9 @@ AC_ARG_WITH([networkmanager],
             [AS_HELP_STRING([--with-networkmanager],
             [build NetworkManager plugin @<:@automatic@:>@])],
             [],
-            [test x$have_networkmanager == xyes && with_networkmanager=yes])
+            [test x$have_networkmanager = xyes && with_networkmanager=yes])
 if test x$with_networkmanager = xyes; then
-	if test x$have_networkmanager == xyes; then
+	if test x$have_networkmanager = xyes; then
 		NETWORKMANAGER_CFLAGS="$NetworkManager_CFLAGS"
 		NETWORKMANAGER_LIBS="$NetworkManager_LIBS"
 		AC_SUBST(NETWORKMANAGER_CFLAGS)
@@ -182,6 +182,9 @@ CFLAGS="-g -std=c99 $CFLAGS -DPLUGINDIR=
 AC_FUNC_MALLOC
 #AC_CHECK_FUNCS([gethostbyname gethostname memset socket strdup strstr])
 
+AC_CHECK_LIB(dl, dlopen, DL_LIBS="-ldl")
+AC_SUBST(DL_LIBS)
+
 AC_CONFIG_FILES([libproxy-1.0.pc Makefile src/Makefile src/lib/Makefile
                  src/plugins/Makefile src/bin/Makefile src/bindings/Makefile
                  src/bindings/python/Makefile src/bindings/java/Makefile