]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
acfunctions.m4 was still using the old AC_LIBOBJ_DECL.
authorAkim Demaille <akim@epita.fr>
Mon, 5 Feb 2001 17:33:00 +0000 (17:33 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 5 Feb 2001 17:33:00 +0000 (17:33 +0000)
Reported by Derek R. Price.
* tests/semantics.at (AC_REPLACE_FUNCS): New test.
* acfunctions.m4 (AC_REPLACE_FUNCS, _AC_LIBOBJ_ALLOCA): Use
AC_LIBSOURCES.

BUGS
acgeneral.m4
lib/autoconf/general.m4

diff --git a/BUGS b/BUGS
index 6f3bc0131ec9e3a803f527e2cd0f5b7798f32791..a2c91374bdd96bdb323fa38893986d0364152602 100644 (file)
--- a/BUGS
+++ b/BUGS
@@ -15,9 +15,9 @@ address them.
 
 * Status
 
-       /*------------.
-       | Don't use.  |
-       `------------*/
+       /*-------------.
+       | Do not use.  |
+       `-------------*/
 
 * Serious Problems
 
@@ -37,4 +37,17 @@ specified.
 
 ** AC_TRY_EVAL of multi line commands
 
-Is broken.
+Is broken.  The problem is mostly that, again, the policy wrt special
+characters is not clearly defined.  Because of this,
+_AC_INIT_PREPARE_FS_SEPARATORS will output undesired messages, but is
+not guilty.
+
+./configure: /home/lrde/prof/akim/src/ace/tests; conftest.sh: Aucun fichier ou rĂ©pertoire de ce type
+
+AC_TRY_COMMAND is.
+
+** AC_CHECK_PROG
+
+and all the macros that use it, are paying the change for test -f to
+test -x to determine whether a candidate path is an executable: now we
+have false positives with directories which, indeed, are test -x.
index 9e4a0d133352f388748b78faa9523591c326f447..5a0e8ab5ddc19f1319d98cd4f0062ca76abd8fa6 100644 (file)
@@ -1,6 +1,6 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Parameterized macros.
-# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
+# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 # Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -662,7 +662,7 @@ m4_ifset([AC_PACKAGE_BUGREPORT],
 # ------------------
 m4_define([_AC_INIT_COPYRIGHT],
 [AC_COPYRIGHT(
-[Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
+[Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 Free Software Foundation, Inc.
 This configure script is free software; the Free Software Foundation
 gives unlimited permission to copy, distribute and modify it.])dnl
@@ -1361,6 +1361,25 @@ fi])dnl
 ])# _AC_INIT_VERSION
 
 
+# _AC_INIT_PREPARE_FS_SEPARATORS
+# ------------------------------
+# Compute the directory and path separators.
+# FIXME: Full version should include dir separator, documentation about
+# AC_SUBST'ed variables etc.
+m4_define([_AC_INIT_PREPARE_FS_SEPARATORS],
+[echo "#! $SHELL" >conftest.sh
+echo  "exit 0"   >>conftest.sh
+chmod +x conftest.sh
+if AC_TRY_COMMAND([PATH=".;`pwd`"; conftest.sh]); then
+  ac_path_separator=';'
+else
+  ac_path_separator=:
+fi
+AC_SUBST([PATH_SEPARATOR], "$ac_path_separator")dnl
+rm -f conftest.sh
+])
+
+
 # _AC_INIT_PREPARE
 # ----------------
 # Called by AC_INIT to build the preamble of the `configure' scripts.
@@ -1446,6 +1465,8 @@ _AC_ARG_VAR_PRECIOUS(target_alias)dnl
 AC_LANG_PUSH(C)
 
 _AC_PROG_ECHO()dnl
+_AC_INIT_PREPARE_FS_SEPARATORS
+
 dnl Substitute for predefined variables.
 AC_SUBST(DEFS)dnl
 AC_SUBST(LIBS)dnl
@@ -2301,7 +2322,7 @@ $ac_includes_default])])
 # expansions, not every word.  This closes a longstanding sh security
 # hole.
 m4_define([AC_SHELL_PATH_WALK],
-[ac_save_IFS=$IFS; IFS=':'
+[ac_save_IFS=$IFS; IFS=$ac_path_separator
 ac_dummy="m4_default([$1], [$PATH])"
 for ac_dir in $ac_dummy; do
   IFS=$ac_save_IFS
index 9e4a0d133352f388748b78faa9523591c326f447..5a0e8ab5ddc19f1319d98cd4f0062ca76abd8fa6 100644 (file)
@@ -1,6 +1,6 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Parameterized macros.
-# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
+# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 # Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -662,7 +662,7 @@ m4_ifset([AC_PACKAGE_BUGREPORT],
 # ------------------
 m4_define([_AC_INIT_COPYRIGHT],
 [AC_COPYRIGHT(
-[Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000
+[Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 Free Software Foundation, Inc.
 This configure script is free software; the Free Software Foundation
 gives unlimited permission to copy, distribute and modify it.])dnl
@@ -1361,6 +1361,25 @@ fi])dnl
 ])# _AC_INIT_VERSION
 
 
+# _AC_INIT_PREPARE_FS_SEPARATORS
+# ------------------------------
+# Compute the directory and path separators.
+# FIXME: Full version should include dir separator, documentation about
+# AC_SUBST'ed variables etc.
+m4_define([_AC_INIT_PREPARE_FS_SEPARATORS],
+[echo "#! $SHELL" >conftest.sh
+echo  "exit 0"   >>conftest.sh
+chmod +x conftest.sh
+if AC_TRY_COMMAND([PATH=".;`pwd`"; conftest.sh]); then
+  ac_path_separator=';'
+else
+  ac_path_separator=:
+fi
+AC_SUBST([PATH_SEPARATOR], "$ac_path_separator")dnl
+rm -f conftest.sh
+])
+
+
 # _AC_INIT_PREPARE
 # ----------------
 # Called by AC_INIT to build the preamble of the `configure' scripts.
@@ -1446,6 +1465,8 @@ _AC_ARG_VAR_PRECIOUS(target_alias)dnl
 AC_LANG_PUSH(C)
 
 _AC_PROG_ECHO()dnl
+_AC_INIT_PREPARE_FS_SEPARATORS
+
 dnl Substitute for predefined variables.
 AC_SUBST(DEFS)dnl
 AC_SUBST(LIBS)dnl
@@ -2301,7 +2322,7 @@ $ac_includes_default])])
 # expansions, not every word.  This closes a longstanding sh security
 # hole.
 m4_define([AC_SHELL_PATH_WALK],
-[ac_save_IFS=$IFS; IFS=':'
+[ac_save_IFS=$IFS; IFS=$ac_path_separator
 ac_dummy="m4_default([$1], [$PATH])"
 for ac_dir in $ac_dummy; do
   IFS=$ac_save_IFS