summaryrefslogtreecommitdiff
path: root/package/freeradius-server/patches/patch-acinclude_m4
blob: f1cefae7753be763ad404743d468bd5271cb14ff (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
--- freeradius-server-3.0.8.orig/acinclude.m4	2015-04-22 19:21:34.000000000 +0200
+++ freeradius-server-3.0.8/acinclude.m4	2015-05-13 22:13:54.000000000 +0200
@@ -218,22 +218,22 @@ ac_safe=`echo "$1" | sed 'y%./+-%__pm%'`
 old_CPPFLAGS="$CPPFLAGS"
 smart_include=
 dnl #  The default directories we search in (in addition to the compilers search path)
-smart_include_dir="/usr/local/include /opt/include"
+dnl smart_include_dir="/usr/local/include /opt/include"
 
 dnl #  Our local versions
 _smart_try_dir=
 _smart_include_dir=
 
 dnl #  Add variants with the different prefixes and one with no prefix
-for _prefix in $smart_prefix ""; do
-  for _dir in $smart_try_dir; do
-    _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
-  done
-
-  for _dir in $smart_include_dir; do
-    _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
-  done
-done
+dnl for _prefix in $smart_prefix ""; do
+dnl   for _dir in $smart_try_dir; do
+dnl     _smart_try_dir="${_smart_try_dir} ${_dir}/${_prefix}"
+dnl   done
+dnl 
+dnl   for _dir in $smart_include_dir; do
+dnl     _smart_include_dir="${_smart_include_dir} ${_dir}/${_prefix}"
+dnl   done
+dnl done
 
 dnl #
 dnl #  Try any user-specified directory first otherwise we may pick up
@@ -262,73 +262,73 @@ fi
 dnl #
 dnl #  Try using the default includes (with prefixes).
 dnl #
-if test "x$smart_include" = "x"; then
-  for _prefix in $smart_prefix; do
-    AC_MSG_CHECKING([for ${_prefix}/$1])
-
-    AC_TRY_COMPILE([$2
-		    #include <$1>],
-		   [int a = 1;],
-		   [
-		     smart_include="-isystem ${_prefix}/"
-		     AC_MSG_RESULT(yes)
-		     break
-		   ],
-		   [
-		     smart_include=
-		     AC_MSG_RESULT(no)
-		   ])
-  done
-fi
+dnl if test "x$smart_include" = "x"; then
+dnl   for _prefix in $smart_prefix; do
+dnl     AC_MSG_CHECKING([for ${_prefix}/$1])
+dnl 
+dnl    AC_TRY_COMPILE([$2
+dnl 		    #include <$1>],
+dnl 		   [int a = 1;],
+dnl 		   [
+dnl 		     smart_include="-isystem ${_prefix}/"
+dnl 		     AC_MSG_RESULT(yes)
+dnl 		     break
+dnl 		   ],
+dnl 		   [
+dnl 		     smart_include=
+dnl 		     AC_MSG_RESULT(no)
+dnl 		   ])
+dnl   done
+dnl fi
 
 dnl #
 dnl #  Try using the default includes (without prefixes).
 dnl #
 if test "x$smart_include" = "x"; then
-    AC_MSG_CHECKING([for $1])
-
-    AC_TRY_COMPILE([$2
+     AC_MSG_CHECKING([for $1])
+ 
+     AC_TRY_COMPILE([$2
 		    #include <$1>],
-		   [int a = 1;],
-		   [
-		     smart_include=" "
-		     AC_MSG_RESULT(yes)
-		     break
-		   ],
-		   [
-		     smart_include=
+ 		   [int a = 1;],
+ 		   [
+ 		     smart_include=" "
+ 		     AC_MSG_RESULT(yes)
+ 		     break
+ 		   ],
+ 		   [
+ 		     smart_include=
 		     AC_MSG_RESULT(no)
-		   ])
+ 		   ])
 fi
 
 dnl #
 dnl #  Try to guess possible locations.
 dnl #
-if test "x$smart_include" = "x"; then
-
-  for prefix in $smart_prefix; do
-    FR_LOCATE_DIR(_smart_include_dir,"${_prefix}/${1}")
-  done
-  FR_LOCATE_DIR(_smart_include_dir, $1)
-
-  for try in $_smart_include_dir; do
-    AC_MSG_CHECKING([for $1 in $try])
-    CPPFLAGS="-isystem $try $old_CPPFLAGS"
-    AC_TRY_COMPILE([$2
-		    #include <$1>],
-		   [int a = 1;],
-		   [
-		     smart_include="-isystem $try"
-		     AC_MSG_RESULT(yes)
-		     break
-		   ],
-		   [
-		     smart_include=
-		     AC_MSG_RESULT(no)
-		   ])
-  done
-  CPPFLAGS="$old_CPPFLAGS"
-fi
+dnl if test "x$smart_include" = "x"; then
+dnl 
+dnl   for prefix in $smart_prefix; do
+dnl     FR_LOCATE_DIR(_smart_include_dir,"${_prefix}/${1}")
+dnl   done
+dnl   FR_LOCATE_DIR(_smart_include_dir, $1)
+dnl 
+dnl   for try in $_smart_include_dir; do
+dnl    AC_MSG_CHECKING([for $1 in $try])
+dnl     CPPFLAGS="-isystem $try $old_CPPFLAGS"
+dnl     AC_TRY_COMPILE([$2
+dnl 		    #include <$1>],
+dnl 		   [int a = 1;],
+dnl 		   [
+dnl 		     smart_include="-isystem $try"
+dnl 		     AC_MSG_RESULT(yes)
+dnl 		     break
+dnl		   ],
+dnl		   [
+dnl		     smart_include=
+dnl		     AC_MSG_RESULT(no)
+dnl		   ])
+dnl done
+dnl  CPPFLAGS="$old_CPPFLAGS"
+dnl fi
 
 dnl #
 dnl #  Found it, set the appropriate variable.