1dnl# -*- sh -*-
2dnl# Process this file with autoconf to produce a configure script.
3dnl#
4dnl#Copyright (c) 1998 Michal Vitecek <fuf@fuf.sh.cvut.cz>
5dnl#Copyright (c) 1998-2008 Sasha Vasko <sasha at aftercode.net>
6dnl#Copyright (c) 1998 Juergen Sawinski <Juergen.Sawinski@urz.uni-heidelberg.de>
7dnl#Copyright (c) 1997 1998 Guylhem AZNAR <guylhem@oeil.qc.ca>
8
9dnl#AC_INIT(afterstep/autoexec.in)
10AC_INIT(AfterStep,2.2.12,as-bugs@afterstep.org,AfterStep.tar)
11AC_CONFIG_AUX_DIR(autoconf)
12AC_CONFIG_HEADER(config.h:autoconf/config.h.in)
13
14version=$PACKAGE_VERSION
15app_version=$PACKAGE_VERSION
16libafterstep_version="1.17"
17libafterstep_version_major="1"
18libafterstep_name="LIBAFTERSTEP"
19libafterstep_file_name="libAfterStep"
20libafterconf_version="1.17"
21libafterconf_version_major="1"
22libafterconf_name="LIBAFTERCONF"
23libafterconf_file_name="libAfterConf"
24libasgtk_version="1.05"
25libasgtk_version_major="1"
26libasgtk_name="LIBASGTK"
27libasgtk_file_name="libASGTK"
28
29dnl# Setup command-line options
30
31dnl# we need the standard prefixes defined early
32test "x$prefix" = xNONE && prefix=$ac_default_prefix
33test "x$exec_prefix" = xNONE && exec_prefix="$prefix"
34eval "bindir=$bindir"
35eval "datadir=$datadir"
36eval "datarootdir=$datarootdir"
37eval "mandir=$mandir"
38eval "libdir=$libdir"
39eval "includedir=$includedir"
40
41dnl# directories
42dnl# AC_ARG_WITH(gnustep_dir,	[  --with-gnustep-dir=DIR  GNUstep directory [[~/GNUstep]] ],with_gnustep_dir=$withval, with_gnustep_dir="~/GNUstep")
43dnl# AC_ARG_WITH(gnustep_lib,	[  --with-gnustep-lib=DIR  GNUstep/Library directory [[Library]] ],with_gnustep_lib=$withval, with_gnustep_lib="Library")
44AC_ARG_WITH(afterdir,		[  --with-afterdir=DIR     user AfterStep dir [[$HOME/.afterstep]]],with_afterdir=$withval, with_afterdir="\$HOME/.afterstep")
45
46dnl# helper apps
47AC_ARG_WITH(imageloader,	[  --with-imageloader=APP  used to display images in unsupported format  [[xli -onroot -quiet]] ],with_imageloader=$withval, with_imageloader="xli -onroot -quiet -colors 20")
48AC_ARG_WITH(helpcommand,	[  --with-helpcommand=APP  display manpage for window [[xiterm -e man]] ],with_helpcommand=$withval, with_helpcommand="xiterm -e man")
49
50dnl# look defaults
51AC_ARG_WITH(startsort,		[  --with-startsort=METHOD start menu sorting method [[SORTBYALPHA]] ],with_startsort=$withval, with_startsort="SORTBYALPHA")
52AC_ARG_ENABLE(different_looknfeels, [  --enable-different-looknfeels
53                          different look&feel for each desktop [[no]] ],enable_different_looknfeels=$enableval,enable_different_looknfeels="no")
54AC_ARG_WITH(desktops,		[  --with-desktops=DESKS   default desktops in pager [[4]] ],with_desktops=$withval, with_desktops="4")
55AC_ARG_WITH(deskgeometry,	[  --with-deskgeometry=GEOM desktop views as COLUMNSxROWS [[2x2]] ],with_deskgeometry=$withval, with_deskgeometry="2x2")
56with_desktops_1=`expr ${with_desktops} - 1`
57
58dnl# The following is passed directly to libAfterImage configure :
59AC_ARG_WITH(xpm,	    	[  --with-xpm               support XPM image format [[yes]]])
60AC_ARG_WITH(gif,	    	[  --with-gif               support GIF image format [[yes]]])
61AC_ARG_WITH(jpeg,		[  --with-jpeg              support JPEG image format [[yes]]])
62AC_ARG_WITH(jpeg_includes,  	[  --with-jpeg-includes=DIR use JPEG includes in DIR], jpeg_includes="$withval", jpeg_includes=no)
63AC_ARG_WITH(builtin_jpeg,   [  --with-builtin-jpeg      use included JPEG  library [no]],with_builtin_jpeg="$withval",with_builtin_jpeg=no)
64AC_ARG_WITH(png,		[  --with-png               support PNG image format [[yes]]])
65AC_ARG_WITH(png_includes,   	[  --with-png-includes=DIR  use PNG includes in DIR], png_includes="$withval", png_includes=no)
66AC_ARG_WITH(builtin_png,    [  --with-builtin-png       use included PNG library [no]],with_builtin_png="$withval",with_builtin_png=no)
67AC_ARG_WITH(builtin_zlib,   [  --with-builtin-zlib      use included libZ library (needed for PNG) [no]],with_builtin_zlib="$withval",with_builtin_zlib=no)
68AC_ARG_WITH(tiff,		[  --with-tiff              support TIFF image format [[yes]]])
69AC_ARG_WITH(tiff_includes,  	[  --with-tiff-includes=DIR use TIFF includes in DIR], tiff_includes="$withval", tiff_includes=no)
70AC_ARG_WITH(svg,		[  --with-svg               support SVG image format via librsvg 2.0 [[yes]]])
71
72AC_ARG_WITH(ttf,		[  --with-ttf               support True Type Fonts via FreeType library [[yes]]])
73AC_ARG_WITH(ttf_includes,   	[  --with-ttf-includes=DIR  use FreeType includes in DIR], ttf_includes="$withval", ttf_includes=no)
74AC_ARG_WITH(gtk,	    	[  --with-gtk               use GTK 2.0 widget libraries where possible [[yes]]])
75
76dnl# compile-time switches
77AC_ARG_ENABLE(i18n,		[  --enable-i18n           support I18N [[no]] ],enable_i18n=$enableval,enable_i18n="no")
78AC_ARG_ENABLE(xlocale,		[  --enable-xlocale        using X_LOCALE [[no]] ],enable_xlocale=$enableval,enable_xlocale="no")
79AC_ARG_ENABLE(savewindows,	[  --enable-savewindows    save windows and re-open next session [[yes]] ],enable_savewindows=$enableval,enable_savewindows="yes")
80AC_ARG_ENABLE(virtual,		[  --enable-virtual        support virtual desktops [[yes]] ],enable_virtual=$enableval,enable_virtual="yes")
81AC_ARG_ENABLE(windowlist,	[  --enable-windowlist     compile built-in window-list [[yes]] ],enable_windowlist=$enableval,enable_windowlist="yes")
82AC_ARG_ENABLE(availability,	[  --enable-availability   check for unavailable binaries [[yes]] ],enable_availability=$enableval,enable_availability="yes")
83AC_ARG_ENABLE(fixeditems,	[  --enable-fixeditems     enable fixed menu entries [[no]] ], enable_fixeditems=$enableval,enable_fixeditems="no")
84AC_ARG_ENABLE(ascp,     	[  --enable-ascp           build AfterStep Control Panel [[yes]] ], enable_ascp=$enableval,enable_ascp="yes")
85
86AC_ARG_WITH(locale,		[  --with-locale=LOCALE    locale name you want to use ],with_locale=$withval,with_locale="")
87AC_ARG_ENABLE(shaping,		[  --enable-shaping        support shaped windows [[yes]] ],enable_shaping=$enableval,enable_shaping="yes")
88AC_ARG_ENABLE(shmimage,		[  --enable-shmimage       support shared memory images [[yes]] ],enable_shmimage=$enableval,enable_shmimage="yes")
89AC_ARG_ENABLE(xinerama,		[  --enable-xinerama       support Xinerama Multihead extentions [[yes]] ],enable_xinerama=$enableval,enable_xinerama="yes")
90AC_ARG_ENABLE(glx,		[  --enable-glx            support for OpenGL extention [[yes]] ],enable_glx=$enableval,enable_glx="no")
91AC_ARG_ENABLE(staticlibs,       [  --enable-staticlibs     enable linking to libafterstep statically [[yes]] ],enable_staticlibs=$enableval,enable_staticlibs="yes")
92AC_ARG_ENABLE(sharedlibs,       [  --enable-sharedlibs     enable linking to libafterstep dynamically [[no]] ],enable_sharedlibs=$enableval,enable_sharedlibs="no")
93
94AC_ARG_WITH(gnome-session,  [  --with-gnome-session  make use of gnome-session for session management[[yes]] ], with_gnome_session=$withval,with_gnome_session="")
95AC_ARG_WITH(dbus1,          [  --with-dbus1          make use of DBus for interprocess communications[[yes]] ], with_dbus1=$withval,with_dbus1="")
96AC_ARG_WITH(readline,       [  --with-readline       make WinCommand use readline library for interactive mode[[yes]] ], with_readline=$withval,with_readline="")
97AC_ARG_WITH(libefence,		  [  --with-libefence      compile with libefence to debug buffer overruns [[no]] ],with_libefence=$withval,with_libefence="")
98AC_ARG_ENABLE(gdb,					[  --enable-gdb          add gdb symbols (-g -w) (for debugging) [[no]] ],enable_gdb=$enableval,enable_gdb="no")
99AC_ARG_ENABLE(sigsegv,			[  --enable-sigsegv      enable internal handler of Segmentation Fault (for self-diagnostics) [[yes]] ],enable_sigsegv=$enableval,enable_sigsegv="yes")
100AC_ARG_ENABLE(warn,		[  --enable-warn           turn on more compiler warnings (for debugging) [[no]] ],enable_warn=$enableval,enable_warn="no")
101AC_ARG_ENABLE(gprof,		[  --enable-gprof          add gprof symbols (-pg) (for debugging) [[no]] ],enable_gprof=$enableval,enable_gprof="no")
102AC_ARG_ENABLE(audit,		[  --enable-audit          memory usage audit (for debugging) [[no]] ],enable_audit=$enableval,enable_audit="no")
103AC_ARG_ENABLE(trace,		[  --enable-trace          some function calls tracing (see include/trace.h) (for debugging) [[no]] ],enable_trace=$enableval,enable_trace="no")
104AC_ARG_ENABLE(trace-x,		[  --enable-trace-x        trace X calls (runtime option) (for debugging) [[no]] ],enable_trace_x=$enableval,enable_trace_x="no")
105AC_ARG_ENABLE(mmx_optimization,	[  --enable-mmx-optimization  enable utilization of MMX instruction set to speed up imaging operations [[yes]] ],enable_mmx_optimization=$enableval,enable_mmx_optimization="yes")
106AC_ARG_ENABLE(send-postcard-to-developer, [  --enable-send-postcard-to-developer will enable AfterStep to send single e-mail to developers with your installation specifics.[[no]] ],send_postcard_to_developer=$enableval,send_postcard_to_developer="no")
107AC_ARG_ENABLE(data-reinstall,   [  --enable-data-reinstall will prevent AfterStep from reinstalling image and font files.[[yes]] ],data_reinstall=$enableval,data_reinstall="yes")
108
109AC_ARG_ENABLE(script,		[  --enable-script         compile Script module [[yes]] ], enable_script=$enableval,enable_script="yes")
110AC_ARG_ENABLE(reuse-font,	[  --enable-reuse-font     enables reuse of loaded font resource by modules (don't use with TrueType fonts !)[[no]] ],[if test x$enableval == "xyes"; then AC_DEFINE(MODULE_REUSE_LOADED_FONT,1,Enables reuse of loaded font resource by modules) fi])
111
112dnl# For FreeBSD, add -I/usr/local/include
113
114FBSD="no"
115if test `uname` = "FreeBSD"; then
116        FBSD="yes"
117        CPPFLAGS="-I/usr/local/include"
118fi
119
120echo "checking whether we are compiling in FreeBSD environment... $FBSD"
121
122dnl# Comman stuff : compiler tools, proggies, etc.
123AC_PROG_CC
124AC_PROG_CXX
125AC_PROG_LN_S
126
127export CC
128export GCC
129
130export prefix
131export exec_prefix
132
133dnl# now we need to play abot with CFLAGS :
134
135dnl# Add -Wall
136
137dnl# Add -fPIC for IA64 compilation
138AC_CYGWIN
139if test "x$CYGWIN" != "xyes" -a "x$GCC" = "xyes" ; then
140  if test -z "`echo $CFLAGS | grep '\-fPIC' 2> /dev/null`" ; then
141    CFLAGS="$CFLAGS -fPIC"
142  fi
143  LDFLAGS="$LDFLAGS -rdynamic"
144fi
145
146dnl# Add -g
147STRIP_BINARIES=
148if test "x$enable_gdb" = "xyes"; then
149  if ! test -n "`echo $CFLAGS' ' | grep '\-g ' 2> /dev/null`" ; then
150	CFLAGS="$CFLAGS -g"
151  fi
152  if ! test -n "`echo $CFLAGS' ' | grep '\-w ' 2> /dev/null`" ; then
153	CFLAGS="$CFLAGS -w"
154  fi
155  if ! test -n "`echo $LDFLAGS' ' | grep '\-g ' 2> /dev/null`" ; then
156	LDFLAGS="$LDFLAGS -g"
157  fi
158  if ! test -n "`echo $LDFLAGS' ' | grep '\-w ' 2> /dev/null`" ; then
159	LDFLAGS="$LDFLAGS -w"
160  fi
161else
162  STRIP_BINARIES="-s"
163  DIRTY_CFLAGS="$CFLAGS"
164  CFLAGS="-DNO_DEBUG_OUTPUT"
165  for f in $DIRTY_CFLAGS; do
166        if test "x$f" != "x-g"; then
167	   CFLAGS="$CFLAGS $f"
168	fi
169  done
170fi
171
172dnl# Add -pg
173if test "x$enable_gprof" = "xyes"; then
174  CFLAGS="$CFLAGS -pg"
175  LDFLAGS="$LDFLAGS -pg"
176fi
177
178dnl# Add lots more warnings
179if test "x$enable_warn" = "xyes"; then
180  CFLAGS="$CFLAGS -Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wbad-function-cast -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wconversion -Wcomment -Wcast-align -Winline -Wshadow -Wredundant-decls"
181fi
182
183dnl# done with flags - lets export those for our children to use :
184export CFLAGS
185export LDFLAGS
186
187dnl# install checks :
188AC_PROG_INSTALL
189dnl# if the path to the install program is relative, make it absolute
190currdir=`pwd`
191INSTALL=`echo $INSTALL|sed -e "s@\^\.\.@${currdir}@" -e "s@^autoconf@${currdir}/autoconf@"`
192INSTALL_PROGRAM=`echo $INSTALL_PROGRAM|sed -e "s@\^\.\.@${currdir}@" -e "s@^autoconf@${currdir}/autoconf@"`
193INSTALL_DATA=`echo $INSTALL_DATA|sed -e "s@\^\.\.@${currdir}@" -e "s@^autoconf@${currdir}/autoconf@"`
194INSTALL_LIB=`echo $INSTALL_LIB|sed -e "s@\^\.\.@${currdir}@" -e "s@^autoconf@${currdir}/autoconf@"`
195
196export INSTALL
197export INSTALL_PROGRAM
198export INSTALL_DATA
199export INSTALL_LIB
200
201AC_PROG_RANLIB
202export RANLIB
203
204AC_PATH_PROG(RM, rm, rm)
205export RM
206AC_PATH_PROG(MV, mv, mv)
207export MV
208AC_PATH_PROG(CP, cp, cp)
209export CP
210AC_PATH_PROG(MKDIR, mkdir, mkdir)
211export MKDIR
212AC_PATH_PROG(PERL, perl, perl)
213export PERL
214AC_PATH_PROG(FIND, find, find)
215export FIND
216AC_PATH_PROG(XARGS, xargs, xargs)
217export XARGS
218AC_PATH_PROG(LDCONFIG, ldconfig, ldconfig, $PATH:/sbin:/usr/local/sbin)
219export LDCONFIG
220
221dnl# Checks for optional programs
222AC_PROG_LEX
223export LEX
224export LEXLIB
225AC_PROG_YACC
226export YACC
227
228AC_MSG_CHECKING([linkage type])
229if test "x$enable_staticlibs" = "xyes"; then
230   AC_MSG_RESULT([static])
231else
232   enable_sharedlibs="yes"
233   AC_MSG_RESULT([dynamic])
234fi
235
236dnl# Check for X :
237AC_PATH_XTRA
238
239user_ldflags=$LDFLAGS
240
241x_libs="$X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS"
242if test "x$user_ldflags" = "x"; then
243	full_x_libs=$x_libs
244else
245	full_x_libs="$user_ldflags $x_libs"
246fi
247
248AC_CHECK_LIB(X11, XOpenDisplay, [x_libs="-lX11 $x_libs"],,$full_x_libs)
249if test "x$enable_xlocale" = "xyes"; then
250  AC_CHECK_LIB(X11, _Xsetlocale, AC_DEFINE(X_LOCALE,1,"X Locale support enabled"),, $full_x_libs)
251fi
252
253
254
255dnl# have to update full_x_libs again as x_libs may have changed above
256if test "x$user_ldflags" = "x"; then
257	full_x_libs=$x_libs
258else
259	full_x_libs="$user_ldflags $x_libs"
260fi
261
262have_shmimage=no
263
264if test "x$CYGWIN" = "xyes"; then
265	enable_shmimage=no
266fi
267
268if test "x$enable_shmimage" = "xyes"; then
269	AC_CHECK_LIB(Xext, XShmCreateImage, [have_shmimage=yes],,$full_x_libs)
270	if test "x$have_shmimage" = "xyes"; then
271		AC_CHECK_HEADER(sys/ipc.h,,[have_shmimage=no])
272	fi
273	if test "x$have_shmimage" = "xyes"; then
274		AC_CHECK_HEADER(sys/shm.h,,[have_shmimage=no])
275	fi
276	if test "x$have_shmimage" = "xyes"; then
277		add_lib_xext=yes
278		AC_DEFINE(XSHMIMAGE,1,Support for Shared memory images - unsafe in *bsd due to limited number of segments)
279	fi
280fi
281
282dnl# Check for X shaped window extension
283HAVESHAPE="NOSHAPE"
284if test "x$enable_shaping" = "xyes"; then
285  	AC_CHECK_LIB(Xext, XShapeCombineMask, [have_shaping=yes add_lib_xext=yes AC_DEFINE(SHAPE,1,Support for shaped windows)],,$full_x_libs)
286fi
287
288add_lib_GL=no
289if test "x$enable_glx" = "xyes"; then
290  	AC_CHECK_LIB(GL, glDrawPixels, [add_lib_GL=yes AC_DEFINE(HAVE_GLX,1,Support for OpenGL extention)],,$full_x_libs)
291fi
292
293
294
295PATH_XTRA_CHECKED=yes
296export PATH_XTRA_CHECKED
297export x_includes
298export x_libraries
299AC_SUBST(x_libraries)
300export X_CFLAGS
301export X_LIBS
302export X_EXTRA_LIBS
303export X_PRE_LIBS
304export CPP
305export have_x
306export have_shmimage
307export have_shaping
308
309dnl# DONE WITH COMMON STUFF
310dnl# #############################################################
311dnl# first configuringlibraries :
312
313FROM_AFTERSTEP_CONFIGURE=yes
314export FROM_AFTERSTEP_CONFIGURE
315
316_def_lib_conf_opts=" \
317	--prefix=${prefix} \
318	--exec-prefix=${exec_prefix} \
319	--bindir=${bindir} \
320	--sbindir=${sbindir} \
321	--libexecdir=${libexecdir} \
322	--datadir=${datadir} \
323	--sysconfdir=${sysconfdir} \
324	--sharedstatedir=${sharedstatedir} \
325	--localstatedir=${localstatedir} \
326	--libdir=${libdir} \
327	--includedir=${includedir} \
328	--oldincludedir=${oldincludedir} \
329	--infodir=${infodir} \
330	--mandir=${mandir} \
331	--with-x-includes=${x_includes} \
332	--with-x=${with_x} \
333	--enable-audit=${enable_audit} \
334	--enable-trace=${enable_trace} \
335	--enable-shmimage=${enable_shmimage} \
336	--enable-staticlibs=${enable_staticlibs} \
337	--enable-sharedlibs=${enable_sharedlibs} \
338"
339
340AC_CHECKING(libAfterBase)
341cd libAfterBase; \
342./configure $_def_lib_conf_opts \
343   --enable-trace-x=$enable_trace_x; \
344cd ../
345afterbase_lib=
346
347AC_CHECKING(libAfterImage)
348cd libAfterImage; \
349./configure $_def_lib_conf_opts \
350   --enable-i18n=$enable_i18n --enable-xlocale=$enable_xlocale --with-locale=$with_locale \
351   --with-xpm=$with_xpm   --with-builtin-gif=$with_gif \
352   --with-jpeg=$with_jpeg --with-jpeg-includes=$jpeg_includes --with-builtin-jpeg=$with_builtin_jpeg \
353   --with-png=$with_png   --with-png-includes=$png_includes \
354   --with-builtin-png=$with_builtin_png --with-builtin-zlib=$with_builtin_zlib \
355   --with-tiff=$with_tiff --with-tiff-includes=$tiff_includes --with-svg=$with_svg \
356   --with-ttf=$with_ttf   --with-ttf-includes=$ttf_includes \
357   --enable-mmx-optimization=$enable_mmx_optimization \
358   --enable-glx=$enable_glx; \
359cd ../
360afterimage_lib=
361
362dnl# let's check for endiannes of our box
363AC_C_BIGENDIAN
364AC_C_INLINE
365
366dnl# Check for headers
367AC_HEADER_TIME
368AC_CHECK_HEADERS(sys/time.h malloc.h stdlib.h limits.h)
369
370AC_CHECK_HEADERS(sys/wait.h,,AC_FUNC_WAIT3)
371
372dnl# Check for decls
373AC_CHECK_DECLS(environ,,,[#include <unistd.h>])
374
375
376AC_ARG_ENABLE(alsa, [  --enable-alsa           include alsa >= 0.9 output plugin ],
377[ BUILD_ALSA="$enableval" ],[ BUILD_ALSA="yes" ])
378
379if test "$BUILD_ALSA" = "yes"; then
380   AC_CHECK_LIB(asound, snd_pcm_open, have_alsa=yes, have_alsa=no)
381   AC_CHECK_HEADER(alsa/asoundlib.h, , have_alsa=no)
382fi
383
384if test "x$have_alsa" = xyes; then
385        ALSA_LIBS="-lasound"
386else
387        ALSA_LIBS=""
388fi
389AC_SUBST(ALSA_LIBS)
390
391
392xext_lib=""
393if test "x$add_lib_xext" = "xyes"; then
394	x_libs="$x_libs -lXext"
395	xext_lib="-lXext"
396	full_x_libs="$x_libs -lXext"
397fi
398
399if test "x$add_lib_GL" = "xyes"; then
400	x_libs="$x_libs -lGL"
401	xext_lib="-lXext -lGL"
402	full_x_libs="$x_libs -lXext -lGL"
403fi
404
405dnl# Check for Xinerama extension
406
407HAVEXINE="NOXINE"
408xine_libs=""
409if test "x$enable_xinerama" = "xyes"; then
410  AC_CHECK_LIB(Xinerama, XineramaQueryScreens, [x_libs="-lXinerama $x_libs";xine_libs="-lXinerama";AC_DEFINE(HAVE_XINERAMA,1,Support for Xinerama multiscreen)],,$full_x_libs)
411fi
412
413if test "x$enable_sigsegv" = "xyes"; then
414  AC_DEFINE(HAVE_SIGSEGV_HANDLING,1,self diagnostic SIGSEGV handling (as opposed to dumping core))
415fi
416
417if test "$with_readline" != no; then
418	AC_CHECK_LIB(ncurses, initscr,
419			[AC_CHECK_LIB(	readline, readline,
420					[readline_libs="-lreadline -lncurses";AC_DEFINE(HAVE_READLINE,1,Support for readline library for console input)])])
421fi
422
423if test -z "$PKG_CONFIG"; then
424   		AC_PATH_PROG(PKG_CONFIG, pkg-config,no)
425fi
426
427have_gnome_session=
428as_exec_command=
429if test "$with_gnome_session" = no; then
430	have_gnome_session=disabled
431else
432	AC_PATH_PROG([have_gnome_session],[gnome-session],no)
433	if test "$have_gnome_session" != "no" ; then
434		as_exec_command="gnome-session --session=AfterStep"
435	fi
436fi
437
438AC_SUBST(as_exec_command)
439
440have_dbus1=
441if test "$with_dbus1" = no; then
442	have_dbus1=disabled
443else
444	if test "$PKG_CONFIG" = "no" ; then
445		AC_MSG_CHECKING(if libdbus-1 is available)
446		AC_MSG_RESULT(pkg-config is not found. Cannot check for libdbus-1)
447		have_dbus1=no
448	else
449		have_dbus1=yes
450		pkg_modules="dbus-1 >= 0.22"
451
452		PKG_CHECK_MODULES(DBUS1,[$pkg_modules],,[have_dbus1=no])
453
454		if test "x$have_dbus1" = "xyes"; then
455			AC_DEFINE(HAVE_DBUS1,1,libdbus-1 v 0.22 or higher is available )
456		fi
457	fi
458fi
459
460AC_SUBST(DBUS1_LIBS)
461AC_SUBST(DBUS1_CFLAGS)
462
463if test "x$enable_staticlibs" = "xyes"; then
464   AFTERBASE_LIB="../../libAfterBase/libAfterBase.a"
465   AFTERIMAGE_LIB="../../libAfterImage/libAfterImage.a"
466   AFTERSTEP_LIB="../../libAfterStep/libAfterStep.a"
467   AFTERCONF_LIB="../../libAfterConf/libAfterConf.a"
468   ASGTK_LIB="../../libASGTK/libASGTK.a"
469   WIDGETS_LIB="../Script/Widgets/libWidgets.a"
470   LIBPROG='$(LIB_STATIC)'
471   LIBINSTALL="install.static"
472	LIBUNINSTALL="uninstall.static"
473else
474	if test "x$CYGWIN" = "xyes" ; then
475   		AFTERBASE_LIB="../../libAfterBase/libAfterBase.dll.a"
476   		AFTERIMAGE_LIB="../../libAfterImage/libAfterImage.dll.a"
477   		AFTERSTEP_LIB="../../libAfterStep/libAfterStep.dll.a"
478   		AFTERCONF_LIB="../../libAfterConf/libAfterConf.dll.a"
479   		ASGTK_LIB="../../libASGTK/libASGTK.dll.a"
480   		WIDGETS_LIB="../Script/Widgets/libWidgets.dll.a"
481   		LIBPROG='$(LIB_SHARED_CYG)'
482   		LIBINSTALL="install.cyg"
483		LIBUNINSTALL="uninstall.cyg"
484	else
485   		AFTERBASE_LIB="../../libAfterBase/libAfterBase.so"
486   		AFTERIMAGE_LIB="../../libAfterImage/libAfterImage.so"
487   		AFTERSTEP_LIB="../../libAfterStep/libAfterStep.so"
488   		AFTERCONF_LIB="../../libAfterConf/libAfterConf.so"
489		ASGTK_LIB="../../libASGTK/libASGTK.so"
490   		WIDGETS_LIB="../Script/Widgets/libWidgets.so"
491   		LIBPROG='$(LIB_SHARED)'
492   		LIBINSTALL="install.dyn"
493		LIBUNINSTALL="uninstall.dyn"
494	fi
495fi
496
497AFTERBASE_STATIC_LIB="../../libAfterBase/libAfterBase.a"
498AFTERIMAGE_STATIC_LIB="../../libAfterImage/libAfterImage.a"
499AFTERSTEP_STATIC_LIB="../../libAfterStep/libAfterStep.a"
500AFTERCONF_STATIC_LIB="../../libAfterConf/libAfterConf.a"
501ASGTK_STATIC_LIB="../../libASGTK/libASGTK.a"
502WIDGETS_STATIC_LIB="../Script/Widgets/libWidgets.a"
503
504
505AC_MSG_CHECKING(libAfterImage external libraries)
506AFTERIMAGE_LIBS=`libAfterImage/afterimage-libs --external-only`
507AC_MSG_RESULT($AFTERIMAGE_LIBS)
508AC_MSG_CHECKING(preferred image format)
509image_format=`libAfterImage/afterimage-libs --preferred-image-format`
510AC_MSG_RESULT($image_format)
511
512dnl# if ascp requested - check for fltk libraries
513
514LIBS=$saved_LIBS
515
516ASCP_FLTK_LIBS=
517ASCP_FLTK_INCLUDES=
518ASCP_FLTK=
519ASCP_GTK_LIBS=
520ASCP_GTK_INCLUDES=
521ASCP_GTK=
522
523have_gtk=
524if test "$with_gtk" = no; then
525	have_gtk=disabled
526else
527
528	if test "$PKG_CONFIG" = "no" ; then
529		AC_MSG_CHECKING(if gtk++ 2.0 is available)
530		AC_MSG_RESULT(pkg-config is not found. Cannot check for gtk++ 2.0.)
531		have_gtk=no
532	else
533		have_gtk=yes
534		pkg_modules="gtk+-2.0 >= 2.0.0"
535		PKG_CHECK_MODULES(GTK, [$pkg_modules],,[have_gtk=no])
536
537		if test "x$have_gtk" = "xyes"; then
538			CLEAN_GTK_LIBS=
539			CLEAN_GTK_CFLAGS=
540
541			AC_DEFINE(HAVE_GTK,1,GTK++ v.2.0 or higher is available )
542
543			present_libs="$LDFLAGS $LIBS $x_libs $AFTERIMAGE_LIBS";
544			for l in `echo "$GTK_LIBS"`; do
545	  	  	lib_found=no
546	  	  	for p in `echo "$present_libs"` ; do
547			  	if test "x$l" = "x$p" ; then
548    		    	lib_found=yes;
549		  	  	fi;
550	  	  	done;
551	  	  	if test "x$lib_found" != "xyes" ; then
552		  		CLEAN_GTK_LIBS="$CLEAN_GTK_LIBS $l" ;
553	  	  	fi;
554			done;
555			present_incs="$CCFLAGS $x_includes";
556			for l in `echo "$GTK_CFLAGS"` ;	do
557	  			inc_found=no
558		  		for p in `echo "$present_incs"` ; do
559					if test "x$l" = "x$p" ; then
560    		  			inc_found=yes;
561					fi;
562					if test "x$l" = "x-I$p" ; then
563    		  			inc_found=yes;
564					fi;
565	  			done;
566	  			if test "x$inc_found" != "xyes" ; then
567					CLEAN_GTK_CFLAGS="$CLEAN_GTK_CFLAGS $l" ;
568	  			fi;
569			done;
570			GTK_CFLAGS=$CLEAN_GTK_CFLAGS ;
571			GTK_LIBS=$CLEAN_GTK_LIBS ;
572		fi
573	fi
574fi
575
576GTK_INCLUDES=$GTK_CFLAGS
577
578have_glib=
579GLIB_LIBS=
580GLIB_INCLUDES=
581
582if test "$with_glib" = no; then
583	have_glib=disabled
584else
585
586	if test "$PKG_CONFIG" = "no" ; then
587		AC_MSG_CHECKING(if glib 2.0 or better is available)
588		AC_MSG_RESULT(pkg-config is not found. Cannot check for glib 2.0.)
589		have_glib=no
590	else
591		have_glib=yes
592		pkg_modules="glib-2.0 >= 2.0.0"
593		PKG_CHECK_MODULES(GLIB, [$pkg_modules],,[have_glib=no])
594
595		if test "x$have_glib" = "xyes"; then
596			CLEAN_GLIB_LIBS=
597			CLEAN_GLIB_CFLAGS=
598
599			AC_DEFINE(HAVE_GLIB,1,GLIB v.2.0 or higher is available )
600
601			present_libs="$LDFLAGS $LIBS $x_libs $AFTERIMAGE_LIBS";
602			for l in `echo "$GLIB_LIBS"`; do
603	  	  	lib_found=no
604	  	  	for p in `echo "$present_libs"` ; do
605			  	if test "x$l" = "x$p" ; then
606    		    	lib_found=yes;
607		  	  	fi;
608	  	  	done;
609	  	  	if test "x$lib_found" != "xyes" ; then
610		  		CLEAN_GLIB_LIBS="$CLEAN_GLIB_LIBS $l" ;
611	  	  	fi;
612			done;
613			present_incs="$CCFLAGS $x_includes";
614			for l in `echo "$GLIB_CFLAGS"` ;	do
615	  			inc_found=no
616		  		for p in `echo "$present_incs"` ; do
617					if test "x$l" = "x$p" ; then
618    		  			inc_found=yes;
619					fi;
620					if test "x$l" = "x-I$p" ; then
621    		  			inc_found=yes;
622					fi;
623	  			done;
624	  			if test "x$inc_found" != "xyes" ; then
625					CLEAN_GLIB_CFLAGS="$CLEAN_GLIB_CFLAGS $l" ;
626	  			fi;
627			done;
628			GLIB_CFLAGS=$CLEAN_GLIB_CFLAGS ;
629			GLIB_LIBS=$CLEAN_GLIB_LIBS ;
630		fi
631	fi
632fi
633
634GLIB_INCLUDES=$GLIB_CFLAGS
635
636have_giolib=
637GIOLIB_LIBS=
638GIOLIB_INCLUDES=
639
640if test "$with_giolib" = no; then
641	have_giolib=disabled
642else
643
644	if test "$PKG_CONFIG" = "no" ; then
645		AC_MSG_CHECKING(if gio 2.0 or better is available)
646		AC_MSG_RESULT(pkg-config is not found. Cannot check for gio 2.0.)
647		have_giolib=no
648	else
649		have_giolib=yes
650		pkg_modules="gio-2.0 >= 2.0.0"
651		PKG_CHECK_MODULES(GIOLIB, [$pkg_modules],,[have_giolib=no])
652
653		if test "x$have_giolib" = "xyes"; then
654			CLEAN_GIOLIB_LIBS=
655			CLEAN_GIOLIB_CFLAGS=
656
657			AC_DEFINE(HAVE_GIOLIB,1,GIOLIB v.2.0 or higher is available )
658			gio_saved_cflags=$CFLAGS
659			export CFLAGS="$CFLAGS $GIOLIB_CFLAGS"
660			AC_CHECK_TYPES([GSettings],[],[],[[#include "gio/gio.h"]])
661			export CFLAGS=$gio_saved_cflags
662
663			present_libs="$LDFLAGS $LIBS $x_libs $AFTERIMAGE_LIBS";
664			for l in `echo "$GIOLIB_LIBS"`; do
665	  	  	lib_found=no
666	  	  	for p in `echo "$present_libs"` ; do
667			  	if test "x$l" = "x$p" ; then
668    		    	lib_found=yes;
669		  	  	fi;
670	  	  	done;
671	  	  	if test "x$lib_found" != "xyes" ; then
672		  		CLEAN_GIOLIB_LIBS="$CLEAN_GIOLIB_LIBS $l" ;
673	  	  	fi;
674			done;
675			present_incs="$CCFLAGS $x_includes";
676			for l in `echo "$GIOLIB_CFLAGS"` ;	do
677	  			inc_found=no
678		  		for p in `echo "$present_incs"` ; do
679					if test "x$l" = "x$p" ; then
680    		  			inc_found=yes;
681					fi;
682					if test "x$l" = "x-I$p" ; then
683    		  			inc_found=yes;
684					fi;
685	  			done;
686	  			if test "x$inc_found" != "xyes" ; then
687					CLEAN_GIOLIB_CFLAGS="$CLEAN_GIOLIB_CFLAGS $l" ;
688	  			fi;
689			done;
690			GIOLIB_CFLAGS=$CLEAN_GIOLIB_CFLAGS ;
691			GIOLIB_LIBS=$CLEAN_GIOLIB_LIBS ;
692		fi
693	fi
694fi
695
696GIOLIB_INCLUDES=$GIOLIB_CFLAGS
697
698
699if test "x$enable_ascp" = "xyes"; then
700    AC_MSG_CHECKING(libraries required by FLTK version of ascp)
701	enable_ascp=no ;
702
703    if fltk-config --libs >/dev/null  ;then
704		present_libs="$LDFLAGS $LIBS $x_libs $AFTERIMAGE_LIBS";
705		for l in `fltk-config --ldflags`; do
706	  	  lib_found=no
707	  	  for p in `echo "$present_libs"` ; do
708			  if test "x$l" = "x$p" ; then
709    		    lib_found=yes;
710		  	  fi;
711	  	  done;
712	  	  if test "x$lib_found" != "xyes" ; then
713		  	ASCP_FLTK_LIBS="$ASCP_FLTK_LIBS $l" ;
714	  	  fi;
715		done;
716		AC_MSG_RESULT($ASCP_FLTK_LIBS)
717	    AC_MSG_CHECKING(headers required by ascp-fltk)
718
719  		if fltk-config --cflags >/dev/null  ;then
720			present_incs="$CCFLAGS $x_includes";
721			for l in `fltk-config --cflags` ;	do
722	  			inc_found=no
723		  		for p in `echo "$present_incs"` ; do
724					if test "x$l" = "x$p" ; then
725    		  			inc_found=yes;
726					fi;
727					if test "x$l" = "x-I$p" ; then
728    		  			inc_found=yes;
729					fi;
730	  			done;
731	  			if test "x$inc_found" != "xyes" ; then
732					ASCP_FLTK_INCLUDES="$ASCP_FLTK_INCLUDES $l" ;
733	  			fi;
734			done;
735			AC_MSG_RESULT($ASCP_FLTK_INCLUDES)
736			enable_ascp=yes ;
737	  		ASCP_FLTK=ascp-fltk ;
738  		fi;
739	fi;
740	if test -z "$PKG_CONFIG"; then
741    		AC_PATH_PROG(PKG_CONFIG, pkg-config,no)
742	fi
743	if test "x$have_gtk" = "xyes" ; then
744		ASCP_GTK=ascp_gtk
745		enable_ascp=yes ;
746	fi
747
748	if test "x$enable_ascp" = "xno"; then
749		AC_MSG_RESULT(neither fltk nor GTK found, ascp disabled)
750		echo "You have to install FLTK or GTK libaries in order to be able to compile ascp."
751    fi;
752fi;
753
754dnl# Electric Fence goes at the end
755if test "x$with_libefence" = "xyes"; then
756  AC_CHECK_LIB(efence,malloc,x_libs="$x_libs -lefence")
757fi
758
759dnl# Translate enable_* from "yes/no" to "1/0" (for configure.h)
760
761if test "x$enable_different_looknfeels" = "xyes"; then AC_DEFINE(DIFFERENTLOOKNFEELFOREACHDESKTOP,1,Each desktop may have its own look/feel) fi
762if test "x$enable_i18n" = "xyes"; then AC_DEFINE(I18N,1,Internationalized text support) fi
763if test "x$enable_savewindows" = "xno"; then AC_DEFINE(NO_SAVEWINDOWS,1,Save windows and re-open next session) fi
764if test "x$enable_virtual" = "xno"; then AC_DEFINE(NO_VIRTUAL,1,virtual screen support - several pages poer desktop) fi
765if test "x$enable_windowlist" = "xno"; then AC_DEFINE(NO_WINDOWLIST,1,Support for window list) fi
766if test "x$enable_availability" = "xno"; then AC_DEFINE(NO_AVAILABILITYCHECK,1,Check availability of menu items at startup) fi
767if test "x$enable_fixeditems" = "xyes"; then AC_DEFINE(FIXED_DIR, "fixed", enable fixed menu entries) fi
768if test "x$enable_audit" = "xyes"; then AC_DEFINE(DEBUG_ALLOCS,1,Trace memory allocations and check for errors) fi
769if test "x$enable_trace" = "xyes"; then AC_DEFINE(DEBUG_TRACE,1,Trace some functions) fi
770if test "x$enable_trace_x" = "xyes"; then AC_DEFINE(DEBUG_TRACE_X,1,Trace different X calls) fi
771if test "x$enable_script" = "xyes"; then enable_script="1"; else enable_script="0"; fi
772
773if test "x$data_reinstall" = "xyes"; then no_data_reinstall=""; else no_data_reinstall="yes"; fi
774
775
776dnl# Variable strings declaration
777
778dnl# don't process Script and its subdirs if it wasn't asked
779SCRIPT_DIR=""
780if test "x$enable_script" = "x1"; then
781    SCRIPT_DIR="src/Script/Widgets src/Script"
782fi
783
784if test "x$send_postcard_to_developer" = "xyes"; then
785	AC_CHECK_FUNCS(popen)
786	AC_DEFINE(DO_SEND_POSTCARD,1,E-mail installation notification to AfterStep developers)
787fi
788
789AC_CHECK_LIB([execinfo],[backtrace],[lib_execinfo="-lexecinfo"])
790
791AC_CANONICAL_TARGET
792AC_SUBST(build)
793AC_SUBST(build_os)
794AC_SUBST(build_cpu)
795AC_SUBST(build_vendor)
796
797AC_SUBST(STRIP_BINARIES)
798AC_SUBST(version)
799AC_SUBST(app_version)
800AC_SUBST(libafterstep_version)
801AC_SUBST(libafterstep_version_major)
802AC_SUBST(libafterstep_name)
803AC_SUBST(libafterstep_file_name)
804AC_SUBST(libafterwidget_version)
805AC_SUBST(libafterwidget_version_major)
806AC_SUBST(libafterwidget_name)
807AC_SUBST(libafterwidget_file_name)
808AC_SUBST(libafterconf_version)
809AC_SUBST(libafterconf_version_major)
810AC_SUBST(libafterconf_name)
811AC_SUBST(libafterconf_file_name)
812AC_SUBST(libasgtk_version)
813AC_SUBST(libasgtk_version_major)
814AC_SUBST(libasgtk_name)
815AC_SUBST(libasgtk_file_name)
816AC_SUBST(with_locale)
817AC_SUBST(image_format)
818AC_SUBST(ASCP_FLTK)
819AC_SUBST(ASCP_FLTK_LIBS)
820AC_SUBST(ASCP_FLTK_INCLUDES)
821AC_SUBST(ASCP_GTK)
822AC_SUBST(GTK_LIBS)
823AC_SUBST(GTK_CFLAGS)
824AC_SUBST(GTK_INCLUDES)
825AC_SUBST(GLIB_LIBS)
826AC_SUBST(GLIB_CFLAGS)
827AC_SUBST(GLIB_INCLUDES)
828AC_SUBST(GIOLIB_LIBS)
829AC_SUBST(GIOLIB_CFLAGS)
830AC_SUBST(GIOLIB_INCLUDES)
831AC_SUBST(user_ldflags)
832AC_SUBST(x_libs)
833AC_SUBST(xine_libs)
834AC_SUBST(xext_lib)
835AC_SUBST(readline_libs)
836AC_SUBST(dbus1_libs)
837AC_SUBST(x_includes)
838AC_SUBST(XEXT_LIB)
839AC_SUBST(AFTERBASE_LIB)
840AC_SUBST(AFTERIMAGE_LIB)
841AC_SUBST(AFTERIMAGE_LIBS)
842AC_SUBST(AFTERSTEP_LIB)
843AC_SUBST(AFTERCONF_LIB)
844AC_SUBST(ASGTK_LIB)
845AC_SUBST(WIDGETS_LIB)
846AC_SUBST(AFTERBASE_STATIC_LIB)
847AC_SUBST(AFTERIMAGE_STATIC_LIB)
848AC_SUBST(AFTERSTEP_STATIC_LIB)
849AC_SUBST(AFTERCONF_STATIC_LIB)
850AC_SUBST(ASGTK_STATIC_LIB)
851AC_SUBST(WIDGETS_STATIC_LIB)
852AC_SUBST(LIBPROG)
853AC_SUBST(LIBINSTALL)
854AC_SUBST(LIBUNINSTALL)
855AC_SUBST(with_afterdir)
856AC_SUBST(with_imageloader)
857AC_SUBST(with_soundplayer)
858AC_SUBST(with_helpcommand)
859AC_SUBST(with_startsort)
860AC_SUBST(with_desktops)
861AC_SUBST(with_desktops_1)
862AC_SUBST(with_deskgeometry)
863AC_SUBST(no_data_reinstall)
864AC_SUBST(lib_execinfo)
865dnl# old stuff :
866AC_SUBST(enable_different_looknfeels)
867AC_SUBST(enable_pagerbackground)
868AC_SUBST(enable_i18n)
869AC_SUBST(enable_menuwarp)
870AC_SUBST(enable_savewindows)
871AC_SUBST(enable_texture)
872AC_SUBST(enable_shade)
873AC_SUBST(enable_virtual)
874AC_SUBST(enable_saveunders)
875AC_SUBST(enable_windowlist)
876AC_SUBST(enable_availability)
877AC_SUBST(enable_fixeditems)
878
879AC_SUBST(SCRIPT_DIR)
880AC_SUBST(PERL)
881
882dnl# Write results
883
884dnl# AC_CONFIG_HEADER(include/config.h)
885
886dnl# Common parts of the Makefile
887MAKEFILEDEFINES=./autoconf/Makefile.defines
888MAKEFILECOMMON=./autoconf/Makefile.common
889MAKEFILECOMMONLIB=./autoconf/Makefile.common.lib
890LIBAFTERBASEFILES=./libAfterBase/.shared
891LIBAFTERIMAGEFILES=./libAfterImage/.shared
892LIBAFTERSTEPFILES=./libAfterStep/.shared
893LIBAFTERCONFFILES=./libAfterConf/.shared
894LIBASGTKFILES=./libASGTK/.shared
895
896if test "x$have_gtk" = "xyes"; then
897	LIBASGTKDIR=libASGTK
898	LIBASGTKDEP='$(LIB_ASGTK)'
899	GTK_APP_DIRS=gtk_app_dirs
900	GTK_WIN_COMMAND=GWCommand
901	RUN_COMMAND="Exec \"Run ...\" ASRun --myname \"Run command using AfterStep\" &"
902else
903	LIBASGTKDIR=
904dnl# trick to not depend on libASGTK :
905	LIBASGTKDEP='$(LIB_AFTERCONF)'
906	GTK_APP_DIRS=no_gtk_app_dirs
907	GTK_WIN_COMMAND=
908	RUN_COMMAND="ExecInTerm \"Run ...\" -n \"Run Command\" &"
909fi
910
911if test "x$have_giolib" = "xyes"; then
912	GIOLIB_APP_DIRS=giolib_app_dirs
913else
914	GIOLIB_APP_DIRS=no_giolib_app_dirs
915fi
916
917
918AC_SUBST_FILE(LIBAFTERBASEFILES)
919AC_SUBST_FILE(LIBAFTERIMAGEFILES)
920AC_SUBST_FILE(LIBAFTERSTEPFILES)
921AC_SUBST_FILE(LIBAFTERCONFFILES)
922AC_SUBST_FILE(LIBASGTKFILES)
923
924AC_SUBST(LIBASGTKDIR)
925AC_SUBST(LIBASGTKDEP)
926AC_SUBST(GTK_APP_DIRS)
927AC_SUBST(GTK_WIN_COMMAND)
928AC_SUBST(RUN_COMMAND)
929
930AC_SUBST(GIOLIB_APP_DIRS)
931
932AC_SUBST_FILE(MAKEFILEDEFINES)
933AC_SUBST_FILE(MAKEFILECOMMON)
934AC_SUBST_FILE(MAKEFILECOMMONLIB)
935
936dnl# These should be created before everything else, as it gets included by other files :
937AC_CONFIG_FILES([autoconf/Makefile.defines autoconf/Makefile.common autoconf/Makefile.common.lib])
938
939if test -d src/ascp ; then AC_CONFIG_FILES([src/ascp/Makefile src/ascp/fltk/Makefile src/ascp/gtk/Makefile ]) fi
940if test -d src/tools ; then AC_CONFIG_FILES([src/tools/ASFileBrowser/Makefile
941					     src/tools/ASRun/Makefile
942					     src/tools/ASWallpaper/Makefile]) fi
943
944if test -d src/ASMount ; then AC_CONFIG_FILES([src/ASMount/Makefile]) fi
945
946if test -d src/asetroot ; 	then AC_CONFIG_FILES([src/asetroot/Makefile]) fi
947if test -d src/Animate ; 	then AC_CONFIG_FILES([src/Animate/Makefile]) fi
948if test -d src/ASConfig ; 	then AC_CONFIG_FILES([src/ASConfig/Makefile]) fi
949if test -d src/ASDocGen ; 	then AC_CONFIG_FILES([src/ASDocGen/Makefile]) fi
950if test -d src/Arrange ; 	then AC_CONFIG_FILES([src/Arrange/Makefile]) fi
951if test -d src/Banner ; 	then AC_CONFIG_FILES([src/Banner/Banner.sh src/Banner/Makefile]) fi
952if test -d src/Clean ; 		then AC_CONFIG_FILES([src/Clean/Makefile]) fi
953if test -d src/Form ; 		then AC_CONFIG_FILES([src/Form/Makefile]) fi
954if test -d src/Gnome ; 		then AC_CONFIG_FILES([src/Gnome/Makefile]) fi
955if test -d src/Ident ; 		then AC_CONFIG_FILES([src/Ident/Makefile]) fi
956if test -d src/Pager ; 		then AC_CONFIG_FILES([src/Pager/Makefile]) fi
957if test -d src/Script ; 	then AC_CONFIG_FILES([src/Script/Makefile src/Script/Widgets/Makefile]) fi
958if test -d src/Scroll ; 	then AC_CONFIG_FILES([src/Scroll/Makefile]) fi
959if test -d src/Sound2 ;		then AC_CONFIG_FILES([src/Sound2/Makefile]) fi
960if test -d src/Wharf ; 		then AC_CONFIG_FILES([src/Wharf/Makefile]) fi
961if test -d src/WinList2 ; 	then AC_CONFIG_FILES([src/WinCommand/Makefile]) fi
962if test -d src/WinList2 ; 	then AC_CONFIG_FILES([src/WinList2/Makefile]) fi
963if test -d src/WinTabs ; 	then AC_CONFIG_FILES([src/WinTabs/Makefile]) fi
964if test -d src/Gadget ; 	then AC_CONFIG_FILES([src/Gadget/Makefile]) fi
965if test -d src/test ; 		then AC_CONFIG_FILES([src/test/Makefile]) fi
966
967if test "x$have_gtk" = "xyes"; then AC_CONFIG_FILES([libASGTK/asgtk-config libASGTK/Makefile]) fi
968
969AC_OUTPUT(\
970configure.h \
971Makefile AfterStep.spec AfterStep.desktop \
972afterstep/Makefile doc/Makefile doc/afterstepdoc \
973libAfterStep/afterstep-config \
974libAfterStep/Makefile \
975libAfterConf/Makefile \
976src/afterstep/Makefile \
977tools/Makefile \
978tools/installastheme.pl \
979tools/makeastheme.pl \
980tools/postcard.sh \
981\
982afterstep/applications/modules.desktop \
983afterstep/base \
984afterstep/sound \
985afterstep/autoexec \
986afterstep/pager \
987afterstep/start/.include \
988afterstep/start/3_run \
989afterstep/start/1_Desktop/Feel/.include \
990afterstep/start/1_Desktop/Color_Scheme/.include \
991afterstep/start/1_Desktop/Look/.include \
992afterstep/start/1_Desktop/Theme/.include \
993afterstep/start/1_Desktop/Pictures/AfterStep_Images/.include \
994afterstep/start/1_Desktop/Pictures/User_Backgrounds/.include \
995)
996
997
998echo "
999AfterStep $version IS NOW HOPEFULLY CONFIGURED:
1000
1001Just run : make ; make install
1002
1003Please consult INSTALL file for additional configuration steps
1004required for your favorite desktop environment.
1005
1006Other make targets you may find usefull :
1007
1008make install.data       - installs all the images, fonts, etc.
1009make install.config     - installs config files only
1010make install.menu       - installs startmenu files
1011make install.data_html  - catalogues installed data files
1012make install.bin        - installs only binaries
1013make install.lib        - installs libraries only
1014make clean
1015make distclean
1016"
1017