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