Google

Back to the Main Page.

ac_as_mkdir_p

Download the M4 Source.

Synopsis

Version

1.1.1.1 (2001/07/26)     guidod @ ac-archive-0.5.39

Author

complain to <guidod@gmx.de>

Description
AC_AS_MKDIR_P(PATH) this is the macro AS_MKDIR_P from autoconf 2.4x defined here for use in autoconf 2.1x, remove the AC_ when you use 2.4x

M4 Source Code

AC_DEFUN([AC_AS_MKDIR_P],[dnl
case $1 in
  \\*)   ac_incr_dir=\\;;
  ?:\\*) ac_incr_dir=\\;; # ouch
  /*)    ac_incr_dir=/;;
  ?:/*)  ac_incr_dir=/;; # ouch
  *)     ac_incr_dir=.;;
esac
as_dummy=$1
for as_mkdir_dir in `echo $ac_dummy | sed -e 'y:\\/:  :'`; do
  case $as_mkdir_dir in
    # Skip DOS drivespec
    ?:) as_incr_dir=$as_mkdir_dir ;;
    *)
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
    ;;
  esac
done
])