636N/Adnl Process this file with autoconf to produce a configure script.
636N/AAC_INIT(inkscape, 0.45+devel)
636N/Adnl
N.B. After 0.40, please change to `0.40+cvs' instead of `0.41cvs'.
636N/Adnl Rationale: (i) placate simple version comparison software such as
636N/Adnl `dpkg --compare-versions'. (ii) We don't always know what the next
636N/Adnl version is going to be called until about the time we release it
636N/Adnl (whereas we always know what the previous version was called).
636N/AAC_ARG_ENABLE([lsb], AS_HELP_STRING([--enable-lsb], [LSB-compatible build configuration]), [
636N/Adnl These next few lines are needed only while libcroco is in our source tree.
636N/AAC_MSG_NOTICE([Testing -Wno-pointer-sign])
636N/Aif test "$GCC" = "yes"; then
636N/A # Enable some warnings from gcc.
636N/A # -Wno-pointer-sign is probably new in gcc 4.0; certainly it isn't accepted
636N/A ink_svd_CFLAGS="$CFLAGS"
636N/A CFLAGS="-Wno-pointer-sign $CFLAGS"
636N/A AC_COMPILE_IFELSE(AC_LANG_PROGRAM([]), AC_MSG_NOTICE([ compiler supports -Wno-pointer-sign]), CFLAGS="$ink_svd_CFLAGS")
636N/A CFLAGS="-Wall -Wformat-security -W -D_FORTIFY_SOURCE=2 $CFLAGS"
636N/AACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
636N/Adnl Verify our GCC version
636N/Aif test "x$GXX" = "xyes"; then
636N/A AC_MSG_CHECKING([GNU compiler version])
636N/A # Don't pass CXXFLAGS to the following CXX command as some
636N/A # of them can't be specified along with '-v'.
636N/A sed 's/.*gcc version \([-a-z0-9\.]*\).*/\1/'`"]
636N/A AC_MSG_RESULT([$cc_version])
636N/A cc_vers_major=`echo $cc_version | cut -f1 -d.`
636N/A cc_vers_minor=`echo $cc_version | cut -f2 -d.`
636N/A cc_vers_patch=`echo $cc_version | cut -f3 -d.`
636N/A test -n "$cc_vers_major" || cc_vers_major=0
636N/A test -n "$cc_vers_minor" || cc_vers_minor=0
636N/A test -n "$cc_vers_patch" || cc_vers_patch=0
636N/A cc_vers_all=`expr $cc_vers_major '*' 1000000 + $cc_vers_minor '*' 1000 + $cc_vers_patch`
636N/A if test $cc_vers_major -lt 3; then
636N/A AC_MSG_ERROR([gcc >= 3.0 is needed to compile inkscape])
636N/Adnl ******************************
636N/Adnl ******************************
1087N/AGETTEXT_PACKAGE="AC_PACKAGE_NAME"
1087N/AAC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Translation domain used])
1087N/Adnl Add the languages which your application supports here.
1087N/AALL_LINGUAS="am az be bg bn ca cs da de dz el en_AU en_CA en_GB en_US@piglatin eo es_MX es et eu fi fr ga gl he hr hu id it ja km ko lt mk mn nb ne nl nn pa pl pt_BR pt ro ru rw sk sl sq sr@Latn sr sv th tr uk vi zh_CN zh_TW"
1087N/AAC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1087N/Aif test "x$PKG_CONFIG" = "xno"; then
1087N/A AC_MSG_ERROR(You have to install pkg-config to compile inkscape.)
1087N/AAC_PATH_PROG(MSGFMT, msgfmt, msgfmt)
1087N/AAC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
1087N/Adnl ******************************
1087N/Adnl ******************************
1087N/AAC_CHECK_LIB(png, png_read_info, [AC_CHECK_HEADER(
png.h, png_ok=yes, png_ok=no)], png_ok=no, -lz -lm)
1087N/Aif test "x$png_ok" != "xyes"; then
1087N/A AC_MSG_ERROR([libpng >= 1.2 is needed to compile inkscape])
dnl Handle possible dlopen requirement for libgc
dnl Isn't this internal to something in autoconf? Couldn't find it...
AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen],
[AC_CHECK_LIB([dl], [dlopen],
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
[AC_CHECK_LIB([svld], [dlopen],
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
[AC_CHECK_LIB([dld], [dld_link],
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
# To test for the different required libs, I have to
# overcome autoconf's caching system, so I change the
# desired function name. They're all in libgc.
# The "break" will exit from the top level
AC_CHECK_LIB(gc, GC_init,
LIBS="-lgc $gc_libs $LIBS";
break], [gc_ok=no], [$gc_libs])
AC_CHECK_LIB(gc, GC_malloc,
LIBS="-lgc $gc_libs $LIBS";
break], [gc_ok=no], [$gc_libs])
gc_libs="$lt_cv_dlopen_libs"
AC_CHECK_LIB(gc, GC_realloc,
LIBS="-lgc $gc_libs $LIBS";
break], [gc_ok=no], [$gc_libs])
gc_libs="-lpthread $lt_cv_dlopen_libs"
AC_CHECK_LIB(gc, GC_free,
LIBS="-lgc $gc_libs $LIBS";
break], [gc_ok=no], [$gc_libs])
if test "x$gc_ok" = "xyes"; then
AC_MSG_CHECKING([libgc version 6.4+])
extern unsigned GC_version;
unsigned min = ((6 << 16) | (4 << 8) | 0);
printf("%d.%d.%d ",GC_version >> 16, (GC_version >> 8) & 0xFF, GC_version & 0xFF);
if (GC_version>=min) return 0;
if test "x$gc_ok" != "xyes"; then
dnl This check is to get a FIONREAD definition on Solaris 8
AC_CHECK_FUNCS([mallinfo], [
AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no)
if test "x$FREETYPE_CONFIG" = "xno"; then
AC_MSG_ERROR([Cannot find freetype-config])
FREETYPE_CFLAGS=`$FREETYPE_CONFIG --cflags`
FREETYPE_LIBS=`$FREETYPE_CONFIG --libs`
AC_SUBST(FREETYPE_CFLAGS)
dnl ******************************
dnl ******************************
AC_MSG_CHECKING([for Win32 platform])
INKSCAPE_CFLAGS="$INKSCAPE_CFLAGS -mms-bitfields -DLIBXML_STATIC"
AC_MSG_RESULT([$platform_win32])
AM_CONDITIONAL(PLATFORM_WIN32, test "$platform_win32" = "yes")
AC_MSG_CHECKING([for Solaris 2.8 platform])
CFLAGS="$CFLAGS -DSOLARIS_2_8"
CXXFLAGS="$CXXFLAGS -DSOLARIS_2_8"
AC_MSG_RESULT([$platform_solaris_2_8])
AM_CONDITIONAL(PLATFORM_SOLARIS_2_8, test "$platform_solaris_2_8" = "yes")
dnl ******************************
dnl ******************************
AC_HELP_STRING([--with-xft], [use xft scalable font database (default is auto)]),
[with_xft=$withval], [with_xft=auto])
if test "x$with_xft" != "xno" ; then
dnl Test fontconfig package
PKG_CHECK_MODULES(XFT, xft, xft_ok=yes, xft_ok=no)
if test "x$xft_ok" != "xyes"; then
PKG_CHECK_MODULES(XFT, fontconfig, xft_ok=yes, xft_ok=no)
if test "x$xft_ok" != "xyes"; then
dnl Have to test xft presence
if test "x$xft_ok" != "xyes"; then
if test "x$with_xft" = "xyes"; then
dnl Xft was explicitly asked, so stop
AC_MSG_ERROR([--with-xft was specified, but appropriate development packages could not be found])
AM_CONDITIONAL(USE_XFT, test "x$xft_ok" = "xyes")
if test "x$xft_ok" = "xyes"; then
AC_DEFINE(WITH_XFT, 1, [Use Xft font database])
dnl ******************************
dnl ******************************
if test "x$xft_ok" = "xyes"; then
PKG_CHECK_MODULES(PANGOFT2, pangoft2, pango_ok=yes, pango_ok=no)
if test "x$pango_ok" = "xyes"; then
XFT_LIBS="$XFT_LIBS $PANGOFT2_LIBS"
dnl ******************************
dnl ******************************
AC_HELP_STRING([--with-gnome-print], [use gnome print font database and spooler frontend]),
[with_gp=$withval], [with_gp=auto])
if test "x$with_gp" = "xyes"; then
dnl Have to test gnome-print presence
PKG_CHECK_MODULES(GNOME_PRINT, libgnomeprint-2.2 >= 1.116.0 libgnomeprintui-2.2 >= 1.116.0, gp=yes, gp=no)
if test "x$gp" != "xyes"; then
if test "x$with_gp" = "xyes"; then
dnl Gnome-print was explicitly asked, so stop
AC_MSG_ERROR([--with-gnome-print was specified, but appropriate libgnomeprint development packages could not be found])
# gp is no, tell us for the log file
dnl Asked to ignore gnome-print
AC_SUBST(GNOME_PRINT_CFLAGS)
AC_SUBST(GNOME_PRINT_LIBS)
AM_CONDITIONAL(USE_GNOME_PRINT, test "x$gp" = "xyes")
if test "x$gp" = "xyes"; then
AC_DEFINE(WITH_GNOME_PRINT, 1, [Use gnome print font database and spooler frontend])
dnl ******************************
dnl ******************************
AC_HELP_STRING([--with-gnome-vfs], [use gnome vfs for loading files]),
[with_gnome_vfs=$withval], [with_gnome_vfs=auto])
if test "x$with_gnome_vfs" = "xno"; then
dnl Asked to ignore gnome-vfs
dnl Have to test gnome-vfs presence
PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= 2.0, gnome_vfs=yes, gnome_vfs=no)
if test "x$gnome_vfs" != "xyes"; then
if test "x$with_gnome_vfs" = "xyes"; then
dnl Gnome-VFS was explicitly asked for, so stop
AC_MSG_ERROR([--with-gnome-vfs was specified, but appropriate libgnomevfs development packages could not be found])
# gnome-vfs is no, tell us for the log file
AC_MSG_RESULT($gnome_vfs)
AM_CONDITIONAL(USE_GNOME_VFS, test "x$gnome_vfs" = "xyes")
if test "x$gnome_vfs" = "xyes"; then
AC_DEFINE(WITH_GNOME_VFS, 1, [Use gnome vfs file load functionality])
AC_SUBST(GNOME_VFS_CFLAGS)
dnl ******************************
dnl ******************************
AC_HELP_STRING([--without-inkjar], [disable openoffice files (SVG jars)]),[with_ij=$withval], [with_ij=yes])
if test "x$with_ij" = "xyes"; then
AC_DEFINE(WITH_INKJAR, 1, [enable openoffice files (SVG jars)])
AM_CONDITIONAL(INKJAR, test "$with_ij" = "yes")
if pkg-config --exists gtkspell-2.0; then
ink_spell_pkg=gtkspell-2.0
AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget])
dnl ******************************
dnl ******************************
AC_MSG_CHECKING(for Perl development environment)
AC_HELP_STRING([--with-perl], [use Perl for embedded scripting (EXPERIMENTAL)]),
[with_perl=$withval], [with_perl=skipped])
if test "x$with_perl" = "xyes"; then
checkPERL_CFLAGS=`perl -MExtUtils::Embed -e perl_inc 2>
/dev/null`
if test "$?" -gt "0"; then
checkPERL_LIBS=`perl -MExtUtils::Embed -e ldopts 2>
/dev/null`
if test "$?" -gt "0"; then
AC_MSG_RESULT([$with_perl])
if test "x$with_perl" = "xyes"; then
# Test that we actually have the perl libraries installed
CFLAGS="$CFLAGS $checkPERL_CFLAGS"
LIBS="$LIBS $checkPERL_LIBS"
AC_CHECK_FUNC([perl_parse],[
PERL_CFLAGS="$checkPERL_CFLAGS"
PERL_LIBS="$checkPERL_LIBS"
AC_DEFINE(WITH_PERL, 1, [use Perl for embedded scripting])
AM_CONDITIONAL(WITH_PERL, test "x$with_perl" = "xyes")
dnl ******************************
dnl ******************************
AC_MSG_CHECKING(for Python development environment)
AC_HELP_STRING([--with-python], [use Python for embedded scripting (EXPERIMENTAL)]),
[with_python=$withval], [with_python=skipped])
if test "x$with_python" = "xyes"; then
if test "$?" -gt "0"; then
if test "$?" -gt "0"; then
AC_MSG_RESULT([$with_python])
if test "x$with_python" = "xyes"; then
# Test that we actually have the python libraries installed
CFLAGS="$CFLAGS $checkPYTHON_CFLAGS"
LIBS="$LIBS $checkPYTHON_LIBS"
AC_CHECK_FUNC([Py_Initialize],[
PYTHON_CFLAGS="$checkPYTHON_CFLAGS"
PYTHON_LIBS="$checkPYTHON_LIBS"
AC_DEFINE(WITH_PYTHON, 1, [use Python for embedded scripting])
AM_CONDITIONAL(WITH_PYTHON, test "x$with_python" = "xyes")
dnl ******************************
dnl ******************************
AC_HELP_STRING([--enable-lcms], [enable LittleCms for color management]),
[enable_lcms=$enableval], [enable_lcms=yes])
if test "x$enable_lcms" = "xno"; then
dnl Asked to ignore LittleCms
dnl Have to test LittleCms presence
PKG_CHECK_MODULES(LCMS, lcms >= 1.13, lcms=yes, lcms=no)
if test "x$lcms" != "xyes"; then
if test "x$enable_lcms" = "xyes"; then
dnl LittleCms was explicitly asked for, so stop
AC_MSG_ERROR([--enable-lcms was specified, but appropriate LittleCms development packages could not be found])
# lcms is no, tell us for the log file
if test "x$lcms" = "xyes"; then
AC_DEFINE(ENABLE_LCMS, 1, [Use LittleCms color management])
AM_CONDITIONAL(USE_LCMS, test "x$lcms" = "xyes")
dnl ******************************
dnl ******************************
PKG_CHECK_MODULES(POPPLER, poppler >= 0.5, poppler=yes, poppler=no)
if test "x$poppler" = "xyes"; then
POPPLER_LIBS="-lpoppler "
dnl Have to test libpoppler-glib presence
PKG_CHECK_MODULES(POPPLER_GLIB, poppler-glib >= 0.5, poppler_glib=yes, poppler_glib=no)
if test "x$poppler_glib" = "xyes"; then
dnl Working libpoppler-glib found
dnl Check whether the Cairo SVG backend is available
PKG_CHECK_MODULES(CAIRO_SVG, cairo-svg, cairo_svg=yes, cairo_svg=no)
if test "x$cairo_svg" = "xyes"; then
POPPLER_LIBS="$POPPLER_LIBS -lpoppler-glib "
if test "x$poppler" = "xyes"; then
LIBS="$LIBS $POPPLER_LIBS"
AC_DEFINE(HAVE_POPPLER, 1, [Use libpoppler for direct PDF import])
if test "x$poppler_glib" = "xyes" -a "x$cairo_svg" = "xyes"; then
AC_DEFINE(HAVE_POPPLER_GLIB, 1, [Use libpoppler-glib and Cairo-SVG for PDF import])
dnl ******************************
dnl Inkboard dependency checking
dnl ******************************
AS_HELP_STRING([--enable-inkboard], [enable Inkboard online whiteboard facility (disabled by default)]),
with_inkboard=$enableval,with_inkboard=no)
if test "x$with_inkboard" = "xyes"; then
AC_DEFINE(WITH_INKBOARD,1,[Build in Inkboard support])
PKG_CHECK_MODULES(INKBOARD, openssl, with_inkboard_ssl=yes, with_inkboard_ssl=no)
if test "x$with_inkboard_ssl" = "xyes"; then
dnl OpenSSL found; enable SSL support in Pedro
INKBOARD_CFLAGS="$INKBOARD_CFLAGS -DHAVE_SSL"
RELAYTOOL([ssl], INKBOARD_LIBS, INKBOARD_CFLAGS, [inkboard_weak=yes])
RELAYTOOL([crypto], INKBOARD_LIBS, INKBOARD_CFLAGS, [inkboard_weak=yes])
AC_DEFINE(WITH_INKBOARD_SSL,1,[Build in SSL support for Inkboard])
AM_CONDITIONAL(WITH_INKBOARD, test "x$with_inkboard" = "xyes")
AC_SUBST(INKBOARD_CFLAGS)
dnl ******************************
dnl Unconditional dependencies
dnl ******************************
dnl sigc++-2.0 >= 2.0.12: using "visit_each" not available in 2.0.10
if test $cc_vers_major -gt 3; then
PKG_CHECK_MODULES(INKSCAPE, gdkmm-2.4 glibmm-2.4 gtkmm-2.4 gtk+-2.0 >= 2.8.0 libxml-2.0 >= 2.6.11 libxslt >= 1.0.15 cairo sigc++-2.0 >= $min_sigc_version $ink_spell_pkg gthread-2.0 >= 2.0 libpng >= 1.2)
PKG_CHECK_MODULES(CAIRO_PDF, cairo-pdf, cairo_pdf=yes, cairo_pdf=no)
if test "x$cairo_pdf" = "xyes"; then
AC_DEFINE(HAVE_CAIRO_PDF, 1, [Whether the Cairo PDF backend is available])
PKG_CHECK_MODULES(GTK_UNIX_PRINT, gtk+-unix-print-2.0, gtk_unix_print=yes, gtk_unix_print=no)
if test "x$gtk_unix_print" = "xyes"; then
AC_DEFINE(HAVE_GTK_UNIX_PRINT, 1, [Whether the GTK Unix printing backend is available])
dnl Shouldn't we test for libpng and libz?
INKSCAPE_LIBS="$INKSCAPE_LIBS -lpng -lz"
[INKSCAPE_LIBS="$INKSCAPE_LIBS -lpopt"],
AC_MSG_ERROR([libpopt is required]))
dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
LIBS="$LIBS $INKSCAPE_LIBS"
AC_CHECK_FUNCS(bind_textdomain_codeset)
dnl Check for gtk_window_fullscreen in gtk (>= 2.2)
AC_CHECK_FUNCS(gtk_window_set_default_icon_from_file)
AC_CHECK_FUNCS(gtk_window_fullscreen)
dnl Check for binary relocation support
dnl Hongli Lai <h.lai@chello.nl>
[ --enable-binreloc compile with binary relocation support],
enable_binreloc=$enableval,enable_binreloc=no)
AC_MSG_CHECKING(whether binary relocation support should be enabled)
if test "$enable_binreloc" = "yes"; then
AC_MSG_ERROR(
/proc/self/maps is not available. Binary relocation cannot be enabled.)
elif test "$enable_binreloc" = "auto"; then
AC_MSG_RESULT(yes when available)
AC_MSG_CHECKING(whether everything is installed to the same prefix)
if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \
"$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \
"$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc'
AC_MSG_NOTICE(Binary relocation support will be disabled.)
elif test "$enable_binreloc" = "no"; then
AC_MSG_RESULT(no (unknown value "$enable_binreloc"))
AC_DEFINE(BR_PTHREADS,[0],[Use binreloc thread support?])
if test "$enable_binreloc" = "yes"; then
AC_DEFINE(ENABLE_BINRELOC,,[Use AutoPackage?])
[ --enable-osxapp compile with OSX .app data dir paths],
enable_osxapp=$enableval,enable_osxapp=no)
if test "$enable_osxapp" = "yes"; then
AC_DEFINE(ENABLE_OSX_APP_LOCATIONS,,[Build with OSX .app data dir paths?])
dnl ******************************
dnl ******************************
# if we did not find pow(), see if it's in libm.
if test x"$ac_cv_func_pow" = x"no" ; then
AC_CHECK_FUNCS(gettimeofday)
AC_CHECK_FUNCS(strncasecmp)
AC_CHECK_FUNCS(fpsetmask)
dnl Work around broken gcc 3.3 (seen on OSX) where "ENABLE_NLS" isn't
dnl set correctly because the gettext function isn't noticed.
if test "$ac_cv_header_libintl_h" = "yes" &&
test "$ac_cv_func_bind_textdomain_codeset" = "yes" &&
test "$gt_cv_func_have_gettext" != "yes"; then
dnl ******************************
dnl ******************************
if test "$GXX" = "yes"; then
# Enable some warnings from g++.
# Rationale: a number of bugs in inkscape have been fixed by enabling g++
# warnings and addressing the produced warnings. Usually the committing
# developer is the best person to address the warnings.
ink_svd_CXXFLAGS="$CXXFLAGS"
CXXFLAGS="-Wno-unused-parameter $CXXFLAGS"
# -Wno-unused-parameter isn't accepted by gcc 2.95.
AC_COMPILE_IFELSE([int dummy;
], , CXXFLAGS="-Wno-unused $ink_svd_CXXFLAGS",)
# Note: At least one bug has been caught from unused parameter warnings,
# so it might be worth trying not to disable it.
# One way of selectively disabling the warnings (
i.e. only where the
# programmer deliberately isn't using the parameter,
e.g. for a callback)
# is to remove the parameter name (leaving just its type), as is done
# programmer deliberately has an unused parameter (
e.g. because it's used
# as a callback or similar function pointer use).
CXXFLAGS="-Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -D_FORTIFY_SOURCE=2 $CXXFLAGS"
dnl Test for arch-specific situations.
dnl Symbol tables can get too large: this uses alternate tables
CXXFLAGS="$CXXFLAGS -Wa,-xgot"
CFLAGS="$CFLAGS -Wa,-xgot"
AC_DEFINE(WITH_MODULES, 1, [Use experimental module support])
dnl ******************************
dnl ******************************
dnl AC_ARG_ENABLE(libinkscape, AC_HELP_STRING([--enable-libinkscape], [Compile dynamic library (experimental)]), [splib=$enableval], [splib=no])
dnl AM_CONDITIONAL(ENABLE_LIBINKSCAPE, test "x$splib" != "xno")
AC_SUBST(INKSCAPE_CFLAGS)
# Checks to see if we should compile in MMX support (there will be
# a runtime test when the code is actually run to see if it should
# be used - this just checks if we can compile it.)
# This code is partially taken from Mesa
dnl Let people disable the MMX optimization
AC_ARG_ENABLE(mmx, [ --disable-mmx Don't use MMX optimization [default=auto]], enable_mmx="$enableval", enable_mmx=auto)
AC_MSG_CHECKING(for x86 platform)
i386|i486|i586|i686|i786|k6|k7)
AC_MSG_RESULT($use_x86_asm)
dnl Are we going to use MMX extensions
AC_MSG_CHECKING(compiler support for MMX)
if test x$enable_mmx = xauto ; then
if test $use_x86_asm = yes; then
if AC_TRY_EVAL(ac_compile); then
dnl Enforce usage of MMX extensions
elif test x$enable_mmx = xyes ; then
if test $use_mmx_asm = yes; then
AC_DEFINE(WITH_MMX, 1, [Use MMX optimizations, if CPU supports it])
AM_CONDITIONAL(USE_MMX, test x$use_mmx_asm = xyes)
dnl Figure out where the datadir actually is
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
dnl In Autoconf 2.60, ${datadir} refers to ${datarootdir}, which in turn
dnl refers to ${prefix}. Thus we have to use `eval' twice.
eval runtime_datadir="${datadir}"
eval runtime_datadir="${runtime_datadir}"
test "$prefix_NONE" && prefix=NONE
test "$exec_prefix_NONE" && exec_prefix=NONE
inkscape_sharedir="${runtime_datadir}/${PACKAGE_NAME}"
AC_SUBST(INKSCAPE_DATADIR)
AC_DEFINE_UNQUOTED([INKSCAPE_DATADIR], "${runtime_datadir}",
AC_SUBST(PACKAGE_LOCALE_DIR)
AC_DEFINE_UNQUOTED([PACKAGE_LOCALE_DIR], "${runtime_datadir}/locale",
[Localization directory])
AC_SUBST(INKSCAPE_LIBDIR)
AC_DEFINE_UNQUOTED([INKSCAPE_LIBDIR], "${prefix}/lib",
dnl Have to add module makefiles (lauris)
Source code location: ${srcdir}
Destination path prefix: ${prefix}
Use Xft font database: ${xft_ok}
Use gnome-vfs: ${gnome_vfs}
Use openoffice files: ${ij}
Use MMX optimizations: ${use_mmx_asm}
Use relocation support: ${enable_binreloc}
Internal Python: ${with_python}
Internal Perl: ${with_perl}
Enable LittleCms: ${enable_lcms}
Enable Inkboard: ${with_inkboard}
Enable SSL in Inkboard: ${with_inkboard_ssl}