]> git.lyx.org Git - lyx.git/blob - lib/reLyX/configure.in
Menu structure cleanup, configure tweaks
[lyx.git] / lib / reLyX / configure.in
1 dnl Process with autoconf to generate configure script   -*- sh -*-
2 AC_INIT(reLyX.in)
3 AC_PREREQ(2.13) dnl We want to use autoconf 2.13
4 AC_CONFIG_AUX_DIR(../../config)
5
6 dnl PACKAGE=reLyX
7 dnl Do this to install in $datadir/lyx/reLyX instead of $datadir/reLyX/reLyX
8
9 AC_ARG_WITH(lyxname,
10   [  --with-lyxname          the name under which lyx will be installed],
11   [lyxname=$withval],[lyxname=lyx])
12
13 dnl must make a macro that gets the reLyX version
14 VERSION=2.0
15 AM_INIT_AUTOMAKE($lyxname, $VERSION)
16
17 # if reLyX has already been generated in this directory, delete it first
18 test -x reLyX && rm -f reLyX
19 # Find an already installed reLyX
20 AC_PREFIX_PROGRAM(reLyX)
21 # fix the value of the prefixes.
22 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24
25 # we need to expand ${datadir} to put it into the reLyX wrapper.
26 LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`
27 AC_SUBST(LYX_DIR)
28
29 # Work around a problem in automake 1.4: when invoking install-strip,
30 # INSTALL_PROGRAM is changed to 'install -s', and since
31 # INSTALL_SCRIPT==INSTALL_PROGRAM, we get errors with fileutils-4.0
32 # which returns an error condition when stripping fails.
33 INSTALL_SCRIPT='${INSTALL}'
34
35 dnl Checks for programs.
36 AC_PROG_INSTALL
37 RELYX_CHECK_PERL
38
39 dnl Finish the work
40 AC_OUTPUT(Makefile reLyX noweb2lyx, chmod 755 reLyX noweb2lyx)
41
42 RELYX_CHECK_ERRORS