📄 configure.in
字号:
i#! /bin/shdnldnl Caching is usually WRONG for systems with cross-mounted file systemsdnl (the cache file may correspond to a different system). Since configurednl is not on a performance-critical path, go for robustness over speed.dnldefine([AC_CACHE_LOAD], )dnldefine([AC_CACHE_SAVE], )dnldnldnlAC_INIT() AC_ARG_ENABLE(echo, [--enable-echo - Turn on strong echoing. The default is enable=no.] ,set -x)AC_ARG_ENABLE(softerror, [--enable-softerror - Turn on soft error, i.e. instead of issuing MSG_ERROR, MSG_WARN + exit 0 are used. The default is enable=no.], , enable_softerror=no)echo "Configuring Upshot with $ac_configure_args"## Find the home directory if not specifiedif test "X$srcdir" != "X." -a -s $srcdir/bin/upshot.in ; then top_srcdir_abs=$srcdirelse PAC_GETWD(top_srcdir_abs,bin/upshot.in)fiif test ! -d "$top_srcdir_abs" ; then PAC_MSG_ERROR($enable_softerror, [*** $top_srcdir_abs is not a valid directory - cannot continue])fiAC_SUBST(top_srcdir_abs)# Options to give hint about where Wish shell is locatedwishloc=""AC_ARG_WITH(tcldir, [--with-tcldir=tcldir - The path to the tcl directory. Wish shell will be assumed to be at \$tcldir/bin/wish.], wishloc=$withval/bin/wish)AC_ARG_WITH(tkdir, [--with-tkdir=tkdir - The path to the tk directory. Wish shell will be assumed to be at \$tkdir/bin/wish.], wishloc=$withval/bin/wish)AC_ARG_WITH(wish, [--with-wish=wishloc - The path to the tcl/tk wish executable. If this option is not given, configure will try to locate wish for you.], wishloc=$withval)# Fixup for makeMAKE=${MAKE:-make}PAC_MAKE_IS_GNUMAKEPAC_MAKE_IS_BSD44PAC_MAKE_IS_OSF# PAC_MAKE_VPATHAC_SUBST(MAKE)# If we are relying on VPATH and no VPATH is set, then we must exit# if test ! -s bin/upshot.in -a -z "$VPATH" ; then# echo "No virtual MAKE path command found."# echo "You may need to set your make command"# echo "The GNU make (sometimes available as gnumake) can be used."# exit 1 fiif test -z "$wishloc" ; then PAC_FIND_WISHfi# Test that wish existsif test -n "$wishloc" ; then namelen=`expr "$wishloc" : ".*"` if test $namelen -gt 26 ; then echo "The path for wish, $wishloc, may be too long" echo "for some Unix systems to accept as a command interpreter." echo "This may cause problems when using upshot." echo "(Some systems limit the length to 26 characters!)" fi if test ! -x $wishloc ; then wishloc= fifiif test -z "$wishloc" ; then PAC_MSG_ERROR($enable_softerror, [Could not find executable wish (needed for Upshot)])fiAC_SUBST(wishloc)AC_OUTPUT(Makefile sbin/install-viewer)for script in "sbin/install-viewer"; do if test -f "$script" ; then chmod a+x $script else PAC_MSG_ERROR($enable_softerror, [*** $script is not a valid file - Make sure you have configured with a valid Upshot source directory]) fidone
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -