- made deiconification not automatically focus window in sloppy focus
[wmaker-crm.git] / configure.in
bloba2d61a3c82c640f309af3dda1e4eb928d852e7a4
1 dnl
2 dnl Window Maker autoconf input.
3 dnl
4 dnl Process with: aclocal; autoconf; automake
5 dnl
6 dnl
9 AC_INIT(src/WindowMaker.h)
13 AM_INIT_AUTOMAKE(WindowMaker, 0.53.1)
15 AM_PROG_LIBTOOL
17 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
18 # Turn around -rpath problem with libtool 1.0c
19 # This define should be improbable enough to not conflict with anything
20 case ${host} in
21   *-pc-linux-gnu)
22     AC_MSG_RESULT([Fixing libtool for -rpath problems.])
23     sed < libtool > libtool-2 \
24     's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
25     mv libtool-2 libtool
26     chmod 755 libtool
27   ;;
28 esac
32 AM_CONFIG_HEADER(src/config.h)
35 dnl Checks for host/os name
36 dnl =======================
37 AC_CANONICAL_HOST
40 dnl Checks for programs.
41 dnl ===================
42 AC_ISC_POSIX
43 AC_PROG_CC
44 dnl AC_PROG_MAKE_SET -- already done by AM_INIT_AUTOMAKE
45 #AC_PROG_RANLIB
46 dnl AC_PROG_INSTALL -- already done by AM_INIT_AUTOMAKE
47 AC_PROG_LN_S
48 AC_PROG_GCC_TRADITIONAL
51 dnl the prefix
52 dnl ==========
53 dnl
54 dnl move this earlier in the script... anyone know why this is handled
55 dnl in such a bizarre way?
57 test "x$prefix" = xNONE && prefix=$ac_default_prefix
58 dnl Let make expand exec_prefix.
59 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
62 _bindir=`eval echo $bindir`
63 _bindir=`eval echo $_bindir`
65 _libdir=`eval echo $libdir`
66 _libdir=`eval echo $_libdir`
67 lib_search_path="-L$_libdir"
69 inc_search_path=`eval echo $includedir`
70 inc_search_path="-I`eval echo $inc_search_path`"
73 dnl
74 dnl Check for RedHat bugs
75 dnl =====================
77 WM_CHECK_REDCRAP_BUGS($prefix,$_bindir,$_libdir)
80 dnl
81 dnl Specify paths to look for libraries and headers
82 dnl ===============================================
83 AC_ARG_WITH(libs-from,
84 [  --with-libs-from       pass compiler flags to look for libraries],
85         [lib_search_path="$withval $lib_search_path"])
87 AC_ARG_WITH(incs-from,
88 [  --with-incs-from       pass compiler flags to look for header files],
89         [inc_search_path="$withval $inc_search_path"])
93 dnl Checks for library functions.
94 dnl ============================
95 dnl not used anywhere
96 dnl AC_FUNC_MEMCMP  
97 AC_FUNC_VPRINTF
98 AC_FUNC_ALLOCA
99 AC_CHECK_FUNCS(gethostname select poll strerror strncasecmp setpgid atexit)
103 dnl Loading of dynamic libraries at runtime
104 dnl =======================================
105 DLLIBS=""
107 AC_CHECK_FUNC(dlopen, [HAVEDL="yes"], 
108         AC_CHECK_LIB(dl, dlopen, [DLLIBS="-ldl" HAVEDL="yes"],
109                          DLLIBS="" ))
111 if test "x$HAVEDL" = xyes; then
112     AC_CHECK_HEADERS(dlfcn.h)
117 dnl Check CPP
118 dnl =========
119 if test "x$CPP_PATH" = x; then
120     AC_PATH_PROG(CPP_PATH, cpp, notfound, 
121                 $PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib)
125 dnl Tell stupid Solaris cpp that the files it will process have C++ like syntax
126 dnl RedHat 5.x is broken too, so it won't make a symlink from cpp to the
127 dnl standard locations
129 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
130     if test "$GCC" = "yes"; then
131         CPP_PATH="gcc -E -x c"
132     else 
133         if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
134             CPP_PATH="$CPP_PATH -B"
135         else
136             echo "cpp, the C preprocessor was not found in your system."
137             echo "Create a symbolic link from it to /lib/cpp and rerun configure"
138             exit
139         fi
140     fi
142 AC_DEFINE_UNQUOTED(CPP_PATH, "$CPP_PATH")
146 dnl Checks for header files.
147 dnl =======================
148 dnl AC_HEADER_STDC
149 AC_HEADER_SYS_WAIT
150 AC_HEADER_TIME
151 AC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
152                 libintl.h sys/select.h poll.h)
156 dnl Checks for typedefs, structures, and compiler characteristics.
157 dnl ==============================================================
158 AC_DECL_SYS_SIGLIST
159 AC_C_CONST
160 #AC_TYPE_SIZE_T
161 #AC_TYPE_PID_T
162 AC_TYPE_SIGNAL
165 dnl gettext
166 dnl =======
169 dnl AM_GNU_GETTEXT
173 INTLIBS=""
175 AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"], 
176         AC_CHECK_LIB(intl, gettext, [INTLIBS="-lintl" HAVEGETTEXT="yes"],
177                          INTLIBS="" ))
179 AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
181 if test "$XGETTEXT" != ""; then 
182     if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
183         echo "xgettext isn't GNU version"
184         XGETTEXT=""
185     fi
188 if test "$LINGUAS" != ""; then
189     if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
190         AC_DEFINE(I18N)
191         PO=""
192 #       if test "$LINGUAS" = ""; then
193 #           ling=` (cd src/po; /bin/ls *.po) `
194 #           for l in $ling; do
195 #               lcode=`basename $l .po`
196 #               LINGUAS="$LINGUAS $lcode"
197 #           done
198 #       fi
199         echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
200     else
201         LINGUAS=""
202         PO=""
203         echo "xgettext and libintl.a don't both exist; will not build i18n support"
204     fi
205 else
206         INTLIBS=""
207         MOFILES=""
208         WPMOFILES=""
209         PO=""
213 dnl The Tower of Babel
214 dnl ==================
216 dnl List of supported locales
217 dnl -------------------------
218 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro da zh_TW.Big5 zh_CN sk"
219 supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5 es zh_CN"
221 for lang in $LINGUAS; do
222         ok=0
223         for l in $supported_locales; do
224                 if test "$l" = "$lang"; then
225                         ok=1
226                         break
227                 fi
228         done
229         if test "$ok" = 1; then
230                 MOFILES="$MOFILES $lang.mo"
231         else
232                 echo "Locale $lang is not supported."
233         fi
234         ok=0
235         for l in $supported_wprefs_locales; do
236                 if test "$l" = "$lang"; then
237                         ok=1
238                         break
239                 fi
240         done
241         if test "$ok" = 1; then
242                 WPMOFILES="$WPMOFILES $lang.mo"
243         fi
244 done
247 dnl Kanji Characters support
248 dnl ========================
249 I18n=no
250 AC_ARG_ENABLE(kanji,
251 [  --enable-kanji         multibyte character support (kanji, Korean etc.)],,
252                 enable_kanji=no)
254 if test "$enable_kanji" = yes; then
255         case $host_os in
256         freebsd*)
257                 AC_CHECK_LIB(xpg4, setlocale, [LIBS="$LIBS -lxpg4"]);;
258         *)
259                 ;;
260         esac
261         AC_DEFINE(I18N_MB)
266 dnl Added by Oliver - Support for NLSDIR option,   Hi Oliver!
267 dnl ===========================================
268 AC_ARG_WITH(nlsdir, 
269         [  --with-nlsdir=PATH      specify where the locale stuff should go ])
272 if test "x$NLSDIR" = "x"; then
273         if test "x$with_nlsdir" != "x"; then
274                 NLSDIR=$with_nlsdir
275         else
276                 NLSDIR='$(prefix)/lib/locale'
277         fi
282 AC_SUBST(DLLIBS)
283 AC_SUBST(INTLIBS)
284 AC_SUBST(NLSDIR)
285 AC_SUBST(MOFILES)
286 AC_SUBST(WPMOFILES)
290 dnl Support for various hint things
291 dnl ===============================
294 AC_ARG_ENABLE(gnome,
295   [  --enable-gnome       enable stuff needed for GNOME ],
296   [if test x$enableval = xyes; then
297     AC_DEFINE(GNOME_STUFF)
298     gnome_on=yes
299   fi])
302 AC_ARG_ENABLE(kde,
303   [  --enable-kde                 enable support for KDE window manager (kwm) hints ],
304   [if test x$enableval = xyes; then
305     AC_DEFINE(KWM_HINTS)
306     kde_on=yes
307   fi])
310 AC_ARG_ENABLE(openlook,
311   [  --enable-openlook    enable support for OPEN LOOK(tm) (olwm) hints ],
312   [if test x$enableval = xyes; then
313     AC_DEFINE(OLWM_HINTS)
314     openlook_on=yes
315   fi])
319 dnl Disable some stuff that are duplicated in kde
320 dnl ---------------------------------------------
321 AC_ARG_ENABLE(lite,
322   [  --enable-lite                disable some stuff (dont use it) ],
323   [if test x$enableval = xyes; then
324         LITE=yes
325         AC_DEFINE(LITE)
326         AC_SUBST(LITE)
327   fi])
331 dnl ===========================================
332 dnl             Stuff that uses X
333 dnl ===========================================
335 AC_PATH_XTRA
337 XCFLAGS="$X_CFLAGS"
339 XLFLAGS="$X_LIBS"
341 XLIBS="-lX11 $X_EXTRA_LIBS"
344 lib_search_path="$lib_search_path $XLFLAGS"
345 inc_search_path="$inc_search_path $XCFLAGS"
348 dnl Decide which locale function to use, setlocale() or _Xsetlocale()
349 dnl by MANOME Tomonori 
350 dnl ===========================================
351 use_locale=yes
352 AC_ARG_ENABLE(locale, 
353 [  --disable-locale       disable use of X locale support],
354                 use_locale=no)
356 if test "$use_locale" = yes; then
357   AC_CHECK_LIB(X11, _Xsetlocale, AC_DEFINE(X_LOCALE),, $XLFLAGS $XLIBS)
361 dnl XKB keyboard language status
362 dnl ============================
363 AC_ARG_ENABLE(modelock,
364 [  --enable-modelock      XKB keyboard language status support],
365                 AC_DEFINE(XKB_MODELOCK))
369 dnl Shape support
370 dnl =============
371 shape=yes
372 AC_ARG_ENABLE(shape, 
373 [  --disable-shape        disable shaped window extension support],
374                 shape=$enableval, shape=yes)
376 added_xext=no
378 if test "$shape" = yes; then
379         AC_CHECK_LIB(Xext, XShapeSelectInput, [XLIBS="-lXext $XLIBS"
380                 added_xext=yes
381                 AC_DEFINE(SHAPE)], shape=no, $XLFLAGS $XLIBS)
385 dnl MIT-SHM support
386 dnl ===============
387 shm=yes
388 AC_ARG_ENABLE(shm,
389 [  --disable-shm           disable usage of MIT-SHM extension],
390                 shm=$enableval, shm=yes)
392 if test "$shm" = yes; then
393         AC_CHECK_LIB(Xext, XShmAttach, ok=yes, ok=no, $XLFLAGS $XLIBS)
395         if test "$ok" = yes; then
396         AC_CHECK_FUNC(shmget, ok=yes, ok=no)
397         fi
399         if test "$ok" = yes; then
400                 if test "$added_xext" = no; then
401                         XLIBS="-lXext $XLIBS"
402                 fi
403                 AC_DEFINE(XSHM)
404         fi
408 dnl R6 Style Session Management Support
409 dnl ===================================
413 #AC_DEFINE(R6SM)
414 #AC_SUBST(XSMPLIBS)
418 dnl Check for libPropList
419 dnl =====================
421 LIBPL=""
423 WM_CHECK_LIB(PropList, PLGetString, $X_EXTRA_LIBS)
424 if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
425     WM_CHECK_HEADER(proplist.h)
426     if test "x$ac_cv_header_proplist_h" = xyes; then
427         LIBPL="-lPropList"
428     fi
431 if test "x$LIBPL" = "x"; then
432    echo
433    echo "ERROR!!! libPropList is not installed, or could not be found."
434    echo "         Window Maker requires libPropList to build."
435    echo "         Please read INSTALL to find where you can find libPropList,"
436    echo "         and install it first."
437    echo "         If you already have it installed, try using the"
438    if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
439    echo "         --with-libs-from flag to tell configure where the library"
440    echo "         is installed and"
441    fi
442    echo "         --with-incs-from flag to tell configure where the header"
443    echo "         files are installed"
444    exit 1
448 AC_SUBST(LIBPL)
451 dnl ==============================================
452 dnl         Graphic Format Libraries
453 dnl ==============================================
459 dnl XPM Support
460 dnl ===========
461 xpm=yes
462 AC_ARG_ENABLE(xpm, 
463 [  --disable-xpm                  disable use of XPM pixmaps through libXpm],
464         xpm=$enableval, xpm=yes)
466 if test "$xpm" = yes; then
467     WM_CHECK_LIB(Xpm, XpmCreatePixmapFromData, [$XLFLAGS $XLIBS])
469     if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
470         WM_CHECK_HEADER(X11/xpm.h)
471         if test "x$ac_cv_header_X11_xpm_h" = xyes; then
472                 GFXLIBS="$GFXLIBS -lXpm"
473                 supported_gfx="XPM"
474                 AC_DEFINE(USE_XPM)
475         else
476                 supported_gfx="builtin-XPM"
477         fi
478     fi
481 # for wmlib
482 AC_SUBST(XCFLAGS)
483 # for test
484 AC_SUBST(XLFLAGS)
485 AC_SUBST(XLIBS)
487 AC_SUBST(X_EXTRA_LIBS)
489 dnl ===============================================
490 dnl             End of stuff that uses X
491 dnl ===============================================
494 dnl PNG Support
495 dnl ===========
496 png=yes
497 AC_ARG_ENABLE(png, 
498 [  --disable-png                  disable PNG support through libpng],
499         png=$enableval, png=yes, png=no)
502 if test "$png" = yes ; then
503     WM_CHECK_LIB(png, png_get_valid, [-lz -lm])
505     if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
506         WM_CHECK_HEADER(png.h)
507         if test "x$ac_cv_header_png_h" = xyes; then
508             GFXLIBS="$GFXLIBS -lpng -lz" 
509             supported_gfx="$supported_gfx PNG"
510             AC_DEFINE(USE_PNG)
511         fi
512     fi
516 dnl JPEG Support
517 dnl ============
518 jpeg=yes
519 ljpeg=""
520 AC_ARG_ENABLE(jpeg,
521 [  --disable-jpeg         disable JPEG support through libjpeg],
522         jpeg=$enableval, jpeg=yes, jpeg=no)
524 if test "$jpeg" = yes; then
525     WM_CHECK_LIB(jpeg, jpeg_destroy_compress)
527     if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
529         ljpeg="-ljpeg"
531         WM_CHECK_HEADER(jpeglib.h)
532         if test "x$ac_cv_header_jpeglib_h" = xyes; then
533             GFXLIBS="$GFXLIBS -ljpeg"
534             supported_gfx="$supported_gfx JPEG"
535             AC_DEFINE(USE_JPEG)
536         fi
537     fi
541 dnl GIF Support
542 dnl ============
543 gif=yes
544 AC_ARG_ENABLE(gif,
545 [  --disable-gif           disable GIF support through libgif or libungif],
546         gif=$enableval, gif=yes, gif=no)
548 if test "$gif" = yes; then
549     my_libname=""
550     WM_CHECK_LIB(ungif, DGifOpenFileName, [$XLFLAGS $XLIBS])
551     if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
552         my_libname=-lungif
553     fi
555 dnl libungif is the same thing as libgif for all practical purposes.
557     if test "x$my_libname" = x; then
558         WM_CHECK_LIB(gif, DGifOpenFileName, [$XLFLAGS $XLIBS])
559         if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
560             my_libname=-lgif
561         fi
562     fi
564     if test "$my_libname" != x; then
565         WM_CHECK_HEADER(gif_lib.h)
566         if test "x$ac_cv_header_gif_lib_h" = xyes; then
567             GFXLIBS="$GFXLIBS $my_libname"
568             supported_gfx="$supported_gfx GIF"
569             AC_DEFINE(USE_GIF)
570         fi
571     fi
576 dnl TIFF Support
577 dnl ============
578 AC_ARG_ENABLE(tiff, 
579 [  --disable-tiff         disable use of TIFF images through libtiff],
580         tif=$enableval, tif=yes, tif=no)
583 # TIFF can optionally have JPEG and/or zlib support. Must find out
584 # when they are supported so that correct library flags are passed during
585 # detection and linkage
588 # By default use xpm icons if tiff is not found.
589 ICONEXT="xpm"
592 if test "$tif" = yes; then
593     my_libname=""
594     WM_CHECK_LIB(tiff, TIFFGetVersion, [-lm])
595     if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
596         my_libname="-ltiff"
597     fi
599 dnl Retry with zlib
601     unset ac_cv_lib_tiff_TIFFGetVersion
602     if test "x$my_libname" = x; then
603         WM_CHECK_LIB(tiff, TIFFGetVersion, [$ljpeg -lz -lm])
604         if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
605             my_libname="-ltiff -lz"
606         fi
607     fi
609     if test "x$my_libname" = x; then
610         WM_CHECK_LIB(tiff34, TIFFGetVersion, [$ljpeg -lm])
611         if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
612             my_libname="-ltiff34"
613         fi
614     fi
617     if test "x$my_libname" != x; then
618         WM_CHECK_HEADER(tiffio.h)
619         if test "x$ac_cv_header_tiffio_h" = xyes; then
620             GFXLIBS="$my_libname $GFXLIBS"
621             ICONEXT="tiff"
622             supported_gfx="$supported_gfx TIFF"
623             AC_DEFINE(USE_TIFF)     
624         fi
625     fi
628 LIBRARY_SEARCH_PATH="$lib_search_path"
629 HEADER_SEARCH_PATH="$inc_search_path"
631 AC_SUBST(LIBRARY_SEARCH_PATH)
632 AC_SUBST(HEADER_SEARCH_PATH)
635 AC_SUBST(GFXLIBS)
636 AC_SUBST(ICONEXT)
639 dnl ==============================================
640 dnl         End of Graphic Format Libraries
641 dnl ==============================================
644 dnl Debugging setup
645 dnl ===============
646 AC_ARG_ENABLE(debug, 
647 [  --enable-debug         enable debugging ],, enable_debug=no)
649 if test "$enable_debug" = yes; then
650     DFLAGS="-g -DDEBUG"
651 #       Efence makes things too slow. Add it by hand in the Makefiles
652 #       if it is really needed.
653 #    AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
655 AC_SUBST(DFLAGS)
658 dnl Sound support - Dan
659 dnl =============================================
660 sound=yes
661 AC_ARG_ENABLE(sound, 
662 [  --disable-sound        disable sound support ],
663                 sound=$enableval, sound=yes)
664 if test "$sound" = yes; then    
665         AC_DEFINE(WMSOUND)
669 # AC_PREFIX_PROGRAM(wmaker)
671 dnl Support for PIXMAPDIR option
672 dnl ============================
673 AC_ARG_WITH(pixmapdir,
674 [  --with-pixmapdir=PATH   specify where pixmaps are located [DATADIR/pixmaps]])
676 if test "x$with_pixmapdir" != "x"; then
677         pixmapdir=$with_pixmapdir
678 else
679         pixmapdir=`eval echo ${datadir}/pixmaps`
682 AC_DEFINE_UNQUOTED(PIXMAPDIR, "$pixmapdir")
684 pkgdatadir=`eval echo $datadir`
685 AC_DEFINE_UNQUOTED(PKGDATADIR, "$pkgdatadir/WindowMaker")
687 _sysconfdir=`eval echo $sysconfdir`
688 AC_DEFINE_UNQUOTED(SYSCONFDIR, "$_sysconfdir/WindowMaker")
691 dnl Support for GNUSTEP_LOCAL_ROOT, for WPrefs.app
692 dnl ==============================================
694 appspath=""
696 AC_ARG_WITH(appspath,
697 [  --with-appspath=PATH    specify the directory for GNUstep applications], appspath=$withval )
699 if test "x$appspath" = "x"; then
700     gnustepdir='$(prefix)/GNUstep'
702     if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
703         gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
704         gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
705     fi
707     with_appspath=$gnustepdir/Apps
710 wprefsdir=$with_appspath/WPrefs.app
712 AC_SUBST(wprefsdir)
716 dnl Enable single appicon per wm instance+class combo -cls
717 dnl =====================================================
718 AC_ARG_ENABLE(single-icon,
719 [  --enable-single-icon    use single application icon per WM_INSTANCE+WM_CLASS
721 if test "$enableval" = yes; then
722         AC_DEFINE(REDUCE_APPICONS)
728 dnl Nicolai:  Program tests for Documentation Section
729 dnl =================================================
730 dnl DOCTYPES=""
731 dnl AC_CHECK_PROG(MAKEINFO, makeinfo, makeinfo, ,$PATH)
732 dnl if test "x$MAKEINFO" != "x" ; then
733 dnl       DOCTYPES="$DOCTYPES info_doc"
734 dnl fi
735 dnl AC_CHECK_PROG(TEX, tex, tex, ,$PATH)
736 dnl if test "x$TEX" != "x" ; then
737 dnl       DOCTYPES="$DOCTYPES dvi_doc"
738 dnl fi
739 dnl AC_CHECK_PROG(DVIPS, dvips, dvips, ,$PATH)
740 dnl if test "x$DVIPS" != "x" ; then
741 dnl       DOCTYPES="$DOCTYPES ps_doc"
742 dnl fi
743 dnl AC_CHECK_PROG(PERL, perl, perl, ,$PATH)
744 dnl if test "x$PERL" != "x" ; then
745 dnl       DOCTYPES="$DOCTYPES html_doc"
746 dnl fi
747 dnl AC_PATH_PROG(PERL_PATH, perl, perl, ,$PATH)
748 dnl AC_CHECK_PROG(TEXI2HTML, texi2html, texi2html, ,$PATH)
749   
750 dnl AC_SUBST(DOCTYPES)
752 AC_OUTPUT(Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
753         WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
754         wrlib/Makefile doc/Makefile WindowMaker/Makefile \
755         WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
756         WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
757         WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
758         WindowMaker/Themes/Makefile \
759         WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
760         WPrefs.app/po/Makefile )
765 dnl Output some helpfull data for compiling WINGs apps
766 dnl ==================================================
769 dnl echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
770 dnl echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
771 dnl     | sed -e 's|\$(prefix)|'"$prefix|" >> WINGs-flags
773 dnl The #lp# and #rp# stuff below is a hack because [ and ] get lost when
774 dnl parsed by m4
776 cat <<EOF >get-wraster-flags
777 #!/bin/sh
779 prefix="$prefix"
780 exec_prefix=\$prefix
782 WCFLAGS="-I\$prefix/include $inc_search_path"
783 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
784 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
786 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
788 if test \$# -eq 0; then
789       echo "\${usage}" 1>&2
790       exit 1
793 while test \$# -gt 0; do
794   case \$1 in
795     --cflags)
796         echo \$WCFLAGS
797         ;;
798     --ldflags|--lflags)
799         echo \$WLFLAGS
800         ;;
801     --libs)
802         echo \$WLIBS
803         ;;
804     *)
805         echo "\${usage}" 1>&2
806         exit 1
807         ;;
808   esac
809   shift
810 done
815 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
817 chmod 755 wrlib/get-wraster-flags
818 rm -f get-wraster-flags
822 dnl Spit out the configuration
823 dnl ==========================
825 supported_gfx="$supported_gfx builtin-PPM"
827 if test "x$MOFILES" = "x"; then
828         mof=none
829 else
830         mof=$MOFILES
834 echo
835 echo "Window Maker was configured as follows:"
836 echo
837 echo "Installation path prefix: $prefix"
838 echo "Installation path prefix for binaries: $_bindir"
839 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
840 echo "Graphic format libraries: $supported_gfx"
841 echo "Sound support: $sound"
842 echo "Translated message files to install: $mof"
843 if test "x$MOFILES" != "x"; then
844         echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
847 WM_PRINT_REDCRAP_BUG_STATUS
849 if test "x$ac_cv_header_jpeglib_h" != xyes; then
850 echo "WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING"
851 echo
852 echo "JPEG support will not be included because the JPEG library is"
853 echo "not installed correctly or was not found. Background images"
854 echo "from themes will not display as they usually are JPEG files."
855 echo
856 echo "To fix, download and install the jpeg library and/or make sure you"
857 echo "installed all jpeg related packages, like jpeg-devel."
858 echo
859 echo "WARNING   WARNING   WARNING   WARNING   WARNING   WARNING   WARNING"
863 dnl This is for Emacs.  I'm lazy, I know... (nicolai)
864 dnl ================================================
865 dnl Local Variables:
866 dnl compile-command: "autoconf"
867 dnl End: