2 dnl Window Maker autoconf input.
8 dnl libtoolize --force --automake
9 dnl automake -a --gnu --include-deps
14 AC_INIT(src/WindowMaker.h)
18 AM_INIT_AUTOMAKE(WindowMaker, 0.94.0-crm)
22 AM_CONFIG_HEADER(src/config.h)
25 dnl Checks for host/os name
26 dnl =======================
27 dnl AC_CANONICAL_HOST -- already done by AC_PROG_LIBTOOL
30 dnl Checks for programs.
31 dnl ===================
34 dnl AC_PROG_MAKE_SET -- already done by AM_INIT_AUTOMAKE
36 dnl AC_PROG_INSTALL -- already done by AM_INIT_AUTOMAKE
38 AC_PROG_GCC_TRADITIONAL
40 dnl Platform-specific Makefile setup
41 dnl ================================
50 CFLAGS="$CFLAGS -DFREEBSD"
54 CFLAGS="$CFLAGS -DNETBSD"
58 CFLAGS="$CFLAGS -DOPENBSD"
62 CFLAGS="$CFLAGS -DDRAGONFLYBSD"
68 WM_OSDEP="stub" # solaris.c when done
72 CFLAGS="-DSTUB_HINT=\\\"${host}\\\""
81 dnl move this earlier in the script... anyone know why this is handled
82 dnl in such a bizarre way?
84 test "x$prefix" = xNONE && prefix=$ac_default_prefix
85 dnl Let make expand exec_prefix.
86 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
89 _bindir=`eval echo $bindir`
90 _bindir=`eval echo $_bindir`
92 _libdir=`eval echo $libdir`
93 _libdir=`eval echo $_libdir`
94 lib_search_path="-L$_libdir"
96 inc_search_path=`eval echo $includedir`
97 inc_search_path="-I`eval echo $inc_search_path`"
100 dnl Specify paths to look for libraries and headers
101 dnl ===============================================
102 AC_ARG_WITH(libs-from,
103 [ --with-libs-from pass compiler flags to look for libraries],
104 [lib_search_path="$withval $lib_search_path"])
106 AC_ARG_WITH(incs-from,
107 [ --with-incs-from pass compiler flags to look for header files],
108 [inc_search_path="$withval $inc_search_path"])
112 dnl Checks for library functions.
113 dnl ============================
114 dnl not used anywhere
117 AC_CHECK_FUNCS(gethostname select poll strerror strcasecmp strncasecmp \
118 setsid atexit mallinfo mkstemp snprintf vsnprintf asprintf \
121 dnl ripped from samba
123 AC_CACHE_CHECK([for C99 vsnprintf],_cv_HAVE_C99_VSNPRINTF,[
125 #include <sys/types.h>
127 void foo(const char *format, ...) {
132 va_start(ap, format);
133 len = vsnprintf(0, 0, format, ap);
135 if (len != 5) exit(1);
137 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
141 main() { foo("hello"); }
143 _cv_HAVE_C99_VSNPRINTF=yes,_cv_HAVE_C99_VSNPRINTF=no,_cv_HAVE_C99_VSNPRINTF=cross)])
144 if test x"$_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
145 AC_DEFINE(HAVE_C99_VSNPRINTF, 1, [define if you have vsnprintf with C99 semantics (set by configure)])
148 dnl Check for inotify
149 dnl =================
150 AC_CHECK_HEADERS(sys/inotify.h, AC_DEFINE(HAVE_INOTIFY, 1, Check for inotify))
154 if test "x$CPP_PATH" = x; then
155 AC_PATH_PROG(CPP_PATH, cpp, notfound,
156 $PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib)
160 dnl Tell stupid Solaris cpp that the files it will process have C++ like syntax
161 dnl RedHat 5.x is broken too, so it won't make a symlink from cpp to the
162 dnl standard locations
164 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
165 if test "$GCC" = "yes"; then
166 CPP_PATH="gcc -E -x c"
168 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
169 CPP_PATH="$CPP_PATH -B"
171 echo "cpp, the C preprocessor was not found in your system."
172 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
177 AC_DEFINE_UNQUOTED(CPP_PATH, "$CPP_PATH", [define to the path to cpp])
181 dnl Checks for header files.
182 dnl =======================
185 AC_CHECK_HEADERS(fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h \
186 libintl.h sys/select.h poll.h malloc.h ctype.h string.h \
191 dnl Checks for typedefs, structures, and compiler characteristics.
192 dnl ==============================================================
201 dnl Compiler/architecture specific optimizations
202 dnl ============================================
205 dnl GCC/as with MMX support
206 dnl -----------------------
208 # until we fix it, leave it disabled
212 check_for_mmx_support=yes
214 [ --disable-mmx disable compilation of MMX inline assembly ],
215 [if test x$enableval != xyes; then
216 check_for_mmx_support=no
219 if test "$ac_cv_prog_gcc" = yes -a "$check_for_mmx_support" = yes; then
223 # gcc-3.3 or newer complains about some of our stuff without this
224 NOSTRICTALIASING="-fno-strict-aliasing"
226 AC_CACHE_CHECK(whether gcc supports x86 inline asm,
228 [AC_TRY_LINK(,[{int x; asm volatile("movl %%eax, %%ebx\n\t pushal\n\t popal"::
229 "m" (x),"m" (x),"m" (x),"m" (x),"m" (x),"m" (x),
230 "m" (x),"m" (x),"m" (x),"m" (x),"m" (x),"m" (x));}],
231 ac_cv_c_inline_asm=yes,
232 ac_cv_c_inline_asm=no)])
234 if test "x$ac_cv_c_inline_asm" = xyes; then
235 AC_DEFINE(ASM_X86, 1, [define if processor is x86 (normally detected by configure)])
238 AC_CACHE_CHECK(whether gcc supports MMX(tm) inline asm,
240 [AC_TRY_LINK(,[asm ("movq %mm0, %mm1");],
241 ac_cv_c_inline_mmx=yes,
242 ac_cv_c_inline_mmx=no)])
244 if test "x$ac_cv_c_inline_mmx" = xyes; then
245 AC_DEFINE(ASM_X86_MMX, 1, [define if processor is x86 with MMX(tm) support (normally autodetected by configure)])
252 AC_SUBST(NOSTRICTALIASING)
257 dnl AC_ARG_VAR(PKGCONFIG, [pkg-config command])
258 AC_CHECK_PROG(PKGCONFIG, pkg-config, pkg-config)
271 AC_CHECK_FUNC(gettext, [HAVEGETTEXT="yes"],
272 AC_CHECK_LIB(intl, gettext, [INTLIBS="-lintl" HAVEGETTEXT="yes"],
275 AC_CHECK_PROG(XGETTEXT, xgettext, xgettext)
277 if test "$XGETTEXT" != ""; then
278 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
279 echo "xgettext isn't GNU version"
284 if test "$LINGUAS" != ""; then
285 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
286 AC_DEFINE(I18N, 1, [Internationalization (I18N) support (set by configure)])
288 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
292 echo "xgettext and libintl.a don't both exist; will not build i18n support"
303 dnl The Tower of Babel
304 dnl ==================
306 dnl List of supported locales
307 dnl -------------------------
308 supported_locales="be bg bs ca cs da de el es et fi fr gl hr hu hy it ja ko ms nl no pl pt ro ru sk sv tr zh_CN zh_TW"
309 supported_wprefs_locales="bg ca cs de es et fi fr hr hu it ja ko pt ru sk zh_CN zh_TW"
310 supported_wings_locales="bg ca cs de fr sk"
311 supported_util_locales="de"
313 for lang in $LINGUAS; do
315 for l in $supported_locales; do
316 if test "$l" = "$lang"; then
321 if test "$ok" = 1; then
322 MOFILES="$MOFILES $lang.mo"
324 echo "Locale $lang is not supported."
327 for l in $supported_wprefs_locales; do
328 if test "$l" = "$lang"; then
333 if test "$ok" = 1; then
334 WPMOFILES="$WPMOFILES $lang.mo"
337 for l in $supported_util_locales; do
338 if test "$l" = "$lang"; then
343 if test "$ok" = 1; then
344 UTILMOFILES="$UTILMOFILES $lang.mo"
347 for l in $supported_wings_locales; do
348 if test "$l" = "$lang"; then
353 if test "$ok" = 1; then
354 WINGSMOFILES="$WINGSMOFILES $lang.mo"
359 dnl Added by Oliver - Support for NLSDIR option, Hi Oliver!
360 dnl ===========================================
362 [ --with-nlsdir=PATH specify where the locale stuff should go ])
365 if test "x$NLSDIR" = "x"; then
366 if test "x$with_nlsdir" != "x"; then
369 NLSDIR='$(prefix)/lib/locale'
379 AC_SUBST(UTILMOFILES)
380 AC_SUBST(WINGSMOFILES)
381 AC_SUBST(supported_locales)
385 dnl Support for various hint things
386 dnl ===============================
389 dnl Beautify compilation messages
390 dnl ---------------------------------------------
391 AC_ARG_ENABLE(verbose-compile, AS_HELP_STRING([--disable-verbose-compile],
392 [Streamline compilation messages (default off)]),
394 QUIET='@echo " CC" $@;'
395 QUIET_AR='@echo " AR" $@;'
396 LIBTOOL_ARG="--silent"
400 AC_SUBST(LIBTOOL_ARG)
405 dnl ===========================================
406 dnl Stuff that uses X
407 dnl ===========================================
412 AC_MSG_ERROR([The path for the X11 files not found!
413 Make sure you have X and it's headers and libraries (the -devel packages
414 in Linux) installed.])
417 X_LIBRARY_PATH=$x_libraries
423 XLIBS="-lX11 -lXmu $X_EXTRA_LIBS"
426 lib_search_path="$lib_search_path $XLFLAGS"
427 inc_search_path="$inc_search_path $XCFLAGS"
430 AC_SUBST(X_LIBRARY_PATH)
434 dnl Decide which locale function to use, setlocale() or _Xsetlocale()
435 dnl by MANOME Tomonori
436 dnl ===========================================
438 AC_ARG_ENABLE(locale,
439 [ --disable-locale disable use of X locale support],
442 if test "$use_locale" = yes; then
443 AC_CHECK_LIB(X11, _Xsetlocale,
444 AC_DEFINE(X_LOCALE, 1, [define if you want support for X window's X_LOCALE (set by configure)]),,
449 dnl Check whether XInternAtoms() exist
450 dnl ==================================
451 AC_CHECK_LIB(X11, XInternAtoms,
452 AC_DEFINE(HAVE_XINTERNATOMS, 1, [define if your X server has XInternAtoms() (set by configure)]),,
455 dnl Check whether XConvertCase() exist
456 dnl ==================================
457 AC_CHECK_LIB(X11, XConvertCase,
458 AC_DEFINE(HAVE_XCONVERTCASE, 1, [define if your X server has XConvertCase() (set by configure)]),,
462 dnl XKB keyboard language status
463 dnl ============================
464 AC_ARG_ENABLE(modelock,
465 [ --enable-modelock XKB keyboard language status support],
466 AC_DEFINE(XKB_MODELOCK, 1, [whether XKB language MODELOCK should be enabled]))
474 [ --disable-shape disable shaped window extension support],
475 shape=$enableval, shape=yes)
479 if test "$shape" = yes; then
480 AC_CHECK_LIB(Xext, XShapeSelectInput, [XLIBS="-lXext $XLIBS"
482 AC_DEFINE(SHAPE, 1, [define if you want support for shaped windows (set by configure)])],
483 shape=no, $XLFLAGS $XLIBS)
487 dnl Xft2 antialiased font support
488 dnl =============================
493 if test "x$PKGCONFIG" != x -a "`$PKGCONFIG xft; echo $?`" = 0; then
494 XFTCONFIG="$PKGCONFIG xft"
497 AC_CHECK_PROG(XFTCONFIG, xft-config, xft-config)
500 AC_MSG_CHECKING([for the Xft2 library])
502 if test "x$XFTCONFIG" != x; then
503 XFTLIBS=`$XFTCONFIG --libs`
504 XFTFLAGS=`$XFTCONFIG --cflags`
505 AC_MSG_RESULT([found])
507 AC_MSG_RESULT([not found])
509 echo "ERROR!!! libXft2 is not installed or could not be found."
510 echo " Xft2 is a requirement for building Window Maker."
511 echo " Please install it (along with fontconfig) before continuing."
520 dnl The macro below will use $XFTFLAGS (defined above) to find Xft.h
522 WM_CHECK_XFT_VERSION($minXFT, goodxft=yes, goodxft=no)
524 if test "$goodxft" = no; then
526 echo "ERROR!!! libXft on this system is an old version."
527 echo " Please consider upgrading to at least version ${minXFT}."
539 AC_ARG_ENABLE(xinerama,
540 [ --enable-xinerama enable Xinerama extension support],
541 xinerama=$enableval, xinerama=no)
543 if test "$xinerama" = yes; then
544 AC_CHECK_LIB(Xinerama, XineramaQueryScreens,
545 [XLIBS="-lXinerama $XLIBS"
547 xfxine=no, $XLFLAGS $XLIBS)
549 AC_CHECK_LIB(Xext, XineramaGetInfo,
551 ], sunxine=no, $XLFLAGS $XLIBS)
553 if test "$xfxine" = yes; then
557 if test "$sunxine" = yes; then
559 AC_DEFINE(SOLARIS_XINERAMA, 1,
560 [define if you want support for the XINERAMA extension and are in Solaris (set by configure)])
563 if test "$xine" = 1; then
564 AC_DEFINE(XINERAMA, 1,
565 [define if you want support for the XINERAMA extension (set by configure)])
575 [ --disable-shm disable usage of MIT-SHM extension],
576 shm=$enableval, shm=yes)
578 if test "$shm" = yes; then
579 AC_CHECK_LIB(Xext, XShmAttach, ok=yes, ok=no, $XLFLAGS $XLIBS)
581 if test "$ok" = yes; then
582 AC_CHECK_FUNC(shmget, ok=yes, ok=no)
585 if test "$ok" = yes; then
586 if test "$added_xext" = no; then
587 XLIBS="-lXext $XLIBS"
589 AC_DEFINE(XSHM, 1, [define if X's shared memory extension is available (set by configure)])
594 dnl R6 Style Session Management Support
595 dnl ===================================
604 dnl ==============================================
605 dnl Graphic Format Libraries
606 dnl ==============================================
616 [ --disable-xpm disable use of XPM pixmaps through libXpm],
617 xpm=$enableval, xpm=yes)
619 if test "$xpm" = yes; then
620 WM_CHECK_LIB(Xpm, XpmCreatePixmapFromData, [$XLFLAGS $XLIBS])
622 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
623 WM_CHECK_HEADER(X11/xpm.h)
624 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
625 GFXLIBS="$GFXLIBS -lXpm"
627 AC_DEFINE(USE_XPM, 1, [define if XPM libraries are available (set by configure)])
629 supported_gfx="builtin-XPM"
636 AC_SUBST(X_EXTRA_LIBS)
638 dnl ===============================================
639 dnl End of stuff that uses X
640 dnl ===============================================
648 [ --disable-png disable PNG support through libpng],
649 png=$enableval, png=yes, png=no)
652 if test "$png" = yes ; then
653 WM_CHECK_LIB(png, png_get_valid, [-lz -lm])
655 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
656 WM_CHECK_HEADER(png.h)
657 if test "x$ac_cv_header_png_h" = xyes; then
658 GFXLIBS="$GFXLIBS -lpng -lz"
659 supported_gfx="$supported_gfx PNG"
660 AC_DEFINE(USE_PNG, 1, [define if PNG libraries are available (set by configure)])
671 [ --disable-jpeg disable JPEG support through libjpeg],
672 jpeg=$enableval, jpeg=yes, jpeg=no)
674 if test "$jpeg" = yes; then
675 WM_CHECK_LIB(jpeg, jpeg_destroy_compress)
677 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
681 WM_CHECK_HEADER(jpeglib.h)
682 if test "x$ac_cv_header_jpeglib_h" = xyes; then
683 GFXLIBS="$GFXLIBS -ljpeg"
684 supported_gfx="$supported_gfx JPEG"
685 AC_DEFINE(USE_JPEG, 1, [define if JPEG libraries are available (set by configure)])
695 [ --disable-gif disable GIF support through libgif or libungif],
696 gif=$enableval, gif=yes, gif=no)
698 if test "$gif" = yes; then
700 WM_CHECK_LIB(ungif, DGifOpenFileName, [$XLFLAGS $XLIBS])
701 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
705 dnl libungif is the same thing as libgif for all practical purposes.
707 if test "x$my_libname" = x; then
708 WM_CHECK_LIB(gif, DGifOpenFileName, [$XLFLAGS $XLIBS])
709 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
714 if test "$my_libname" != x; then
715 WM_CHECK_HEADER(gif_lib.h)
716 if test "x$ac_cv_header_gif_lib_h" = xyes; then
717 GFXLIBS="$GFXLIBS $my_libname"
718 supported_gfx="$supported_gfx GIF"
719 AC_DEFINE(USE_GIF, 1, [define if GIF libraries are available (set by configure)])
729 [ --disable-tiff disable use of TIFF images through libtiff],
730 tif=$enableval, tif=yes, tif=no)
733 # TIFF can optionally have JPEG and/or zlib support. Must find out
734 # when they are supported so that correct library flags are passed during
735 # detection and linkage
738 # By default use xpm icons if tiff is not found.
742 if test "$tif" = yes; then
744 WM_CHECK_LIB(tiff, TIFFGetVersion, [-lm])
745 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
751 unset ac_cv_lib_tiff_TIFFGetVersion
752 if test "x$my_libname" = x; then
753 WM_CHECK_LIB(tiff, TIFFGetVersion, [$ljpeg -lz -lm])
754 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
755 my_libname="-ltiff -lz"
759 if test "x$my_libname" = x; then
760 WM_CHECK_LIB(tiff34, TIFFGetVersion, [$ljpeg -lm])
761 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
762 my_libname="-ltiff34"
767 if test "x$my_libname" != x; then
768 WM_CHECK_HEADER(tiffio.h)
769 if test "x$ac_cv_header_tiffio_h" = xyes; then
770 GFXLIBS="$my_libname $GFXLIBS"
772 supported_gfx="$supported_gfx TIFF"
773 AC_DEFINE(USE_TIFF, 1, [define if TIFF libraries are available (set by configure)])
778 LIBRARY_SEARCH_PATH="$lib_search_path"
779 HEADER_SEARCH_PATH="$inc_search_path"
781 AC_SUBST(LIBRARY_SEARCH_PATH)
782 AC_SUBST(HEADER_SEARCH_PATH)
789 dnl ==============================================
790 dnl End of Graphic Format Libraries
791 dnl ==============================================
795 dnl stdlib.h is checked here, because of conflict in jpeglib.h
796 AC_CHECK_HEADERS(stdlib.h)
798 # AC_PREFIX_PROGRAM(wmaker)
800 dnl Support for PIXMAPDIR option
801 dnl ============================
802 AC_ARG_WITH(pixmapdir,
803 [ --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]])
805 if test "x$with_pixmapdir" != "x"; then
806 pixmapdir=$with_pixmapdir
808 pixmapdir=`eval echo ${datadir}/pixmaps`
811 AC_DEFINE_UNQUOTED(PIXMAPDIR, "$pixmapdir", [define an extra path for pixmaps (set by configure)])
813 pkgdatadir=`eval echo $datadir`
814 AC_DEFINE_UNQUOTED(PKGDATADIR, "$pkgdatadir/WindowMaker", [where shared data is stored (defined by configure)])
816 _sysconfdir=`eval echo $sysconfdir`
817 AC_DEFINE_UNQUOTED(SYSCONFDIR, "$_sysconfdir", [where the configuration is stored (defined by configure)])
820 dnl Support for GNUSTEP_LOCAL_ROOT, for WPrefs.app
821 dnl ==============================================
823 AC_ARG_WITH(appspath,
824 [ --with-gnustepdir=PATH specify the directory for GNUstep applications])
826 if test "x`echo $with_gnustepdir | grep ^/`" != "x"; then
827 appspath=$with_gnustepdir
830 if test "x$appspath$GNUSTEP_LOCAL_ROOT" = "x"; then
831 wprefs_base_dir=${prefix}
832 wprefs_datadir="${datadir}/WPrefs"
833 wprefs_bindir="${bindir}"
837 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
838 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
839 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
842 wprefs_base_dir=$gnustepdir/Applications
843 wprefs_datadir=$wprefs_base_dir/WPrefs.app
844 wprefs_bindir=$wprefs_base_dir/WPrefs.app
847 AC_SUBST(wprefs_datadir)
848 AC_SUBST(wprefs_bindir)
851 dnl Enable User Defined Menu thing
852 dnl ==================================
853 AC_ARG_ENABLE(usermenu,
854 [ --enable-usermenu user defined menus for applications
856 if test "$enableval" = yes; then
857 AC_DEFINE(USER_MENU, 1, [define if you want user defined menus for applications])
862 AC_OUTPUT(Makefile po/Makefile util/Makefile util/po/Makefile \
863 WINGs/Makefile WINGs/WINGs/Makefile WINGs/Documentation/Makefile \
864 WINGs/Examples/Makefile WINGs/Resources/Makefile WINGs/Tests/Makefile \
865 WINGs/Extras/Makefile WINGs/po/Makefile \
866 wrlib/Makefile wrlib/tests/Makefile \
867 src/Makefile src/wconfig.h \
868 doc/Makefile doc/sk/Makefile \
869 WindowMaker/Makefile WindowMaker/Backgrounds/Makefile \
870 WindowMaker/Defaults/Makefile WindowMaker/IconSets/Makefile \
871 WindowMaker/Icons/Makefile WindowMaker/Pixmaps/Makefile \
872 WindowMaker/Styles/Makefile WindowMaker/Themes/Makefile \
873 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
874 WPrefs.app/po/Makefile \
875 contrib/Makefile contrib/WindowMaker.spec )
880 dnl Output some helpful data for compiling wraster and WINGs/WUtil apps
881 dnl ===================================================================
884 dnl echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
885 dnl echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
886 dnl | sed -e 's|\$(prefix)|'"$prefix|" >> WINGs-flags
888 dnl The #lp# and #rp# stuff below is a hack because [ and ] get lost when
891 cat <<EOF >get-wraster-flags
894 WCFLAGS="$inc_search_path"
895 WLFLAGS="$lib_search_path"
896 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
898 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
900 if test \$# -eq 0; then
901 echo "\${usage}" 1>&2
905 while test \$# -gt 0; do
917 echo "\${usage}" 1>&2
927 cat <<EOF > wrlib/wrlib.pc
929 Description: Image manipulation and conversion library
931 Libs: $lib_search_path -lwraster $GFXLIBS $XLIBS -lm
932 Cflags: $inc_search_path
935 cat <<EOF >get-wings-flags
938 WCFLAGS="$inc_search_path"
939 WLFLAGS="$lib_search_path"
940 WLIBS="-lWINGs -lWUtil -lwraster $GFXLIBS $XFTLIBS $XLIBS -lm $INTLIBS"
942 usage="Usage: get-wings-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
944 if test \$# -eq 0; then
945 echo "\${usage}" 1>&2
949 while test \$# -gt 0; do
961 echo "\${usage}" 1>&2
971 cat <<EOF > WINGs/WINGs.pc
973 Description: Small widget set with the NeXTStep(TM) look and feel
976 Libs: $lib_search_path -lWINGs $XFTLIBS $XLIBS -lm $INTLIBS
977 Cflags: $inc_search_path
980 cat <<EOF >get-wutil-flags
983 WCFLAGS="-I`eval echo ${includedir}`"
984 WLFLAGS="-L${_libdir}"
985 WLIBS="-lWUtil $INTLIBS"
987 usage="Usage: get-wutil-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
989 if test \$# -eq 0; then
990 echo "\${usage}" 1>&2
994 while test \$# -gt 0; do
1006 echo "\${usage}" 1>&2
1016 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
1017 sed 's/#lp#/[/g' get-wings-flags | sed 's/#rp#/]/g' > WINGs/get-wings-flags
1018 sed 's/#lp#/[/g' get-wutil-flags | sed 's/#rp#/]/g' > WINGs/get-wutil-flags
1020 chmod 755 wrlib/get-wraster-flags WINGs/get-wings-flags WINGs/get-wutil-flags
1022 rm -f get-wraster-flags get-wings-flags get-wutil-flags
1026 dnl Spit out the configuration
1027 dnl ==========================
1029 supported_gfx="$supported_gfx builtin-PPM"
1031 if test "x$MOFILES" = "x"; then
1037 if test "x$MOFILES" = "x"; then
1040 languages=`echo $MOFILES | sed 's/.mo//g'`
1044 echo "Window Maker was configured as follows:"
1046 echo "Installation path prefix : $prefix"
1047 echo "Installation path for binaries : $_bindir"
1048 echo "Installation path for WPrefs.app : $wprefs_base_dir" | sed -e 's|\${prefix}|'"$prefix|"
1049 echo "Supported graphic format libraries : $supported_gfx"
1050 echo "Use assembly routines for wrlib : $asm_support"
1051 echo "Use inline MMX(tm) x86 assembly : $mmx_support"
1052 echo "Antialiased text support in WINGs : $xft"
1053 echo "Xinerama extension support : $xinerama"
1054 echo "Translated message files to install : $mof"
1055 dnl echo "Supported languages beside English : $languages"
1056 if test "x$MOFILES" != "x"; then
1057 echo "Installation path for translations : $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
1061 dnl WM_PRINT_REDCRAP_BUG_STATUS
1063 if test "x$ac_cv_header_jpeglib_h" != xyes; then
1064 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
1066 echo "JPEG support will not be included because the JPEG library is"
1067 echo "not installed correctly or was not found. Background images"
1068 echo "from themes will not display as they usually are JPEG files."
1070 echo "To fix, download and install the jpeg library and/or make sure you"
1071 echo "installed all jpeg related packages, SPECIALLY the development packages"
1072 echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
1074 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
1078 dnl This is for Emacs. I'm lazy, I know... (nicolai)
1079 dnl ================================================
1080 dnl Local Variables:
1081 dnl compile-command: "autoconf"