comparison configure.ac @ 5676:dede3f658f8e

Sanity check package roots in configure.
author Stephen J. Turnbull <stephen@xemacs.org>
date Sat, 04 Aug 2012 23:26:26 +0900
parents bc51e191aaea
children ede80ef92a74
comparison
equal deleted inserted replaced
5675:4e54445e0c7d 5676:dede3f658f8e
5678 case "$ld_switch_site" in 5678 case "$ld_switch_site" in
5679 *nocombreloc*) echo " Linking with \`-z nocombreloc'. 5679 *nocombreloc*) echo " Linking with \`-z nocombreloc'.
5680 - Consider configuring with --with-pdump." ;; 5680 - Consider configuring with --with-pdump." ;;
5681 esac 5681 esac
5682 5682
5683 define(COLON_TO_SPACE_WARN,
5684 [case "$[$1]" in *:* [)] dnl
5685 case "$opsys" in *cygwin* [)]
5686 echo " WARNING: Paths containing spaces will be misinterpreted." ;;
5687 esac
5688 [$1]="`echo '' $[$1] | sed -e 's/^ //' -e 's/:/ /g'`";; esac])dnl
5689
5690 echo "
5691 Package Search (a 'root' contains '{xemacs,mule,site}-packages'):"
5692
5693 if test -n "$with_early_packages"; then
5694 COLON_TO_SPACE_WARN(with_early_packages)
5695 echo " User package roots: $with_early_packages"
5696 else
5697 echo " User package roots: ~/.xemacs"
5698 fi
5699
5700 dnl Unlike the others, with_late_packages gets a non-null default.
5701 XE_EXPAND_VARIABLE(with_late_packages,with_late_packages_expanded)
5702 COLON_TO_SPACE_WARN(with_late_packages_expanded)
5703 echo " System package roots: $with_late_packages_expanded"
5704 for path in $with_late_packages_expanded; do
5705 if test ! -d $path; then
5706 echo " WARNING: $path was specified, but doesn't exist."
5707 echo " WARNING: XEmacs functionality will be noticably limited until"
5708 echo " WARNING: some packages are installed."
5709 elif test ! -d "$path/xemacs-packages" \
5710 -a ! -d "$path/mule-packages" \
5711 -a ! -d "$path/site-packages"; then
5712 echo " WARNING: No packages found in $path."
5713 echo " WARNING: XEmacs functionality will be noticably limited until"
5714 echo " WARNING: some packages are installed."
5715 fi
5716 done
5717 dnl #### Shouldn't need this.
5718 if test -z "$with_late_packages"; then
5719 echo " XEmacs BUG: with_late_packages is unset. Please report this!"
5720 fi
5721
5722 if test -n "$with_last_packages"; then
5723 COLON_TO_SPACE_WARN(with_last_packages)
5724 echo " Legacy package roots: $with_last_packages"
5725 for path in $with_last_packages; do
5726 if test ! -d $path; then
5727 echo " WARNING: $path was specified, but doesn't exist."
5728 echo " WARNING: If you don't need this setting, it is recommended"
5729 echo " WARNING: that you not use it."
5730 elif test ! -d "$path/xemacs-packages" \
5731 -a ! -d "$path/mule-packages" \
5732 -a ! -d "$path/site-packages"; then
5733 echo " WARNING: No packages found in $path."
5734 echo " WARNING: If you don't need this setting, it is recommended"
5735 echo " WARNING: that you not use it."
5736 fi
5737 done
5738 fi
5739
5683 echo " 5740 echo "
5684 Window System:" 5741 Window System:"
5685 if test "$with_msw" = "yes"; then 5742 if test "$with_msw" = "yes"; then
5686 echo " Compiling in support for the Microsoft window system." 5743 echo " Compiling in support for the Microsoft window system."
5687 fi 5744 fi