mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Added initjamfile.m4 from autojam, so make specific
variables can be correctly translated to jam world.
This commit is contained in:
parent
359b79be0d
commit
f91493d49b
@ -31,6 +31,7 @@ else
|
|||||||
fi
|
fi
|
||||||
AC_DEFINE_UNQUOTED(PREFIX, "$INSTALL_DIR", [Default installation place. Overwrite if you like.])
|
AC_DEFINE_UNQUOTED(PREFIX, "$INSTALL_DIR", [Default installation place. Overwrite if you like.])
|
||||||
|
|
||||||
|
SOURCE_DIR="`pwd`"
|
||||||
OPTIMFLAGS="-O2"
|
OPTIMFLAGS="-O2"
|
||||||
DEBUGFLAGS=""
|
DEBUGFLAGS=""
|
||||||
|
|
||||||
@ -76,6 +77,8 @@ dnl --enable-sound option
|
|||||||
dnl set SOUNDFLAGS, SOUNDLIBS
|
dnl set SOUNDFLAGS, SOUNDLIBS
|
||||||
EDE_SOUND()
|
EDE_SOUND()
|
||||||
|
|
||||||
|
EDE_INIT_JAM()
|
||||||
|
AC_SUBST(SOURCE_DIR)
|
||||||
AC_SUBST(OPTIMFLAGS)
|
AC_SUBST(OPTIMFLAGS)
|
||||||
AC_SUBST(DEBUGFLAGS)
|
AC_SUBST(DEBUGFLAGS)
|
||||||
AC_SUBST(FLTKFLAGS)
|
AC_SUBST(FLTKFLAGS)
|
||||||
@ -86,6 +89,9 @@ AC_SUBST(SOUNDFLAGS)
|
|||||||
AC_SUBST(SOUNDLIBS)
|
AC_SUBST(SOUNDLIBS)
|
||||||
AC_SUBST(MAKE_EVOLUME)
|
AC_SUBST(MAKE_EVOLUME)
|
||||||
AC_SUBST(INSTALL_DIR)
|
AC_SUBST(INSTALL_DIR)
|
||||||
|
AC_SUBST(XGETTEXT)
|
||||||
|
AC_SUBST(MSGFMT)
|
||||||
|
AC_SUBST(DOXYGEN)
|
||||||
|
|
||||||
AC_CONFIG_FILES([Jamconfig])
|
AC_CONFIG_FILES([Jamconfig])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
99
m4/initjamfile.m4
Normal file
99
m4/initjamfile.m4
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
dnl
|
||||||
|
dnl $Id$
|
||||||
|
dnl
|
||||||
|
dnl Part of Equinox Desktop Environment (EDE).
|
||||||
|
dnl Based on code from Autojam (c) Matze Braun <matze@braunis.de>
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
# EDE_INIT_JAM
|
||||||
|
# This rule fixes several issues related to autoconf being make centric
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
AC_DEFUN([EDE_INIT_JAM],
|
||||||
|
[
|
||||||
|
AC_OUTPUT_INSTALLDIRS
|
||||||
|
AC_FIX_INSTALL])
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
# AC_OUTPUT_INSTALLDIRS
|
||||||
|
# Transforms the installation dirs which are gathered by autoconf and sets
|
||||||
|
# properties in the Jamconfig file for them. We deal with stuff like
|
||||||
|
# variable references inside the paths (often the paths contain ${prefix})
|
||||||
|
# and with correct quoting here.
|
||||||
|
# The script will set the INSTALLDIR.PREFIX, INSTALLDIR.EXEC_PREFIX,
|
||||||
|
# INSTALLDIR.APPLICATION, INSTALLDIR.SBIN, INSTALLDIR.LIBEXEC,
|
||||||
|
# INSTALLDIR.DATA, INSTALLDIR.MAP, INSTALLDIR.CONFIG, INSTALLDIR.SHAREDSTATE
|
||||||
|
# INSTALLDIR.LOCALSTATE, INSTALLDIR.PLUGIN, INSTALLDIR.DOC
|
||||||
|
# INSTALLDIR.LIBRARY, INSTALLDIR.INCLUDE, INSTALLDIR.OLDINCLUDE,
|
||||||
|
# INSTALLDIR.INFO, INSTALLDIR.MAN
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
AC_DEFUN([AC_OUTPUT_INSTALLDIRS],[
|
||||||
|
# Handle the case when no prefix is given. And the special case when a path
|
||||||
|
# contains more than 2 slashes, these paths seem to be correct but jam fails
|
||||||
|
# on them.
|
||||||
|
AS_IF([test $prefix = NONE], [prefix="$ac_default_prefix"],
|
||||||
|
[prefix=`echo "$prefix" | sed -e 's:///*:/:g'`])
|
||||||
|
AS_IF([test $exec_prefix = NONE],
|
||||||
|
[exec_prefix="AS_ESCAPE([$(prefix)])"],
|
||||||
|
[exec_prefix=`echo "$exec_prefix" | sed -e 's:///*:/:g'`])
|
||||||
|
|
||||||
|
prefix=AC_FIX_VARIABLEREF([$prefix])
|
||||||
|
exec_prefix=AC_FIX_VARIABLEREF([$exec_prefix])
|
||||||
|
bindir=AC_FIX_VARIABLEREF([$bindir])
|
||||||
|
sbindir=AC_FIX_VARIABLEREF([$sbindir])
|
||||||
|
libexecdir=AC_FIX_VARIABLEREF([$libexecdir])
|
||||||
|
datadir=AC_FIX_VARIABLEREF([$datadir])
|
||||||
|
sysconfdir=AC_FIX_VARIABLEREF([$sysconfdir])
|
||||||
|
sharedstatedir=AC_FIX_VARIABLEREF([$sharedstatedir])
|
||||||
|
localstatedir=AC_FIX_VARIABLEREF([$localstatedir])
|
||||||
|
libdir=AC_FIX_VARIABLEREF([$libdir])
|
||||||
|
includedir=AC_FIX_VARIABLEREF([$includedir])
|
||||||
|
oldincludedir=AC_FIX_VARIABLEREF([$oldincludedir])
|
||||||
|
infodir=AC_FIX_VARIABLEREF([$infodir])
|
||||||
|
mandir=AC_FIX_VARIABLEREF([$mandir])
|
||||||
|
|
||||||
|
#hack to get the order right :-/ (autoconf --trace reports wrong order...)
|
||||||
|
AC_SUBST(prefix)
|
||||||
|
AC_SUBST(exec_prefix)
|
||||||
|
AC_SUBST(bindir)
|
||||||
|
AC_SUBST(sbindir)
|
||||||
|
AC_SUBST(libexecdir)
|
||||||
|
AC_SUBST(datadir)
|
||||||
|
AC_SUBST(sysconfdir)
|
||||||
|
AC_SUBST(sharedstatedir)
|
||||||
|
AC_SUBST(localstatedir)
|
||||||
|
AC_SUBST(libdir)
|
||||||
|
AC_SUBST(includedir)
|
||||||
|
AC_SUBST(oldincludedir)
|
||||||
|
AC_SUBST(infodir)
|
||||||
|
AC_SUBST(mandir)
|
||||||
|
])
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
# AC_FIX_INSTALL
|
||||||
|
# Fixes the output from AC_PROG_INSTALL
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
AC_DEFUN([AC_FIX_INSTALL], [
|
||||||
|
AC_REQUIRE([AC_PROG_INSTALL])
|
||||||
|
INSTALL=AC_FIX_VARIABLEREF([$INSTALL])
|
||||||
|
INSTALL_PROGRAM=AC_FIX_VARIABLEREF([$INSTALL_PROGRAM])
|
||||||
|
INSTALL_SCRIPT=AC_FIX_VARIABLEREF([$INSTALL_SCRIPT])
|
||||||
|
INSTALL_DATA=AC_FIX_VARIABLEREF([$INSTALL_DATA])
|
||||||
|
|
||||||
|
# fix for order...
|
||||||
|
AC_SUBST([INSTALL])
|
||||||
|
AC_SUBST([INSTALL_PROGRAM])
|
||||||
|
AC_SUBST([INSTALL_SCRIPT])
|
||||||
|
AC_SUBST([INSTALL_DATA])
|
||||||
|
])
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
# AC_PREPARE_INSTALLPATH
|
||||||
|
# Transform variables of the form ${bla} to $(bla) inside the string and
|
||||||
|
# correctly quotes backslashes.
|
||||||
|
# This is needed if you want to output some of the paths that autoconf
|
||||||
|
# creates to the Jamconfig file.
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
AC_DEFUN([AC_FIX_VARIABLEREF],
|
||||||
|
dnl We need all the strange \\\\ quoting here, because the command will be
|
||||||
|
dnl inserted into a "" block and sed needs quoting as well
|
||||||
|
[`echo "$1" | sed -e 's/\${\([[a-zA-Z_][a-zA-Z_]]*\)}/$(\1)/g' -e 's/\\\\/\\\\\\\\/g'`])
|
Loading…
Reference in New Issue
Block a user