# Process this file with autoconf to produce a configure script. AC_INIT(VyQChat, 0.2.8, yogin@linux.bydg.org) AM_INIT_AUTOMAKE(vyqchat, 0.2.8) AC_CONFIG_HEADERS([src/config.h]) AC_PREFIX_DEFAULT([/usr/local]) # Checks for programs. AC_PROG_CXX AC_PROG_CC # Checks for libraries. # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h stdlib.h sys/ioctl.h sys/socket.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST # Checks for library functions. AC_PROG_GCC_TRADITIONAL AC_FUNC_VPRINTF AC_CHECK_FUNCS([gethostname inet_ntoa socket fork]) AC_ARG_WITH(libsndfile,AC_HELP_STRING([--with-sndfile],[use libsndfile]),[ac_sndfile=$withval],[ac_sndfile=yes]) AC_ARG_WITH(arts,AC_HELP_STRING([--with-arts],[aRts sound support]),[ac_arts=$withval],[ac_arts=yes]) AC_ARG_WITH(sound,AC_HELP_STRING([--with-libao],[libao sound support]),[ac_libao=$withval],[ac_libao=yes]) # # sndfile if test "x$ac_sndfile" = "xyes" then PKG_CHECK_MODULES(SNDFILE, sndfile >= 1.0.5,ac_sndfile=yes,ac_sndfile=no) fi if test "x$ac_sndfile" = "xno" then AC_MSG_WARN("Disabling build-in sound support") ac_libao="no" ac_arts="no" else AC_DEFINE([HAVE_SNDFILE],1,[use libsndfile]) # libao if test "x$ac_libao" = "xyes" then XIPH_PATH_AO([ AC_DEFINE(HAVE_LIBAO,1,[use libao/audiofile]) LIBAO_LIBS=-lao],[]) AC_MSG_NOTICE("* libao support will be compiled in *") fi # # arts if test "x$ac_arts" = "xyes" then AC_CHECK_PROG([artscfg],[artsc-config],[yes],[no]) if test "x$artscfg" = "xyes" then AC_DEFINE(HAVE_ARTS,1,[use arts]) ARTS_CFLAGS="$CXXLAGS $(artsc-config --cflags)" ARTS_LIBS="$LIBS $(artsc-config --libs)" AC_MSG_NOTICE("* aRts support will be compiled in *") fi fi fi PKG_CHECK_MODULES(OPENSSL, openssl >= 0.9.6, ac_ssl=yes,ac_ssl=no) if test "x$HAVE_OPENSSL" = "xno" then AC_MSG_ERROR("OpenSSL not found!", 1); fi BNV_HAVE_QT if test "x$have_qt" = "xno" then AC_MSG_ERROR("Qt library is required to compile VyQChat!", 1) fi AC_SUBST(LIBAO_LIBS) AC_SUBST(SNDFILE_CFLAGS) AC_SUBST(SNDFILE_LIBS) AC_SUBST(ARTS_CFLAGS) AC_SUBST(ARTS_LIBS) AC_SUBST(OPENSSL_CFLAGS) AC_SUBST(OPENSSL_LIBS) AC_CONFIG_FILES([Makefile src/Makefile gfx/Makefile gfx/default/Makefile gfx/crystal/Makefile tr/Makefile]) AC_OUTPUT