Re: patches (beta1)
Guylhem AZNAR (guylhem@barberouge.linux.lmm.com)
Tue, 1 Sep 1998 11:32:27 +0200
--b5gNqxB1S1yM7hjW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=mutta00349
Here's new portable configure script
--
____/| "Letting people bear arms is letting them kill our children"
\ o.O| Enlever rrremovethis / Remove rrremovethis
=(_)= Salut / Best regards
\u/ Guylhem AZNAR <guylhem@rrremovethis.oeil.qc.ca>
--b5gNqxB1S1yM7hjW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="configure.a00349.in"
dnl# -*- sh -*-
dnl# Process this file with autoconf to produce a configure script.
dnl#
dnl#Copyright (c) 1998 Juergen Sawinski <Juergen.Sawinski@urz.uni-heidelberg.de>
dnl#Copyright (c) 1997 1998 Guylhem AZNAR <guylhem@oeil.qc.ca>
AC_INIT(afterstep/autoexec.in)
AC_CONFIG_AUX_DIR(autoconf)
AC_CONFIG_HEADER(config.h:autoconf/config.h.in)
dnl# Check for compiler tools
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_RANLIB
AC_PATH_PROG(RM, rm, rm)
AC_PATH_PROG(MV, mv, mv)
AC_PATH_PROG(CP, cp, cp)
AC_PATH_PROG(MKDIR, mkdir, mkdir)
dnl# Check for headers
AC_PATH_XTRA
AC_HEADER_DIRENT
AC_HEADER_TIME
AC_CHECK_HEADERS(sys/wait.h sys/time.h)
dnl# Checks for optional programs
AC_PROG_LEX
AC_PROG_YACC
AC_CHECK_PROG(sgmltools, sgmltools, HAVE_SGMLTOOLS, NO_SGMLTOOLS)
dnl# Checks for functions
AC_FUNC_WAIT3
AC_CHECK_FUNCS(uname gethostname)
VT_FIND_LIBXPM
AC_CHECK_LIB(Xext, XShapeCombineMask, [XEXT_LIB="-lX11 -lXext" HAVESHAPE="SHAPE"],,$XLFLAGS $X_LIBS)
AC_CHECK_LIB(jpeg, jpeg_destroy_compress, [JPEG_LIB="-ljpeg" HAVEJPEG="JPEG"],,)
dnl# Variable strings declaration
AC_SUBST(HAVEXPM)
AC_SUBST(HAVESHAPE)
AC_SUBST(HAVEJPEG)
AC_SUBST(XPM_LIBS)
AC_SUBST(XEXT_LIB)
AC_SUBST(JPEG_LIB)
AC_SUBST(version)
AC_SUBST(bin_dir)
AC_SUBST(man_dir)
AC_SUBST(share_dir)
AC_SUBST(gnustep)
AC_SUBST(gnusteplib)
AC_SUBST(after_dir)
AC_SUBST(x_includes)
AC_SUBST(sgmltools)
AC_SUBST(ximageloader)
AC_SUBST(helpcommand)
AC_SUBST(defaultstartmenusort)
AC_SUBST(usedesktops)
AC_SUBST(deskgeometry)
AC_SUBST(anim_step)
AC_SUBST(anim_step_main)
AC_SUBST(anim_delay)
AC_SUBST(differentlooknfeelforeachdesktop)
AC_SUBST(no_newlook)
AC_SUBST(no_icon_background)
AC_SUBST(no_i18n)
AC_SUBST(no_warppointertomenu)
AC_SUBST(no_savewindows)
AC_SUBST(no_makemenusonboot)
AC_SUBST(no_makestartmenu)
AC_SUBST(no_texture)
AC_SUBST(no_shade)
AC_SUBST(no_virtual)
AC_SUBST(no_saveunders)
AC_SUBST(no_windowlist)
AC_SUBST(no_availabilitycheck)
dnl# Ask some compile-time options
version="1.5.0 beta 2"
bin_dir="/usr/local/bin"
man_dir="/usr/local/man/man1"
share_dir="/usr/local/share/afterstep"
gnustep="~/GNUstep"
gnusteplib="~/GNUstep/Library"
after_dir="~/GNUstep/Library/AfterStep"
ximageloader="xli -onroot -quiet -colors 20"
helpcommand="xiterm -e man"
defaultstartmenusort="SORTBYALPHA"
anim_step=5
anim_step_main=5
anim_delay=2
differentlooknfeelforeachdesktop=0
usedesktops=3
deskgeometry="2x2"
no_newlook=0
no_icon_background=1
no_i18n=1
no_warppointertomenu=1
no_savewindows=0
no_makemenusonboot=1
no_makestartmenu=0
no_texture=0
no_shade=0
no_virtual=0
no_saveunders=0
no_windowlist=0
no_availabilitycheck=0
echo
echo "There are some things to configure that depend on your personal taste."
echo "You shouldn't need to respond to these questions if you like defaults."
echo
echo "DON'T RESPOND if you don't understand the question : default choice is kept"
echo
echo
echo "#1. Do you want to change install paths (n): "
read retval
if test "${retval}" = "y" || test "${retval}" = "yes" ; then
echo
echo "Installation:"
echo "--------------------------------------------------------------------"
echo
echo "* Install afterstep binaries in (${bin_dir}): "
read retval
if test -n "${retval}" ; then
bin_dir=${retval}
fi
echo "* Install afterstep manual pages in (${man_dir}): "
read retval
if test -n "${retval}" ; then
man_dir=${retval}
fi
fi
echo
echo "#2. Do you want to change configuration paths (n): "
read retval
if test "${retval}" = "y" || test "${retval}" = "yes" ; then
echo
echo "Configuration paths:"
echo "--------------------------------------------------------------------"
echo
echo "* System-wide path (${share_dir}): "
read retval
if test -n "${retval}" ; then
share_dir=${retval}
fi
echo "* Users GNUstep path (${gnustep}): "
read retval
if test -n "${retval}" ; then
gnustep=${retval}
fi
echo "* Users GNUstep Library path (${gnusteplib}): "
read retval
if test -n "${retval}" ; then
gnusteplib=${retval}
fi
echo "* Users AfterStep path (${after_dir}): "
read retval
if test -n "${retval}" ; then
after_dir=${retval}
fi
fi
echo
echo "#3. Do you want to change helper applications (n): "
read retval
if test "${retval}" = "y" || test "${retval}" = "yes" ; then
echo
echo "Helper applications:"
echo "--------------------------------------------------------------------"
echo
echo "External program used by afterstep to display non XPM files like JPEG"
echo "in root window background."
echo "xli is faster, but some people will prefer xv (use xv -root -quit)"
echo
echo "* Use (${ximageloader}): "
read retval
if test -n "${retval}" ; then
ximageloader=${retval}
fi
echo
echo "When you click with mouse button #2 on title button #1, manpage of the"
echo "current program is displayed by an external program (xman can't be used)"
echo
echo "* Help command (${helpcommand}):"
read retval
if test -n "${retval}" ; then
helpcommand=${retval}
fi
fi
echo
echo "#4. Do you want to change look defaults (n): "
read retval
if test "${retval}" = "y" || test "${retval}" = "yes" ; then
echo
echo "Look:"
echo "--------------------------------------------------------------------"
echo
echo "There are 3 ways of sorting options in start menu by default : only"
echo "SORTBYALPHA, SORTBYDATE & SORTBYPUREALPHA are available for now"
echo
echo "* Default Start-menu sort mode (${defaultstartmenusort}):"
read retval
if test -n "${retval}" ; then
defaultstartmenusort=${retval}
fi
echo
echo "Wharf animation speed : greater is smoother and slower, but must be >=1"
echo "You may want to raise the following default values if your machine is"
echo "fast or lower if it is slow, but you'd better edit wharf config. file"
echo
echo "* Animation steps for wharf folders (${anim_step}):"
read retval
if test -n "${retval}" ; then
anim_step=${retval}
fi
echo "* Animation steps for wharf main window (${anim_step_main}):"
read retval
if test -n "${retval}" ; then
anim_step_main=${retval}
fi
echo "* Animation delay in ms (${anim_delay}):"
read retval
if test -n "${retval}" ; then
anim_delay=${retval}
fi
echo
echo "Restarting automagically with a different look & feel each time you"
echo "change desktop with Pager (not by circulating windows !) is CPU hungry."
echo "Not recommended on slow/loaded machines : barely usable on P2 or Alphas"
echo
if test ${differentlooknfeelforeachdesktop} = 0 ; then
echo "* Use different look&feel for each desktop (no): "
else
echo "* Use different look&feel for each desktop (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
differentlooknfeelforeachdesktop=1
;;
no|n)
differentlooknfeelforeachdesktop=0
esac
fi
echo
echo "AfterStep now uses 4 pages on each of the 3 additional desktops by"
echo "default : so you have 3+1 desktops of 4 pages each : 4x4=16 screens."
echo
echo "* How many additional desktops do you want ? (${usedesktops}): "
read retval
if test -n "${retval}" ; then
usedesktops=${retval}
fi
echo
echo "Pages geometry for all desktop can be changed : by default it is a"
echo "2x2 square, but you can make it become a 2x3 rectangle [tall] or a"
echo "3x2 rectangle [wide] : this geometry applyies to each desktop"
echo "Format is: (width)x(hight), for example : 2x2"
echo
echo "* Set desk geometry to (${deskgeometry}): "
read retval
if test -n "${retval}" ; then
deskgeometry=${retval}
fi
fi
echo
echo "#5. Do you want to change compile-time options (n): "
read retval
if test "${retval}" = "y" || test "${retval}" = "yes" ; then
echo
echo "Compile-time options:"
echo "--------------------------------------------------------------------"
echo
echo "Would you like to use old look files and .steprc ?"
echo "New inheritable looks should support old (look files and .steprc)"
echo "but this option prevents compatibility problems with these old files"
echo
if test ${no_newlook} = 0 ; then
echo "* Replace new look code by old look code (no): "
else
echo "* Replace new look code by old look code (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_newlook=1
;;
no|n)
no_newlook=0
esac
fi
echo
echo "Don't want background behind iconifyied windows & allow big icon ?"
echo "Very nice looking, but not very nextish ! NOT FINISHED YET !!!"
echo
if test ${no_icon_background} = 0 ; then
echo "* Disable old icon code -new is still experimental- (no): "
else
echo "* Disable old icon code -new is still experimental- (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_icon_background=1
;;
no|n)
no_icon_background=0
esac
fi
echo
echo "If you want to use I18N feature, just enable it, then you can use"
echo "non-english fonts in window title, Icon, and Menu. but you have to set"
echo "the locale appropriately before you start the window manager."
echo
if test ${no_i18n} = 0 ; then
echo "* Disable i18n feature (no): "
else
echo "* Disable i18n feature (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_i18n=1
;;
no|n)
no_i18n=0
esac
fi
echo
echo "Do you want your mouse pointer to be automatically put in the center"
echo "of a menu title when you open it ? This can be annoying for big menus"
echo
if test ${no_warppointertomenu} = 0 ; then
echo "* Disable automatic pointer warps (no): "
else
echo "* Disable automatic pointer warps (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_warppointertomenu=1
;;
no|n)
no_warppointertomenu=0
esac
fi
echo
echo "If you don't want windows still opened when you close your session to"
echo "be automatically reopened next time you start (seesions saving)"
echo
if test ${no_savewindows} = 0 ; then
echo "* Disable windows saving on exit (no): "
else
echo "* Disable windows saving on exit (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_savewindows=1
;;
no|n)
no_savewindows=0
esac
fi
echo
echo "This will make AfterStep startup faster, but it will not update menus"
echo "on each boot : you will have to click on Quit/Update Start Menu"
echo "However, no one really needs to update menus on each boot"
echo
if test ${no_makemenusonboot} = 0 ; then
echo "* Disable start menu updating on startup (no): "
else
echo "* Disable start menu updating on startup (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_makemenusonboot=1
;;
no|n)
no_makemenusonboot=0
esac
fi
echo
echo "If you don't want start menu to be rebuilt every time you start"
echo "AfterStep but rather edit startmenu file by hand. Not recommended."
echo
if test ${no_makestartmenu} = 0 ; then
echo "* Disable all start menu tree -use non-configurable/tmp/startmenu- (no): "
else
echo "* Disable all start menu tree -use non-configurable/tmp/startmenu- (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_makestartmenu=1
;;
no|n)
no_makestartmenu=0
esac
fi
echo
echo "Use this if you don't like gradients, for example on titlebars"
echo "To disable icons background gradients, you must use new icon code too"
echo
if test ${no_texture} = 0 ; then
echo "* Disable textures (no): "
else
echo "* Disable textures (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_texture=1
;;
no|n)
no_texture=0
esac
fi
echo
echo "Windows can be swallowed under their titlebar to save some place on the"
echo "desktop : this is called shading"
echo "If you do not want shade to be animated use this option"
echo
if test ${no_shade} = 0 ; then
echo "* Disable shade (no): "
else
echo "* Disable shade (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_shade=1
;;
no|n)
no_shade=0
esac
fi
echo
echo "Omitting the virtual desktop breaks Pager module"
echo "There should be no real need to define this"
echo
if test ${no_virtual} = 0 ; then
echo "* Disable virtual desktop (no): "
else
echo "* Disable virtual desktop (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_virtual=1
;;
no|n)
no_virtual=0
esac
fi
echo
echo "Tells AfterStep not to request save unders for pop-up menus"
echo "A quick test using monochrome X11 shows that save unders cost about 4K"
echo "RAM, but saves a lot of window redraws if you have windows that take a"
echo "while to refresh. For xcolor, I assume the cost is more like :"
echo "4Kbytesx8 = 32Kbytes (256 color)."
echo
if test ${no_saveunders} = 0 ; then
echo "* Disable saveunders (no): "
else
echo "* Disable saveunders (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_saveunders=1
;;
no|n)
no_saveunders=0
esac
fi
echo
echo "Causes built-in window-list (started on right clicking root window) to"
echo "be omitted."
echo "The window-list module WinList which can be used instead is slower !"
echo
if test ${no_windowlist} = 0 ; then
echo "* Disable internal faster window list (no): "
else
echo "* Disable internal faster window list (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_windowlist=1
;;
no|n)
no_windowlist=0
esac
fi
echo
echo "AfterStep can autodetect unavailable start menu options if binaries"
echo "are not present in path, thus making these options unselectable and"
echo "colored differently."
echo
if test ${no_availabilitycheck} = 0 ; then
echo "* Disable availability checking (no): "
else
echo "* Disable availability checking (yes): "
fi
read retval
if test -n "${retval}" ; then
case ${retval} in
yes|y)
no_availabilitycheck=1
;;
no|n)
no_availabilitycheck=0
esac
fi
fi
echo
dnl# Write results
AC_CONFIG_HEADER(config.h)
dnl# Common parts of the Makefile
MAKEFILECOMMON=./autoconf/Makefile.common
MAKEFILECOMMONLIB=./autoconf/Makefile.common.lib
AC_SUBST_FILE(MAKEFILECOMMON)
AC_SUBST_FILE(MAKEFILECOMMONLIB)
AC_OUTPUT(\
autoconf/Makefile.common autoconf/Makefile.common.lib configure.h Makefile \
\
doc/Makefile
\
lib/Makefile \
\
src/afterstep/Makefile \
src/Animate/Makefile \
src/Audio/Makefile \
src/Auto/Makefile \
src/Banner/Makefile \
src/Cascade/Makefile \
src/Clean/Makefile \
src/Form/Makefile \
src/Ident/Makefile \
src/Pager/Makefile \
src/Pager_noxpm/Makefile \
src/Save/Makefile \
src/Script/Makefile \
src/Scroll/Makefile \
src/Sound/Makefile \
src/Tile/Makefile \
src/Wharf/Makefile \
src/WinList/Makefile \
src/Zharf/Makefile \
\
afterstep/base.16bpp \
afterstep/base.24bpp \
afterstep/base.32bpp \
afterstep/audio \
afterstep/compatibility \
afterstep/pager \
afterstep/wharf \
)
echo "
AfterStep $version is now hopefully configured:
Just run : make ; make install ; make install-all
"
--b5gNqxB1S1yM7hjW--