1 dnl Usage: RELYX_WARNING(message) Displays the warning "message" and sets
3 dnl flag lyx_warning to yes.
4 AC_DEFUN(RELYX_WARNING,[
5 relyx_warning_txt="$relyx_warning_txt
11 dnl RELYX_SEARCH_PROG(VARIABLE-NAME,PROGRAMS-LIST,ACTION-IF-FOUND)
13 define(RELYX_SEARCH_PROG,[dnl
14 for ac_prog in $2 ; do
15 # Extract the first word of "$ac_prog", so it can be a program name with
17 set dummy $ac_prog ; ac_word=$[2]
18 if test ! -n "[$]$1"; then
19 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
20 for ac_dir in $PATH; do
21 test -z "$ac_dir" && ac_dir=.
22 if test -f [$ac_dir/$ac_word]; then
30 if test -n "[$]$1"; then
36 test -n "[$]$1" && break
41 dnl Usage RELYX_PROG_PERL_OK
42 AC_DEFUN(RELYX_PROG_PERL_OK,[
43 if echo 'require 5.002;exit' | $ac_dir/$ac_prog 2>&5
50 dnl Usage RELYX_CHECK_PERL
51 AC_DEFUN(RELYX_CHECK_PERL,[
52 AC_MSG_CHECKING([for perl >= 5.002])
53 RELYX_SEARCH_PROG(PERL, perl perl5 perl5.002 perl5.003 perl5.004,
56 if test -n "$PERL" ; then
59 PERL="/bin/echo reLyX has been disabled because perl version 5.002 has
61 been found.\nTo reenable it, edit "
64 Configure has not been able to find a version 5.002 or better of Perl.
65 reLyX has been setup to only display a warning message.
66 Set variable PERL to some value to install a working reLyX.)
70 dnl Usage: RELYX_CHECK_ERRORS Displays a warning message if a RELYX_ERROR
71 dnl has occured previously.
72 AC_DEFUN(RELYX_CHECK_ERRORS,[
73 if test x$relyx_error = xyes; then
75 **** The following problems have been detected by configure.
76 **** Please check the messages below before running 'make'.
77 **** (see the section 'Problems' in the INSTALL file)
80 deleting cache $cache_file
85 if test x$relyx_warning = xyes; then
87 === The following minor problems have been detected by configure.
88 === Please check the messages below before running 'make'.
89 === (see the section 'Problems' in the INSTALL file)
94 Configuration of LyX was successful.
95 Type 'make' to compile the program,
96 and then 'make install' to install it.