+2000-03-07 Mark Elbrecht <snowball3@bigfoot.com>
+
+ Support absolute DOS-style paths.
+
+ Any character before the colon is accepted because network drives
+ can be assigned characters outside the [a-zA-Z] range. DOS-style
+ relative paths (?:foo/bar) are also considered absolute for
+ Autoconf's purposes since the path '../?:foo/bar' is invalid.
+
+ * acgeneral.m4 (AC_OUTPUT_FILES): Treat DOS-style paths (?:*') as
+ absolute.
+ (AC_OUTPUT_SUBDIRS): Likewise.
+ (AC_PATH_PROG): Make pattern for matching DOS-style paths the same
+ as that used in AC_OUTPUT_FILES and AC_OUTPUT_SUBDIRS.
+
2000-03-06 Akim Demaille <akim@epita.fr>
* tests/atspecific.m4 (m4_match): Remove, no longer used.
AC_MSG_CHECKING([for $ac_word])
AC_CACHE_VAL(ac_cv_path_$1,
[case "[$]$1" in
-dnl Second pattern matches DOS absolute paths.
- /* | ?:/*)
+ [/\\]* | ?:[/\\]*)
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
;;
*)
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
+ else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
+ [/\\]* | ?:[/\\]* )
+ srcdir="$ac_given_srcdir$ac_dir_suffix";
+ top_srcdir=$ac_given_srcdir ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
ifdef([AC_PROVIDE_AC_PROG_INSTALL],
[[ case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
+ [/\\$]* | ?:[/\\]* ) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
]])dnl
fi
case "$srcdir" in
- [[/$]]*) ac_rel_source="$srcdir/$ac_source" ;;
+ [[/\\$]]* | ?:[/\\]* ) ac_rel_source="$srcdir/$ac_source" ;;
*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
esac
case "$srcdir" in
.) # No --srcdir option. We are building in place.
ac_sub_srcdir=$srcdir ;;
- /*) # Absolute path.
+ [/\\]* | ?:[/\\] ) # Absolute path.
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
*) # Relative path.
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
# Make the cache file name correct relative to the subdirectory.
case "$cache_file" in
- /*) ac_sub_cache_file=$cache_file ;;
+ [/\\]* | ?:[/\\]* ) ac_sub_cache_file=$cache_file ;;
*) # Relative path.
ac_sub_cache_file="$ac_dots$cache_file" ;;
esac
ifdef([AC_PROVIDE_AC_PROG_INSTALL],
[[ case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
+ [/\\$]* | ?:[/\\]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
]])dnl
AC_MSG_CHECKING([for $ac_word])
AC_CACHE_VAL(ac_cv_path_$1,
[case "[$]$1" in
-dnl Second pattern matches DOS absolute paths.
- /* | ?:/*)
+ [/\\]* | ?:[/\\]*)
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
;;
*)
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
- else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
- /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
+ else top_srcdir=`echo $ac_dots | sed 's%/$%%'`; fi ;;
+ [/\\]* | ?:[/\\]* )
+ srcdir="$ac_given_srcdir$ac_dir_suffix";
+ top_srcdir=$ac_given_srcdir ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
ifdef([AC_PROVIDE_AC_PROG_INSTALL],
[[ case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
+ [/\\$]* | ?:[/\\]* ) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
]])dnl
fi
case "$srcdir" in
- [[/$]]*) ac_rel_source="$srcdir/$ac_source" ;;
+ [[/\\$]]* | ?:[/\\]* ) ac_rel_source="$srcdir/$ac_source" ;;
*) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
esac
case "$srcdir" in
.) # No --srcdir option. We are building in place.
ac_sub_srcdir=$srcdir ;;
- /*) # Absolute path.
+ [/\\]* | ?:[/\\] ) # Absolute path.
ac_sub_srcdir=$srcdir/$ac_config_dir ;;
*) # Relative path.
ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
# Make the cache file name correct relative to the subdirectory.
case "$cache_file" in
- /*) ac_sub_cache_file=$cache_file ;;
+ [/\\]* | ?:[/\\]* ) ac_sub_cache_file=$cache_file ;;
*) # Relative path.
ac_sub_cache_file="$ac_dots$cache_file" ;;
esac
ifdef([AC_PROVIDE_AC_PROG_INSTALL],
[[ case "$ac_given_INSTALL" in
- [/$]*) INSTALL="$ac_given_INSTALL" ;;
+ [/\\$]* | ?:[/\\]*) INSTALL="$ac_given_INSTALL" ;;
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
esac
]])dnl