1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- # -*- Autoconf -*-
- # Process this file with autoconf to produce a configure script.
- AC_PREREQ([2.69])
- AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
- dnl AC_CONFIG_SRCDIR([src/main-window.h])
- PKG_CHECK_MODULES([MYAPP], [gtkmm-3.0 >= 3.8.0])
- PKG_CHECK_MODULES([GLOOX], [gloox >= 1.0.0], [enable_gloox=yes], [enable_gloox=no])
- if test x$enable_gloox = xno ; then
- AC_MSG_NOTICE([Error - gloox is required to build the app])
- else
- AC_SUBST(GLOOX_CFLAGS)
- AC_SUBST(GLOOX_LIBS)
- AC_DEFINE(HAVE_GLOOX, 1, [gloox provides jabber implementation])
- fi
- AM_INIT_AUTOMAKE
- AC_CONFIG_HEADERS([config.h])
- AC_CONFIG_MACRO_DIR([m4])
- # Checks for programs.
- AC_PROG_CXX
- AX_CXX_COMPILE_STDCXX_11([ext], [mandatory])
- dnl ACX_PTHREAD(
- dnl [AC_DEFINE([HAVE_PTHREAD], [1],
- dnl [Define if you have POSIX threads libraries and header files.])
- dnl LIBS="$PTHREAD_LIBS $LIBS"
- dnl CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
- dnl CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
- dnl CC="$PTHREAD_CC"
- dnl CXX="$PTHREAD_CXX"])
- # AC_PROG_CC
- # Checks for libraries.
- AC_SEARCH_LIBS([pthread_create],[pthread])
- # Checks for header files.
- AC_CHECK_HEADERS([string.h])
- # Checks for typedefs, structures, and compiler characteristics.
- # Checks for library functions.
- AC_CONFIG_FILES([Makefile
- src/Makefile])
- AC_OUTPUT
|