]> git.lyx.org Git - lyx.git/blob - lib/reLyX/configure.in
41946e7588432fd43f744b4250deba30e8d8537a
[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 AC_EXEEXT
6
7 dnl PACKAGE=reLyX
8 dnl Do this to install in $datadir/lyx/reLyX instead of $datadir/reLyX/reLyX
9
10 AC_ARG_WITH(version-suffix,
11   [  --with-version-suffix[=<version>]  install lyx files as lyx<version>],
12   [lyxname="lyx$withval"
13    program_suffix=$withval],
14   [lyxname=lyx])
15
16 dnl must make a macro that gets the reLyX version
17 VERSION=2.0
18 AM_INIT_AUTOMAKE($lyxname, $VERSION)
19
20 # if reLyX has already been generated in this directory, delete it first
21 test -x reLyX && rm -f reLyX
22 # fix the value of the prefixes.
23 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25
26 # we need to expand ${datadir} to put it into the reLyX wrapper.
27 LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`
28 AC_SUBST(LYX_DIR)
29
30 # Work around a problem in automake 1.4: when invoking install-strip,
31 # INSTALL_PROGRAM is changed to 'install -s', and since
32 # INSTALL_SCRIPT==INSTALL_PROGRAM, we get errors with fileutils-4.0
33 # which returns an error condition when stripping fails.
34 INSTALL_SCRIPT='${INSTALL}'
35
36 dnl Checks for programs.
37 AC_PROG_INSTALL
38 RELYX_CHECK_PERL
39
40 dnl Finish the work
41 AC_OUTPUT(Makefile reLyX noweb2lyx, chmod 755 reLyX noweb2lyx)
42
43 RELYX_CHECK_ERRORS