comparison configure.ac @ 30475:c44ec533a48c

propagate from branch 'im.pidgin.pidgin' (head 7c76f200d8b976548ea95b94a1674b931a7694f7) to branch 'im.pidgin.cpw.malu.xmpp.google_refactor' (head 4a752228c36cd7fde5250dfe7a873b6d4eaf92fb)
author Marcus Lundblad <ml@update.uu.se>
date Fri, 09 Apr 2010 22:14:51 +0000
parents 4839a889f705
children 35a1cf247168
comparison
equal deleted inserted replaced
30474:721b257bcd8c 30475:c44ec533a48c
286 ;; 286 ;;
287 *) 287 *)
288 ;; 288 ;;
289 esac 289 esac
290 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" 291 ALL_LINGUAS="af am ar az be@latin bg bn bn_IN 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 292 AM_GLIB_GNU_GETTEXT
293 293
294 dnl If we don't have msgfmt, then po/ is going to fail -- ensure that 294 dnl If we don't have msgfmt, then po/ is going to fail -- ensure that
295 dnl AM_GLIB_GNU_GETTEXT found it. 295 dnl AM_GLIB_GNU_GETTEXT found it.
296 296
1400 AC_ARG_WITH([python], 1400 AC_ARG_WITH([python],
1401 AC_HELP_STRING([--with-python=PATH], 1401 AC_HELP_STRING([--with-python=PATH],
1402 [which python interpreter to use for dbus code generation]), 1402 [which python interpreter to use for dbus code generation]),
1403 PYTHON=$withval) 1403 PYTHON=$withval)
1404 1404
1405 if test "x$enable_dbus" = "xyes" ; then 1405 if test "x$enable_dbus" = "xyes" || test "x$enable_consoleui" = "xyes" ; then
1406 if test -z "$PYTHON" -o "x$PYTHON" = "xyes"; then 1406 if test -z "$PYTHON" -o "x$PYTHON" = "xyes"; then
1407 AC_PATH_PROG([PYTHON], [python], [no]) 1407 AC_PATH_PROG([PYTHON], [python], [no])
1408 fi 1408 fi
1409 1409
1410 if test x"$PYTHON" = x"no" ; then 1410 if test x"$PYTHON" = x"no" ; then
1411 AC_MSG_WARN([python interpreter not found in your path]) 1411 AC_MSG_WARN([python interpreter not found in your path])
1412 enable_dbus=no 1412 enable_dbus=no
1413 fi 1413 fi
1414 fi 1414
1415
1416 if test "x$enable_dbus" = "xyes" ; then
1417 if $PYTHON -c "import sys; sys.exit(sys.version[[:3]] >= '2.4')" ; then 1415 if $PYTHON -c "import sys; sys.exit(sys.version[[:3]] >= '2.4')" ; then
1418 AC_MSG_WARN([python version >= 2.4 required]) 1416 AC_MSG_WARN([python version >= 2.4 required])
1419 enable_dbus=no 1417 enable_dbus=no
1420 fi 1418 fi
1421 fi 1419 fi
1461 break 1459 break
1462 fi 1460 fi
1463 done 1461 done
1464 1462
1465 if test -z $DBUS_SERVICES_DIR ; then 1463 if test -z $DBUS_SERVICES_DIR ; then
1466 AC_MSG_ERROR([D-Bus services directory was not found! Please use --with-dbus-services and specify it's location.]) 1464 AC_MSG_ERROR([D-Bus services directory was not found! Please use --with-dbus-services and specify its location.])
1467 fi 1465 fi
1468 else 1466 else
1469 DBUS_SERVICES_DIR="$datadir/dbus-1/services" 1467 DBUS_SERVICES_DIR="$datadir/dbus-1/services"
1470 fi 1468 fi
1471 fi 1469 fi
1482 1480
1483 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes") 1481 AM_CONDITIONAL(ENABLE_DBUS, test "x$enable_dbus" = "xyes")
1484 1482
1485 dnl Check for Python headers (currently useful only for libgnt) 1483 dnl Check for Python headers (currently useful only for libgnt)
1486 dnl (Thanks to XChat) 1484 dnl (Thanks to XChat)
1487 AC_PATH_PROG(pythonpath, python) 1485 if test "x$enable_consoleui" = "xyes" -a ! -z "$PYTHON" -a x"$PYTHON" != x"no" ; then
1488 if test "_$pythonpath" != _ ; then
1489 AC_MSG_CHECKING(for Python compile flags) 1486 AC_MSG_CHECKING(for Python compile flags)
1490 PY_PREFIX=`$pythonpath -c 'import sys ; print sys.prefix'` 1487 PY_PREFIX=`$PYTHON -c 'import sys ; print sys.prefix'`
1491 PY_EXEC_PREFIX=`$pythonpath -c 'import sys ; print sys.exec_prefix'` 1488 PY_EXEC_PREFIX=`$PYTHON -c 'import sys ; print sys.exec_prefix'`
1492 changequote(<<, >>)dnl 1489 changequote(<<, >>)dnl
1493 PY_VERSION=`$pythonpath -c 'import sys ; print sys.version[0:3]'` 1490 PY_VERSION=`$PYTHON -c 'import sys ; print sys.version[0:3]'`
1494 PY_MAJOR=`$pythonpath -c 'import sys ; print sys.version[0:2]'` 1491 PY_MAJOR=`$PYTHON -c 'import sys ; print sys.version[0:2]'`
1495 changequote([, ])dnl 1492 changequote([, ])dnl
1496 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then 1493 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then
1497 AC_MSG_RESULT() 1494 AC_MSG_RESULT()
1498 AC_CHECK_LIB(pthread, pthread_create, ) 1495 AC_CHECK_LIB(pthread, pthread_create, )
1499 AC_CHECK_LIB(util, openpty, ) 1496 AC_CHECK_LIB(util, openpty, )
1682 1679
1683 AC_ARG_WITH(system-ssl-certs, [AC_HELP_STRING([--with-system-ssl-certs=<dir>], [directory containing system-wide SSL CA certificates])], [ssl_certificates_dir=$withval]) 1680 AC_ARG_WITH(system-ssl-certs, [AC_HELP_STRING([--with-system-ssl-certs=<dir>], [directory containing system-wide SSL CA certificates])], [ssl_certificates_dir=$withval])
1684 1681
1685 SSL_CERTIFICATES_DIR="" 1682 SSL_CERTIFICATES_DIR=""
1686 if ! test -z "$ssl_certificates_dir" ; then 1683 if ! test -z "$ssl_certificates_dir" ; then
1684 if test "x$ssl_certificates_dir" = "xyes" ; then
1685 AC_MSG_ERROR([--with-system-ssl-certs requires that a location is specified, eg. --with-system-ssl-certs=/etc/pki/tls/certs])
1686 fi
1687 if ! test -d "$ssl_certificates_dir" ; then 1687 if ! test -d "$ssl_certificates_dir" ; then
1688 AC_MSG_ERROR([$ssl_certificates_dir does not exist, if this is the correct location please make sure that it exists.]) 1688 AC_MSG_ERROR([$ssl_certificates_dir does not exist, if this is the correct location please make sure that it exists.])
1689 fi 1689 fi
1690 SSL_CERTIFICATES_DIR="$ssl_certificates_dir" 1690 SSL_CERTIFICATES_DIR="$ssl_certificates_dir"
1691 fi 1691 fi