]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* configure.ac: Quotation and formatting changes.
authorAkim Demaille <akim@epita.fr>
Fri, 3 Oct 2003 07:07:13 +0000 (07:07 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 3 Oct 2003 07:07:13 +0000 (07:07 +0000)
(EMACS): Don't set it if it is not recent enough to support
autoconf-mode.el.
From Eric Sunshine.

23 files changed:
ChangeLog
Makefile.in
bin/Makefile.in
config/Makefile.in
configure
configure.ac
doc/Makefile.in
lib/Autom4te/Makefile.in
lib/Makefile.in
lib/autoconf/Makefile.in
lib/autoscan/Makefile.in
lib/autotest/Makefile.in
lib/emacs/Makefile.in
lib/m4sugar/Makefile.in
man/Makefile.in
man/autoconf.1
man/autoheader.1
man/autom4te.1
man/autoreconf.1
man/autoscan.1
man/autoupdate.1
man/ifnames.1
tests/Makefile.in

index e23fcf4058d898241fd241da3eacf772c728c321..6dcf25504bc0bca105ed8b66c42a45cc7527e635 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-10-03  Akim Demaille  <akim@epita.fr>
+
+       * configure.ac: Quotation and formatting changes.
+       (EMACS): Don't set it if it is not recent enough to support
+       autoconf-mode.el.
+       From Eric Sunshine.
+
 2003-10-02  Akim Demaille  <akim@epita.fr>
 
        * bin/ifnames.in (&scan_file): Skip C++ comments.
index 4fff1f4e688e1d7c1f15a37ddb94bb3aa3d2ecad..c5750eec5c4ac60f6da25b513c4a02ad77692baa 100644 (file)
@@ -107,6 +107,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index 00ec85509085b153921b8a6c9db351756b264436..04c9d9f40f8b868b25c8dd846c98a22b4ebccb6b 100644 (file)
@@ -86,6 +86,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index 0deadfbcfc45923fa45297048c54c0ab3e7142d8..34364b8a37ce738c51271b51f18ab31132c69aed 100644 (file)
@@ -79,6 +79,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index 45341a06d3e9d0345821deb2db9eeb9ba559d97a..fce3c945e383d16550474718bb25559590f9999e 100755 (executable)
--- a/configure
+++ b/configure
@@ -273,7 +273,7 @@ PACKAGE_STRING='GNU Autoconf 2.57f'
 PACKAGE_BUGREPORT='bug-autoconf@gnu.org'
 
 ac_unique_file="ChangeLog"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot EXPR M4 HELP2MAN PERL EMACS EMACSLOADPATH lispdir LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot EXPR M4 HELP2MAN PERL TEST_EMACS EMACS EMACSLOADPATH lispdir LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 
 # Initialize some variables set by options.
@@ -1689,6 +1689,10 @@ fi
 
 
 
+## ---- ##
+## M4.  ##
+## ---- ##
+
 # We use a path for GNU m4 so even if users have another m4 first in
 # their path, the installer can configure with a path that has GNU m4
 # first and get that path embedded in the installed autoconf and
@@ -1758,13 +1762,21 @@ echo "$as_me: error: GNU M4 1.4 is required" >&2;}
    { (exit 1); exit 1; }; }
 fi
 
-# Man pages.
+## ----------- ##
+## Man pages.  ##
+## ----------- ##
+
           ac_config_files="$ac_config_files man/Makefile"
 
 
 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
 
 
+
+## ------ ##
+## Perl.  ##
+## ------ ##
+
 # We use a path for perl so the #! line in autoscan will work.
 # Extract the first word of "perl", so it can be a program name with args.
 set dummy perl; ac_word=$2
@@ -1817,21 +1829,26 @@ echo "$as_me: error: Perl 5.005_03 or better is required" >&2;}
    { (exit 1); exit 1; }; }
 }
 
-# Emacs modes.
+
+## ------- ##
+## Emacs.  ##
+## ------- ##
+
           ac_config_files="$ac_config_files lib/emacs/Makefile"
 
-test x"$EMACS" = xt && EMACS=
-for ac_prog in emacs xemacs
+TEST_EMACS=$EMACS
+test x"$TEST_EMACS" = xt && TEST_EMACS=
+for ac_prog in macs xemacs
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo "$as_me:$LINENO: checking for $ac_word" >&5
 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
-if test "${ac_cv_prog_EMACS+set}" = set; then
+if test "${ac_cv_prog_TEST_EMACS+set}" = set; then
   echo $ECHO_N "(cached) $ECHO_C" >&6
 else
-  if test -n "$EMACS"; then
-  ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
+  if test -n "$TEST_EMACS"; then
+  ac_cv_prog_TEST_EMACS="$TEST_EMACS" # Let the user override the test.
 else
 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 for as_dir in $PATH
@@ -1840,7 +1857,7 @@ do
   test -z "$as_dir" && as_dir=.
   for ac_exec_ext in '' $ac_executable_extensions; do
   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
-    ac_cv_prog_EMACS="$ac_prog"
+    ac_cv_prog_TEST_EMACS="$ac_prog"
     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     break 2
   fi
@@ -1849,18 +1866,58 @@ done
 
 fi
 fi
-EMACS=$ac_cv_prog_EMACS
-if test -n "$EMACS"; then
-  echo "$as_me:$LINENO: result: $EMACS" >&5
-echo "${ECHO_T}$EMACS" >&6
+TEST_EMACS=$ac_cv_prog_TEST_EMACS
+if test -n "$TEST_EMACS"; then
+  echo "$as_me:$LINENO: result: $TEST_EMACS" >&5
+echo "${ECHO_T}$TEST_EMACS" >&6
 else
   echo "$as_me:$LINENO: result: no" >&5
 echo "${ECHO_T}no" >&6
 fi
 
-  test -n "$EMACS" && break
+  test -n "$TEST_EMACS" && break
 done
-test -n "$EMACS" || EMACS="no"
+test -n "$TEST_EMACS" || TEST_EMACS="no"
+
+
+# autoconf-mode.el and autotest-mode.el do not work with older version of
+# Emacs (i.e. 18.x.x).  During byte-compilation, Emacs complains:
+# "Variable (broken nil) seen on pass 2 of byte compiler but not pass 1"
+# We detect this problem here.
+if test "$TEST_EMACS" != no; then
+  echo "$as_me:$LINENO: checking whether $TEST_EMACS is sufficiently recent" >&5
+echo $ECHO_N "checking whether $TEST_EMACS is sufficiently recent... $ECHO_C" >&6
+if test "${ac_cv_prog_emacs_ok+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  # Note: The quoted "EOF" is intentional.  It protects the ` in the text.
+    cat >conftest.el << "EOF"
+      (defvar broken)
+      (defun broken-mode () (setq broken-defaults `(broken nil)))
+EOF
+    if { (echo "$as_me:$LINENO: \$TEST_EMACS -batch -q -f batch-byte-compile conftest.el 1>&2") >&5
+  ($TEST_EMACS -batch -q -f batch-byte-compile conftest.el 1>&2) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  ac_cv_prog_emacs_ok=yes
+else
+  ac_cv_prog_emacs_ok=no
+fi
+
+    rm -f conftest.el conftest.elc
+fi
+echo "$as_me:$LINENO: result: $ac_cv_prog_emacs_ok" >&5
+echo "${ECHO_T}$ac_cv_prog_emacs_ok" >&6
+  if test $ac_cv_prog_emacs_ok = no; then
+  TEST_EMACS=no
+fi
+
+fi
+
+
+EMACS=$TEST_EMACS
+
 
 
 # Check whether --with-lispdir or --without-lispdir was given.
@@ -1957,6 +2014,11 @@ fi;
 
 
 
+
+## ------------ ##
+## Conclusion.  ##
+## ------------ ##
+
                                                                                           ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile lib/Autom4te/Makefile lib/autoscan/Makefile lib/m4sugar/Makefile lib/autoconf/Makefile lib/autotest/Makefile bin/Makefile"
 
 
@@ -2642,6 +2704,7 @@ s,@EXPR@,$EXPR,;t t
 s,@M4@,$M4,;t t
 s,@HELP2MAN@,$HELP2MAN,;t t
 s,@PERL@,$PERL,;t t
+s,@TEST_EMACS@,$TEST_EMACS,;t t
 s,@EMACS@,$EMACS,;t t
 s,@EMACSLOADPATH@,$EMACSLOADPATH,;t t
 s,@lispdir@,$lispdir,;t t
index 1838c5caab1e8ea7d05a4f7fc421fc2b3a4ed899..2530f4d1acc3f4a4314c023d87aec5c4f1386a3c 100644 (file)
@@ -48,9 +48,13 @@ AC_CONFIG_FILES([tests/autoupdate:tests/wrapper.in],
                 [chmod +x tests/autoupdate])
 AC_CONFIG_FILES([tests/ifnames:tests/wrapper.in],
                 [chmod +x tests/ifnames])
-AC_PATH_PROG(EXPR, expr)
+AC_PATH_PROG([EXPR], [expr])
 
 
+## ---- ##
+## M4.  ##
+## ---- ##
+
 # We use a path for GNU m4 so even if users have another m4 first in
 # their path, the installer can configure with a path that has GNU m4
 # first and get that path embedded in the installed autoconf and
@@ -60,10 +64,18 @@ if test x"$ac_cv_prog_gnu_m4" != xyes; then
   AC_MSG_ERROR([GNU M4 1.4 is required])
 fi
 
-# Man pages.
+## ----------- ##
+## Man pages.  ##
+## ----------- ##
+
 AC_CONFIG_FILES(man/Makefile)
 AM_MISSING_PROG(HELP2MAN, help2man)
 
+
+## ------ ##
+## Perl.  ##
+## ------ ##
+
 # We use a path for perl so the #! line in autoscan will work.
 AC_PATH_PROG([PERL], perl, no)
 AC_SUBST([PERL])dnl
@@ -74,12 +86,43 @@ $PERL -e 'require 5.005_03;' || {
    AC_MSG_ERROR([Perl 5.005_03 or better is required])
 }
 
-# Emacs modes.
+
+## ------- ##
+## Emacs.  ##
+## ------- ##
+
 AC_CONFIG_FILES([lib/emacs/Makefile])
-test x"$EMACS" = xt && EMACS=
-AC_CHECK_PROGS(EMACS, emacs xemacs, no)
+TEST_EMACS=$EMACS
+test x"$TEST_EMACS" = xt && TEST_EMACS=
+AC_CHECK_PROGS([TEST_EMACS], [macs xemacs], [no])
+
+# autoconf-mode.el and autotest-mode.el do not work with older version of
+# Emacs (i.e. 18.x.x).  During byte-compilation, Emacs complains:
+# "Variable (broken nil) seen on pass 2 of byte compiler but not pass 1"
+# We detect this problem here.
+AS_IF([test "$TEST_EMACS" != no],
+  [AC_CACHE_CHECK([whether $TEST_EMACS is sufficiently recent],
+    [ac_cv_prog_emacs_ok],
+    [# Note: The quoted "EOF" is intentional.  It protects the ` in the text.
+    cat >conftest.el << "EOF"
+      (defvar broken)
+      (defun broken-mode () (setq broken-defaults `(broken nil)))
+EOF
+    AS_IF([AC_RUN_LOG(
+      [$TEST_EMACS -batch -q -f batch-byte-compile conftest.el 1>&2])],
+      [ac_cv_prog_emacs_ok=yes], [ac_cv_prog_emacs_ok=no])
+    rm -f conftest.el conftest.elc])
+  AS_IF([test $ac_cv_prog_emacs_ok = no], [TEST_EMACS=no])])
+
+AC_SUBST([EMACS], [$TEST_EMACS])
+
 AM_PATH_LISPDIR
 
+
+## ------------ ##
+## Conclusion.  ##
+## ------------ ##
+
 AC_CONFIG_FILES([Makefile doc/Makefile
                  lib/Makefile lib/Autom4te/Makefile lib/autoscan/Makefile
                  lib/m4sugar/Makefile
index cf28a78c9797874066789eb117232edf126f4a05..5a91172248f9e552cd6d03dfa933dffa17eac200 100644 (file)
@@ -89,6 +89,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index 53f2af0a3303eff0294939aac627e8b244d1a4fa..91ae003500f4d9efa3a1347aae870788713902a2 100644 (file)
@@ -85,6 +85,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index 33f92e76b8516aee970b551eada2a5f38ba300de..7f439f787e49df4545e262d364e7eb2869095c26 100644 (file)
@@ -92,6 +92,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index 464a1f675b3b042fb8227831e78777cdcfb47e83..918f4d57f0194c2c4eb5289568062fc727c4abe6 100644 (file)
@@ -87,6 +87,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index ea186042d12a91efcb145c01d50e37e1b16756eb..45a62092a6415bb5f1c456c2c556c74d6a6a4085 100644 (file)
@@ -81,6 +81,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index 7f867d8a7d5a50c6008eae318d66630a6c9aea98..38daeec41da4fa339970f062c9a4f2958ad5318d 100644 (file)
@@ -87,6 +87,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index 0cc21fa2c69e963e7cf22f2f90f18bf3f8edcd22..f121108dcecb494950d5fb277582d14d3452b78f 100644 (file)
@@ -84,6 +84,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index 30c52075d1a4e81413b383f186097dc503e32e23..e6575af376872d1dbc407dd13d25cd0123bfca05 100644 (file)
@@ -87,6 +87,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index cc105c69a7ad6d9002fbe9882b9a236ce2e5cd88..eba50960c5f07632b1df443e7b1f0b40087c9c28 100644 (file)
@@ -81,6 +81,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@
index 33602ef16232ab9845200314dc78e0f85a97d1f8..ef4310779566e24444816d298d7bc51bbc0dd12b 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH AUTOCONF "1" "September 2003" "autoconf 2.57f" "User Commands"
+.TH AUTOCONF "1" "October 2003" "autoconf 2.57f" "User Commands"
 .SH NAME
 autoconf \- Generate configuration scripts
 .SH SYNOPSIS
index 3219b828d002bfaa6f30f4aabf363401b98c418b..72a5fa962030c4d0aaba618c88210bdf9d757e5b 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH AUTOHEADER "1" "September 2003" "autoheader " "User Commands"
+.TH AUTOHEADER "1" "October 2003" "autoheader " "User Commands"
 .SH NAME
 autoheader \- Create a template header for configure
 .SH SYNOPSIS
index 775cac5878c5dbf3ec09b32f7ac051de5b7d2eb2..1ae22a64fb0e914c157943d22137b8d2cd9c0abd 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH AUTOM4TE "1" "September 2003" "autom4te 2.57f" "User Commands"
+.TH AUTOM4TE "1" "October 2003" "autom4te 2.57f" "User Commands"
 .SH NAME
 autom4te \- Generate files and scripts thanks to M4
 .SH SYNOPSIS
index 017f39f9974f50e99648fae18e1df19de7ec25d3..ad884d08d74154ae314ea98083af2afb343e2a87 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH AUTORECONF "1" "September 2003" "autoreconf 2.57f" "User Commands"
+.TH AUTORECONF "1" "October 2003" "autoreconf 2.57f" "User Commands"
 .SH NAME
 autoreconf \- Update generated configuration files
 .SH SYNOPSIS
index 3c33ad2ef67c42988bcb2748afb1e600ae2ec2bc..588df7b732b31a2fe238d81895d971c5c83f7e74 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH AUTOSCAN "1" "September 2003" "autoscan 2.57f" "User Commands"
+.TH AUTOSCAN "1" "October 2003" "autoscan 2.57f" "User Commands"
 .SH NAME
 autoscan \- Generate a preliminary configure.in
 .SH SYNOPSIS
index 632849d0e31d13defc5867b99a9beaee185867f3..c32483e7ecf20493ad27b7a34e7aa3ecb2e2267d 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH AUTOUPDATE "1" "September 2003" "autoupdate 2.57f" "User Commands"
+.TH AUTOUPDATE "1" "October 2003" "autoupdate 2.57f" "User Commands"
 .SH NAME
 autoupdate \- Update a configure.in to a newer Autoconf
 .SH SYNOPSIS
index 3b9a4d4a01b40d7b746b6b1dfab93d417a092b88..e9b6456bea92aee119fed10a39de12e535214b6f 100644 (file)
@@ -1,5 +1,5 @@
 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.33.
-.TH IFNAMES "1" "September 2003" "ifnames " "User Commands"
+.TH IFNAMES "1" "October 2003" "ifnames " "User Commands"
 .SH NAME
 ifnames \- Extract CPP conditionals from a set of files
 .SH SYNOPSIS
index 95164076fab33f8bfa0bcf7833a4c7bffa7bd44b..42ddba39a1629f0ed3c1f2a7cb08934acd294751 100644 (file)
@@ -79,6 +79,7 @@ PERL = @PERL@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
+TEST_EMACS = @TEST_EMACS@
 VERSION = @VERSION@
 ac_ct_STRIP = @ac_ct_STRIP@
 am__leading_dot = @am__leading_dot@