mcabber/configure.ac
changeset 1456 5e99e802656c
parent 1454 6b98dc22946d
child 1478 243dc5dbd987
equal deleted inserted replaced
1455:bec235cd28a8 1456:5e99e802656c
   130 
   130 
   131 # Check for glib
   131 # Check for glib
   132 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]),[g_list_append])
   132 AM_PATH_GLIB_2_0(2.0.0, , AC_MSG_ERROR([glib is required]),[g_list_append])
   133 
   133 
   134 # Check for gpgme
   134 # Check for gpgme
   135 AC_ARG_ENABLE(gpgme, AC_HELP_STRING([--disable-gpgme], [Disable GPGME support]),
   135 AC_ARG_ENABLE(gpgme, AC_HELP_STRING([--disable-gpgme], [disable GPGME support]),
   136     [ if test x"$enableval" = x"no"; then
   136     [ if test x"$enableval" = x"no"; then
   137         enable_gpgme=no
   137         enable_gpgme=no
   138       fi
   138       fi
   139     ])
   139     ])
   140 
   140 
   142     AM_PATH_GPGME(1.0.0, AC_DEFINE(HAVE_GPGME, 1,
   142     AM_PATH_GPGME(1.0.0, AC_DEFINE(HAVE_GPGME, 1,
   143         [Define if you use GPGME to support OpenPGP]))
   143         [Define if you use GPGME to support OpenPGP]))
   144 fi
   144 fi
   145 
   145 
   146 # Check for otr
   146 # Check for otr
   147 AC_ARG_ENABLE(otr, [  --enable-otr            Enable OTR (Off-the-Record) messaging support],
   147 AC_ARG_ENABLE(otr, [  --enable-otr            enable OTR (Off-the-Record) messaging support],
   148               enable_otr=$enableval, otr="")
   148               enable_otr=$enableval, otr="")
   149 if test "x$enable_otr" = "xyes"; then
   149 if test "x$enable_otr" = "xyes"; then
   150   # Look for libgcrypt and libotr
   150   # Look for libgcrypt and libotr
   151   AM_PATH_LIBGCRYPT(1.2.2, [
   151   AM_PATH_LIBGCRYPT(1.2.2, [
   152           AM_PATH_LIBOTR(3.1.0, ,
   152           AM_PATH_LIBOTR(3.1.0, ,
   193         ])
   193         ])
   194     fi
   194     fi
   195 fi
   195 fi
   196 
   196 
   197 # Check for Aspell stuff
   197 # Check for Aspell stuff
   198 AC_ARG_ENABLE(aspell, [  --enable-aspell         Enable aspell support],
   198 AC_ARG_ENABLE(aspell, [  --enable-aspell         enable aspell support],
   199               enable_aspell=$enableval, aspell="")
   199               enable_aspell=$enableval, aspell="")
   200 if test "x$enable_aspell" = "xyes"; then
   200 if test "x$enable_aspell" = "xyes"; then
   201     AC_CHECK_HEADERS(aspell.h, [ have_aspell_includes=yes ])
   201     AC_CHECK_HEADERS(aspell.h, [ have_aspell_includes=yes ])
   202     if test "x$have_aspell_includes" = "xyes"; then
   202     if test "x$have_aspell_includes" = "xyes"; then
   203         AC_CHECK_LIB(aspell, new_aspell_config, [ have_aspell_libs=yes ])
   203         AC_CHECK_LIB(aspell, new_aspell_config, [ have_aspell_libs=yes ])
   218 if test x"${datadir}" != x""; then
   218 if test x"${datadir}" != x""; then
   219     AC_DEFINE_DIR(DATA_DIR, datadir, [Data files directory])
   219     AC_DEFINE_DIR(DATA_DIR, datadir, [Data files directory])
   220 fi
   220 fi
   221 
   221 
   222 AC_ARG_ENABLE(debug,
   222 AC_ARG_ENABLE(debug,
   223     [AC_HELP_STRING(--enable-debug, Add development compilation options)],
   223     [AC_HELP_STRING(--enable-debug, add development compilation options)],
   224     debug=$enableval, debug="")
   224     debug=$enableval, debug="")
   225 if test x"${debug}" = x"yes"; then
   225 if test x"${debug}" = x"yes"; then
   226     AC_DEFINE_UNQUOTED([ENABLE_DEBUG],[1],[Devel compilation options])
   226     AC_DEFINE_UNQUOTED([ENABLE_DEBUG],[1],[Devel compilation options])
   227     if test "x$GCC" = "xyes"; then
   227     if test "x$GCC" = "xyes"; then
   228         if test "$gccvernum" -ge "400"; then
   228         if test "$gccvernum" -ge "400"; then
   236 else
   236 else
   237     CFLAGS="-O2 $CFLAGS"
   237     CFLAGS="-O2 $CFLAGS"
   238 fi
   238 fi
   239 
   239 
   240 AC_ARG_ENABLE(hgcset,
   240 AC_ARG_ENABLE(hgcset,
   241     [AC_HELP_STRING(--disable-hgcset, Do not use Mercurial changeset value)],
   241     [AC_HELP_STRING(--disable-hgcset, do not use Mercurial changeset value)],
   242     hgcset=$enableval, hgcset="yes")
   242     hgcset=$enableval, hgcset="yes")
   243 AM_CONDITIONAL(HGCSET, [test x$hgcset = xyes])
   243 AM_CONDITIONAL(HGCSET, [test x$hgcset = xyes])
   244 if test "${hgcset}" = "yes"; then
   244 if test "${hgcset}" = "yes"; then
   245     AC_DEFINE(ENABLE_HGCSET, 1, [Use Mercurial changeset])
   245     AC_DEFINE(ENABLE_HGCSET, 1, [Use Mercurial changeset])
   246 fi
   246 fi