|
Lines 191-197
Link Here
|
| 191 |
esac],[geoip=true]) |
191 |
esac],[geoip=true]) |
| 192 |
|
192 |
|
| 193 |
AC_ARG_ENABLE(system-geoip, |
193 |
AC_ARG_ENABLE(system-geoip, |
| 194 |
[AS_HELP_STRING(--enable-system-geoip,[Enables use of system-wide GeoIP database (implies --disable-geoip) (no by default)])], |
194 |
[AS_HELP_STRING(--enable-system-geoip,[Enables use of system-wide GeoIP database (implies --disable-geoip) (auto by default)])], |
| 195 |
[case "${enableval}" in |
195 |
[case "${enableval}" in |
| 196 |
yes) if test "$have_system_geoip" = yes; then |
196 |
yes) if test "$have_system_geoip" = yes; then |
| 197 |
system_geoip=true |
197 |
system_geoip=true |
|
Lines 199-207
Link Here
|
| 199 |
else |
199 |
else |
| 200 |
AC_MSG_ERROR(cannot enable system geoip. GeoIP library headers were not found on your system) |
200 |
AC_MSG_ERROR(cannot enable system geoip. GeoIP library headers were not found on your system) |
| 201 |
fi ;; |
201 |
fi ;; |
| 202 |
no) system_geoip=true ;; |
202 |
no) system_geoip=false ;; |
| 203 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-system-geoip) ;; |
203 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-system-geoip) ;; |
| 204 |
esac],[system_geoip=false]) |
204 |
esac],[system_geoip=auto]) |
|
|
205 |
|
| 206 |
if test x$system_geoip = xauto; then |
| 207 |
if test "$have_system_geoip" = yes; then |
| 208 |
system_geoip=true |
| 209 |
geoip=false |
| 210 |
else |
| 211 |
system_geoip=false |
| 212 |
fi |
| 213 |
fi |
| 205 |
|
214 |
|
| 206 |
AM_CONDITIONAL(ENABLE_GEOIP, test x$geoip = xtrue) |
215 |
AM_CONDITIONAL(ENABLE_GEOIP, test x$geoip = xtrue) |
| 207 |
AM_CONDITIONAL(USE_SYSTEM_GEOIP, test x$system_geoip = xtrue) |
216 |
AM_CONDITIONAL(USE_SYSTEM_GEOIP, test x$system_geoip = xtrue) |
|
Lines 212-223
Link Here
|
| 212 |
|
221 |
|
| 213 |
|
222 |
|
| 214 |
AC_ARG_ENABLE(builtin-country-flags, |
223 |
AC_ARG_ENABLE(builtin-country-flags, |
| 215 |
[AS_HELP_STRING(--enable-builtin-country-flags,[Install and prefer builtin country flags to the ones provided by KDE (yes by default)])], |
224 |
[AS_HELP_STRING(--enable-builtin-country-flags,[Install and prefer builtin country flags to the ones provided by KDE (auto by default)])], |
| 216 |
[case "${enableval}" in |
225 |
[case "${enableval}" in |
| 217 |
yes) builtin_country_flags=true ;; |
226 |
yes) builtin_country_flags=true ;; |
| 218 |
no) builtin_country_flags=false ;; |
227 |
no) builtin_country_flags=false ;; |
| 219 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-builtin-country-flags) ;; |
228 |
*) AC_MSG_ERROR(bad value ${enableval} for --enable-builtin-country-flags) ;; |
| 220 |
esac],[builtin_country_flags=true]) |
229 |
esac],[builtin_country_flags=auto]) |
|
|
230 |
|
| 231 |
if test x$builtin_country_flags = xauto; then |
| 232 |
if test x$geoip = xtrue; then |
| 233 |
builtin_country_flags=true |
| 234 |
else |
| 235 |
builtin_country_flags=false |
| 236 |
fi |
| 237 |
fi |
| 221 |
|
238 |
|
| 222 |
AM_CONDITIONAL(ENABLE_BUILTIN_COUNTRY_FLAGS, test x$builtin_country_flags = xtrue) |
239 |
AM_CONDITIONAL(ENABLE_BUILTIN_COUNTRY_FLAGS, test x$builtin_country_flags = xtrue) |
| 223 |
|
240 |
|