# # Most of this configure script was ripped from pidgin or the # pidgin-encryption configure script, thanks guys ;) # AC_INIT([pidgin-guifications], [2.14], [guifications-devel@lists.guifications.org]) AC_CANONICAL_SYSTEM AM_CONFIG_HEADER(pre_config.h) AM_INIT_AUTOMAKE([foreign dist-bzip2]) AC_PREREQ([2.50]) AC_PATH_PROG(sedpath, sed) AC_DISABLE_STATIC dnl This disables check of libtool for these compilers CXX=no F77=no GCJ=no # # Setup libtool # AM_PROG_LIBTOOL LIBTOOL="$LIBTOOL --silent" # # I'm lazy and figured config.h is the best place for this ;) # AC_DEFINE_UNQUOTED(GF_WEBSITE, "http://pidgin.guifications.org", [Guifications Website]) # # Our header # AH_TOP([ /* our header */ #ifndef _GF_CONFIG_H #define _GF_CONFIG_H ]) AH_BOTTOM([ #endif /* _GF_CONFIG_H */ ]) # # Good o' gettext # AC_PROG_INTLTOOL GETTEXT_PACKAGE=guifications AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, ["$GETTEXT_PACKAGE"], [Define the gettext package to be used.]) ALL_LINGUAS="bn cs de en_AU en_GB es fr gl he hu it ja mk nl no pt pt_BR ru sk sr sr@Latn sv uk zh_CN zh_TW" AM_GLIB_GNU_GETTEXT # # Look for the C compiler # CFLAGS_save="$CFLAGS" AC_PROG_CC_STDC CFLAGS="$CFLAGS_save" AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) AC_ARG_ENABLE(deprecated, [ --disable-deprecated compile without deprecated API usage],,enable_deprecated=yes) if test "x$enable_debug" = "xyes" ; then AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) fi if test "x$enable_deprecated" = no; then DEBUG_CFLAGS = "$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" fi AC_SUBST(DEBUG_CFLAGS) if test "x$GCC" = "xyes"; then CFLAGS="$CFLAGS -Wall -g3" fi AC_SUBST(CFLAGS) # # Check for pidgin # PKG_CHECK_MODULES(PIDGIN, pidgin purple) AC_SUBST(PIDGIN_CFLAGS) AC_SUBST(PIDGIN_LIBS) AC_SUBST(PURPLE_CFLAGS) AC_SUBST(PURPLE_LIBS) PIDGIN_LIBDIR=`pkg-config --variable=libdir pidgin` PIDGIN_DATADIR=`pkg-config --variable=datadir pidgin` AC_SUBST(PIDGIN_LIBDIR) AC_SUBST(PIDGIN_DATADIR) # # check for gtk and other dependencies # AM_PATH_GLIB_2_0(2.0.0,,AC_MSG_ERROR([ *** GLib 2.0 is required to build Guifications; please make sure you have the *** GLib development headers installed. The latest version of GLib is always *** available at http://www.gtk.org/.])) AC_SUBST(GLIB_LIBS) AC_SUBST(GLIB_CFLAGS) AM_PATH_GTK_2_0(2.0.0,,AC_MSG_ERROR([ *** GTK+ 2.0 is required to build Guifications; please make sure you have the *** GTK+ development headers installed. The latest version of GTK+ is always *** available at http://www.gtk.org/.])) AC_SUBST(GTK_LIBS) AC_SUBST(GTK_CFLAGS) # # check for freetype 2 # PKG_CHECK_MODULES(PANGOFT2, pangoft2 >= 1.1.0, [ AC_DEFINE(HAVE_PANGOFT2, 1, [Define if we've found pangoft2.]) ]) AC_SUBST(PANGOFT2_CFLAGS) AC_SUBST(PANGOFT2_LIBS) # # Check if plugins are enabled # want_plugins=yes AM_CONDITIONAL(PLUGINS, test "$want_plugins" = "yes") # # Version stuff # AC_CONFIG_COMMANDS_PRE([ if test -e VERSION; then cp -p VERSION VERSION.ac-save fi ]) AC_CONFIG_COMMANDS_POST([ cmp VERSION VERSION.ac-save || touch -r VERSION.ac-save VERSION rm -f VERSION.ac-save ]) # # Finish up # AC_OUTPUT([Makefile VERSION pidgin-guifications.spec doc/Makefile nsis/Makefile nsis/translations/Makefile pixmaps/Makefile po/Makefile.in src/Makefile themes/Makefile themes/default/Makefile themes/funky/Makefile themes/mini/Makefile themes/Penguins/Makefile ]) echo; echo Configuration complete echo; echo Debugging enabled..............: $enable_debug echo Deprecated API enabled.........: $enable_deprecated echo; echo Type make to compile echo Thank you for using Guifications echo;