mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
more configure fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9588 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
daebb380ba
commit
b44d09a342
@ -1,5 +1,8 @@
|
|||||||
2005-02-02 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
2005-02-02 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
|
* configure.ac: if the prefix contains space, replace it with
|
||||||
|
${builddir}/installprefix and issue a warning.
|
||||||
|
|
||||||
* configure.ac: when testing for AikSaurus, do not require libbz2.
|
* configure.ac: when testing for AikSaurus, do not require libbz2.
|
||||||
|
|
||||||
2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
|
2005-01-27 Lars Gullik Bjonnes <larsbj@gullik.net>
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2005-02-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
|
* lyxinclude.m4 (LYX_USE_PACKAGING): remove single quotes around
|
||||||
|
prefix in the windows case; set libdir correctly.
|
||||||
|
|
||||||
2005-01-20 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
2005-01-20 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
* common.am (pch-file): new target, used recursively by target
|
* common.am (pch-file): new target, used recursively by target
|
||||||
|
@ -568,11 +568,13 @@ case $lyx_use_packaging in
|
|||||||
macosx) AC_DEFINE(USE_MACOSX_PACKAGING, 1, [Define to 1 if LyX should use a MacOS X application bundle file layout])
|
macosx) AC_DEFINE(USE_MACOSX_PACKAGING, 1, [Define to 1 if LyX should use a MacOS X application bundle file layout])
|
||||||
default_prefix="/Applications/LyX.app"
|
default_prefix="/Applications/LyX.app"
|
||||||
bindir='${prefix}/Contents/MacOS'
|
bindir='${prefix}/Contents/MacOS'
|
||||||
|
libdir='${prefix}/Contents/Resources'
|
||||||
datadir='${prefix}/Contents/Resources'
|
datadir='${prefix}/Contents/Resources'
|
||||||
mandir='${prefix}/Contents/Resources/man' ;;
|
mandir='${prefix}/Contents/Resources/man' ;;
|
||||||
windows) AC_DEFINE(USE_WINDOWS_PACKAGING, 1, [Define to 1 if LyX should use a Windows-style file layout])
|
windows) AC_DEFINE(USE_WINDOWS_PACKAGING, 1, [Define to 1 if LyX should use a Windows-style file layout])
|
||||||
default_prefix="'C:/Program Files/LyX'"
|
default_prefix="C:/Program Files/LyX"
|
||||||
bindir='${prefix}/bin'
|
bindir='${prefix}/bin'
|
||||||
|
libdir='${prefix}/Resources'
|
||||||
datadir='${prefix}/Resources'
|
datadir='${prefix}/Resources'
|
||||||
mandir='${prefix}/Resources/man' ;;
|
mandir='${prefix}/Resources/man' ;;
|
||||||
posix) AC_DEFINE(USE_POSIX_PACKAGING, 1, [Define to 1 if LyX should use a POSIX-style file layout])
|
posix) AC_DEFINE(USE_POSIX_PACKAGING, 1, [Define to 1 if LyX should use a POSIX-style file layout])
|
||||||
|
@ -229,6 +229,13 @@ LYX_USE_PACKAGING
|
|||||||
# fix the value of the prefixes.
|
# fix the value of the prefixes.
|
||||||
test "x$prefix" = xNONE && prefix=$default_prefix
|
test "x$prefix" = xNONE && prefix=$default_prefix
|
||||||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||||
|
if echo $prefix |grep ' ' >/dev/null 2>/dev/null ; then
|
||||||
|
LYX_WARNING([The installation prefix \"${prefix}\" contains a space, which
|
||||||
|
causes problems with the Makefiles. The installation will be done in
|
||||||
|
directory \"`pwd`/installprefix\" instead. Please move its contents to
|
||||||
|
the right place after installation.])
|
||||||
|
prefix=`pwd`/installprefix
|
||||||
|
fi
|
||||||
|
|
||||||
### Setup GNU gettext
|
### Setup GNU gettext
|
||||||
dnl GNU gettext is written in C
|
dnl GNU gettext is written in C
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
2005-02-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
|
* reLyX/configure.ac: use AC_CANONICAL_TARGET; use
|
||||||
|
RELYX_USE_PACKAGING as in main configure.
|
||||||
|
|
||||||
|
* reLyX/acinclude.m4 (RELYX_ERROR, RELYX_USE_PACKAGING): new
|
||||||
|
macros.
|
||||||
|
|
||||||
2005-01-24 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
2005-01-24 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
* ui/classic.ui, ui/stdmenus.ui: add output-changes.
|
* ui/classic.ui, ui/stdmenus.ui: add output-changes.
|
||||||
|
@ -7,6 +7,15 @@ relyx_warning_txt="$relyx_warning_txt
|
|||||||
relyx_warning=yes])
|
relyx_warning=yes])
|
||||||
|
|
||||||
|
|
||||||
|
dnl Usage: RELYX_ERROR(message) Displays the error "message" and sets
|
||||||
|
dnl the flag lyx_error to yes.
|
||||||
|
AC_DEFUN([RELYX_ERROR],[
|
||||||
|
relyx_error_txt="$relyx_error_txt
|
||||||
|
== $1
|
||||||
|
"
|
||||||
|
relyx_error=yes])
|
||||||
|
|
||||||
|
|
||||||
dnl RELYX_SEARCH_PROG(VARIABLE-NAME,PROGRAMS-LIST,ACTION-IF-FOUND)
|
dnl RELYX_SEARCH_PROG(VARIABLE-NAME,PROGRAMS-LIST,ACTION-IF-FOUND)
|
||||||
dnl
|
dnl
|
||||||
define([RELYX_SEARCH_PROG],[dnl
|
define([RELYX_SEARCH_PROG],[dnl
|
||||||
@ -99,3 +108,34 @@ $relyx_warning_txt
|
|||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
fi])
|
fi])
|
||||||
|
|
||||||
|
|
||||||
|
dnl Check what kind of packaging should be used at install time.
|
||||||
|
dnl The default is autodetected.
|
||||||
|
AC_DEFUN([RELYX_USE_PACKAGING],
|
||||||
|
[AC_MSG_CHECKING([what packaging should be used])
|
||||||
|
AC_ARG_WITH(packaging,
|
||||||
|
[ --with-packaging=THIS Use THIS packaging for installation:
|
||||||
|
Possible values: posix, windows, macosx],
|
||||||
|
[lyx_use_packaging="$withval"], [
|
||||||
|
case $host in
|
||||||
|
*-apple-darwin*) lyx_use_packaging=macosx ;;
|
||||||
|
*-pc-mingw32*) lyx_use_packaging=windows;;
|
||||||
|
*) lyx_use_packaging=posix;;
|
||||||
|
esac])
|
||||||
|
AC_MSG_RESULT($lyx_use_packaging)
|
||||||
|
case $lyx_use_packaging in
|
||||||
|
macosx) default_prefix="/Applications/LyX.app"
|
||||||
|
bindir='${prefix}/Contents/MacOS'
|
||||||
|
libdir='${prefix}/Contents/Resources'
|
||||||
|
datadir='${prefix}/Contents/Resources'
|
||||||
|
mandir='${prefix}/Contents/Resources/man' ;;
|
||||||
|
windows) default_prefix="C:/Program Files/LyX"
|
||||||
|
bindir='${prefix}/bin'
|
||||||
|
libdir='${prefix}/Resources'
|
||||||
|
datadir='${prefix}/Resources'
|
||||||
|
mandir='${prefix}/Resources/man' ;;
|
||||||
|
posix) default_prefix=$ac_default_prefix ;;
|
||||||
|
*) RELYX_ERROR([Unknown packaging type $lyx_use_packaging]) ;;
|
||||||
|
esac
|
||||||
|
])
|
||||||
|
@ -8,6 +8,7 @@ dnl PACKAGE=reLyX
|
|||||||
dnl Do this to install in $datadir/lyx/reLyX instead of $datadir/reLyX/reLyX
|
dnl Do this to install in $datadir/lyx/reLyX instead of $datadir/reLyX/reLyX
|
||||||
|
|
||||||
AM_MAINTAINER_MODE
|
AM_MAINTAINER_MODE
|
||||||
|
AC_CANONICAL_TARGET
|
||||||
|
|
||||||
AC_ARG_WITH(version-suffix,
|
AC_ARG_WITH(version-suffix,
|
||||||
[ --with-version-suffix[=<version>] install lyx files as lyx<version>],
|
[ --with-version-suffix[=<version>] install lyx files as lyx<version>],
|
||||||
@ -21,9 +22,19 @@ AM_INIT_AUTOMAKE($lyxname, $VERSION)
|
|||||||
|
|
||||||
# if reLyX has already been generated in this directory, delete it first
|
# if reLyX has already been generated in this directory, delete it first
|
||||||
test -x reLyX && rm -f reLyX
|
test -x reLyX && rm -f reLyX
|
||||||
|
|
||||||
|
### Check how the files should be packaged
|
||||||
|
RELYX_USE_PACKAGING
|
||||||
# fix the value of the prefixes.
|
# fix the value of the prefixes.
|
||||||
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
test "x$prefix" = xNONE && prefix=$default_prefix
|
||||||
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
||||||
|
if echo $prefix |grep ' ' >/dev/null 2>/dev/null ; then
|
||||||
|
RELYX_WARNING([The installation prefix \"${prefix}\" contains a space, which
|
||||||
|
causes problems with the Makefiles. The installation will be done in
|
||||||
|
directory \"`pwd`/installprefix\" instead. Please move its contents to
|
||||||
|
the right place after installation.])
|
||||||
|
prefix=`pwd`/installprefix
|
||||||
|
fi
|
||||||
|
|
||||||
# we need to expand ${datadir} to put it into the reLyX wrapper.
|
# we need to expand ${datadir} to put it into the reLyX wrapper.
|
||||||
LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`
|
LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`
|
||||||
|
Loading…
Reference in New Issue
Block a user