summaryrefslogtreecommitdiff
path: root/configure.ac
AgeCommit message (Collapse)Author
2007-08-30Make inter-release --version output more useful.Jim Meyering
Now, each snapshot has a version "number" like 6.9-219-g58ddd, which indicates that it is built using the 219th change set (in _some_ repository) following the "v6.9" tag, and that 58ddd is a prefix of the commit SHA1. * build-aux/git-version-gen: New file. * configure.ac: Run it to set the version. * Makefile.am (dist-hook): Arrange so that .version appears only in distribution tarballs, never in a checked-out repository. * .gitignore: Add .version here, too. Just in case. Signed-off-by: Jim Meyering <jim@meyering.net>
2007-08-30Use PACKAGE_NAME instead of GNU_PACKAGE.Eric Blake
* src/Makefile.am (.sh, uninstall-local): Adjust all users of hand-rolled GNU_PACKAGE to instead use autoconf-provided PACKAGE_NAME. * src/basename.c (main): Likewise. * src/chroot.c (main): Likewise. * src/dirname.c (main): Likewise. * src/echo.c (main): Likewise. * src/expr.c (main): Likewise. * src/factor.c (main): Likewise. * src/groups.sh (version): Likewise. Also, reflect change in --version output due to GPLv3. * src/hostid.c (main): Likewise. * src/hostname.c (main): Likewise. * src/link.c (main): Likewise. * src/logname.c (main): Likewise. * src/nice.c (main): Likewise. * src/nohup.c (main): Likewise. * src/printenv.c (main): Likewise. * src/printf.c (main): Likewise. * src/pwd.c (main): Likewise. * src/setuidgid.c (main): Likewise. * src/sleep.c (main): Likewise. * src/system.h (case_GETOPT_VERSION_CHAR): Likewise. * src/test.c (main): Likewise. * src/true.c (main): Likewise. * src/unlink.c (main): Likewise. * src/uptime.c (main): Likewise. * src/users.c (main): Likewise. * src/whoami.c (main): Likewise. * src/yes.c (main): Likewise. * configure.ac (AC_CHECK_DECLS): No need to check strtoimax, strtoumax, since gnulib does this.
2007-08-21By default, do not install hostname anymore.Jim Meyering
* configure.ac: Add "hostname" to the list of not-installed programs. * src/Makefile.am (no_install__progs): Add "hostname" here, too. * NEWS: Mention this.
2007-07-23Update all copyright notices to use the newer form.Jim Meyering
2007-07-22Arrange to rerun configure whenever src/Makefile.am changes.Jim Meyering
* configure.ac: Arrange to rerun configure whenever src/Makefile.am changes. That file contains the list of program names that must be substituted into files like man/Makefile. Add quotes around AC_SUBST arguments. Signed-off-by: Jim Meyering <jim@meyering.net>
2007-07-14Change interface: make 2nd param _space_-separated, not comma-separatedJim Meyering
* m4/include-exclude-prog.m4 (gl_INCLUDE_EXCLUDE_PROG): Remove now- unnecessary use of tr. Improve comments. * configure.ac: Adjust caller, as well as the code that ensures the 2nd parameter stays in sync with the list in src/Makefile.am.
2007-07-13Use proper backslash-quoting inside backticks.Jim Meyering
* configure.ac: Otherwise we run afoul of strict GNU tr: a string ending in a lone backslash would provoke a failure.
2007-07-12Expand default-no-install prog list in ./configure --help output,Jim Meyering
and fix some []-quoting bugs in sed expressions. * configure.ac: Hard-code the list, "arch,su" here as well as in src/Makefile.am, and ensure the two stay in sync. * m4/include-exclude-prog.m4 (gl_INCLUDE_EXCLUDE_PROG): Use $2, rather than the nearly-equivalent shell variable. Karel Zak reported that ./configure --help's output included the literal string, $gl_no_install_progs_default.
2007-07-12Clean up include-exclude-prog.m4.Jim Meyering
* m4/include-exclude-prog.m4 (gl_ADD_PROG): Don't modify MAN. (gl_REMOVE_PROG): Likewise. Add omitted "\>" in sed regexp. Remove any leading or trailing spaces. (gl_ADD_PROG): Remove any leading space. * configure.ac: Instead, derive $MAN from $optional_bin_progs. Append $(EXEEXT) to *all* names, not just the first one.
2007-07-10Add support for enabling/disabling installation of specified programs.Jim Meyering
* NEWS: Mention new configure-time options. Mention that neither arch nor su is built/installed, by default. * m4/include-exclude-prog.m4: New file. * configure.ac: Use new macro, gl_ADD_PROG, rather than manually appending to OPTIONAL_BIN_PROGS and MAN. Move the code that adds "df" to the list of programs to build from m4/jm-macros into this file. Use gl_INCLUDE_EXCLUDE_PROG, then handle special cases: ginstall, [. (NO_INSTALL_PROGS_DEFAULT): AC_SUBST it. Used by man/Makefile.am. * man/Makefile.am (dist_man_MANS): Remove from this list all man pages corresponding to "bin" programs. Add $(MAN) instead. (optional_mans): Remove all uses. (check-x-vs-1): Adapt to work even though arch and su are typically no longer built (and neither are their .1 files). * src/Makefile.am (install_su): Rename from INSTALL_SU, now that INSTALL_SU has a different meaning. Use the new $(INSTALL_SU) value.
2007-07-10New program: archKarel Zak
* NEWS: Mention arch. * README: Add arch to the list of programs. * AUTHORS: Add arch. * src/uname.c: Include "uname.h". (PROGRAM_NAME): Handle arch, too. (ARCH_AUTHORS): Define. (uname_long_options, arch_long_options): Renamed and new globals. (usage): Handle arch-mode as well as uname-mode. (decode_switches): New function, extracted from main, to handle arch-mode as well as uname-mode. (main): Handle both modes. * src/uname-arch.c: New program, alias for "uname -m". * src/uname-uname.c: New file, default uname mode. * src/uname.h: New file, uname modes. * src/Makefile.am (EXTRA_PROGRAMS): Add arch. (uname_SOURCES, arch_SOURCES): Define. * man/arch.x: New file. * man/Makefile.am (dist_man_MANS): Add arch.1. (arch.1): New dependency. * tests/misc/arch: New test, compare "arch" with "uname -m" * configure.ac (OPTIONAL_BIN_PROGS): Add arch. (MAN): Add arch.1. * .x-sc_require_config_h: Exempt uname-arch.c and uname-uname.c from the always-include-<config.h> rule. Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Jim Meyering <jim@meyering.net>
2007-07-10Change "version 2" to "version 3" in all copyright notices.Jim Meyering
2007-03-23Post-release version change.Jim Meyering
* NEWS: Add a line for 6.9+. * configure.ac (AC_INIT): Set new version string.
2007-03-22Version 6.9.Jim Meyering
* NEWS: Record release date and new version number. * configure.ac (AC_INIT): New version number.
2007-02-25Post-release version change.Jim Meyering
* NEWS: Add a line for 6.8+. * configure.ac (AC_INIT): Set new version string.
2007-02-24Version 6.8.Jim Meyering
* NEWS: Record release date and new version number. * configure.ac (AC_INIT): New version number.
2007-02-24Remove the "gnits" option; it prohibits my using "+" as a versionJim Meyering
string suffix, and all it does (beyond the default "gnu" option) is to _require_ the THANKS file. * configure.ac (AM_INIT_AUTOMAKE): Remove it. Remove all AUTOMAKE_OPTIONS settings in Makefile.am files. * tests/chgrp/Makefile.am, tests/chmod/Makefile.am: * tests/chown/Makefile.am, tests/cp/Makefile.am: * tests/du/Makefile.am, tests/expr/Makefile.am: * tests/factor/Makefile.am, tests/general/Makefile.am: * tests/install/Makefile.am, tests/ln/Makefile.am: * tests/ls/Makefile.am, tests/mkdir/Makefile.am: * tests/mv/Makefile.am, tests/readlink/Makefile.am: * tests/rm/Makefile.am, tests/rmdir/Makefile.am: * tests/seq/Makefile.am, tests/stty/Makefile.am: * tests/tee/Makefile.am, tests/touch/Makefile.am:
2007-02-24* NEWS: Use a simple "+" suffix to denote pre-release, not "-dirty".Jim Meyering
Nicer connotations. * configure.ac: Use 6.7+, not 6.7-dirty.
2007-01-24* src/sort.c (MAX_FORK_RETRIES_COMPRESS, MAX_FORK_RETRIES_DECOMPRESS):Dan Hipschman
In pipe_fork callers, use these named constants, not "2" and "8". (proctab, nprocs): Declare to be "static". (pipe_fork) [lint]: Initialize local, pid, to avoid unwarranted may-be-used-uninitialized warning. (create_temp): Use the active voice. Describe parameters, too. 2007-01-21 James Youngman <jay@gnu.org> Centralize all the uses of sigprocmask(). Don't restore an invalid saved mask. * src/sort.c (enter_cs, leave_cs): New functions for protecting code sequences against signal delivery. * (exit_cleanup): Use enter_cs and leave_cs instead of calling sigprocmask directly. (create_temp_file, pipe_fork, zaptemp): Likewise 2007-01-21 Dan Hipschman <dsh@linux.ucla.edu> Add compression of temp files to sort. * NEWS: Mention this. * bootstrap.conf: Import findprog. * configure.ac: Add AC_FUNC_FORK. * doc/coreutils.texi: Document GNUSORT_COMPRESSOR environment variable. * src/sort.c (compress_program): New global, holds the name of the external compression program. (struct sortfile): New type used by mergepfs and friends instead of filenames to hold PIDs of compressor processes. (proctab): New global, holds compressor PIDs on which to wait. (enum procstate, struct procnode): New types used by proctab. (proctab_hasher, proctab_comparator): New functions for proctab. (nprocs): New global, number of forked but unreaped children. (reap, reap_some): New function, wait for/cleanup forked processes. (register_proc, update_proc, wait_proc): New functions for adding, modifying and removing proctab entries. (create_temp_file): Change parameter type to pointer to file descriptor, and return type to pointer to struct tempnode. (dup2_or_die): New function used in create_temp and open_temp. (pipe_fork): New function, creates a pipe and child process. (create_temp): Creates a temp file and possibly a compression program to which we filter output. (open_temp): Opens a compressed temp file and creates a decompression process through which to filter the input. (mergefps): Change FILES parameter type to struct sortfile array and update access accordingly. Use open_temp and reap_some. (avoid_trashing_input, merge): Change FILES parameter like mergefps and call create_temp instead of create_temp_file. (sort): Call create_temp instead of create_temp_file. Use reap_some. (avoid_trashing_input, merge, sort, main): Adapt to mergefps.
2006-12-27* configure.ac: Require autoconf-2.61 and automake-1.10.Jim Meyering
Without the former (even with autoconf-2.60), "make distcheck" would fail (without the 2006-09-26 autoconf AC_CHECK_DECL fix), due to an inttypes.h generated with CFLAGS including -pedantic. With the old decl check, @HAVE_DECL_STRTOUMAX@ would be 0.
2006-12-09* NEWS: With the change from "-pre" to "-dirty" suffix, also changeJim Meyering
from NEXT_VER-pre to CUR_VER-dirty. So, this is 6.7-dirty. * configure.ac (AC_INIT): s/6.8-dirty/6.7-dirty/.
2006-12-08Post-release version change.Jim Meyering
* NEWS: Add a line for 6.8-dirty. * configure.ac (AC_INIT): Set new version string.
2006-12-08Version 6.7.Jim Meyering
* NEWS: Record release date. Remove '-pre' suffix. * configure.ac (AC_INIT): Remove version string suffix.
2006-11-23* configure.ac (AC_INIT): Bump to 6.7-pre, not 6.6-pre.Jim Meyering
2006-11-22Post-release version change.Jim Meyering
* NEWS: Add a line for 6.7-pre. * configure.ac (AC_INIT): Bump to 6.7 and add "-pre" suffix.
2006-11-22Version 6.6.Jim Meyering
* NEWS: Record release date. Remove "-pre" suffix. * configure.ac (AC_INIT): Remove "-pre" suffix from version string.
2006-11-19Post-release version change.Jim Meyering
* NEWS: Add a line for 6.6-pre. * configure.ac (AC_INIT): Bump to 6.6 and add "-pre" suffix.
2006-11-19Version 6.5.Jim Meyering
* NEWS: Record release date. Remove "-cvs" suffix. * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2006-10-23* NEWS: Add a line for 6.5-cvs.Jim Meyering
* configure.ac (AC_INIT): Bump to 6.5 and add "-cvs" suffix.
2006-10-22Version 6.4.Jim Meyering
* NEWS: Record the 6.4 release date. * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2006-10-12* configure.ac: Avoid compiler warnings about default returnJim Meyering
type in function definitions and unused variables in tests. * src/who.c (print_user) [HAVE_UT_HOST]: hostlen is only needed if this is #defined.
2006-10-12[ChangeLog]Jim Meyering
* configure.ac: Reflect s/gl_MACROS/coreutils_MACROS/ renaming. Call gl_INIT directly, rather than through the above. [m4/ChangeLog] * jm-macros.m4 (coreutils_MACROS): Rename from gl_MACROS, now that most of the gnulib macros have migrated into gnulib. Don't call gl_INIT here (now it's called from configure.ac, directly).
2006-10-02* NEWS: Add a line for 6.4-cvs.Jim Meyering
* configure.ac (AC_INIT): Bump to 6.4 and add "-cvs" suffix.
2006-09-30Version 6.3.Jim Meyering
* NEWS: Record the 6.3 release date. * configure.ac (AC_INIT): Remove "-cvs" suffix from version string. * NEWS: Mention Paul's Solaris 8 vs. 10 work-around.
2006-09-18* NEWS: Add a line for 6.3-cvs.Jim Meyering
* configure.ac (AC_INIT): Bump to 6.3 and add "-cvs" suffix.
2006-09-18Version 6.2.Jim Meyering
* NEWS: Record the 6.2 release date. * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2006-08-23* .cvsignore: Remove config.h, config.hin, as they are nowPaul Eggert
in lib. * configure.ac (AC_CONFIG_HEADERS): Move config.h and config.hin to lib. * lib/.cvsignore: Add config.h, config.hin. * lib/Makefile.am (AM_CPPFLAGS): Remove; we no longer need '-I..'. * src/Makefile.am (AM_CPPFLAGS): Remove '-I..'; no longer needed.
2006-08-21Add a bootstrap procedure, so that the CVS version contains fewerPaul Eggert
files and we bootstrap the rest from gnulib, gettext, etc. * README-cvs: New file. * bootstrap: New file. * bootstrap.conf: New file. * .x-sc_trailing_blank: Remove config-log, .gdb-history. Add .po. * configure.ac (AC_PREREQ): Move here from m4/*.m4, for benefit of gnulib-tool. (gl_DEFAULT_POSIX2_VERSION, gl_USE_SYSTEM_EXTENSIONS, gl_PERL): (gl_IGNORE_UNUSED_LIBRARIES): Remove; now done by gnulib. (gl_EARLY): Add. (gl_MACROS): Call just after gl_EARLY, just for clarity. * src/c99-to-c98.diff: Remove patch to ls.c; no longer needed. * src/kill.c (strtoimax): Remove decl. * src/ls.c: Include "wcwidth.h" instead of rolling it ourselves. * src/wc.c: Likewise. * src/ls.c (sort_files): Rewrite to avoid need for C99-style declaration, so that we don't need to patch this file. * src/printf.c (strtoimax, strtoumax): Remove decls. * src/su.c: Include getpass.h. (getpass): remove. * src/system.h: Include mempcpy.h, stpcpy.h, strpbrk.h. Include inttypes.h unconditionally; remove decls it handles. * lib/Makefile.am: include gnulib.mk, so that we can remove most of this file. (AM_CPPFLAGS): Don't mention -I$(srcdir), since that's now done for us. (noinst_LIBRARIES, LDDADD, DEFS): Remove. (libcoreutils_a_SOURCES): Trim down greatly, just to the files that aren't in gnulib. Remove defns gnulib does for us. * m4/check-decl.m4 (gl_CHECK_DECLS): Don't include stdio.h, string.h, stdlib.h, unistd.h, sys/time.h, time.h. Use AC_CHECK_DECLS_ONCE for free, getenv, geteuid, getlogin, getuid, lseek, malloc, memchr, realloc. Don't check for getutent, memrchr, nanosleep, stpcpy, strndup, strnlen, strstr, strtoul, strtoull. (_gl_DECL_HEADERS): Remove; all uses removed. * m4/jm-macros.m4 (gl_MACROS): Move AC_PREREQ into configure.ac for the benefit of gnulib-tool. Call gl_INIT. Do not call or require macros that gnulib will handle for us. Don't check for fchmod, hasmntopt, isascii, lchown, listmntent, mempcpy, realpath, wcrtomb, tzset. (gl_CHECK_ALL_HEADERS): Don't check for sys/statvfs.h, sys/vfs.h, sys/mount.h. (gl_CHECK_ALL_TYPES): Require AC_TYPE_UNSIGNED_LONG_LONG_INT. Don't check for struct stat.st_blksize. Don't require AC_STRUCT_ST_DM_MODE, gt_TYPE_SSIZE_T, gl_AC_TYPE_UINT32_T, gl_AC_TYPE_UINTMAX_T, gl_AC_TYPE_UINTPTR_T, gl_AC_TYPE_UNSIGNED_LONG_LONG. * m4/prereq.m4 (gl_PREREQ): Require gl_FUNC_XFTS, gl_ROOT_DEV_INO. Don't require macros that gnulib does for us. * m4/stat-prog.m4 (cu_PREREQ_STAT_PROG): Don't check for sys/sysmacros.h. Don't check for statvfs. Use AC_CHECK_HEADERS_ONCE for netinet/in.h, nfs/nfs_clnt.h, nfs/vfs.h. Don't require gl_AC_TYPE_LONG_LONG, gt_HEADER_INTTYPES_H.
2006-08-20* NEWS: Add a line for 6.2-cvs.Jim Meyering
* configure.ac (AC_INIT): Bump to 6.2 and add "-cvs" suffix.
2006-08-19* Version 6.1.Jim Meyering
* NEWS: Record the 6.1 release date. * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2006-08-17(AC_INIT): Bump to 6.1 and add "-cvs" suffix.Jim Meyering
2006-08-15* Version 6.0 [unstable].Jim Meyering
* NEWS: Record the 6.0 release date. * configure.ac (AC_INIT): Remove "-cvs" suffix from version string.
2006-08-11(AM_GNU_GETTEXT): Upgrade to need-formatstring-macros.Paul Eggert
2006-08-10(AM_GNU_GETTEXT_VERSION): Update from 0.13.1 to 0.15.Paul Eggert
2006-03-26(AC_CONFIG_FILES): Remove tests/basename.Jim Meyering
2006-02-03Require automake-1.9.6, not 1.8.3.Jim Meyering
2006-01-07(gl_IGNORE_UNUSED_LIBRARIES): Add.Paul Eggert
2005-11-22Put copyright dates all on one line so theJim Meyering
emacs function that updates them works properly.
2005-11-18(AC_PROG_CC_STDC): Use this instead of AC_PROG_CC, so thatPaul Eggert
we get a standard-conforming compiler. This relies on the new m4/c.m4 file. Note that it's a bit tricky, since c.m4 doesn't define AC_PROG_CC_STDC; we are relying on Autoconf 2.59 internals. m4/c.m4 can go away with Autoconf 2.60 comes out.
2005-11-18(AM_PROG_CC_C_O): Add. Needed for CVS Automake.Paul Eggert
Problem reported by Eric Blake.