# Configure.in # # This file tests for various compiler features needed to configure # the gtkmm package. Original skeleton was provided by Stephan Kulow. # All tests were written by Tero Pulkkinen, Mirko Streckenbach, and # Karl Nelson. # # # Copyright 2001 Free Software Foundation # Copyright 1999 gtkmm Development Team # Copyright 1998 Stephan Kulow # ######################################################################### # Version and initialization ######################################################################### #We use pushdef here because we can't use shell variables before AC_INIT, but we want to use a variable with AC_INIT: pushdef([GTKIMAGEVIEWMM_MAJOR_VERSION], [1]) pushdef([GTKIMAGEVIEWMM_MINOR_VERSION], [0]) pushdef([GTKIMAGEVIEWMM_MICRO_VERSION], [0]) pushdef([GTKIMAGEVIEWMM_EXTRA_VERSION], []) pushdef([GTKIMAGEVIEWMM_VERSION], GTKIMAGEVIEWMM_MAJOR_VERSION.GTKIMAGEVIEWMM_MINOR_VERSION.GTKIMAGEVIEWMM_MICRO_VERSION[]GTKIMAGEVIEWMM_EXTRA_VERSION) AC_INIT([gtkimageviewmm], GTKIMAGEVIEWMM_VERSION, [gtkmm-list@gnome.org]) AC_CONFIG_SRCDIR([gtkimageview/gtkimageviewmmconfig.h.in]) #AC_PREREQ(2.59) # # +1 : ? : +1 == new interface that does not break old one # +1 : ? : 0 == new interface that breaks old one # ? : ? : 0 == no new interfaces, but breaks apps # ? :+1 : ? == just some internal changes, nothing breaks but might work # better # CURRENT : REVISION : AGE GTKIMAGEVIEWMM_SO_VERSION=0:0:0 AC_SUBST(GTKIMAGEVIEWMM_VERSION) AC_SUBST(GTKIMAGEVIEWMM_RELEASE) AC_SUBST(GTKIMAGEVIEWMM_SO_VERSION) AC_CONFIG_AUX_DIR(scripts) dnl For automake. VERSION=$GTKIMAGEVIEWMM_VERSION PACKAGE=gtkimageviewmm dnl Initialize automake stuff # Initialize automake stuff # tar-ustar asks it to use a sensible tar format that can handle long filenames. AM_INIT_AUTOMAKE([1.9 tar-ustar]) dnl Specify a configuration file (no autoheader) AM_CONFIG_HEADER(gtkimageview/gtkimageviewmmconfig.h) AM_MAINTAINER_MODE AL_ACLOCAL_INCLUDE(scripts) ######################################################################### # Configure arguments ######################################################################### ######################################################################### # Environment Checks ######################################################################### AC_PROG_CC AC_PROG_CPP AC_PROG_MAKE_SET AC_CANONICAL_HOST dnl Used for enabling the "-no-undefined" flag while generating DLLs dnl Copied from the official gtk+-2 configure.in AC_MSG_CHECKING([for some Win32 platform]) case "$host" in *-*-mingw*|*-*-cygwin*) platform_win32=yes ;; *) platform_win32=no ;; esac AC_MSG_RESULT([$platform_win32]) AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes") AC_MSG_CHECKING([for native Win32]) case "$host" in *-*-mingw*) os_win32=yes ;; *) os_win32=no ;; esac AC_MSG_RESULT([$os_win32]) AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes") AM_DISABLE_STATIC AC_LIBTOOL_WIN32_DLL AM_PROG_LIBTOOL AL_PROG_GNU_M4(AC_MSG_ERROR([dnl SUN m4 does not work for building gtkmm. Please install GNU m4.])) AL_PROG_GNU_MAKE(AC_MSG_ERROR([dnl SUN make does not work for building gtkmm. Please install GNU make.])) AL_PROG_PERL(AC_MSG_ERROR([Perl is required to build gtkmm.])) AC_CHECK_PROGS(PERL, perl5 perl) ######################################################################### # Dependancy checks ######################################################################### PKG_CHECK_MODULES(GTKIMAGEVIEWMM, glibmm-2.4 >= 2.12.8 gtkimageview >= 1.6.0 gtkmm-2.4 >= 2.12.0) AC_SUBST(GTKIMAGEVIEWMM_CFLAGS) AC_SUBST(GTKIMAGEVIEWMM_LIBS) GLIBMM_PREFIX=`pkg-config --variable=prefix glibmm-2.4` GMM_PROCDIR=$GLIBMM_PREFIX/lib/glibmm-2.4/proc AC_SUBST(GMM_PROCDIR) GMM_PROC=$GMM_PROCDIR/gmmproc AC_SUBST(GMM_PROC) ######################################################################### # C++ checks ######################################################################### AC_PROG_CXX AC_LANG_CPLUSPLUS # Create a list of input directories for Doxygen. We have to check wether # we are building in the source directory, because Doxygen doesn't like # duplicated directories in the input list. GTKIMAGEVIEWMM_DOXYGEN_INPUT='' gtkmm_srcdir=`cd "$srcdir" && pwd` gtkmm_builddir=`pwd` for sublib in gtkimageview do GTKIMAGEVIEWMM_DOXYGEN_INPUT="$GTKIMAGEVIEWMM_DOXYGEN_INPUT $gtkmm_builddir/$sublib/$sublib""mm/" test "x$gtkmm_builddir" = "x$gtkmm_srcdir" || \ GTKIMAGEVIEWMM_DOXYGEN_INPUT="$GTKIMAGEVIEWMM_DOXYGEN_INPUT $gtkmm_srcdir/$sublib/$sublib""mm/" done AC_SUBST(GTKIMAGEVIEWMM_DOXYGEN_INPUT) # Add an --enable-reference option: AC_ARG_ENABLE(reference, [ --enable-reference Build the reference documentation], [case "${enableval}" in yes) reference=true ;; no) reference=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-reference) ;; esac],[reference=false]) AM_CONDITIONAL(BUILD_REFERENCE, test x$reference = xtrue) # Dummy conditional just to make automake-1.4 happy. # We need an always-false condition in docs/Makefile.am. AM_CONDITIONAL(GTKIMAGEVIEWMM_FALSE,[false]) # HACK: Assign a dummy in order to prevent execution of autoheader by the # maintainer-mode rules. That would fail since we aren't using autoheader. AUTOHEADER=':' AC_OUTPUT([ Makefile gtkimageview/Makefile gtkimageview/gtkimageviewmm-1.0.pc gtkimageview/gtkimageviewmm-1.0-uninstalled.pc gtkimageview/src/Makefile gtkimageview/gtkimageviewmm/Makefile gtkimageview/gtkimageviewmm/private/Makefile tools/Makefile tools/extra_defs_gen/Makefile tools/m4/Makefile tools/generate_wrap_init.pl scripts/Makefile docs/Makefile docs/reference/Makefile docs/reference/Doxyfile examples/Makefile examples/simple/Makefile ])