1999-10-05 09:17:15 +00:00
|
|
|
dnl Process with autoconf to generate configure script -*- sh -*-
|
1999-09-27 18:44:28 +00:00
|
|
|
AC_INIT(reLyX.in)
|
|
|
|
AC_PREREQ(2.13) dnl We want to use autoconf 2.13
|
1999-10-12 14:08:52 +00:00
|
|
|
AC_CONFIG_AUX_DIR(../../config)
|
1999-09-27 18:44:28 +00:00
|
|
|
|
2000-01-10 16:28:29 +00:00
|
|
|
dnl PACKAGE=reLyX
|
|
|
|
dnl Do this to install in $datadir/lyx/reLyX instead of $datadir/reLyX/reLyX
|
|
|
|
|
|
|
|
AC_ARG_WITH(lyxname,
|
|
|
|
[ --with-lyxname the name under which lyx will be installed],
|
|
|
|
[lyxname=$withval],[lyxname=lyx])
|
|
|
|
|
|
|
|
dnl must make a macro that gets the reLyX version
|
|
|
|
VERSION=2.0
|
|
|
|
AM_INIT_AUTOMAKE($lyxname, $VERSION)
|
|
|
|
|
1999-11-18 11:42:36 +00:00
|
|
|
AC_PREFIX_PROGRAM(reLyX)
|
|
|
|
# fix the value of the prefixes.
|
|
|
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
|
|
|
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
|
|
|
|
2000-01-26 13:16:41 +00:00
|
|
|
# we need to expand ${datadir} to put it into the reLyX wrapper.
|
|
|
|
LYX_DIR=`eval "echo \`eval \"echo ${datadir}/${PACKAGE}\"\`"`
|
|
|
|
AC_SUBST(LYX_DIR)
|
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_INSTALL
|
|
|
|
RELYX_CHECK_PERL
|
|
|
|
|
1999-10-05 09:17:15 +00:00
|
|
|
dnl Finish the work
|
1999-10-12 14:08:52 +00:00
|
|
|
AC_OUTPUT(Makefile reLyX noweb2lyx, chmod 755 reLyX noweb2lyx)
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
RELYX_CHECK_ERRORS
|