Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
93 lines (74 sloc) 3.16 KB
# Process this file with Autoconf to produce a configure script
AC_INIT( [Visual Python], [5.71_release], [visualpython-users@lists.sourceforge.net])
AM_INIT_AUTOMAKE( visual, 5.71_release)
AC_CONFIG_SRCDIR(src/core/arrow.cpp)
# Compiling C and C++ code
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_MAKE_SET
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
AM_MAINTAINER_MODE
# Determine if we are on MS Windows or Apple OSX.
# These and other VISUAL routines are found in acinclude.m4.
VISUAL_CHECK_PLATFORM()
# Determine the location of Python and its directories
AM_PATH_PYTHON(2.2)
# Verify that Numeric prerequisites are available.
VISUAL_NUMERICLIBS()
AM_CHECK_PYTHON_HEADERS([], [
AC_MSG_ERROR([A suitable python interpreter was found, but you do not have the header files required for building C/C++ extensions to python, or another problem was encoutered when compiling a program that uses Python.h.])])
PKG_PROG_PKG_CONFIG()
if test $platform_win32 = yes; then
# Some Windows-specific macros. The first two are used exclusively by the
# .iss.in script
# The current working directory, as a backslashified Win32 style path.
AC_SUBST([WIN32_CWD], [`pwd -W | sed -e "s/\\//\\\\\/g"`])
# The top-level source directory.
AC_SUBST([WIN32_SRCDIR], [`cd $srcdir ; pwd -W | sed -e "s/\\//\\\\\/g"`])
# The major.minor version of Python, with the "." stripped out.
AC_SUBST([WIN32_PYTHON_VERSION], [`echo $PYTHON_VERSION | sed -e "s/\.//"`])
fi
# Check whether key libraries are available and give feedback.
PKG_CHECK_MODULES( GTKGLEXTMM, gtkglextmm-1.2 >= 1.2, ,
[AC_MSG_ERROR([gtkglextmm 1.2 is required])])
PKG_CHECK_MODULES( GLIBMM, glibmm-2.4, ,
[AC_MSG_ERROR([glibmm-2.4 is required])])
PKG_CHECK_MODULES( PANGOMM, pangomm-1.4, ,
[AC_MSG_ERROR([pangomm-1.4 is required])])
PKG_CHECK_MODULES( LIBGLADEMM, libglademm-2.4, ,
[AC_MSG_ERROR([libglademm-2.4 is required])])
PKG_CHECK_MODULES( PANGOFT2, pangoft2, ,
[AC_MSG_ERROR([pangoft2 is required])])
PKG_CHECK_MODULES( FREETYPE2, freetype2, ,
[AC_MSG_ERROR([freetype2 is required])])
# Having checked various libraries individually, now repeat the check for the
# whole set of them, and this information will be used for compilation and linking.
PKG_CHECK_MODULES( GTK, [gtkglextmm-1.2 >= 1.2 pangoft2 glibmm-2.4 pangomm-1.4 libglademm-2.4 freetype2], ,
[AC_MSG_ERROR([gtkglextmm 1.2, pangoft2, glibmm-2.4, and pangomm-1.4 libglademm-2.4 are required on Unix-like systems])])
AC_SUBST([GTK_LIBS])
AC_SUBST([GTK_CFLAGS])
PKG_CHECK_MODULES( GTHREAD, gthread-2.0 >= 2.0, ,
[AC_MSG_ERROR(GThread 2.0+ is required on Unix-like systems)])
AC_SUBST([GTHREAD_CFLAGS])
AC_SUBST([GTHREAD_LIBS])
# Enable installation of vis folder
VISUAL_VIS()
# Enable documentation and visualdocdir if desired
VISUAL_DOCS()
# Enable demos and visualdemodir if desired
VISUAL_EXAMPLES()
if test "x$PYTHONPATH" = "x" ; then
python_path="\$PYTHONPATH"
else
python_path="$PYTHONPATH:\$PYTHONPATH"
fi
AC_SUBST([PYTHONPATH], "$python_path")
AC_CONFIG_FILES( Makefile src/Makefile site-packages/visual/Makefile site-packages/vis/Makefile
docs/Makefile examples/Makefile bin/vpython)
AM_CONFIG_HEADER( include/config.h)
AC_OUTPUT()
Something went wrong with that request. Please try again.