]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
authorAkim Demaille <akim@epita.fr>
Wed, 22 Aug 2001 06:24:29 +0000 (06:24 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 22 Aug 2001 06:24:29 +0000 (06:24 +0000)
* lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
(AC_SITE_LOAD): Better logging of config.site.

ChangeLog
lib/autoconf/general.m4
lib/m4sugar/m4sh.m4

index c888de8f8a199ea8518e8eb602289833c8091523..0390bef09ddf7ea9c5db1af2705c5e5956c0a674 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-08-22  Akim Demaille  <akim@epita.fr>
+
+       * lib/m4sugar/m4sh.m4 (AS_MKDIR_P): Fail if fails.
+       * lib/autoconf/general.m4 (_AC_OUTPUT_SUBDIRS): Adjust.
+       (AC_SITE_LOAD): Better logging of config.site.
+
 2001-08-20  Akim Demaille  <akim@epita.fr>
 
        * configure.ac (AT_CONFIG): Fix the path.
index bf0279c793387588568ad8f7d818b045fc35fc0d..3fa95d3ef015ea982290ec4c8c3e16c1a9c51693 100644 (file)
@@ -1824,7 +1824,7 @@ fi
 for ac_site_file in $CONFIG_SITE; do
   if test -r "$ac_site_file"; then
     AC_MSG_NOTICE([loading site script $ac_site_file])
-    cat "$ac_site_file" >&AS_MESSAGE_LOG_FD
+    sed 's/^/| /' "$ac_site_file" >&AS_MESSAGE_LOG_FD
     . "$ac_site_file"
   fi
 done
@@ -4405,15 +4405,7 @@ if test "$no_recursion" != yes; then
     test -d $srcdir/$ac_subdir || continue
 
     AC_MSG_NOTICE([configuring in $ac_subdir])
-    case $srcdir in
-    .) ;;
-    *) AS_MKDIR_P(["./$ac_subdir"])
-       if test -d ./$ac_subdir; then :;
-       else
-         AC_MSG_ERROR([cannot create `pwd`/$ac_subdir])
-       fi
-       ;;
-    esac
+    AS_MKDIR_P(["./$ac_subdir"])
 
     ac_popdir=`pwd`
     cd $ac_subdir
index ea732cfed82a3e1bd749920d8828d1a088e22a67..1f4c134e7bf1fbf34cdddd1831ad4f5a6e629c7b 100644 (file)
@@ -427,7 +427,9 @@ for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$[@]"`; do
     ?:) as_incr_dir=$as_mkdir_dir ;;
     *)
       as_incr_dir=$as_incr_dir/$as_mkdir_dir
-      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
+      test -d "$as_incr_dir" ||
+        mkdir "$as_incr_dir" ||
+       AS_ERROR([cannot create $1])
     ;;
   esac
 done; }