diff options
| author | Glenn Morris | 2011-02-23 20:28:17 -0800 |
|---|---|---|
| committer | Glenn Morris | 2011-02-23 20:28:17 -0800 |
| commit | 1e8dbdc6e86cd6ccda42c3c106f04190ba9acca0 (patch) | |
| tree | 5990f4b2dad8867d922afaf9693e175cf5627715 | |
| parent | b36f2f1cb8fc121bf6fe44e5260d114a9f46d950 (diff) | |
| download | emacs-1e8dbdc6e86cd6ccda42c3c106f04190ba9acca0.tar.gz emacs-1e8dbdc6e86cd6ccda42c3c106f04190ba9acca0.zip | |
Replace some obsolete autoconf syntax.
* configure.in: Replace obsolete AC_OUTPUT() with AC_CONFIG_FILES(),
AC_CONFIG_COMMANDS(), and AC_OUTPUT sans arguments.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | configure.in | 30 |
2 files changed, 24 insertions, 11 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-02-24 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.in: Replace obsolete AC_OUTPUT() with AC_CONFIG_FILES(), | ||
| 4 | AC_CONFIG_COMMANDS(), and AC_OUTPUT sans arguments. | ||
| 5 | |||
| 1 | 2011-02-22 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2011-02-22 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | Assume S_ISLNK etc. work, since gnulib supports this. | 8 | Assume S_ISLNK etc. work, since gnulib supports this. |
diff --git a/configure.in b/configure.in index fa5ae960c59..b832b79994e 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -3706,6 +3706,18 @@ fi | |||
| 3706 | test "${exec_prefix}" != NONE && | 3706 | test "${exec_prefix}" != NONE && |
| 3707 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`] | 3707 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`] |
| 3708 | 3708 | ||
| 3709 | AC_CONFIG_FILES([Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile \ | ||
| 3710 | doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile \ | ||
| 3711 | doc/lispref/Makefile src/Makefile \ | ||
| 3712 | lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile]) | ||
| 3713 | |||
| 3714 | dnl Make the necessary directories, if they don't exist. | ||
| 3715 | AC_CONFIG_COMMANDS([mkdirs], [ | ||
| 3716 | for dir in etc lisp ; do | ||
| 3717 | test -d ${dir} || mkdir ${dir} | ||
| 3718 | done | ||
| 3719 | ]) | ||
| 3720 | |||
| 3709 | dnl You might wonder (I did) why epaths.h is generated by running make, | 3721 | dnl You might wonder (I did) why epaths.h is generated by running make, |
| 3710 | dnl rather than just letting configure generate it from epaths.in. | 3722 | dnl rather than just letting configure generate it from epaths.in. |
| 3711 | dnl One reason is that the various paths are not fully expanded (see above); | 3723 | dnl One reason is that the various paths are not fully expanded (see above); |
| @@ -3714,22 +3726,18 @@ dnl Secondly, the GNU Coding standards require that one should be able | |||
| 3714 | dnl to run `make prefix=/some/where/else' and override the values set | 3726 | dnl to run `make prefix=/some/where/else' and override the values set |
| 3715 | dnl by configure. This also explains the `move-if-change' test and | 3727 | dnl by configure. This also explains the `move-if-change' test and |
| 3716 | dnl the use of force in the `epaths-force' rule in Makefile.in. | 3728 | dnl the use of force in the `epaths-force' rule in Makefile.in. |
| 3717 | AC_OUTPUT(Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile \ | 3729 | AC_CONFIG_COMMANDS([epaths], [ |
| 3718 | doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile \ | ||
| 3719 | doc/lispref/Makefile src/Makefile \ | ||
| 3720 | lwlib/Makefile lisp/Makefile leim/Makefile test/automated/Makefile, [ | ||
| 3721 | |||
| 3722 | ### Make the necessary directories, if they don't exist. | ||
| 3723 | for dir in etc lisp ; do | ||
| 3724 | test -d ${dir} || mkdir ${dir} | ||
| 3725 | done | ||
| 3726 | |||
| 3727 | echo creating src/epaths.h | 3730 | echo creating src/epaths.h |
| 3728 | ${MAKE-make} epaths-force | 3731 | ${MAKE-make} epaths-force |
| 3732 | ], [GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"]) | ||
| 3729 | 3733 | ||
| 3734 | AC_CONFIG_COMMANDS([gdbinit], [ | ||
| 3730 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then | 3735 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
| 3731 | echo creating src/.gdbinit | 3736 | echo creating src/.gdbinit |
| 3732 | echo source $srcdir/src/.gdbinit > src/.gdbinit | 3737 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
| 3733 | fi | 3738 | fi |
| 3739 | ]) | ||
| 3734 | 3740 | ||
| 3735 | ], [GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"]) | 3741 | AC_OUTPUT |
| 3742 | |||
| 3743 | dnl configure.in ends here | ||