| 110 AM_PROG_CC_C_O |
110 AM_PROG_CC_C_O |
| 111 AC_DISABLE_STATIC |
111 AC_DISABLE_STATIC |
| 112 AC_PROG_LIBTOOL |
112 AC_PROG_LIBTOOL |
| 113 LIBTOOL="$LIBTOOL --silent" |
113 LIBTOOL="$LIBTOOL --silent" |
| 114 AC_PROG_INSTALL |
114 AC_PROG_INSTALL |
| 115 AC_PROG_INTLTOOL |
|
| 116 PKG_PROG_PKG_CONFIG |
115 PKG_PROG_PKG_CONFIG |
| 117 AC_FUNC_ALLOCA |
116 AC_FUNC_ALLOCA |
| 118 GETTEXT_PACKAGE=pidgin |
|
| 119 AC_SUBST(GETTEXT_PACKAGE) |
|
| 120 |
|
| 121 |
|
| 122 # before gettexting, in case iconv matters |
|
| 123 case "$host_os" in |
|
| 124 darwin*) |
|
| 125 AC_CHECK_LIB(resolv, res_query) |
|
| 126 |
|
| 127 AC_CHECK_HEADER(CoreFoundation/CoreFoundation.h, [ |
|
| 128 AC_CHECK_HEADER(IOKit/IOKitLib.h, [ |
|
| 129 AC_DEFINE(HAVE_IOKIT, 1, [Define if we have IOKit]) |
|
| 130 LIBS="$LIBS -framework IOKit -framework CoreFoundation" |
|
| 131 ], []) |
|
| 132 ], []) |
|
| 133 |
|
| 134 AC_MSG_CHECKING([for fink]) |
|
| 135 if test -d /sw; then |
|
| 136 AC_MSG_RESULT([found, adding /sw to search paths]) |
|
| 137 CPPFLAGS="$CPPFLAGS -I/sw/include" |
|
| 138 LDFLAGS="$LDFLAGS -L/sw/lib" |
|
| 139 else |
|
| 140 AC_MSG_RESULT([not found]) |
|
| 141 fi |
|
| 142 ;; |
|
| 143 *) |
|
| 144 ;; |
|
| 145 esac |
|
| 146 |
|
| 147 ALL_LINGUAS="af am ar az be@latin bg bn bs ca ca@valencia cs da de dz el en_AU en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hu hy id it ja ka km kn ko ku lo lt mk mn mr ms_MY my_MM nb ne nl nn oc or pa pl pt_BR pt ps ro ru si sk sl sq sr sr@latin sv sw ta te th tr uk ur vi xh zh_CN zh_HK zh_TW" |
|
| 148 AM_GLIB_GNU_GETTEXT |
|
| 149 |
|
| 150 dnl If we don't have msgfmt, then po/ is going to fail -- ensure that |
|
| 151 dnl AM_GLIB_GNU_GETTEXT found it. |
|
| 152 |
|
| 153 if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT$INTLTOOL_MSGFMT = x |
|
| 154 then |
|
| 155 AC_MSG_ERROR([ |
|
| 156 |
|
| 157 The msgfmt command is required to build libpurple. If it is installed |
|
| 158 on your system, ensure that it is in your path. If it is not, install |
|
| 159 GNU gettext to continue. |
|
| 160 |
|
| 161 If you have msgfmt installed, but for some reason this error message |
|
| 162 is still displayed, you have encountered what appears to be a bug in |
|
| 163 third-party configure macros. Try setting the MSGFMT environment |
|
| 164 variable to the absolute path to your msgfmt binary and trying |
|
| 165 configure again, like this: |
|
| 166 |
|
| 167 MSGFMT=/path/to/msgfmt ./configure ... |
|
| 168 ]) |
|
| 169 fi |
|
| 170 |
117 |
| 171 dnl Checks for header files. |
118 dnl Checks for header files. |
| 172 AC_HEADER_STDC |
119 AC_HEADER_STDC |
| 173 AC_HEADER_SYS_WAIT |
120 AC_HEADER_SYS_WAIT |
| 174 AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h) |
121 AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h) |
| 302 ], [ |
249 ], [ |
| 303 # Fallback for Cross Compiling... |
250 # Fallback for Cross Compiling... |
| 304 # This will enable the compatibility code. |
251 # This will enable the compatibility code. |
| 305 AC_MSG_RESULT(no) |
252 AC_MSG_RESULT(no) |
| 306 ]) |
253 ]) |
| |
254 |
| |
255 dnl ####################################################################### |
| |
256 dnl # Disable creation and installation of translation files |
| |
257 dnl ####################################################################### |
| |
258 AC_ARG_ENABLE(nls, AC_HELP_STRING([--disable-nls], [disable installation of translation files]), enable_i18n="$enableval", enable_i18n=yes) |
| |
259 |
| |
260 if test x$enable_i18n = xyes; then |
| |
261 AC_PROG_INTLTOOL |
| |
262 GETTEXT_PACKAGE=pidgin |
| |
263 AC_SUBST(GETTEXT_PACKAGE) |
| |
264 |
| |
265 |
| |
266 # before gettexting, in case iconv matters |
| |
267 case "$host_os" in |
| |
268 darwin*) |
| |
269 AC_CHECK_LIB(resolv, res_query) |
| |
270 |
| |
271 AC_CHECK_HEADER(CoreFoundation/CoreFoundation.h, [ |
| |
272 AC_CHECK_HEADER(IOKit/IOKitLib.h, [ |
| |
273 AC_DEFINE(HAVE_IOKIT, 1, [Define if we have IOKit]) |
| |
274 LIBS="$LIBS -framework IOKit -framework CoreFoundation" |
| |
275 ], []) |
| |
276 ], []) |
| |
277 |
| |
278 AC_MSG_CHECKING([for fink]) |
| |
279 if test -d /sw; then |
| |
280 AC_MSG_RESULT([found, adding /sw to search paths]) |
| |
281 CPPFLAGS="$CPPFLAGS -I/sw/include" |
| |
282 LDFLAGS="$LDFLAGS -L/sw/lib" |
| |
283 else |
| |
284 AC_MSG_RESULT([not found]) |
| |
285 fi |
| |
286 ;; |
| |
287 *) |
| |
288 ;; |
| |
289 esac |
| |
290 |
| |
291 ALL_LINGUAS="af am ar az be@latin bg bn bs ca ca@valencia cs da de dz el en_AU en_CA en_GB eo es et eu fa fi fr ga gl gu he hi hu hy id it ja ka km kn ko ku lo lt mk mn mr ms_MY my_MM nb ne nl nn oc or pa pl pt_BR pt ps ro ru si sk sl sq sr sr@latin sv sw ta te th tr uk ur vi xh zh_CN zh_HK zh_TW" |
| |
292 AM_GLIB_GNU_GETTEXT |
| |
293 |
| |
294 dnl If we don't have msgfmt, then po/ is going to fail -- ensure that |
| |
295 dnl AM_GLIB_GNU_GETTEXT found it. |
| |
296 |
| |
297 if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT$INTLTOOL_MSGFMT = x |
| |
298 then |
| |
299 AC_MSG_ERROR([ |
| |
300 |
| |
301 The msgfmt command is required to build libpurple. If it is installed |
| |
302 on your system, ensure that it is in your path. If it is not, install |
| |
303 GNU gettext to continue. |
| |
304 |
| |
305 If you have msgfmt installed, but for some reason this error message |
| |
306 is still displayed, you have encountered what appears to be a bug in |
| |
307 third-party configure macros. Try setting the MSGFMT environment |
| |
308 variable to the absolute path to your msgfmt binary and trying |
| |
309 configure again, like this: |
| |
310 |
| |
311 MSGFMT=/path/to/msgfmt ./configure ... |
| |
312 ]) |
| |
313 fi |
| |
314 fi #enable_i18n |
| 307 |
315 |
| 308 dnl ####################################################################### |
316 dnl ####################################################################### |
| 309 dnl # Check for GLib 2.12 (required) |
317 dnl # Check for GLib 2.12 (required) |
| 310 dnl ####################################################################### |
318 dnl ####################################################################### |
| 311 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.12.0 gobject-2.0 gmodule-2.0 gthread-2.0], , [ |
319 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.12.0 gobject-2.0 gmodule-2.0 gthread-2.0], , [ |
| 2440 dnl # Disable pixmap installation |
2448 dnl # Disable pixmap installation |
| 2441 dnl ####################################################################### |
2449 dnl ####################################################################### |
| 2442 AC_ARG_ENABLE(pixmaps-install, AC_HELP_STRING([--disable-pixmaps-install], [disable installation of pixmap files - Pidgin still needs them!]), enable_pixmaps="$enableval", enable_pixmaps=yes) |
2450 AC_ARG_ENABLE(pixmaps-install, AC_HELP_STRING([--disable-pixmaps-install], [disable installation of pixmap files - Pidgin still needs them!]), enable_pixmaps="$enableval", enable_pixmaps=yes) |
| 2443 |
2451 |
| 2444 AM_CONDITIONAL(INSTALL_PIXMAPS, test "x$enable_pixmaps" = "xyes") |
2452 AM_CONDITIONAL(INSTALL_PIXMAPS, test "x$enable_pixmaps" = "xyes") |
| 2445 |
|
| 2446 dnl ####################################################################### |
|
| 2447 dnl # Disable installation of translation files |
|
| 2448 dnl ####################################################################### |
|
| 2449 AC_ARG_ENABLE(nls, AC_HELP_STRING([--disable-nls], [disable installation of translation files]), enable_i18n="$enableval", enable_i18n=yes) |
|
| 2450 |
2453 |
| 2451 AM_CONDITIONAL(INSTALL_I18N, test "x$enable_i18n" = "xyes") |
2454 AM_CONDITIONAL(INSTALL_I18N, test "x$enable_i18n" = "xyes") |
| 2452 |
2455 |
| 2453 dnl ####################################################################### |
2456 dnl ####################################################################### |
| 2454 dnl # Check for Doxygen and dot (part of GraphViz) |
2457 dnl # Check for Doxygen and dot (part of GraphViz) |