kcontrol/kdm:
[pardus-kurumsal-2-kde3:kdebase.git] / configure.in
1 dnl =======================================================
2 dnl FILE: ./admin/configure.in.min
3 dnl =======================================================
4
5 dnl    This file is part of the KDE libraries/packages
6 dnl    Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
7  
8 dnl    This file is free software; you can redistribute it and/or
9 dnl    modify it under the terms of the GNU Library General Public
10 dnl    License as published by the Free Software Foundation; either
11 dnl    version 2 of the License, or (at your option) any later version.
12  
13 dnl    This library is distributed in the hope that it will be useful,
14 dnl    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 dnl    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16 dnl    Library General Public License for more details.
17  
18 dnl    You should have received a copy of the GNU Library General Public License
19 dnl    along with this library; see the file COPYING.LIB.  If not, write to
20 dnl    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 dnl    Boston, MA 02110-1301, USA.
22
23 # Original Author was Kalle@kde.org
24 # I lifted it in some mater. (Stephan Kulow)
25 # I used much code from Janos Farkas
26
27 dnl Process this file with autoconf to produce a configure script.
28
29 AC_INIT(acinclude.m4) dnl a source file from your sub dir
30
31 dnl This is so we can use kde-common
32 AC_CONFIG_AUX_DIR(admin)
33
34 dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
35 unset CDPATH
36
37 dnl Checking host/target/build systems, for make, install etc.
38 AC_CANONICAL_SYSTEM 
39 dnl Perform program name transformation
40 AC_ARG_PROGRAM
41
42 dnl Automake doc recommends to do this only here. (Janos)
43 AM_INIT_AUTOMAKE(kdebase, "3.5.11") dnl searches for some needed programs
44
45 KDE_SET_PREFIX
46
47 dnl generate the config header
48 AM_CONFIG_HEADER(config.h) dnl at the distribution this done
49
50 dnl Checks for programs.
51 AC_CHECK_COMPILERS
52 AC_ENABLE_SHARED(yes)
53 AC_ENABLE_STATIC(no)
54 KDE_PROG_LIBTOOL
55
56 dnl for NLS support. Call them in this order!
57 dnl WITH_NLS is for the po files
58 AM_KDE_WITH_NLS
59
60 dnl KDE_USE_QT
61 AC_PATH_KDE
62 dnl =======================================================
63 dnl FILE: configure.in.in
64 dnl =======================================================
65
66 #MIN_CONFIG
67
68 KDE_ENABLE_HIDDEN_VISIBILITY
69
70 dnl PAM, shadow passwords, libcrypt
71 KDE_PASSWDLIBS
72
73 DEF_PAM_SERVICE(kdm, kdm, KDM)
74 DEF_PAM_SERVICE(kcp, kcheckpass, KCHECKPASS)
75 DEF_PAM_SERVICE(kss, kscreensaver, KSCREENSAVER)
76
77 dnl Checks for header files.
78 AC_HEADER_DIRENT
79 AC_HEADER_STDC
80 AC_CHECK_HEADERS(sys/time.h crypt.h \
81         sys/select.h sys/ioctl.h sys/stropts.h stropts.h termio.h termios.h sys/termios.h \
82         lastlog.h sys/socket.h sys/sockio.h \
83         sys/m_wait.h ncurses.h paths.h login_cap.h syslog.h \
84         sys/wait.h sys/ucred.h sys/mount.h floatingpoint.h fstab.h mntent.h \
85         Alib.h libutil.h util.h time.h limits.h vfork.h string.h float.h \
86         math.h nan.h ieeefp.h
87 )
88 AC_CHECK_HEADER(pty.h)
89 AC_CHECK_FUNC(ptsname,,)
90
91
92 dnl Checks for Alib on HP-UX (added by deller, Apr 29 1999)
93 AC_CHECK_LIB(Alib, main, [LIBALIB="-lAlib"]) dnl HP-UX network audio server
94 AC_SUBST(LIBALIB)
95
96 dnl Checks for RPC functions
97 AC_CHECK_FUNC(clnttcp_create, , [
98   AC_CHECK_LIB(nsl, clnttcp_create, [LIBRPC="-lnsl"])])
99 AC_SUBST(LIBRPC)
100
101 dnl Check for ossaudio on NetBSD
102 AC_CHECK_LIB(ossaudio, main, [LIBOSSAUDIO="-lossaudio"])
103 AC_SUBST(LIBOSSAUDIO)
104
105 dnl Check for AIX stuff
106 AC_CHECK_LIB(cfg, main, [LIBCFG="-lcfg"]) dnl for AIX
107 AC_SUBST(LIBCFG)
108 AC_CHECK_LIB(odm, main, [LIBODM="-lodm"]) dnl for AIX
109 AC_SUBST(LIBODM)
110
111 dnl SMB checks moved to their own configure.in.in
112
113 kde_have_setupterm=yes
114 AC_CHECK_LIB(curses, setupterm, [LIBCURSES=-lcurses],
115   AC_CHECK_LIB(ncurses, setupterm, [LIBCURSES=-lncurses],
116     AC_CHECK_LIB(mytinfo, setupterm, [LIBCURSES=-lmytinfo],
117        kde_have_setupterm=no)))
118
119 AC_SUBST(LIBCURSES)
120
121 if test "$kde_have_setupterm" = "yes"; then
122   AC_DEFINE_UNQUOTED(HAVE_SETUPTERM, 1, [Define if you have setupterm in -l(n)curses])
123 fi
124
125 AC_CHECK_FUNC(res_init, ,
126   AC_CHECK_LIB(resolv, res_init, [LIBRESOLV="-lresolv"], , $LIBSOCKET)) dnl for Sun
127
128 AC_SUBST(LIBRESOLV)
129
130 dnl Checks for typedefs, structures, and compiler characteristics.
131 AC_LANG_CPLUSPLUS
132 AC_HEADER_TIME
133
134 dnl check if the compiler has bool
135 AC_CHECK_BOOL
136 AC_LANG_C
137 AC_C_LONG_DOUBLE
138 AC_TYPE_GETGROUPS
139
140 dnl for libsmb
141 AC_CHECK_SIZEOF(char,1)
142 AC_CHECK_SIZEOF(short,2)
143 AC_CHECK_SIZEOF(int,4)
144 AC_CHECK_SIZEOF(long,4)
145 AC_C_BIGENDIAN
146
147 AC_CHECK_FUNCS(socket powl sqrtl strdup getdtablesize setpgid nice seteuid vsyslog initgroups setgroups getgroups grantpt pw_encrypt setpriority getpt unlockpt ptsname waitpid getpassphrase)
148 AC_CHECK_MKSTEMPS
149 AC_CHECK_SETENV
150 AC_CHECK_UNSETENV
151 AC_CHECK_GETDOMAINNAME
152 AC_CHECK_GETHOSTNAME
153 AC_CHECK_USLEEP
154 AC_CHECK_RANDOM
155 AC_CHECK_S_ISSOCK
156 AC_CHECK_KDEMAXPATHLEN
157 AC_MSG_CHECKING([if it's safe to enable UTMP])
158
159 case "$host_os" in
160 linux*) utmp_support=yes;
161      ;;
162 freebsd*) utmp_support=yes;
163      ;;
164 kfreebsd*-gnu) utmp_support=yes;
165      ;;
166 *) utmp_support=no;
167 esac
168
169 AC_MSG_RESULT($utmp_support)
170
171 if test "$utmp_support" = yes; then
172    AC_DEFINE_UNQUOTED(UTMP_SUPPORT, 1, [Define if you want to use utmp entries])
173 fi
174
175 AC_CHECK_UTMP_FILE
176
177 dnl Checks for Solaris' libkstat
178 kde_have_kstat=yes
179 AC_CHECK_LIB(kstat, kstat_open, [LIBKSTAT=-lkstat], kde_have_kstat=no)
180 AC_SUBST(LIBKSTAT)
181 if test "$kde_have_kstat" = "yes"; then
182   AC_DEFINE(HAVE_KSTAT, 1, [Defines if you have Solaris' libkstat])
183 fi
184
185 dnl Checks for libdevinfo (Solaris 7 and later)
186 dnl since the library is available on earlier Solaris releases (but
187 dnl with a completely different and undocumented interface),
188 dnl we have to verfy that the required header is present as well
189 AC_CHECK_HEADER(libdevinfo.h,
190         kde_have_libdevinfo_h=yes,
191         kde_have_libdevinfo_h=no)
192 if test "$kde_have_libdevinfo_h" = "yes"; then
193    kde_have_libdevinfo_lib=yes
194    AC_CHECK_LIB(devinfo, di_init, [LIBDEVINFO=-ldevinfo], kde_have_libdevinfo_lib=no)
195    if test "$kde_have_libdevinfo_lib" = "yes"; then
196       AC_DEFINE(HAVE_LIBDEVINFO_H, 1, [Defines if you have libdevinfo of Solaris 7 or later])
197       AC_SUBST(LIBDEVINFO)
198    fi
199 fi
200
201 dnl check for java
202 KDE_CHECK_JAVA_DIR
203
204 dnl check for an md5sum implementation. the GNU versions
205 dnl produce different output from the FreeBSD / Solaris 
206 dnl versions, so MD5SUM_CUT shows how to retrieve the
207 dnl checksum from the output.
208 MD5SUM_CUT="-f 1"
209 AC_PATH_PROGS(MD5SUM, [md5sum gmd5sum], [])
210 if test -z "$MD5SUM" ; then
211   AC_PATH_PROG(MD5SUM, [md5], [])
212   if test -z "$MD5SUM" ; then
213     AC_PATH_PROG(MD5SUM, [md5], [], [/sbin])
214   fi
215   if test -z "$MD5SUM" ; then
216     AC_MSG_WARN([No md5sum, gmd5sum, or md5 was found. The fish IOSlave cannot be compiled.])
217     # Will fail anyway, but in a better way than a blank command.
218     MD5SUM="md5sum"
219     MD5SUM_CUT="-f 1"
220   else
221     MD5SUM_CUT="-f 4"
222   fi
223 fi
224 AC_SUBST(MD5SUM_CUT)
225
226 dnl -----  Checks for X11 extensions -----
227 ac_save_ldflags="$LDFLAGS"
228 LDFLAGS="$X_LDFLAGS"
229
230 dnl --- XTEST check
231 XTESTLIB=
232 KDE_CHECK_HEADER(X11/extensions/XTest.h,
233     [AC_CHECK_LIB( Xtst, XTestFakeKeyEvent,
234         [AC_DEFINE(HAVE_XTEST, 1, [Define if you have the XTest extension])
235          XTESTLIB=-lXtst],
236         , [ $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS ])
237     ])
238 AC_SUBST(XTESTLIB)
239
240 dnl --- XKB check
241 KDE_CHECK_HEADER(X11/XKBlib.h,
242     [AC_CHECK_LIB( X11, XkbLockModifiers,
243         [AC_DEFINE(HAVE_XKB, 1, [Define if you have the XKB extension])],
244         , [ $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS ])
245      AC_CHECK_LIB( X11, XkbSetPerClientControls,
246         [AC_DEFINE(HAVE_XKBSETPERCLIENTCONTROLS, 1, [Define if you have XkbSetPerClientControls])],
247         , [ $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS ])
248     ], [], [#include <X11/Xlib.h>])
249
250 dnl --- Xcursor check (not technically an extension)
251 KDE_CHECK_HEADERS(X11/Xcursor/Xcursor.h,
252     [KDE_CHECK_LIB(Xcursor, XcursorSupportsARGB, [
253         LIB_XCURSOR=-lXcursor
254         AC_DEFINE_UNQUOTED(HAVE_XCURSOR, 1, [Define to 1 if you have Xcursor])
255     ], [ LIB_XCURSOR= ], [ $X_PRE_LIBS -lX11 $X_EXTRA_LIBS ])],
256     [ LIB_XCURSOR= ], [#include <X11/Xlib.h>])
257 AC_SUBST(LIB_XCURSOR)
258 AM_CONDITIONAL(have_xcursor, test "$LIB_XCURSOR" = -lXcursor)
259
260 dnl XRender check
261 KDE_CHECK_HEADER(X11/extensions/Xrender.h, [xrender_h=yes], [xrender_h=no])
262 if test "$xrender_h" = yes; then
263   KDE_CHECK_LIB(Xrender, XRenderComposite, [
264     LIB_XRENDER=-lXrender
265     AC_DEFINE_UNQUOTED(HAVE_XRENDER, 1, [Defined if your system has XRender support])
266   ], [], -lXext -lX11 $X_EXTRA_LIBS)
267 else
268   LIB_XRENDER=
269 fi
270 AC_SUBST(LIB_XRENDER)
271
272 LDFLAGS="$ac_save_ldflags"
273 dnl ----- end of X11 extension checks -----
274
275
276 CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
277
278 KDE_INIT_DOXYGEN([KDE base API Reference], [Version $VERSION])
279
280 dnl Ok, kdebase has _sooo_ many Makefiles, that the check for uniqueness
281 dnl of those filenames in the list of the files (done by autoconf macros
282 dnl itself) is taking more that nine minutes (!).  For kdebase only we take
283 dnl out that test.  (matz@kde.org)
284 m4_define([_AC_CONFIG_UNIQUE], [])dnl
285
286 AH_VERBATIM(_osf_stuff, [
287 #if !defined(HAVE_SETEUID)
288 #define seteuid(_eu) setresuid(-1, _eu, -1)
289 #endif
290 ])
291
292 AH_VERBATIM(_broken_xkb, [
293 #if defined(__osf__) || defined(__APPLE__)
294 #define AVOID_XKB                 /* for konsole to avoid XKB and XTEST */
295 #endif
296 ])
297
298 dnl this is for kdm and kcontrol
299 KDE_EXPAND_MAKEVAR(KDE_CONFDIR, kde_confdir)
300 AC_DEFINE_UNQUOTED(KDE_CONFDIR, "$KDE_CONFDIR", [KDE's configuration directory])
301 KDE_EXPAND_MAKEVAR(KDE_DATADIR, kde_datadir)
302 AC_DEFINE_UNQUOTED(KDE_DATADIR, "$KDE_DATADIR", [KDE's static data directory])
303 KDE_EXPAND_MAKEVAR(KDE_BINDIR, kde_bindir)
304 AC_DEFINE_UNQUOTED(KDE_BINDIR, "$KDE_BINDIR", [KDE's binaries directory])
305 AC_SUBST(KDE_BINDIR)
306
307 dnl libart is used by kdm, kcontrol and thumbnails code in kioslaves
308 KDE_FIND_PATH(libart2-config, LIBART_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/local/bin /opt/local/bin], [
309   AC_MSG_WARN([Could not find libart anywhere, check http://www.levien.com/libart/])
310 ])
311
312 if test -n "$LIBART_CONFIG"; then
313   vers=`$LIBART_CONFIG --version 2>/dev/null | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
314   if test -n "$vers" && test "$vers" -ge 2003008
315   then
316      LIBART_LIBS="`$LIBART_CONFIG --libs`"
317      LIBART_RPATH=
318      for args in $LIBART_LIBS; do
319           case $args in
320             -L*)
321                LIBART_RPATH="$LIBART_RPATH $args"
322                ;;
323           esac
324      done
325      LIBART_RPATH=`echo $LIBART_RPATH | sed -e "s/-L/-R/g"`
326      LIBART_CFLAGS="`$LIBART_CONFIG --cflags`"
327
328      AC_DEFINE_UNQUOTED(HAVE_LIBART, 1, [Defines if your system has the libart library])
329   else
330      AC_MSG_WARN([You need at least libart 2.3.8])
331   fi
332 fi
333
334
335 AC_SUBST(LIBART_LIBS)
336 AC_SUBST(LIBART_CFLAGS)
337 AC_SUBST(LIBART_RPATH)
338
339 AC_ARG_WITH([composite],
340   AC_HELP_STRING([--without-composite], [Disable Xcomposite support (default: check)]) )
341
342 AC_TRY_RUN([
343 #include <sys/socket.h>
344 #include <sys/un.h>
345 #include <sys/stat.h>
346 #include <sys/types.h>
347 #include <string.h>
348 #include <unistd.h>
349 #include <errno.h>
350 int main()
351 {
352     int fd, fd2;
353     struct sockaddr_un sa;
354
355     if ((fd = socket(PF_UNIX, SOCK_STREAM, 0)) < 0)
356         return 2;
357     sa.sun_family = AF_UNIX;
358     strcpy(sa.sun_path, "testsock");
359     unlink(sa.sun_path);
360     if (bind(fd, (struct sockaddr *)&sa, sizeof(sa)))
361         return 2;
362     chmod(sa.sun_path, 0);
363     setuid(getuid() + 1000);
364     if ((fd2 = socket(PF_UNIX, SOCK_STREAM, 0)) < 0)
365         return 2;
366     connect(fd2, (struct sockaddr *)&sa, sizeof(sa));
367     return errno != EACCES;
368 }
369 ], AC_DEFINE_UNQUOTED(HONORS_SOCKET_PERMS, 1, [Define to 1 if OS honors permission bits on socket inodes]))
370 dnl =======================================================
371 dnl FILE: ./kappfinder/configure.in.in
372 dnl =======================================================
373
374 if test -z "$RUN_KAPPFINDER"; then
375   RUN_KAPPFINDER="no"
376 fi
377 AC_SUBST(RUN_KAPPFINDER)
378 dnl =======================================================
379 dnl FILE: ./kcontrol/access/configure.in.in
380 dnl =======================================================
381
382 ACCESS_SUBDIR=
383 KDE_CHECK_HEADER(X11/extensions/XKBstr.h, ACCESS_SUBDIR=access, ,
384 [
385 #include <X11/Xlib.h>
386 ])
387
388 AM_CONDITIONAL(include_kcontrol_access, test -n "$ACCESS_SUBDIR")
389 dnl =======================================================
390 dnl FILE: ./kcontrol/accessibility/configure.in.in
391 dnl =======================================================
392
393 ACCESSIBILITY_SUBDIR=
394 KDE_CHECK_HEADER(X11/extensions/XKBstr.h, ACCESSIBILITY_SUBDIR=accessibility)
395 AM_CONDITIONAL(include_kcontrol_accessibility, test -n "$ACCESSIBILITY_SUBDIR")
396 dnl =======================================================
397 dnl FILE: ./kcontrol/crypto/configure.in.in
398 dnl =======================================================
399
400 KDE_CHECK_SSL
401 dnl =======================================================
402 dnl FILE: ./kcontrol/energy/configure.in.in
403 dnl =======================================================
404
405 AC_HAVE_DPMS()
406 dnl =======================================================
407 dnl FILE: ./kcontrol/fonts/configure.in.in
408 dnl =======================================================
409
410 KDE_FIND_PATH(fontconfig-config, FONTCONFIG_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
411         KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
412             AC_MSG_WARN([Could not find neither pkg-config nor fontconfig-config, check http://www.fontconfig.org/ ])
413         ])
414 ])
415
416 if test -n "$PKGCONFIG"; then
417   vers=`$PKGCONFIG fontconfig --modversion 2>/dev/null | sed -e 's/libfontconfig //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
418   if test -n "$vers" && test "$vers" -ge 1000000
419   then
420      LIBFONTCONFIG_LIBS="`$PKGCONFIG fontconfig --libs`"
421      LIBFONTCONFIG_RPATH=
422      for args in $LIBFONTCONFIG_LIBS; do
423           case $args in
424             -L*)
425                LIBFONTCONFIG_RPATH="$LIBFONTCONFIG_RPATH $args"
426                ;;
427           esac
428      done
429      LIBFONTCONFIG_RPATH=`echo $LIBFONTCONFIG_RPATH | sed -e "s/-L/-R/g"`
430      LIBFONTCONFIG_CFLAGS="`$PKGCONFIG fontconfig --cflags`"
431
432      AC_DEFINE_UNQUOTED(HAVE_FONTCONFIG, 1, [Defines if your system has the libfontconfig library])
433   fi
434 fi
435
436 if test -n "$FONTCONFIG_CONFIG"; then
437   vers=`$FONTCONFIG_CONFIG --version 2>/dev/null | sed -e 's/libfontconfig //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
438   if test -n "$vers" && test "$vers" -ge 1000000
439   then
440      LIBFONTCONFIG_LIBS="`$FONTCONFIG_CONFIG --libs`"
441      LIBFONTCONFIG_RPATH=
442      for args in $LIBFONTCONFIG_LIBS; do
443           case $args in
444             -L*)
445                LIBFONTCONFIG_RPATH="$LIBFONTCONFIG_RPATH $args"
446                ;;
447           esac
448      done
449      LIBFONTCONFIG_RPATH=`echo $LIBFONTCONFIG_RPATH | sed -e "s/-L/-R/g"`
450      LIBFONTCONFIG_CFLAGS="`$FONTCONFIG_CONFIG --cflags`"
451
452      AC_DEFINE_UNQUOTED(HAVE_FONTCONFIG, 1, [Defines if your system has the libfontconfig library])
453   fi
454 fi
455
456 AC_SUBST(LIBFONTCONFIG_LIBS)
457 AC_SUBST(LIBFONTCONFIG_CFLAGS)
458 AC_SUBST(LIBFONTCONFIG_RPATH)
459
460 if pkg-config --exists freetype2 2>/dev/null; then
461     FREETYPE2_CFLAGS=`pkg-config --cflags freetype2`
462     FREETYPE2_LDFLAGS=`pkg-config --libs freetype2`
463     AC_DEFINE(HAVE_FREETYPE2, 1, [Define if you have FreeType2 library])
464 fi
465 AC_SUBST(FREETYPE2_CFLAGS)
466 AC_SUBST(FREETYPE2_LDFLAGS)
467 dnl =======================================================
468 dnl FILE: ./kcontrol/info/configure.in.in
469 dnl =======================================================
470
471 # libmach for Tru64
472 # linux/raw.h for Linux
473 # devinfo.h, libdevinfo for the list of {IRQ,DMA,IOPORTS/MEMRANGES} for FreeBSD
474
475 case "$host" in
476   *-*-osf*)
477     AC_CHECK_LIB(mach, vm_statistics, LIB_TRU64_MACH="-lmach")dnl
478     ;;
479   *-*-linux*)
480     AC_CHECK_HEADERS(linux/raw.h sys/raw.h)dnl
481     ;;
482   *-*-freebsd*)
483     AC_CHECK_HEADERS(devinfo.h)
484     AC_CHECK_LIB(devinfo, devinfo_foreach_rman, LIBDEVINFO="-ldevinfo")
485     ;;
486 esac
487 AC_SUBST(LIB_TRU64_MACH)
488
489 AC_HAVE_GL( have_gl=yes, have_gl=no )
490 AM_CONDITIONAL(COMPILE_GL_INFO, test x$have_gl = xyes)
491
492 KDE_CHECK_LONG_LONG
493 dnl =======================================================
494 dnl FILE: ./kcontrol/input/configure.in.in
495 dnl =======================================================
496
497 AC_ARG_WITH(libusb,
498     [AC_HELP_STRING(--with-libusb,
499         [enable control of some mouse models through libusb @<:@default=check@:>@])],
500     [], with_libusb=check)
501
502 USB_LIBS=
503 USB_CFLAGS=
504 have_libusb=no
505 if test "x$with_libusb" != xno; then
506     AC_PATH_PROG(LIBUSBCONFIG,libusb-config,no)
507     if test $LIBUSBCONFIG != "no"; then
508         USB_LIBS="$($LIBUSBCONFIG --libs)"
509         USB_CFLAGS="$($LIBUSBCONFIG --cflags)"
510     
511         AC_CHECK_LIB(usb,main,
512             [have_libusb=yes
513              AC_DEFINE(HAVE_LIBUSB, 1, [Defined if you have libusb])],
514             [], [$USB_LIBS]
515         )
516     fi
517     if test "x$with_libusb" != xcheck && test "x$have_libusb" = xno; then
518         AC_MSG_ERROR([--with-libusb was given, but test for libusb failed])
519     fi
520 fi
521 AC_SUBST(USB_LIBS)
522 AC_SUBST(USB_CFLAGS)
523 dnl =======================================================
524 dnl FILE: ./kcontrol/joystick/configure.in.in
525 dnl =======================================================
526
527 case "$host" in
528   *-*-linux*)
529         FOUND_LINUX=yes
530         ;;
531 esac
532
533 AM_CONDITIONAL(include_kcontrol_joystick, test "$FOUND_LINUX" = "yes")
534 dnl =======================================================
535 dnl FILE: ./kcontrol/kfontinst/configure.in.in
536 dnl =======================================================
537
538 FONTINST_SUBDIR=""
539 FONTINST_TN=""
540
541 # Check for FreeType...
542 KFI_FOUND_FREETYPE=0
543
544 KDE_FIND_PATH(freetype-config, FREETYPE_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
545               AC_MSG_WARN([Could not find libfreetype anywhere, check http://www.freetype.org/])
546              ])
547
548 if test -n "$FREETYPE_CONFIG"; then
549     vers=`$FREETYPE_CONFIG --version 2>/dev/null | sed -e 's/libfreetype //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
550     if test -n "$vers" && test "$vers" -ge 9002003
551     then
552         LIBFREETYPE_LIBS="`$FREETYPE_CONFIG --libs`"
553         LIBFREETYPE_RPATH=
554         for args in $LIBFREETYPE_LIBS; do
555             case $args in
556                 -L*)
557                 LIBFREETYPE_RPATH="$LIBFREETYPE_RPATH $args"
558                 ;;
559             esac
560         done
561         LIBFREETYPE_RPATH=`echo $LIBFREETYPE_RPATH | sed -e "s/-L/-R/g"`
562         LIBFREETYPE_CFLAGS="`$FREETYPE_CONFIG --cflags`"
563         KFI_FOUND_FREETYPE=1
564     else
565         AC_MSG_WARN([You need at least FreeType 2.1.3])
566     fi
567 fi
568
569 if test "$KFI_FOUND_FREETYPE" -eq 1; then
570     AC_SUBST(LIBFREETYPE_LIBS)
571     AC_SUBST(LIBFREETYPE_CFLAGS)
572     AC_SUBST(LIBFREETYPE_RPATH)
573
574     KFI_FOUND_FONTCONFIG=0
575     # check for fontconfig...
576     KDE_FIND_PATH(fontconfig-config, FONTCONFIG_CONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
577             KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
578                 AC_MSG_WARN([Could not find neither pkg-config nor fontconfig-config, check http://www.fontconfig.org/ ])
579             ])
580     ])
581
582     if test -n "$PKGCONFIG"; then
583         vers=`$PKGCONFIG fontconfig --modversion 2>/dev/null | sed -e 's/libfontconfig //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
584         if test -n "$vers" && test "$vers" -ge 2000000 ; then
585             LIBFONTCONFIG_LIBS="`$PKGCONFIG fontconfig --libs`"
586             LIBFONTCONFIG_RPATH=
587             for args in $LIBFONTCONFIG_LIBS; do
588                 case $args in
589                     -L*)
590                         LIBFONTCONFIG_RPATH="$LIBFONTCONFIG_RPATH $args"
591                         ;;
592                 esac
593             done
594             LIBFONTCONFIG_RPATH=`echo $LIBFONTCONFIG_RPATH | sed -e "s/-L/-R/g"`
595             LIBFONTCONFIG_CFLAGS="`$PKGCONFIG fontconfig --cflags`"
596             KFI_FOUND_FONTCONFIG=1
597         fi
598     fi
599
600     if test -n "$FONTCONFIG_CONFIG"; then
601         vers=`$FONTCONFIG_CONFIG --version 2>/dev/null | sed -e 's/libfontconfig //' | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
602         if test -n "$vers" && test "$vers" -ge 2000000 ; then
603             LIBFONTCONFIG_LIBS="`$FONTCONFIG_CONFIG --libs`"
604             LIBFONTCONFIG_RPATH=
605             for args in $LIBFONTCONFIG_LIBS; do
606                 case $args in
607                     -L*)
608                         LIBFONTCONFIG_RPATH="$LIBFONTCONFIG_RPATH $args"
609                         ;;
610                 esac
611             done
612             LIBFONTCONFIG_RPATH=`echo $LIBFONTCONFIG_RPATH | sed -e "s/-L/-R/g"`
613             LIBFONTCONFIG_CFLAGS="`$FONTCONFIG_CONFIG --cflags`"
614             KFI_FOUND_FONTCONFIG=1
615         fi
616     fi
617
618     if test "$KFI_FOUND_FONTCONFIG" -eq 1; then
619         AC_SUBST(LIBFONTCONFIG_LIBS)
620         AC_SUBST(LIBFONTCONFIG_CFLAGS)
621         AC_SUBST(LIBFONTCONFIG_RPATH)
622
623         # Check OS...
624         AC_MSG_CHECKING([OS])
625         case "$host" in
626             *-*-linux*) UNAME='Linux' ;;
627             *-*-freebsd*) UNAME='FreeBSD' ;;
628             *-*-kfreebsd-gnu*) UNAME='GNU/kFreeBSD' ;;
629             *-*-netbsd*) UNAME='NetBSD' ;;
630             *-*-solaris*) UNAME='Solaris' ;;
631             *-*-irix*) UNAME='Irix' ;;
632             *-*-aix*) UNAME='AIX' ;;
633             *-*-hpux*) UNAME='HPUX' ;;
634             *-*-darwin*) UNAME='Darwin' ;;
635             *) UNAME='Unknown' ;;
636             esac
637                 AC_MSG_RESULT($UNAME)
638         AC_SUBST(UNAME)
639
640         # Check for fontenc...
641         ac_font_enc_headers=0
642         KDE_CHECK_HEADER(X11/fonts/fontenc.h,[ac_font_enc_headers=1])
643         if test "$ac_font_enc_headers" = "0"; then
644             AC_MSG_WARN(FontEnc headers not found. FontEnc support disabled)
645         else
646             ac_LDFLAGS_save="$LDFLAGS"
647             ld_shared_flag=
648             KDE_CHECK_COMPILER_FLAG(shared, [ld_shared_flag="-shared"])
649             LDFLAGS="$LDFLAGS $ld_shared_flag $all_libraries -lz"
650             KDE_CHECK_LIB(fontenc,FontEncDirectory,ac_font_enc_lib=1,ac_font_enc_lib=0)
651             if test "$ac_font_enc_lib" = "1"; then
652                 LIB_FONT_ENC="-lfontenc"
653                 AC_DEFINE(HAVE_FONT_ENC, 1, [Defines if you have FontEnc])
654             fi
655             LDFLAGS="$ac_LDFLAGS_save"
656         fi
657         AC_SUBST(LIB_FONT_ENC)
658
659         FONTINST_SUBDIR="kfontinst"
660         # Check for Xft...
661         ac_xft_headers=0
662         ac_CXXFLAGS_save="$CXXFLAGS"
663         ac_CFLAGS_save="$CFLAGS"
664         ac_CPPFLAGS_save="$CPPFLAGS"
665         CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES $LIBFREETYPE_CFLAGS"
666         CFLAGS="$CXXFLAGS"
667         CPPFLAGS="$CXXFLAGS"
668         
669         AC_CHECK_HEADER(X11/Xft/Xft.h, [ac_xft_headers=1])
670         if test "$ac_xft_headers" -eq 1 ; then
671             LIBXFT_LIB=-lXft
672             AC_SUBST(LIBXFT_LIB)
673         else
674             AC_MSG_WARN([Missing Xft headers - disabling font previews!])
675         fi
676         CXXFLAGS="$ac_CXXFLAGS_save"
677         CFLAGS="$ac_CFLAGS_save"
678         CPPFLAGS="$ac_CPPFLAGS_save"
679     else
680         AC_MSG_WARN([Missing FontConfig - disabling kfontinst!])
681     fi
682 else
683     AC_MSG_WARN([Missing FreeType2 - disabling kfontinst!])
684 fi
685
686 AM_CONDITIONAL(include_fontinst_tn, test "$ac_xft_headers" -eq 1)
687
688 if test "$ac_xft_headers" -eq 1 ; then
689     AC_DEFINE(HAVE_XFT, 1, [Defines if you have Xft])
690 fi
691
692 AM_CONDITIONAL(include_kcontrol_kfontinst, test -n "$FONTINST_SUBDIR")
693 dnl =======================================================
694 dnl FILE: ./kcontrol/nics/configure.in.in
695 dnl =======================================================
696
697 AC_CHECK_FUNCS(getifaddrs getnameinfo)
698 AC_CHECK_MEMBERS([struct sockaddr.sa_len],,,[
699 #include <sys/types.h>
700 #include <sys/socket.h>])
701 dnl =======================================================
702 dnl FILE: ./kcontrol/randr/configure.in.in
703 dnl =======================================================
704
705 dnl -----------------------------------------------------
706 dnl X Resize and Rotate extension library check
707 dnl -----------------------------------------------------
708
709 KDE_CHECK_HEADERS(X11/extensions/Xrandr.h, [xrandr_h=yes], [xrandr_h=no], [#include <X11/Xlib.h>])
710 if test "$xrandr_h" = yes; then
711   KDE_CHECK_LIB(Xrandr, XRRSetScreenConfigAndRate, [
712     LIB_XRANDR=-lXrandr
713     AC_DEFINE_UNQUOTED(XRANDR_SUPPORT, 1, [Defined if your system has XRandR support])
714     RANDR_SUBDIR="randr"
715   ], [
716     RANDR_SUBDIR=""
717   ], -lXrender -lXext $X_EXTRA_LIBS)
718 else
719   LIB_XRANDR=
720 fi
721 AC_SUBST(LIB_XRANDR)
722 AM_CONDITIONAL(include_kcontrol_randr, test -n "$RANDR_SUBDIR")
723 dnl =======================================================
724 dnl FILE: ./kcontrol/screensaver/configure.in.in
725 dnl =======================================================
726
727 AC_HAVE_GL(
728     [
729     AC_CHECK_LIB(GL,glXChooseVisual,
730         [
731         AC_DEFINE(HAVE_GLXCHOOSEVISUAL, 1, [Define if you have glXChooseVisual()])
732         ])
733     ],[]
734     )
735 dnl =======================================================
736 dnl FILE: ./kcontrol/smartcard/configure.in.in
737 dnl =======================================================
738
739
740 KDE_CHECK_HEADER(kcarddb.h, FOUND_KSMCARD="yes", FOUND_KSMCARD="no")
741 AM_CONDITIONAL(include_kcontrol_smartcard, test "$FOUND_KSMCARD" = "yes")
742 dnl =======================================================
743 dnl FILE: ./kcontrol/usbview/configure.in.in
744 dnl =======================================================
745
746 case "$host" in
747   *-*-linux*|*-*-freebsd*|*-*-kfreebsd*-gnu)
748         FOUND_USBVIEW=yes
749         ;;
750 esac
751
752 AM_CONDITIONAL(include_kcontrol_usbview, test "$FOUND_USBVIEW" = "yes")
753
754 AC_ARG_WITH([usbids], AC_HELP_STRING([--with-usbids=PATH], [Use the usb.ids file at the specified path, instead of the local copy]))
755
756 if test "x$with_usbids" != "x" && test "x$with_usbids" != "xno"; then
757   AC_DEFINE_UNQUOTED(USBIDS_FILE, "$with_usbids", [Path for the usb.ids file to use])
758   dont_install_usbids="yes"
759 fi
760
761 AM_CONDITIONAL(install_usbids, test "x$dont_install_usbids" != "xyes")
762 dnl =======================================================
763 dnl FILE: ./kcontrol/view1394/configure.in.in
764 dnl =======================================================
765
766 AC_ARG_WITH(libraw1394,
767   [AC_HELP_STRING(--with-libraw1394,
768     [enable visualization of ieee1394 devices through libraw1394 @<:@default=check@:>@])],
769   [], with_libraw1394=check)
770
771 VIEW1394_SUBDIR=
772 if test "x$with_libraw1394" != xno; then
773   KDE_CHECK_HEADER(libraw1394/raw1394.h, VIEW1394_SUBDIR=view1394)
774
775   if test "x$with_libraw1394" != xcheck && test -z "$VIEW1394_SUBDIR"; then
776     AC_MSG_ERROR([--with-libraw1394 was given, but test for libraw1394 failed])
777   fi
778 fi
779
780 AM_CONDITIONAL(include_kcontrol_view1394, test -n "$VIEW1394_SUBDIR")
781 dnl =======================================================
782 dnl FILE: ./kdeprint/configure.in.in
783 dnl =======================================================
784
785 dnl nothing special
786 dnl =======================================================
787 dnl FILE: ./kdeprint/kprinter/configure.in.in
788 dnl =======================================================
789
790 AC_CHECK_FUNCS(sigset sigaction)
791 dnl =======================================================
792 dnl FILE: ./kdesktop/configure.in.in
793 dnl =======================================================
794
795 xss_save_ldflags="$LDFLAGS"
796 LDFLAGS="$X_LDFLAGS"
797
798 LIB_XSS=
799
800 AC_ARG_WITH([xscreensaver],
801   AC_HELP_STRING([--without-xscreensaver], [Disable XScreenSaver support (default: check)]) )
802
803 if test "x$with_xscreensaver" != "xno"; then
804   KDE_CHECK_HEADER(X11/extensions/scrnsaver.h,
805     [
806     AC_CHECK_LIB(Xext,XScreenSaverQueryInfo,
807         [
808         AC_DEFINE(HAVE_XSCREENSAVER, 1, [Define if you have the XScreenSaver extension])
809         LIB_XSS="-lXext"
810         ],
811         [
812         ld_shared_flag=
813         xss_save_cxxflags="$CXXFLAGS"
814         CXXFLAGS="$CXXFLAGS $lt_prog_compiler_pic_CXX"
815         KDE_CHECK_COMPILER_FLAG(shared, [ld_shared_flag="-shared"])
816         AC_CHECK_LIB(Xss,XScreenSaverQueryInfo,
817             [
818             AC_DEFINE(HAVE_XSCREENSAVER, 1, [Define if you have the XScreenSaver extension])
819             LIB_XSS="-lXss"
820             ],
821             [],
822             [ $ld_shared_flag $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS ])
823         CXXFLAGS="$xss_save_cxxflags"
824         ],
825         [ $X_PRE_LIBS -lX11 $X_EXTRA_LIBS ])
826      ], [],
827      [
828      #include <X11/Xlib.h>
829      ] )
830 fi
831
832 AC_SUBST(LIB_XSS)
833 LDFLAGS="$xss_save_ldflags"
834 dnl =======================================================
835 dnl FILE: ./kdesktop/lock/configure.in.in
836 dnl =======================================================
837
838 xss_save_ldflags="$LDFLAGS"
839 LDFLAGS="$X_LDFLAGS"
840
841 LIB_XF86MISC=
842
843 KDE_CHECK_HEADER(X11/extensions/xf86misc.h,
844     [
845     AC_CHECK_LIB(Xxf86misc,XF86MiscQueryVersion,
846         [
847         AC_DEFINE(HAVE_XF86MISC, 1, [Define if you have the xf86misc extension])
848         LIB_XF86MISC="-lXxf86misc"
849         ],
850         [], [ $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS ])
851     ],[],
852     [
853     #include <X11/Xlib.h>
854     ])
855 AC_SUBST(LIB_XF86MISC)
856
857 if test -n "$LIB_XF86MISC"; then
858     AC_CHECK_LIB(Xxf86misc,XF86MiscSetGrabKeysState,
859         [
860         AC_DEFINE(HAVE_XF86MISCSETGRABKEYSSTATE, 1, [Define if you have XF86MiscSetGrabKeysState()])
861         ],
862         [], [ $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS ])
863 fi
864
865 LDFLAGS="$xss_save_ldflags"
866
867 AC_HAVE_GL(
868     [
869     AC_CHECK_LIB(GL,glXChooseVisual,
870         [
871         AC_DEFINE(HAVE_GLXCHOOSEVISUAL, 1, [Define if you have glXChooseVisual()])
872         ])
873     ],[]
874     )
875 dnl =======================================================
876 dnl FILE: ./kdesu/configure.in.in
877 dnl =======================================================
878
879 dnl Check for "struct ucred"
880 AC_MSG_CHECKING("struct ucred")
881 AC_TRY_COMPILE(
882 [
883   #define _GNU_SOURCE 1
884   #include <sys/socket.h>
885 ],
886 [
887   struct ucred red;
888 ],  have_ucred=yes
889   , have_ucred=no
890 )
891 if test "$have_ucred" = "yes"; then
892     AC_DEFINE(HAVE_STRUCT_UCRED, 1, [Define if you have the struct ucred])
893     AC_MSG_RESULT(yes)
894 else
895     AC_MSG_RESULT(no)
896 fi
897
898 dnl Check for the group "nogroup" or "nobody" Use -2 otherwise.
899 AC_MSG_CHECKING(nogroup)
900 AC_TRY_RUN([
901     #include <grp.h>
902     #include <sys/types.h>
903
904     int main() 
905     {
906         struct group *grp = getgrnam("nogroup");
907         if (grp) return 0;
908         return 1;
909     }
910 ], nogroup=nogroup, 
911 AC_TRY_RUN([
912     #include <grp.h>
913     #include <sys/types.h>
914
915     int main() 
916     {
917         struct group *grp = getgrnam("nobody");
918         if (grp) return 0;
919         return 1;
920     }
921 ], nogroup=nobody, 
922 nogroup=65534, nogroup=65534), nogroup=65534)
923 AC_MSG_RESULT($nogroup)
924 AC_SUBST(nogroup)
925 AC_CHECK_FUNCS(getpeereid)
926
927 AC_ARG_WITH(sudo-kdesu-backend,
928             AC_HELP_STRING([--with-sudo-kdesu-backend],
929                            [use sudo as backend for kdesu (default is su)]),
930 [
931     if test x$withval = xyes; then
932         use_kdesu_backend="sudo"
933     else
934         use_kdesu_backend="su"
935     fi
936 ],
937     use_kdesu_backend="su"
938 )
939
940 AC_DEFINE_UNQUOTED(DEFAULT_SUPER_USER_COMMAND, "$use_kdesu_backend", [Use su or sudo])
941 dnl =======================================================
942 dnl FILE: ./kdm/configure.in.in
943 dnl =======================================================
944
945 KDE_FIND_PATH(xmkmf, XMKMF, [], [AC_MSG_ERROR([xmkmf/imake not found. Please make sure it's in PATH!])])
946
947 dnl ask imake about various X settings
948 AC_MSG_CHECKING([X paths])
949 imkv=8
950 test "$kde_cv_defines_imake_version" = $imkv || unset kde_cv_defines_imake
951 AC_CACHE_VAL(kde_cv_defines_imake, [
952   rm -fr conftestdir
953   if mkdir conftestdir; then
954     cd conftestdir
955     cat > Imakefile <<'EOF'[
956
957 acimake:
958         @echo "XBINDIR=\"$(BINDIR)\" XLIBDIR=\"$(LIBDIR)\""
959
960 ]EOF
961     if $XMKMF >&5 2>&1 && test -f Makefile; then
962         kde_cv_defines_imake=`${MAKE-make} acimake 2> /dev/null | grep -v "^make"`
963         kde_cv_defines_imake_version=$imkv
964     else
965         AC_MSG_RESULT([failed])
966         AC_MSG_ERROR([$XMKMF (imake) failed.
967 Make sure you have all necessary X development packages installed.
968 On some systems a missing /lib/cpp symlink is at fault.])
969     fi
970     cd ..
971     rm -fr conftestdir
972   else
973     AC_MSG_RESULT([failed])
974     AC_MSG_ERROR([cannot create temporary directory])
975   fi
976 ])
977 AC_MSG_RESULT([done])
978 eval "$kde_cv_defines_imake"
979 AC_DEFINE_UNQUOTED(XBINDIR, "$XBINDIR", [X binaries directory])
980 AC_DEFINE_UNQUOTED(XLIBDIR, "$XLIBDIR", [X libraries directory])
981
982 if test -f /etc/ttys; then
983   AC_DEFINE(BSD_INIT, 1, [Define if the system uses a BSD-style init])
984 fi
985
986 AC_CHECK_FUNCS([getttyent])
987 case $host_os in
988         linux*) ac_cv_func_getutxent=no;;
989         darwin*) ac_cv_func_getutxent=no;;
990         kfreebsd*-gnu) ac_cv_func_getutxent=no;;
991         *) AC_CHECK_FUNC([getutxent]);;
992 esac
993 if test $ac_cv_func_getutxent = yes; then
994         AC_DEFINE(HAVE_UTMPX, 1, [Define if the system uses extended utmp])
995 else
996         AC_CHECK_FUNC([getutent], ,
997                 [AC_DEFINE(BSD_UTMP, 1, [Define if the system has no getutent])])
998 fi
999
1000 AC_CHECK_MEMBERS([struct utmp.ut_user], , , [#include <utmp.h>])
1001 AC_CHECK_MEMBERS([struct passwd.pw_expire], , , [#include <pwd.h>])
1002 AC_CHECK_MEMBERS([struct sockaddr_in.sin_len], , , [
1003 #include <sys/socket.h>
1004 #include <netinet/in.h>
1005 ])
1006
1007 ac_save_libs=$LIBS
1008 LIBS="$LIBS $LIBUTIL"
1009 AC_CHECK_FUNCS([setlogin setusercontext getusershell login_getclass auth_timeok])
1010 LIBS=$ac_save_libs
1011
1012 dnl is getifaddrs always available without additional libs?
1013 AC_CHECK_FUNCS([mkstemp setproctitle sysinfo strnlen getifaddrs])
1014
1015 AC_CHECK_FUNCS([arc4random], ,
1016         [
1017 dnl assume that /dev/random is non-blocking if /dev/urandom does not exist
1018 for i in urandom random; do
1019   if test -c /dev/$i; then
1020     AC_DEFINE_UNQUOTED(DEV_RANDOM, "/dev/$i", [Define the system's entropy device])
1021     break
1022   fi
1023 done
1024         ])
1025
1026 AC_CHECK_FUNC(vsyslog, [
1027   AC_DEFINE(USE_SYSLOG, 1, [Define if kdm should be built with syslog support])])
1028
1029 kdm_no_Xau=false
1030 kdm_no_Xdmcp=false
1031
1032 AC_CHECK_LIB(Xau, main, [:], 
1033         [
1034           kdm_no_Xau=true
1035           DO_NOT_COMPILE="$DO_NOT_COMPILE kdm"
1036         ], 
1037           $X_LDFLAGS -lX11 $LIBSOCKET)
1038
1039 AC_ARG_WITH(xdmcp,
1040         AC_HELP_STRING([--without-xdmcp],[build kdm without xdmcp support [default=with xdmcp]]), ,
1041         [with_xdmcp=yes])
1042 if test "x$with_xdmcp" = xyes; then
1043   AC_CHECK_LIB(Xdmcp, main, [LIBXDMCP="-lXdmcp"], , $X_LDFLAGS -lX11 $LIBSOCKET)
1044   if test -n "$LIBXDMCP"; then
1045     cppflags_safe=$CPPFLAGS
1046     CPPFLAGS="$CPPFLAGS $X_INCLUDES"
1047     AC_CHECK_HEADER(X11/Xdmcp.h, [HAVE_X11_XDMCP_H=1], , [#include <X11/Xmd.h>])
1048     CPPFLAGS=$cppflags_safe
1049   fi
1050   if test -z "$HAVE_X11_XDMCP_H"; then
1051     kdm_no_Xdmcp=true
1052     DO_NOT_COMPILE="$DO_NOT_COMPILE kdm"
1053   fi
1054   AC_DEFINE(XDMCP, 1, [Define if kdm should be built with XDMCP support])
1055   ac_save_libs=$LIBS
1056   LIBS="$LIBS $LIBXDMCP"
1057   AC_CHECK_FUNC(XdmcpWrap, [
1058     AC_DEFINE(HASXDMAUTH, 1, [Define if kdm should be built with XDMAUTH support])
1059   ])
1060   LIBS=$ac_save_libs
1061 fi
1062 AC_SUBST(LIBXDMCP)
1063
1064 KRB4_INCS=
1065 KRB4_LIBS=
1066 KRB4_RPATH=
1067
1068 AC_MSG_CHECKING(whether to use Kerberos v4)
1069 AC_ARG_WITH(krb4,
1070 AC_HELP_STRING([--with-krb4=PATH],[Compile in Kerberos v4 support]),
1071 [ test "x$with_krb4" = xyes && with_krb4=/usr/kerberos ],
1072 [ with_krb4=no ]
1073 )
1074 case "$with_krb4" in
1075 no)
1076   AC_MSG_RESULT(no)
1077   ;;
1078 *)
1079   AC_MSG_RESULT(yes)
1080   AC_DEFINE_UNQUOTED(KRB4, 1, [define if you have Kerberos IV])
1081   KRB4_INCS="-I$with_krb4/include"
1082   KRB4_LIBS="-L$with_krb4/lib -lkrb -ldes"
1083   if test "$USE_RPATH" = "yes" ; then
1084     KRB4_RPATH="-R $with_krb4/lib"
1085   fi
1086   AC_CHECK_LIB(resolv, dn_expand, KRB4_LIBS="$KRB4_LIBS -lresolv")
1087   ;;
1088 esac
1089
1090 AC_MSG_CHECKING(whether to use AFS)
1091 AC_ARG_WITH(afs,
1092   AC_HELP_STRING([--with-afs],[Compile in AFS support (requires KTH krb4)]), , 
1093   [ with_afs=no ])
1094 if test "$with_afs" = no; then
1095   AC_MSG_RESULT(no)
1096 else
1097   if test "$with_krb4" = no; then
1098     AC_MSG_RESULT(no)
1099     AC_MSG_WARN("AFS requires Kerberos v4 support.")
1100     with_afs=no
1101   else
1102     AC_MSG_RESULT(yes)
1103     AC_DEFINE_UNQUOTED(AFS, 1, [define if you have KTH Kerberos IV and AFS])
1104     KRB4_LIBS="$KRB4_LIBS -lkafs"
1105     if test -n "$os_aix"; then
1106       KRB4_LIBS="$KRB4_LIBS -lld"
1107     fi
1108   fi
1109 fi
1110
1111 AC_SUBST(KRB4_INCS)
1112 AC_SUBST(KRB4_LIBS)
1113 AC_SUBST(KRB4_RPATH)
1114
1115 AC_CHECK_LIB(s, main, [LIB_LIBS="-ls"]) dnl for AIX
1116 AC_SUBST(LIB_LIBS)
1117
1118 AC_CHECK_LIB(posix4, sched_yield, [LIBPOSIX4=-lposix4])
1119 AC_SUBST(LIBPOSIX4)
1120
1121 KRB5_INCS=
1122 KRB5_LIBS=
1123 KRB5_RPATH=
1124
1125 AC_MSG_CHECKING([whether to use Kerberos5 for Xauth cookies in kdm])
1126 AC_ARG_WITH(krb5auth,
1127   AC_HELP_STRING([--with-krb5auth=PATH],[Use Kerberos5 for Xauth cookies in kdm]), ,
1128   [ with_krb5auth=no ])
1129 if test "x$with_krb5auth" = xno; then
1130   AC_MSG_RESULT(no)
1131 else
1132   AC_MSG_RESULT(yes)
1133   if test "x$with_krb5auth" != xyes; then
1134     KRB5_INCS="-I$with_krb5auth/include"
1135     KRB5_LIBS="-L$with_krb5auth/lib"
1136     if test "$USE_RPATH" = "yes" ; then
1137       KRB5_RPATH="-R $with_krb5auth/lib"
1138     fi
1139   fi
1140   KRB5_LIBS="$KRB5_LIBS -lkrb5" dnl -lk5crypto -lcom_err -lresolv
1141   keepcflags=$CFLAGS
1142   CFLAGS="$KRB5_INCS $CFLAGS"
1143   AC_CHECK_HEADER(krb5/krb5.h, 
1144     [ AC_DEFINE(K5AUTH, 1, [Define if kdm should use Kerberos 5 for Xauth cookies.]) ],
1145     [ AC_MSG_ERROR([--with-krb5auth requires Kerberos5 header files.
1146 Due to a problem with X includes you probably have to run "ln -s . krb5"
1147 in the directory where the krb5.h include resides to make things actually work.])])
1148   CFLAGS="$keepcflags"
1149 fi
1150
1151 AC_SUBST(KRB5_INCS)
1152 AC_SUBST(KRB5_LIBS)
1153 AC_SUBST(KRB5_RPATH)
1154
1155 AC_MSG_CHECKING([whether to use Sun's secure RPC for Xauth cookies in kdm])
1156 AC_ARG_WITH(rpcauth,
1157   AC_HELP_STRING([--with-rpcauth],[Use Sun's secure RPC for Xauth cookies in kdm.]), , 
1158   [ with_rpcauth=no ])
1159 if test "x$with_rpcauth" = xno; then
1160   AC_MSG_RESULT(no)
1161 else
1162   AC_MSG_RESULT(yes)
1163   AC_CHECK_HEADER(rpc/rpc.h, 
1164     [ AC_DEFINE(SECURE_RPC, 1, [Define if kdm should use Sun's secure RPC for Xauth cookies.]) ],
1165     [ AC_MSG_ERROR([--with-rpcauth requires Sun RPC header files.])])
1166 fi
1167
1168 if test "x$use_pam" = xyes; then
1169     AC_DEFINE(USE_PAM, 1, [Define if kdm should use PAM])
1170 elif test "x$use_shadow" = xyes; then
1171     AC_DEFINE(USESHADOW, 1, [Define if kdm should use shadow passwords])
1172 fi
1173 if test "x$with_krb4" != xno; then
1174     AC_DEFINE(KERBEROS, 1, [Define if kdm should use Kerberos IV])
1175     if test "x$with_afs" = xno; then
1176         AC_DEFINE(NO_AFS, 1, [Define if kdm should not use AFS])
1177     fi
1178 fi
1179
1180 AC_ARG_WITH(kdm-xconsole,
1181         AC_HELP_STRING([--with-kdm-xconsole],[build kdm with built-in xconsole [default=no]]), ,
1182         [with_kdm_xconsole=no])
1183 if test "x$with_kdm_xconsole" = xyes; then
1184     AC_DEFINE(WITH_KDM_XCONSOLE, 1, [Build kdm with built-in xconsole])
1185 fi
1186
1187 ########### Check for DBus
1188
1189   AC_MSG_CHECKING(for DBus)
1190
1191   dbus_inc=NOTFOUND
1192   dbus_lib=NOTFOUND
1193   dbus=NOTFOUND
1194
1195   search_incs="$kde_includes $kde_extra_includes /usr/include /usr/include/dbus-1.0 /usr/local/include /usr/local/include/dbus-1.0"
1196   AC_FIND_FILE(dbus/dbus.h, $search_incs, dbus_incdir)
1197
1198   search_incs_arch_deps="$kde_includes $kde_extra_includes /usr/lib$kdelibsuff/dbus-1.0/include /usr/local/lib$kdelibsuff/dbus-1.0/include"
1199   AC_FIND_FILE(dbus/dbus-arch-deps.h, $search_incs_arch_deps, dbus_incdir_arch_deps)
1200
1201   if test -r $dbus_incdir/dbus/dbus.h && test -r $dbus_incdir_arch_deps/dbus/dbus-arch-deps.h ; then
1202     DBUS_INCS="-I$dbus_incdir -I$dbus_incdir_arch_deps"
1203     dbus_inc=FOUND
1204   fi
1205
1206   search_libs="$kde_libraries $kde_extra_libs /usr/lib$kdelibsuff /usr/local/lib$kdelibsuff"
1207   AC_FIND_FILE(libdbus-1.so, $search_libs, dbus_libdir)
1208
1209   if test -r $dbus_libdir/libdbus-1.so ; then
1210     DBUS_LIBS="-L$dbus_libdir -ldbus-1"
1211     dbus_lib=FOUND
1212   fi
1213
1214   if test $dbus_inc != FOUND || test $dbus_lib != FOUND ; then 
1215     KDE_PKG_CHECK_MODULES( DBUS, "dbus-1", [ DBUS_INCS=$DBUS_CFLAGS; dbus_inc=FOUND; dbus_lib=FOUND; ] , AC_MSG_RESULT( Nothing found on PKG_CONFIG_PATH ) )
1216   fi
1217
1218   dbus_bus_var=`pkg-config --variable=system_bus_default_address dbus-1 2>/dev/null`
1219   if test -z "$dbus_bus_var"; then
1220         dbus_bus_var="unix:path=/var/run/dbus/system_bus_socket"
1221   fi
1222   AC_DEFINE_UNQUOTED(DBUS_SYSTEM_BUS, "$dbus_bus_var", [Define the unix domain path for dbus system bus])
1223
1224   if test $dbus_inc = FOUND && test $dbus_lib = FOUND ; then
1225     AC_MSG_RESULT(headers $DBUS_INCS libraries $DBUS_LIBS)
1226     dbus=FOUND
1227   else
1228     AC_MSG_RESULT(searched but not found)
1229   fi
1230
1231   AC_SUBST(DBUS_INCS)
1232   AC_SUBST(DBUS_LIBS)
1233
1234 dnl AC_OUTPUT(kdm/kfrontend/sessions/kde.desktop)
1235
1236
1237 AC_ARG_WITH(libaudit,
1238   [  --with-libaudit=[auto/yes/no]  Add Linux audit support [default=auto]],,
1239   with_libaudit=auto)
1240
1241 # Check for Linux auditing API
1242 #
1243 # libaudit detection
1244 if test x$with_libaudit = xno ; then
1245     have_libaudit=no;
1246 else
1247     # See if we have audit daemon library
1248     AC_CHECK_LIB(audit, audit_log_user_message,
1249                  have_libaudit=yes, have_libaudit=no)
1250 fi
1251
1252 AM_CONDITIONAL(HAVE_LIBAUDIT, test x$have_libaudit = xyes)
1253
1254 if test x$have_libaudit = xyes ; then
1255     EXTRA_DAEMON_LIBS="$EXTRA_DAEMON_LIBS -laudit"
1256     AC_DEFINE(HAVE_LIBAUDIT,1,[linux audit support])
1257 fi
1258
1259 dnl =======================================================
1260 dnl FILE: ./khelpcenter/configure.in.in
1261 dnl =======================================================
1262
1263 dnl AC_OUTPUT(khelpcenter/searchhandlers/khc_docbookdig.pl)
1264 dnl AC_OUTPUT(khelpcenter/searchhandlers/khc_htdig.pl)
1265 dnl =======================================================
1266 dnl FILE: ./khotkeys/configure.in.in
1267 dnl =======================================================
1268
1269 dnl ---------------------------------------------------------------------------
1270 dnl check if compiler compiles correctly something like this :
1271 dnl class A { virtual A* me(); };
1272 dnl class X {};
1273 dnl class B : public X, public A { virtual B* me(); };
1274 dnl stupid gcc doesn't even bother to warn it can't do it correctly
1275 dnl ---------------------------------------------------------------------------
1276
1277 AC_MSG_CHECKING(if covariant return works)
1278 AC_CACHE_VAL(kde_cv_covariant_return,
1279     [
1280     kde_cv_covariant_return=no
1281     AC_LANG_SAVE
1282     AC_LANG_CPLUSPLUS
1283     AC_TRY_RUN( 
1284         [
1285         class A { public: virtual A* me(); };
1286         class X { public: int x; virtual void ff() {}; };
1287         class B : public X, public A { public: virtual B* me(); };
1288         int foo( A* a )
1289             {
1290             A* aa = a->me();
1291             return a == aa;
1292             }
1293         int main()
1294             {
1295             B* b = new B;
1296             return foo( b ) == 0;
1297             }
1298         A* A::me() { return this; }
1299         B* B::me() { return this; }
1300         ],
1301         [ kde_cv_covariant_return=yes ])
1302     AC_LANG_RESTORE
1303     ])
1304
1305 if test "$kde_cv_covariant_return" = "no"; then
1306     AC_MSG_RESULT(no)
1307     AC_DEFINE(COVARIANT_RETURN_BROKEN, 1,
1308         [Define if covariant return in virtual methods works])
1309 else
1310     AC_MSG_RESULT(yes)
1311 fi
1312
1313
1314 dnl ---------------------------------------------------------------------------
1315 dnl check for arts for speech recognition
1316 dnl ---------------------------------------------------------------------------
1317
1318
1319 artsc_config_test_path=$prefix/bin:$exec_prefix/bin:$KDEDIR/bin:$PATH
1320 AC_PATH_PROG(ARTSCCONFIG, artsc-config, no, $artsc_config_test_path)
1321
1322 if test "x$build_arts" = "xyes" && test "x$ARTSCCONFIG" != "xno" ; then
1323         LIB_ARTS="-lartskde"
1324         ARTS_PREFIX=[`$ARTSCCONFIG --arts-prefix`]
1325         ARTS_CFLAGS="-I$ARTS_PREFIX/include/arts"
1326         AC_DEFINE(HAVE_ARTS, 1, [Defined for arts support in khotkeys])
1327         KHOTKEYS_ARTS_SUBDIR=arts
1328 else
1329         LIB_ARTS=""
1330         ARTS_CFLAGS=""
1331         KHOTKEYS_ARTS_SUBDIR=
1332 fi
1333
1334 AC_SUBST(LIB_ARTS)
1335 AC_SUBST(ARTS_CFLAGS)
1336 AC_SUBST(KHOTKEYS_ARTS_SUBDIR)
1337 dnl =======================================================
1338 dnl FILE: ./kicker/configure.in.in
1339 dnl =======================================================
1340
1341 dnl Check for pkg-config
1342 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
1343
1344 if test "$PKG_CONFIG" = "no"; then
1345   AC_MSG_ERROR([
1346 This package requires pkg-config.
1347 ])
1348 fi
1349
1350 dnl Check for Glib-2.0
1351 # GLIB_CFLAGS:  cflags for compiling glib dependant sources
1352 # GLIB_LIBADD:  glib libraries (-l options)
1353 # GLIB_LDFLAGS: flags containing path to glib libraries (-L options)
1354
1355 GLIB_PACKAGES="gmodule-2.0 gthread-2.0"
1356 GLIB_VERSION="1.3.3"
1357 AC_MSG_CHECKING(for GLib-2.0 (at least $GLIB_VERSION))
1358
1359 if $PKG_CONFIG --atleast-pkgconfig-version 0.15 ; then
1360    if $PKG_CONFIG --atleast-version $GLIB_VERSION $GLIB_PACKAGES >/dev/null 2>&1 ; then
1361        GLIB_CFLAGS="`$PKG_CONFIG --cflags $GLIB_PACKAGES`"
1362        GLIB_LIBADD="`$PKG_CONFIG --libs-only-l --libs-only-other $GLIB_PACKAGES`"
1363        GLIB_LDFLAGS="`$PKG_CONFIG --libs-only-L $GLIB_PACKAGES`"
1364        AC_MSG_RESULT(yes)
1365    fi
1366 else
1367    if $PKG_CONFIG --atleast-version $GLIB_VERSION $GLIB_PACKAGES >/dev/null 2>&1 ; then
1368        GLIB_CFLAGS="`$PKG_CONFIG --cflags $GLIB_PACKAGES`"
1369        GLIB_LIBADD="`$PKG_CONFIG --libs-only-l $GLIB_PACKAGES`"
1370        GLIB_LDFLAGS="`$PKG_CONFIG --libs-only-L $GLIB_PACKAGES`"
1371        AC_MSG_RESULT(yes)
1372        AC_MSG_WARN([you may need to run make LDFLAGS=-pthread to compile arts])
1373    fi
1374 fi
1375
1376 if test -z "$GLIB_LIBADD"; then
1377         AC_MSG_RESULT(not installed)
1378     DO_NOT_COMPILE="$DO_NOT_COMPILE kerry gmcop"
1379 fi
1380
1381 AC_SUBST(GLIB_CFLAGS)
1382 AC_SUBST(GLIB_LIBADD)
1383 AC_SUBST(GLIB_LDFLAGS)
1384
1385 dnl Check for libbeagle 0.2.0
1386 # LIBBEAGLE_CFLAGS:  cflags for compiling libbeagle dependant sources
1387 # LIBBEAGLE_LIBADD:  libbeagle libraries (-l options)
1388 # LIBBEAGLE_LDFLAGS: flags containing path to libbeagle libraries (-L options)
1389
1390 LIBBEAGLE_PACKAGES="libbeagle-0.0"
1391 LIBBEAGLE_VERSION="0.2.4"
1392 AC_MSG_CHECKING(for libbeagle-0.2.4 (at least $LIBBEAGLE_VERSION))
1393
1394 if $PKG_CONFIG --atleast-pkgconfig-version 0.15 ; then
1395    if $PKG_CONFIG --atleast-version $LIBBEAGLE_VERSION $LIBBEAGLE_PACKAGES >/dev/null 2>&1 ; then
1396        LIBBEAGLE_CFLAGS="`$PKG_CONFIG --cflags $LIBBEAGLE_PACKAGES`"
1397        LIBBEAGLE_LIBADD="`$PKG_CONFIG --libs-only-l --libs-only-other $LIBBEAGLE_PACKAGES`"
1398        LIBBEAGLE_LDFLAGS="`$PKG_CONFIG --libs-only-L $LIBBEAGLE_PACKAGES`"
1399        AC_MSG_RESULT(yes)
1400    fi
1401 else
1402    if $PKG_CONFIG --atleast-version $LIBBEAGLE_VERSION $LIBBEAGLE_PACKAGES >/dev/null 2>&1 ; then
1403        LIBBEAGLE_CFLAGS="`$PKG_CONFIG --cflags $LIBBEAGLE_PACKAGES`"
1404        LIBBEAGLE_LIBADD="`$PKG_CONFIG --libs-only-l $LIBBEAGLE_PACKAGES`"
1405        LIBBEAGLE_LDFLAGS="`$PKG_CONFIG --libs-only-L $LIBBEAGLE_PACKAGES`"
1406        AC_MSG_RESULT(yes)
1407        AC_MSG_WARN([you may need to run make LDFLAGS=-pthread to compile arts])
1408    fi
1409 fi
1410
1411 if test -z "$LIBBEAGLE_LIBADD"; then
1412         AC_MSG_RESULT(not installed)
1413     DO_NOT_COMPILE="$DO_NOT_COMPILE kerry gmcop"
1414 fi
1415
1416 AC_SUBST(LIBBEAGLE_CFLAGS)
1417 AC_SUBST(LIBBEAGLE_LIBADD)
1418 AC_SUBST(LIBBEAGLE_LDFLAGS)
1419 dnl =======================================================
1420 dnl FILE: ./kicker/applets/naughty/configure.in.in
1421 dnl =======================================================
1422
1423 case "$host" in
1424   *-*-freebsd*) LIB_KVM="-lkvm" ;;
1425   *) LIB_KVM=""  ;;
1426 esac
1427 AC_SUBST(LIB_KVM)
1428 dnl =======================================================
1429 dnl FILE: ./kicker/extensions/kasbar/configure.in.in
1430 dnl =======================================================
1431
1432 AC_CHECK_HEADERS(sys/loadavg.h)
1433 dnl =======================================================
1434 dnl FILE: ./kicker/taskmanager/configure.in.in
1435 dnl =======================================================
1436
1437 if test "x$with_composite" != "xno"; then
1438   dnl XComposite check
1439   KDE_CHECK_HEADER(X11/extensions/Xcomposite.h, [xcomposite_h=yes], [xcomposite_h=no], [#include <X11/Xlib.h>])
1440   if test "$xcomposite_h" = yes; then
1441     KDE_CHECK_LIB(Xcomposite, XCompositeQueryExtension, [
1442       LIB_XCOMPOSITE=-lXcomposite
1443       AC_DEFINE_UNQUOTED(HAVE_XCOMPOSITE, 1, [Define if you have the XComposite extension])
1444     ], [], -lXext -lX11 $X_EXTRA_LIBS)
1445   else
1446     LIB_XCOMPOSITE=
1447   fi
1448   AC_SUBST(LIB_XCOMPOSITE)
1449 fi
1450
1451 dnl XFixes check
1452 KDE_CHECK_HEADER(X11/extensions/Xfixes.h, [xfixes_h=yes], [xfixes_h=no], [#include <X11/Xlib.h>])
1453 if test "$xfixes_h" = yes; then
1454   KDE_CHECK_LIB(Xfixes, XFixesQueryExtension, [
1455     LIB_XFIXES=-lXfixes
1456     AC_DEFINE_UNQUOTED(HAVE_XFIXES, 1, [Define if you have the XFixes extension])
1457   ], [], -lXext -lX11 $X_EXTRA_LIBS)
1458 else
1459   LIB_XFIXES=
1460 fi
1461 AC_SUBST(LIB_XFIXES)
1462 dnl =======================================================
1463 dnl FILE: ./kioslave/configure.in.in
1464 dnl =======================================================
1465
1466 KDE_CHECK_SSL
1467
1468 sasl2_header="no"
1469 SASL2_LIBS=""
1470
1471 KDE_CHECK_HEADERS(sasl.h)dnl SASL1 header is enough for kio_ldap
1472 KDE_CHECK_HEADERS(sasl/sasl.h, sasl2_header="yes")
1473 if test "$sasl2_header" = "yes" ; then
1474   KDE_CHECK_LIB(sasl2, sasl_client_init, SASL2_LIBS="-lsasl2")
1475 fi
1476
1477 if test "x$SASL2_LIBS" != "x" ; then
1478   AC_DEFINE_UNQUOTED(HAVE_LIBSASL2, 1, [Define if you have cyrus-sasl2 libraries])
1479 fi
1480 AC_SUBST(SASL2_LIBS)
1481 dnl =======================================================
1482 dnl FILE: ./kioslave/filter/configure.in.in
1483 dnl =======================================================
1484
1485 AC_FIND_BZIP2
1486 dnl =======================================================
1487 dnl FILE: ./kioslave/fish/configure.in.in
1488 dnl =======================================================
1489
1490 CFLAGS="$CFLAGS -D_GNU_SOURCE"
1491 CXXFLAGS="$CXXFLAGS -D_GNU_SOURCE"
1492
1493 AC_CHECK_HEADERS(termios.h pty.h libutil.h util.h sys/types.h sys/ioctl.h stropts.h)
1494
1495 kde_save_LIBS="$LIBS"
1496 LIBS="$LIBS $LIBUTIL"
1497 AC_CHECK_FUNCS(getpt openpty isastream)
1498 LIBS="$kde_save_LIBS"
1499 dnl =======================================================
1500 dnl FILE: ./kioslave/ldap/configure.in.in
1501 dnl =======================================================
1502
1503 AC_MSG_CHECKING(for LDAP support)
1504 AC_ARG_WITH(ldap,
1505 AC_HELP_STRING([--with-ldap=PATH],[Set path for LDAP files [default=check]]),
1506 [ case "$withval" in
1507   yes)
1508     with_ldap=CHECK
1509     ;;
1510   esac ],
1511 [ with_ldap=CHECK ]
1512 )dnl
1513
1514 if test "x$with_ldap" = "xCHECK" ; then
1515   with_ldap=NOTFOUND
1516   search_incs="$kde_includes /usr/include /usr/local/include"
1517   AC_FIND_FILE(ldap.h, $search_incs, ldap_incdir)
1518   if test -r $ldap_incdir/ldap.h ; then
1519     test "x$ldap_incdir" != "x/usr/include" && LDAP_INCS="-I$ldap_incdir"
1520     with_ldap=FOUND
1521   fi
1522   if test $with_ldap = FOUND ; then
1523     with_ldap=NOTFOUND
1524     for ext in la so sl a dylib ; do
1525       AC_FIND_FILE(libldap.$ext, $kde_libraries /usr/lib /usr/local/lib /usr/lib64,
1526         ldap_libdir)
1527       if test -r $ldap_libdir/libldap.$ext ; then
1528         if test "x$ldap_libdir" != "x/usr/lib" ; then
1529           LDAP_LIBS="-L$ldap_libdir "
1530           test "$USE_RPATH" = yes && LDAP_RPATH="-R $ldap_libdir"
1531         fi
1532         LDAP_LIBS="${LDAP_LIBS}-lldap"
1533         with_ldap=FOUND
1534         break
1535       fi
1536     done
1537   fi
1538 fi
1539
1540 case "$with_ldap" in
1541 no) AC_MSG_RESULT(no) ;;
1542 framework)
1543   LDAP_LIBS="-Xlinker -framework -Xlinker LDAP"
1544   AC_DEFINE_UNQUOTED(HAVE_LIBLDAP, 1, [Define if you have LDAP libraries])
1545   LDAP_SUBDIR="ldap"
1546   AC_MSG_RESULT(Apple framework)
1547   ;;
1548 FOUND)
1549   AC_MSG_RESULT(incs=$ldap_incdir libs=$ldap_libdir)
1550   ;;
1551 NOTFOUND) AC_MSG_RESULT(searched but not found) ;;
1552 *)
1553   AC_MSG_RESULT($with_ldap)
1554   ;;
1555 esac
1556
1557 LIB_LBER=
1558 KDE_CHECK_LIB(lber, ber_alloc, [LIB_LBER=-llber], [], -L$ldap_libdir)
1559 AC_SUBST(LIB_LBER)
1560
1561 AC_MSG_CHECKING(whether LDAP support can be compiled)
1562
1563   if test "x$with_ldap" != "xFOUND" ; then
1564     LDAP_ROOT="$with_ldap"
1565     if test "x$LDAP_ROOT" != "x/usr" ; then
1566       LDAP_INCS="-I${LDAP_ROOT}/include"
1567       LDAP_LIBS="-L${LDAP_ROOT}/lib "
1568       if test "$USE_RPATH" = "yes" ; then
1569         LDAP_RPATH="-R ${LDAP_ROOT}/lib"
1570       fi
1571     fi
1572     LDAP_LIBS="${LDAP_LIBS}-lldap"
1573   fi
1574   LDAP_LIBS="${LDAP_LIBS} ${LIB_LBER} ${LIBRESOLV}"
1575
1576   kde_safe_LIBS="$LIBS"
1577   kde_safe_CFLAGS="$CFLAGS"
1578   LIBS="$LIBS $all_libraries $LDAP_LIBS $KRB4_LIBS $X_EXTRA_LIBS"
1579   CFLAGS="$CFLAGS $all_includes $LDAP_INCS $KRB4_INCS"
1580   AC_LANG_SAVE
1581   AC_LANG_C
1582   AC_TRY_LINK(dnl
1583   [
1584   #include <ldap.h>
1585   #if LDAP_API_VERSION < 2004
1586   #error LDAP version too old, please upgrade to a library supporting API 2004 or higher
1587   #endif
1588   ],
1589   [
1590   LDAP *ldap;
1591   ],
1592   , with_ldap=no
1593   )
1594   AC_LANG_RESTORE
1595   CFLAGS=$kde_safe_CFLAGS
1596   LIBS=$kde_safe_LIBS
1597   if test "$with_ldap" = "no" ; then
1598     LDAP_INCS=
1599     LDAP_LIBS=
1600     LDAP_RPATH=
1601     LDAP_SUBDIR=
1602     AC_MSG_RESULT(no (but first try gave $msg))
1603   else
1604     AC_DEFINE_UNQUOTED(HAVE_LIBLDAP, 1, [Define if you have LDAP libraries])
1605     LDAP_SUBDIR="ldap"
1606     AC_MSG_RESULT(yes)
1607   fi
1608
1609 AC_SUBST(LDAP_INCS)
1610 AC_SUBST(LDAP_LIBS)
1611 AC_SUBST(LDAP_RPATH)
1612
1613 AM_CONDITIONAL(include_kioslave_ldap, test -n "$LDAP_SUBDIR")
1614 dnl =======================================================
1615 dnl FILE: ./kioslave/media/configure.in.in
1616 dnl =======================================================
1617
1618 ########### Check for linux/cdrom.h
1619
1620 AC_CHECK_HEADER(linux/cdrom.h,
1621 [
1622   AC_DEFINE_UNQUOTED([COMPILE_LINUXCDPOLLING], 1, [media linux cd polling compilation])
1623   LINUXCDPOLLING=yes
1624   AC_SUBST(LINUXCDPOLLING)
1625 ])
1626
1627
1628 AC_ARG_WITH(hal,AC_HELP_STRING([--with-hal],[Enable HAL support  [default=check]]),[hal_test="$withval"],[hal_test="yes"])
1629
1630 if test "x$hal_test" = "xyes" ; then
1631
1632 ########### Check for the HAL
1633   AC_MSG_CHECKING(for the HAL)
1634
1635   hal_inc=NOTFOUND
1636   hal_lib=NOTFOUND
1637   hal=NOTFOUND
1638
1639   search_incs="$kde_includes $kde_extra_includes /usr/include /usr/include/hal /usr/local/include /usr/local/include/hal"
1640   AC_FIND_FILE(libhal.h libhal-storage.h, $search_incs, hal_incdir)
1641
1642   if test -r $hal_incdir/libhal.h && test -r $hal_incdir/libhal-storage.h && grep LibHalVolume $hal_incdir/libhal-storage.h > /dev/null 2>&1; then
1643     HAL_INCS="-I$hal_incdir"
1644     hal_inc=FOUND
1645   fi
1646
1647   search_libs="$kde_libraries $kde_extra_libs /usr/lib$kdelibsuff /usr/local/lib$kdelibsuff"
1648   AC_FIND_FILE(libhal.so libhal-storage.so, $search_libs, hal_libdir)
1649
1650   if test -r $hal_libdir/libhal.so && test -r $hal_libdir/libhal-storage.so ; then
1651     HAL_LIBS="-L$hal_libdir -lhal -lhal-storage"
1652     hal_lib=FOUND
1653   fi
1654
1655   if test "$hal_inc" != FOUND || test "$hal_lib" != FOUND; then 
1656     KDE_PKG_CHECK_MODULES( HAL, hal > 0.5, [ HAL_INCS=$HAL_CFLAGS; hal_inc=FOUND; hal_lib=FOUND; ] , AC_MSG_RESULT(Nothing found on PKG_CONFIG_PATH) )
1657   fi
1658
1659   if test "$hal_inc" = FOUND && test "$hal_lib" = FOUND ; then
1660       AC_MSG_RESULT(headers $HAL_INCS  libraries $HAL_LIBS)
1661       hal=FOUND
1662   else
1663       AC_MSG_RESULT(searched but not found)
1664   fi
1665
1666
1667   AC_SUBST(HAL_INCS)
1668   AC_SUBST(HAL_LIBS)
1669
1670
1671 ########### Check for DBus
1672
1673   AC_MSG_CHECKING(for DBus)
1674
1675   dbus_inc=NOTFOUND
1676   dbus_lib=NOTFOUND
1677   dbus=NOTFOUND
1678
1679   search_incs="$kde_includes $kde_extra_includes /usr/include /usr/include/dbus-1.0 /usr/local/include /usr/local/include/dbus-1.0"
1680   AC_FIND_FILE(dbus/dbus.h, $search_incs, dbus_incdir)
1681
1682   search_incs_arch_deps="$kde_includes $kde_extra_includes /usr/lib$kdelibsuff/dbus-1.0/include /usr/local/lib$kdelibsuff/dbus-1.0/include"
1683   AC_FIND_FILE(dbus/dbus-arch-deps.h, $search_incs_arch_deps, dbus_incdir_arch_deps)
1684
1685   if test -r $dbus_incdir/dbus/dbus.h && test -r $dbus_incdir_arch_deps/dbus/dbus-arch-deps.h ; then
1686     DBUS_INCS="-I$dbus_incdir -I$dbus_incdir_arch_deps"
1687     dbus_inc=FOUND
1688   fi
1689
1690   search_libs="$kde_libraries $kde_extra_libs /usr/lib$kdelibsuff /usr/local/lib$kdelibsuff"
1691   AC_FIND_FILE(libdbus-1.so, $search_libs, dbus_libdir)
1692
1693   if test -r $dbus_libdir/libdbus-1.so ; then
1694     DBUS_LIBS="-L$dbus_libdir -ldbus-1"
1695     dbus_lib=FOUND
1696   fi
1697
1698   if test $dbus_inc != FOUND || test $dbus_lib != FOUND ; then 
1699     KDE_PKG_CHECK_MODULES( DBUS, "dbus-1", [ DBUS_INCS=$DBUS_CFLAGS; dbus_inc=FOUND; dbus_lib=FOUND; ] , AC_MSG_RESULT( Nothing found on PKG_CONFIG_PATH ) )
1700   fi
1701
1702   dbus_bus_var=`pkg-config --variable=system_bus_default_address dbus-1 2>/dev/null`
1703   if test -z "$dbus_bus_var"; then
1704         dbus_bus_var="unix:path=/var/run/dbus/system_bus_socket"
1705   fi
1706   AC_DEFINE_UNQUOTED(DBUS_SYSTEM_BUS, "$dbus_bus_var", [Define the unix domain path for dbus system bus])
1707
1708   if test $dbus_inc = FOUND && test $dbus_lib = FOUND ; then
1709     AC_MSG_RESULT(headers $DBUS_INCS libraries $DBUS_LIBS)
1710     dbus=FOUND
1711   else
1712     AC_MSG_RESULT(searched but not found)
1713   fi
1714
1715   AC_SUBST(DBUS_INCS)
1716   AC_SUBST(DBUS_LIBS)
1717
1718 ########### Check for DBus-Qt3 bindings
1719
1720   AC_MSG_CHECKING(for DBus-Qt3 bindings)
1721
1722   dbusqt_inc=NOTFOUND
1723   dbusqt_lib=NOTFOUND
1724   dbusqt=NOTFOUND
1725
1726   search_incs="$kde_includes $kde_extra_includes /usr/include /usr/include/dbus-1.0 /usr/local/include /usr/local/include/dbus-1.0"
1727   AC_FIND_FILE(dbus/connection.h, $search_incs, dbusqt_incdir)
1728
1729   if test -r $dbusqt_incdir/dbus/connection.h ; then
1730     have_qt_patch=0
1731     grep dbus_connection_setup_with_qt_main $dbusqt_incdir/dbus/connection.h \
1732     > /dev/null 2>&1 && have_qt_patch=1
1733     if test $have_qt_patch = 1 ; then
1734       DBUSQT_INCS="-I$dbusqt_incdir"
1735       dbusqt_inc=FOUND
1736     fi
1737   fi
1738
1739   search_libs="$kde_libraries $kde_extra_libs /usr/lib$kdelibsuff /usr/local/lib$kdelibsuff"
1740   AC_FIND_FILE(libdbus-qt-1.so, $search_libs, dbusqt_libdir)
1741
1742   if test -r $dbusqt_libdir/libdbus-qt-1.so ; then
1743     DBUSQT_LIBS="-L$dbusqt_libdir -ldbus-qt-1"
1744     dbusqt_lib=FOUND
1745   fi
1746
1747   if test $dbusqt_inc != FOUND  || test $dbusqt_lib != FOUND ; then 
1748
1749     search_incs="`pkg-config --cflags dbus-1  |sed 's/-I//g'`"
1750     AC_FIND_FILE(dbus/connection.h, $search_incs, dbusqt_incdir)
1751     if test -r $dbusqt_incdir/dbus/connection.h ; then
1752       have_qt_patch=0
1753       grep dbus_connection_setup_with_qt_main $dbusqt_incdir/dbus/connection.h \
1754       > /dev/null 2>&1 && have_qt_patch=1
1755       if test $have_qt_patch = 1 ; then
1756         DBUSQT_INCS="-I$dbusqt_incdir"
1757         dbusqt_inc=FOUND
1758       fi
1759     fi
1760
1761     search_libs="`pkg-config --libs dbus-1 --libs-only-L | sed 's/-L//g'`"
1762     AC_FIND_FILE(libdbus-qt-1.so, $search_libs, dbusqt_libdir)
1763
1764     if test -r $dbusqt_libdir/libdbus-qt-1.so ; then
1765       DBUSQT_LIBS="-L$dbusqt_libdir -ldbus-qt-1"
1766       dbusqt_lib=FOUND
1767     fi
1768
1769   fi
1770
1771
1772   if test $dbusqt_inc = FOUND && test $dbusqt_lib = FOUND ; then
1773     AC_MSG_RESULT(headers $dbusqt_incdir libraries $dbusqt_libdir)
1774     dbusqt=FOUND
1775   else
1776     AC_MSG_RESULT(searched but not found)
1777   fi
1778
1779   AC_SUBST(DBUSQT_INCS)
1780   AC_SUBST(DBUSQT_LIBS)
1781 fi
1782
1783 ########### Check if media HAL backend sould be compiled
1784
1785 AC_MSG_CHECKING(if the HAL backend for media:/ should be compiled)
1786
1787 HALBACKEND=no
1788 if test "x$hal" = "xFOUND" && test "x$dbus" = "xFOUND" && test "x$dbusqt" = "xFOUND" ; then
1789   AC_DEFINE_UNQUOTED([COMPILE_HALBACKEND],1, [media HAL backend compilation])
1790   HALBACKEND=yes
1791   AC_SUBST(HALBACKEND)
1792   AC_MSG_RESULT(yes)
1793 else
1794   AC_MSG_RESULT(no)
1795 fi
1796
1797 AM_CONDITIONAL(include_media_linuxcdpolling, test "$LINUXCDPOLLING" = "yes")
1798 AM_CONDITIONAL(include_media_halbackend, test "$HALBACKEND" = yes)
1799
1800 AC_CHECK_FUNCS(statvfs)
1801
1802 dnl =======================================================
1803 dnl FILE: ./kioslave/smb/configure.in.in
1804 dnl =======================================================
1805
1806 AC_DEFUN([SMB_CHECK],
1807 [
1808 AC_REQUIRE([KDE_CHECK_LARGEFILE])
1809
1810 AC_ARG_WITH(samba,
1811   [AC_HELP_STRING(--with-samba,
1812     [enable the samba ioslave @<:@default=check@:>@])],
1813   [], with_samba=check)
1814
1815 have_libsmbclient=no
1816 if test "x$with_samba" != xno; then
1817   have_libsmbclient=yes
1818   KDE_CHECK_HEADER(libsmbclient.h, [], [have_libsmbclient=no])
1819   KDE_CHECK_LIB(smbclient, smbc_new_context, [], [have_libsmbclient=no])
1820
1821   SMBCLIENT_EXTRA_LIBS=""
1822   AC_CHECK_FUNC(yp_get_default_domain, [],
1823   [
1824      KDE_CHECK_LIB(nsl, yp_get_default_domain, 
1825            [SMBCLIENT_EXTRA_LIBS="-lnsl"] )
1826   ])
1827
1828   AC_SUBST(SMBCLIENT_EXTRA_LIBS)
1829
1830   if test "x$with_samba" != xcheck && test "x$have_libsmbclient" = xno; then
1831     AC_MSG_ERROR([--with-samba was given, but test for libsmbclient failed])
1832   fi
1833 fi
1834
1835 AM_CONDITIONAL(include_kioslave_smb, test "x$have_libsmbclient" = xyes)
1836
1837 ])
1838
1839 SMB_CHECK
1840 dnl =======================================================
1841 dnl FILE: ./kioslave/thumbnail/configure.in.in
1842 dnl =======================================================
1843
1844 AC_ARG_WITH(openexr,
1845   [AC_HELP_STRING(--with-openexr,
1846     [enable support for OpenEXR @<:@default=check@:>@])],
1847   [], with_openexr=check)
1848
1849 if test "x$with_openexr" != xno; then
1850   KDE_FIND_LIBEXR
1851
1852   if test "x$with_openexr" != xcheck && test -z "$LIB_EXR"; then
1853     AC_MSG_ERROR([--with-openexr was given, but test for OpenEXR failed])
1854   fi
1855 fi
1856
1857 AM_CONDITIONAL(include_EXR_MODULES, test -n "$LIB_EXR")
1858 dnl =======================================================
1859 dnl FILE: ./klipper/configure.in.in
1860 dnl =======================================================
1861
1862 dnl XFixes check
1863 KDE_CHECK_HEADER(X11/extensions/Xfixes.h, [xfixes_h=yes], [xfixes_h=no], [#include <X11/Xlib.h>])
1864 if test "$xfixes_h" = yes; then
1865   KDE_CHECK_LIB(Xfixes, XFixesQueryExtension, [
1866     LIB_XFIXES=-lXfixes
1867     AC_DEFINE_UNQUOTED(HAVE_XFIXES, 1, [Define if you have the XFixes extension])
1868   ], [], -lXext -lX11 $X_EXTRA_LIBS)
1869 else
1870   LIB_XFIXES=
1871 fi
1872 AC_SUBST(LIB_XFIXES)
1873 dnl =======================================================
1874 dnl FILE: ./konqueror/preloader/configure.in.in
1875 dnl =======================================================
1876
1877 dnl check whether mallinfo() is available and which fields to use to find out memory usage
1878 dnl it's used in konq_mainwindow.cc
1879 dnl warning, ugly code ahead
1880 dnl some implementations have mallinfo() in stdlib.h, others in malloc.h
1881 dnl fields showing memory usage should be hblkhd, uordblks and usmblks,
1882 dnl different implementations use different combinations of these (which is ok),
1883 dnl but some of them "reuse" fields they don't use for other purposes
1884
1885 AC_DEFUN([KDE_MALLINFO_CHECK],
1886 [
1887 AC_MSG_CHECKING([for mallinfo() in $1])
1888 AC_CACHE_VAL(kde_cv_func_mallinfo_$2,
1889     [
1890     AC_LANG_SAVE
1891     AC_LANG_CPLUSPLUS
1892     AC_TRY_COMPILE([#include $1],
1893         [
1894         struct mallinfo m;
1895         int dummy;
1896         m = mallinfo();
1897         dummy = m.hblkhd;
1898         dummy = m.uordblks;
1899         dummy = m.usmblks;
1900         dummy = dummy;
1901         ],
1902     kde_cv_func_mallinfo_$2=yes,
1903     kde_cv_func_mallinfo_$2=no)
1904     AC_LANG_RESTORE
1905     ])
1906 if test "$kde_cv_func_mallinfo_$2" = "yes"; then
1907     kde_mallinfo_type=$2
1908 fi
1909 AC_MSG_RESULT($kde_cv_func_mallinfo_$2)
1910 ])
1911
1912
1913 AC_DEFUN([KDE_MALLINFO_CHECK_FIELD],
1914 [
1915 AC_MSG_CHECKING([whether to use mallinfo field $1])
1916 AC_CACHE_VAL(kde_cv_func_mallinfo_field_$1,
1917     [
1918     AC_LANG_SAVE
1919     AC_LANG_CPLUSPLUS
1920     AC_TRY_RUN(
1921         [
1922
1923 #include <$kde_mallinfo_type.h>
1924 enum use_type { No, Yes, Never };
1925 use_type use_field = No;
1926 const int SIZE = 4 * 1024 * 1024;
1927 const int SMALL_SIZE = 4 * 1024;
1928
1929 void dif( struct mallinfo& m1, struct mallinfo& m2, bool alloc )
1930     {
1931     int difval = m2.$1 - m1.$1;
1932     if( alloc )
1933         {
1934         if( difval >= SIZE && difval < 2 * SIZE && use_field != Never )
1935             use_field = Yes;
1936         }
1937     else // !alloc
1938         {
1939         difval = -difval;
1940         if( difval > SMALL_SIZE && ( difval < SIZE || difval >= 2 * SIZE ) && use_field == Yes )
1941             use_field = Never;
1942         }
1943     }
1944
1945 int main()
1946     {
1947     free( malloc( SIZE * 2 )); // avoid Doug Lea's malloc feature of having total_max in usmblks
1948     struct mallinfo m1 = mallinfo();
1949     void* mem1 = malloc( SIZE );
1950     struct mallinfo m2 = mallinfo();
1951     free( mem1 );
1952     struct mallinfo m3 = mallinfo();
1953     void* mem2[ SIZE / 32 ];
1954     for( int i = 0;
1955          i < SIZE / 32;
1956          ++i )
1957         mem2[ i ] = malloc( 32 );
1958     struct mallinfo m4 = mallinfo();
1959     for( int i = 0;
1960          i < SIZE / 32;
1961          ++i )
1962         free( mem2[ i ] );
1963     struct mallinfo m5 = mallinfo();
1964     void* mem3[ SIZE / 1024 ];
1965     for( int i = 0;
1966          i < SIZE / 1024;
1967          ++i )
1968         mem3[ i ] = malloc( 1024 );
1969     struct mallinfo m6 = mallinfo();
1970     for( int i = 0;
1971          i < SIZE / 1024;
1972          ++i )
1973         free( mem3[ i ] );
1974     struct mallinfo m7 = mallinfo();
1975     dif( m1, m2, true );
1976     dif( m2, m3, false );
1977     dif( m3, m4, true );
1978     dif( m4, m5, false );
1979     dif( m5, m6, true );
1980     dif( m6, m7, false );
1981     return use_field == Yes ? 0 : 1;
1982     }
1983
1984         ],
1985         [kde_cv_func_mallinfo_field_$1=yes],
1986         [kde_cv_func_mallinfo_field_$1=no],
1987         [kde_cv_func_mallinfo_field_$1=no])
1988     AC_LANG_RESTORE
1989     ])
1990 AC_MSG_RESULT($kde_cv_func_mallinfo_field_$1)        
1991 kde_mallinfo_$1=$kde_cv_func_mallinfo_field_$1
1992 if test "$kde_mallinfo_$1" = "yes"; then
1993     AC_DEFINE( KDE_MALLINFO_FIELD_$1, 1, [Use mallinfo field $1])
1994 fi
1995 ])
1996
1997
1998 kde_mallinfo_type=
1999 KDE_MALLINFO_CHECK([<stdlib.h>],stdlib)
2000 if test -z "$kde_mallinfo_type"; then
2001     KDE_MALLINFO_CHECK([<malloc.h>],malloc)
2002 fi
2003
2004 AC_TRY_LINK_FUNC(mallinfo,
2005     [],
2006     [ AC_CHECK_LIB(malloc,mallinfo,
2007         [ AC_SUBST(LIBMALLOC,"-lmalloc") ],
2008         [ kde_mallinfo_type="" ])
2009     ])
2010     
2011 if test -n "$kde_mallinfo_type"; then
2012     KDE_MALLINFO_CHECK_FIELD(hblkhd)
2013     KDE_MALLINFO_CHECK_FIELD(uordblks)
2014     KDE_MALLINFO_CHECK_FIELD(usmblks)
2015     if test -z "$kde_mallinfo_hblkhd" -a \
2016         -z "$kde_mallinfo_uordblks" -a \
2017         -z "$kde_mallinfo_usmblks"; then
2018         kde_mallinfo_type=
2019     fi
2020 fi
2021
2022
2023 if test "$kde_mallinfo_type" = "stdlib"; then
2024     AC_DEFINE(KDE_MALLINFO_STDLIB, 1, [mallinfo() is available in <stdlib.h>])
2025 elif test "$kde_mallinfo_type" = "malloc"; then
2026     AC_DEFINE(KDE_MALLINFO_MALLOC, 1, [mallinfo() is available in <malloc.h>])
2027 fi
2028 dnl =======================================================
2029 dnl FILE: ./konsole/configure.in.in
2030 dnl =======================================================
2031
2032 dnl beta tests for openpty support
2033 AC_MSG_CHECKING(whether we can use openpty)
2034 ac_use_openpty="yes"
2035 AC_ARG_ENABLE(openpty,
2036  AC_HELP_STRING([--disable-openpty],[disable openpty (UNIX98 terminals) support [default=enabled]]),
2037  [ac_use_openpty="no"])
2038 if test "$ac_use_openpty" = "yes"; then
2039         kde_safe_LIBS=$LIBS
2040         LIBS="$LIBS $LIBUTIL"
2041         AC_TRY_RUN([
2042 #include <pty.h>
2043
2044 int main(int argc, char* argv) {
2045         int master_fd, slave_fd;
2046         int result;
2047
2048         result = openpty(&master_fd, &slave_fd, 0, 0, 0);
2049
2050         return 0;
2051 }
2052 ], [ac_use_openpty="yes"], [ac_use_openpty="no"])
2053         LIBS=$kde_safe_LIBS
2054 fi
2055 if test "$ac_use_openpty" = "yes"; then
2056         AC_DEFINE(HAVE_OPENPTY, 1, [Defines whether we can use the openpty() function])
2057         AC_MSG_RESULT(yes)
2058 else
2059         AC_MSG_RESULT(no)
2060 fi
2061
2062 dnl Set preprocessor variable of how to get cwd from a process
2063 AC_MSG_CHECKING(how cwd can be be found by seperate process)
2064 case "$host" in 
2065   *-*-linux*) cwd_method='proc' ;;
2066         *) cwd_method='no' ;;
2067 esac
2068 AC_MSG_RESULT($cwd_method)
2069
2070 case "$cwd_method" in
2071         proc) AC_DEFINE(HAVE_PROC_CWD, 1, [Defines whether /proc/`pid`/cwd exists]) ;;
2072 esac
2073 dnl =======================================================
2074 dnl FILE: ./ksmserver/configure.in.in
2075 dnl =======================================================
2076
2077 ac_save_LIBS="$LIBS"
2078 LIBS="$LIBS $X_LDFLAGS -lICE"
2079 AC_CHECK_FUNCS(_IceTransNoListen)
2080 LIBS="$ac_save_LIBS"
2081 dnl =======================================================
2082 dnl FILE: ./ksplashml/themeengine/simple/configure.in.in
2083 dnl =======================================================
2084
2085 LIB_XINERAMA=
2086
2087 AC_ARG_WITH([xinerama],
2088   AC_HELP_STRING([--without-xinerama], [Disable xinerama extension support (default: check)]) )
2089
2090 if test "x$with_xinerama" != "xno"; then
2091   xinerama_save_ldflags="$LDFLAGS"
2092   LDFLAGS="$X_LDFLAGS"
2093
2094   KDE_CHECK_HEADER(X11/extensions/Xinerama.h,
2095     [
2096     AC_CHECK_LIB(Xinerama,XineramaQueryExtension,
2097         [
2098         AC_DEFINE(HAVE_XINERAMA, 1, [Define if you have the Xinerama extension])
2099         LIB_XINERAMA="-lXinerama -lXext"
2100         ],
2101         [],
2102         [ $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS ])
2103      ], [],
2104      [
2105      #include <X11/Xlib.h>
2106      ] )
2107
2108   AC_SUBST(LIB_XINERAMA)
2109   LDFLAGS="$xinerama_save_ldflags"
2110 fi
2111
2112 dnl =======================================================
2113 dnl FILE: ./ksysguard/configure.in.in
2114 dnl =======================================================
2115
2116 dnl Check whether ksysguardd can run; 
2117 AC_MSG_CHECKING([if ksysguardd can be compiled])
2118 case "$host" in 
2119   *-*-linux*) ksysguardd_compile=yes; UNAME='Linux' ;;
2120   *-*-freebsd*) ksysguardd_compile=yes; UNAME='FreeBSD' ;;
2121   *-*-dragonfly*) ksysguardd_compile=yes; UNAME='FreeBSD' ;;
2122   *-*-netbsd*) ksysguardd_compile=yes; UNAME='NetBSD' ;;
2123   *-*-solaris*) ksysguardd_compile=yes; UNAME='Solaris' ;;
2124   *-*-osf*) ksysguardd_compile=yes; UNAME='Tru64' ;;
2125   *-*-irix*) ksysguardd_compile=yes; UNAME='Irix' ;;
2126   *-*-openbsd*) ksysguardd_compile=yes; UNAME='OpenBSD' ;;
2127   *) ksysguardd_compile=no; UNAME='' ;;
2128 esac
2129
2130 AC_MSG_RESULT($ksysguardd_compile)
2131
2132 AM_CONDITIONAL(include_ksysguardd, test "$ksysguardd_compile" = "yes")
2133 AM_CONDITIONAL(include_ksysguardd_linux, test "$UNAME" = Linux)
2134 AM_CONDITIONAL(include_ksysguardd_freebsd, test "$UNAME" = FreeBSD)
2135 AM_CONDITIONAL(include_ksysguardd_netbsd, test "$UNAME" = NetBSD)
2136 AM_CONDITIONAL(include_ksysguardd_solaris, test "$UNAME" = Solaris)
2137 AM_CONDITIONAL(include_ksysguardd_tru64, test "$UNAME" = Tru64)
2138 AM_CONDITIONAL(include_ksysguardd_irix, test "$UNAME" = Irix)
2139 AM_CONDITIONAL(include_ksysguardd_openbsd, test "$UNAME" = OpenBSD)
2140 AC_SUBST(UNAME)
2141
2142 AC_ARG_WITH(sensors,
2143         [AC_HELP_STRING(--with-sensors,
2144                 [enable support for lm_sensors @<:@default=check@:>@])],
2145         [], with_sensors=check)
2146
2147 if test "x$with_sensors" != xno; then
2148         KDE_CHECK_HEADERS(sensors/sensors.h)
2149         KDE_CHECK_LIB(sensors, sensors_init, [LIBSENSORS="-lsensors"])
2150
2151         if test "x$with_sensors" != xcheck && test -z "$LIBSENSORS"; then
2152                 AC_MSG_ERROR([--with-sensors was given, but test for lm_sensors failed])
2153         fi
2154 fi
2155
2156 case "$UNAME" in
2157         Linux) LIBHOSTS="$LIBSENSORS" ;;
2158         FreeBSD) LIBHOSTS="$LIBSENSORS -lkvm" ;;
2159         Solaris) LIBHOSTS="$LIBSENSORS -lkstat -lsocket" ;;
2160 esac
2161 AC_SUBST(LIBHOSTS)
2162 AC_SUBST(LIBSENSORS)
2163
2164 dnl Check for dell laptop support
2165 AM_CONDITIONAL(supports_i8k, test -f /proc/i8k)
2166 dnl =======================================================
2167 dnl FILE: ./ksysguard/ksysguardd/configure.in.in
2168 dnl =======================================================
2169
2170 #MIN_CONFIG
2171
2172 AC_ARG_ENABLE(dnssd, [  --disable-dnssd     don't require libdns_sd (browsing and publishing DNS-SD services will not be possible) ],  with_dnssd=$enableval, with_dnssd=yes)
2173 if test "$with_dnssd" = "yes"; then
2174 AC_MSG_CHECKING(for DNS-SD support)
2175 save_dnssdtest_LIBS="$LIBS"
2176 save_dnssdtest_LDFLAGS="$LDFLAGS"
2177 save_dnssdtest_CPPFLAGS="$CPPFLAGS"
2178 LDFLAGS="$all_libraries $LDFLAGS"
2179 CPPFLAGS="$CPPFLAGS $all_includes"
2180 case $host_os in
2181   darwin*) LIBS="" ;;
2182   *) LIBS="-ldns_sd" ;;
2183 esac
2184 have_libdns_sd="no"
2185 AC_TRY_LINK(    [
2186                         #include <dns_sd.h>
2187                 ],[
2188                         DNSServiceRefDeallocate( (DNSServiceRef) 0);
2189                         TXTRecordDeallocate( (TXTRecordRef*) 0);
2190                 ],[
2191                         AC_DEFINE(HAVE_DNSSD,1,[Define if dns-sd is available])
2192                         case $host_os in
2193                                 darwin*) LIB_DNSSD="" ;;
2194                                 *) LIB_DNSSD="-ldns_sd" ;;
2195                         esac
2196                         have_libdns_sd="yes"
2197                         AC_MSG_RESULT(yes)
2198                 ],[
2199                         AC_MSG_RESULT(no)
2200                         LIB_DNSSD=""
2201 ])
2202 CPPFLAGS=$save_dnssdtest_CPPFLAGS
2203 LDFLAGS=$save_dnssdtest_LDFLAGS
2204 LIBS=$save_dnssdtest_LIBS
2205 fi
2206
2207 case $host_os in
2208   dragonfly*) LIB_KINFO="-lkinfo" ;;
2209   *) LIB_KINFO="" ;;
2210 esac
2211
2212 AC_SUBST(LIB_DNSSD)
2213 AC_SUBST(LIB_KINFO)
2214 AM_CONDITIONAL(HAVE_DNSSD, test "$have_libdns_sd" = "yes")
2215 dnl =======================================================
2216 dnl FILE: ./kwin/kompmgr/configure.in.in
2217 dnl =======================================================
2218
2219 if test "x$with_composite" != "xno"; then
2220   KDE_CHECK_HEADERS(X11/extensions/Xdamage.h,,compile_kompmgr=no,[#include <X11/Xlib.h>])
2221   KDE_CHECK_HEADERS(X11/extensions/Xcomposite.h,,compile_kompmgr=no,[#include <X11/Xlib.h>])
2222   KDE_CHECK_HEADERS(X11/extensions/Xrender.h,,compile_kompmgr=no,[#include <X11/Xlib.h>])
2223 else
2224   compile_kompmgr=no
2225 fi
2226 AM_CONDITIONAL(include_kompmgr, test x"$compile_kompmgr" != x"no" )
2227 dnl =======================================================
2228 dnl FILE: ./kxkb/configure.in.in
2229 dnl =======================================================
2230
2231 # add this here so the test programs below compile
2232 KDE_CHECK_HEADER(X11/Xlib.h)
2233 KDE_CHECK_HEADER(X11/extensions/XKBstr.h, ,
2234   DO_NOT_COMPILE="$DO_NOT_COMPILE kxkb",
2235 [
2236 #include <X11/Xlib.h>
2237 ])
2238 dnl Solaris lacks this file, so we should skip kxkbd here
2239 KDE_CHECK_HEADER(X11/extensions/XKBrules.h, ,
2240   DO_NOT_COMPILE="$DO_NOT_COMPILE kxkb",
2241 [
2242 #include <stdio.h>
2243 #include <X11/Xlib.h>
2244 #include <X11/XKBlib.h>
2245 ])
2246 KDE_CREATE_SUBDIRSLIST
2247 AM_CONDITIONAL(libkonq_SUBDIR_included, test "x$libkonq_SUBDIR_included" = xyes)
2248 AM_CONDITIONAL(applnk_SUBDIR_included, test "x$applnk_SUBDIR_included" = xyes)
2249 AM_CONDITIONAL(doc_SUBDIR_included, test "x$doc_SUBDIR_included" = xyes)
2250 AM_CONDITIONAL(drkonqi_SUBDIR_included, test "x$drkonqi_SUBDIR_included" = xyes)
2251 AM_CONDITIONAL(kappfinder_SUBDIR_included, test "x$kappfinder_SUBDIR_included" = xyes)
2252 AM_CONDITIONAL(kate_SUBDIR_included, test "x$kate_SUBDIR_included" = xyes)
2253 AM_CONDITIONAL(kcheckpass_SUBDIR_included, test "x$kcheckpass_SUBDIR_included" = xyes)
2254 AM_CONDITIONAL(kcminit_SUBDIR_included, test "x$kcminit_SUBDIR_included" = xyes)
2255 AM_CONDITIONAL(kdcop_SUBDIR_included, test "x$kdcop_SUBDIR_included" = xyes)
2256 AM_CONDITIONAL(kdebugdialog_SUBDIR_included, test "x$kdebugdialog_SUBDIR_included" = xyes)
2257 AM_CONDITIONAL(kdeeject_SUBDIR_included, test "x$kdeeject_SUBDIR_included" = xyes)
2258 AM_CONDITIONAL(kdepasswd_SUBDIR_included, test "x$kdepasswd_SUBDIR_included" = xyes)
2259 AM_CONDITIONAL(kdeprint_SUBDIR_included, test "x$kdeprint_SUBDIR_included" = xyes)
2260 AM_CONDITIONAL(kdesu_SUBDIR_included, test "x$kdesu_SUBDIR_included" = xyes)
2261 AM_CONDITIONAL(kdialog_SUBDIR_included, test "x$kdialog_SUBDIR_included" = xyes)
2262 AM_CONDITIONAL(kdmlib_SUBDIR_included, test "x$kdmlib_SUBDIR_included" = xyes)
2263 AM_CONDITIONAL(kfind_SUBDIR_included, test "x$kfind_SUBDIR_included" = xyes)
2264 AM_CONDITIONAL(khelpcenter_SUBDIR_included, test "x$khelpcenter_SUBDIR_included" = xyes)
2265 AM_CONDITIONAL(khotkeys_SUBDIR_included, test "x$khotkeys_SUBDIR_included" = xyes)
2266 AM_CONDITIONAL(kioslave_SUBDIR_included, test "x$kioslave_SUBDIR_included" = xyes)
2267 AM_CONDITIONAL(klipper_SUBDIR_included, test "x$klipper_SUBDIR_included" = xyes)
2268 AM_CONDITIONAL(kmenuedit_SUBDIR_included, test "x$kmenuedit_SUBDIR_included" = xyes)
2269 AM_CONDITIONAL(knetattach_SUBDIR_included, test "x$knetattach_SUBDIR_included" = xyes)
2270 AM_CONDITIONAL(konsole_SUBDIR_included, test "x$konsole_SUBDIR_included" = xyes)
2271 AM_CONDITIONAL(kpager_SUBDIR_included, test "x$kpager_SUBDIR_included" = xyes)
2272 AM_CONDITIONAL(kreadconfig_SUBDIR_included, test "x$kreadconfig_SUBDIR_included" = xyes)
2273 AM_CONDITIONAL(kscreensaver_SUBDIR_included, test "x$kscreensaver_SUBDIR_included" = xyes)
2274 AM_CONDITIONAL(ksplashml_SUBDIR_included, test "x$ksplashml_SUBDIR_included" = xyes)
2275 AM_CONDITIONAL(kstart_SUBDIR_included, test "x$kstart_SUBDIR_included" = xyes)
2276 AM_CONDITIONAL(ksysguard_SUBDIR_included, test "x$ksysguard_SUBDIR_included" = xyes)
2277 AM_CONDITIONAL(ksystraycmd_SUBDIR_included, test "x$ksystraycmd_SUBDIR_included" = xyes)
2278 AM_CONDITIONAL(ktip_SUBDIR_included, test "x$ktip_SUBDIR_included" = xyes)
2279 AM_CONDITIONAL(kwin_SUBDIR_included, test "x$kwin_SUBDIR_included" = xyes)
2280 AM_CONDITIONAL(kxkb_SUBDIR_included, test "x$kxkb_SUBDIR_included" = xyes)
2281 AM_CONDITIONAL(l10n_SUBDIR_included, test "x$l10n_SUBDIR_included" = xyes)
2282 AM_CONDITIONAL(moodin_SUBDIR_included, test "x$moodin_SUBDIR_included" = xyes)
2283 AM_CONDITIONAL(nsplugins_SUBDIR_included, test "x$nsplugins_SUBDIR_included" = xyes)
2284 AM_CONDITIONAL(pics_SUBDIR_included, test "x$pics_SUBDIR_included" = xyes)
2285 AM_CONDITIONAL(konqueror_SUBDIR_included, test "x$konqueror_SUBDIR_included" = xyes)
2286 AM_CONDITIONAL(ksmserver_SUBDIR_included, test "x$ksmserver_SUBDIR_included" = xyes)
2287 AM_CONDITIONAL(kicker_SUBDIR_included, test "x$kicker_SUBDIR_included" = xyes)
2288 AM_CONDITIONAL(kcontrol_SUBDIR_included, test "x$kcontrol_SUBDIR_included" = xyes)
2289 AM_CONDITIONAL(kdesktop_SUBDIR_included, test "x$kdesktop_SUBDIR_included" = xyes)
2290 AM_CONDITIONAL(kdm_SUBDIR_included, test "x$kdm_SUBDIR_included" = xyes)
2291 AC_CONFIG_FILES([ Makefile ])
2292 AC_CONFIG_FILES([ applnk/Makefile ])
2293 AC_CONFIG_FILES([ applnk/compat/Makefile ])
2294 AC_CONFIG_FILES([ doc/Makefile ])
2295 AC_CONFIG_FILES([ doc/faq/Makefile ])
2296 AC_CONFIG_FILES([ doc/glossary/Makefile ])
2297 AC_CONFIG_FILES([ doc/kappfinder/Makefile ])
2298 AC_CONFIG_FILES([ doc/kate/Makefile ])
2299 AC_CONFIG_FILES([ doc/kcontrol/Makefile ])
2300 AC_CONFIG_FILES([ doc/kcontrol/arts/Makefile ])
2301 AC_CONFIG_FILES([ doc/kcontrol/background/Makefile ])
2302 AC_CONFIG_FILES([ doc/kcontrol/bell/Makefile ])
2303 AC_CONFIG_FILES([ doc/kcontrol/cache/Makefile ])
2304 AC_CONFIG_FILES([ doc/kcontrol/clock/Makefile ])
2305 AC_CONFIG_FILES([ doc/kcontrol/colors/Makefile ])
2306 AC_CONFIG_FILES([ doc/kcontrol/cookies/Makefile ])
2307 AC_CONFIG_FILES([ doc/kcontrol/crypto/Makefile ])
2308 AC_CONFIG_FILES([ doc/kcontrol/desktop/Makefile ])
2309 AC_CONFIG_FILES([ doc/kcontrol/desktopbehavior/Makefile ])
2310 AC_CONFIG_FILES([ doc/kcontrol/ebrowsing/Makefile ])
2311 AC_CONFIG_FILES([ doc/kcontrol/email/Makefile ])
2312 AC_CONFIG_FILES([ doc/kcontrol/energy/Makefile ])
2313 AC_CONFIG_FILES([ doc/kcontrol/filemanager/Makefile ])
2314 AC_CONFIG_FILES([ doc/kcontrol/filetypes/Makefile ])
2315 AC_CONFIG_FILES([ doc/kcontrol/fonts/Makefile ])
2316 AC_CONFIG_FILES([ doc/kcontrol/helpindex/Makefile ])
2317 AC_CONFIG_FILES([ doc/kcontrol/icons/Makefile ])
2318 AC_CONFIG_FILES([ doc/kcontrol/kcmaccess/Makefile ])
2319 AC_CONFIG_FILES([ doc/kcontrol/kcmcss/Makefile ])
2320 AC_CONFIG_FILES([ doc/kcontrol/kcmfontinst/Makefile ])
2321 AC_CONFIG_FILES([ doc/kcontrol/kcmkonsole/Makefile ])
2322 AC_CONFIG_FILES([ doc/kcontrol/kcmlaunch/Makefile ])
2323 AC_CONFIG_FILES([ doc/kcontrol/kcmnotify/Makefile ])
2324 AC_CONFIG_FILES([ doc/kcontrol/kcmsmserver/Makefile ])
2325 AC_CONFIG_FILES([ doc/kcontrol/kcmstyle/Makefile ])
2326 AC_CONFIG_FILES([ doc/kcontrol/kcmtaskbar/Makefile ])
2327 AC_CONFIG_FILES([ doc/kcontrol/kdm/Makefile ])
2328 AC_CONFIG_FILES([ doc/kcontrol/keyboard/Makefile ])
2329 AC_CONFIG_FILES([ doc/kcontrol/keys/Makefile ])
2330 AC_CONFIG_FILES([ doc/kcontrol/khtml/Makefile ])
2331 AC_CONFIG_FILES([ doc/kcontrol/kwindecoration/Makefile ])
2332 AC_CONFIG_FILES([ doc/kcontrol/language/Makefile ])
2333 AC_CONFIG_FILES([ doc/kcontrol/mouse/Makefile ])
2334 AC_CONFIG_FILES([ doc/kcontrol/netpref/Makefile ])
2335 AC_CONFIG_FILES([ doc/kcontrol/panel/Makefile ])
2336 AC_CONFIG_FILES([ doc/kcontrol/panelappearance/Makefile ])
2337 AC_CONFIG_FILES([ doc/kcontrol/passwords/Makefile ])
2338 AC_CONFIG_FILES([ doc/kcontrol/performance/Makefile ])
2339 AC_CONFIG_FILES([ doc/kcontrol/proxy/Makefile ])
2340 AC_CONFIG_FILES([ doc/kcontrol/screensaver/Makefile ])
2341 AC_CONFIG_FILES([ doc/kcontrol/smb/Makefile ])
2342 AC_CONFIG_FILES([ doc/kcontrol/spellchecking/Makefile ])
2343 AC_CONFIG_FILES([ doc/kcontrol/useragent/Makefile ])
2344 AC_CONFIG_FILES([ doc/kcontrol/windowmanagement/Makefile ])
2345 AC_CONFIG_FILES([ doc/kdcop/Makefile ])
2346 AC_CONFIG_FILES([ doc/kdebugdialog/Makefile ])
2347 AC_CONFIG_FILES([ doc/kdeprint/Makefile ])
2348 AC_CONFIG_FILES([ doc/kdesu/Makefile ])
2349 AC_CONFIG_FILES([ doc/kdm/Makefile ])
2350 AC_CONFIG_FILES([ doc/kfind/Makefile ])
2351 AC_CONFIG_FILES([ doc/khelpcenter/Makefile ])
2352 AC_CONFIG_FILES([ doc/kicker/Makefile ])
2353 AC_CONFIG_FILES([ doc/kinfocenter/Makefile ])
2354 AC_CONFIG_FILES([ doc/kinfocenter/cdinfo/Makefile ])
2355 AC_CONFIG_FILES([ doc/kinfocenter/devices/Makefile ])
2356 AC_CONFIG_FILES([ doc/kinfocenter/dma/Makefile ])
2357 AC_CONFIG_FILES([ doc/kinfocenter/interrupts/Makefile ])
2358 AC_CONFIG_FILES([ doc/kinfocenter/ioports/Makefile ])
2359 AC_CONFIG_FILES([ doc/kinfocenter/memory/Makefile ])
2360 AC_CONFIG_FILES([ doc/kinfocenter/nics/Makefile ])
2361 AC_CONFIG_FILES([ doc/kinfocenter/opengl/Makefile ])
2362 AC_CONFIG_FILES([ doc/kinfocenter/partitions/Makefile ])
2363 AC_CONFIG_FILES([ doc/kinfocenter/pci/Makefile ])
2364 AC_CONFIG_FILES([ doc/kinfocenter/pcmcia/Makefile ])
2365 AC_CONFIG_FILES([ doc/kinfocenter/processor/Makefile ])
2366 AC_CONFIG_FILES([ doc/kinfocenter/protocols/Makefile ])
2367 AC_CONFIG_FILES([ doc/kinfocenter/samba/Makefile ])
2368 AC_CONFIG_FILES([ doc/kinfocenter/scsi/Makefile ])
2369 AC_CONFIG_FILES([ doc/kinfocenter/sound/Makefile ])
2370 AC_CONFIG_FILES([ doc/kinfocenter/usb/Makefile ])
2371 AC_CONFIG_FILES([ doc/kinfocenter/xserver/Makefile ])
2372 AC_CONFIG_FILES([ doc/kioslave/Makefile ])
2373 AC_CONFIG_FILES([ doc/klipper/Makefile ])
2374 AC_CONFIG_FILES([ doc/kmenuedit/Makefile ])
2375 AC_CONFIG_FILES([ doc/knetattach/Makefile ])
2376 AC_CONFIG_FILES([ doc/kompmgr/Makefile ])
2377 AC_CONFIG_FILES([ doc/konqueror/Makefile ])
2378 AC_CONFIG_FILES([ doc/konsole/Makefile ])
2379 AC_CONFIG_FILES([ doc/kpager/Makefile ])
2380 AC_CONFIG_FILES([ doc/ksplashml/Makefile ])
2381 AC_CONFIG_FILES([ doc/ksysguard/Makefile ])
2382 AC_CONFIG_FILES([ doc/kwrite/Makefile ])
2383 AC_CONFIG_FILES([ doc/kxkb/Makefile ])
2384 AC_CONFIG_FILES([ doc/quickstart/Makefile ])
2385 AC_CONFIG_FILES([ doc/userguide/Makefile ])
2386 AC_CONFIG_FILES([ doc/visualdict/Makefile ])
2387 AC_CONFIG_FILES([ drkonqi/Makefile ])
2388 AC_CONFIG_FILES([ drkonqi/debuggers/Makefile ])
2389 AC_CONFIG_FILES([ drkonqi/pics/Makefile ])
2390 AC_CONFIG_FILES([ drkonqi/presets/Makefile ])
2391 AC_CONFIG_FILES([ kappfinder/Makefile ])
2392 AC_CONFIG_FILES([ kappfinder/apps/Makefile ])
2393 AC_CONFIG_FILES([ kappfinder/apps/Development/Makefile ])
2394 AC_CONFIG_FILES([ kappfinder/apps/Games/Makefile ])
2395 AC_CONFIG_FILES([ kappfinder/apps/Games/Arcade/Makefile ])
2396 AC_CONFIG_FILES([ kappfinder/apps/Games/Board/Makefile ])
2397 AC_CONFIG_FILES([ kappfinder/apps/Games/Card/Makefile ])
2398 AC_CONFIG_FILES([ kappfinder/apps/Games/Emulators/Makefile ])
2399 AC_CONFIG_FILES([ kappfinder/apps/Games/Roguelikes/Makefile ])
2400 AC_CONFIG_FILES([ kappfinder/apps/Games/TacticStrategy/Makefile ])
2401 AC_CONFIG_FILES([ kappfinder/apps/Games/Toys/Makefile ])
2402 AC_CONFIG_FILES([ kappfinder/apps/Graphics/Makefile ])
2403 AC_CONFIG_FILES([ kappfinder/apps/Internet/Makefile ])
2404 AC_CONFIG_FILES([ kappfinder/apps/Internet/Terminal/Makefile ])
2405 AC_CONFIG_FILES([ kappfinder/apps/Multimedia/Makefile ])
2406 AC_CONFIG_FILES([ kappfinder/apps/Office/Makefile ])
2407 AC_CONFIG_FILES([ kappfinder/apps/System/Makefile ])
2408 AC_CONFIG_FILES([ kappfinder/apps/System/Terminal/Makefile ])
2409 AC_CONFIG_FILES([ kappfinder/apps/Utilities/Makefile ])
2410 AC_CONFIG_FILES([ kappfinder/apps/Utilities/Editors/Makefile ])
2411 AC_CONFIG_FILES([ kappfinder/apps/Utilities/xutils/Makefile ])
2412 AC_CONFIG_FILES([ kate/Makefile ])
2413 AC_CONFIG_FILES([ kate/app/Makefile ])
2414 AC_CONFIG_FILES([ kate/data/Makefile ])
2415 AC_CONFIG_FILES([ kate/interfaces/Makefile ])
2416 AC_CONFIG_FILES([ kate/pics/Makefile ])
2417 AC_CONFIG_FILES([ kate/pics/actions/Makefile ])
2418 AC_CONFIG_FILES([ kate/utils/Makefile ])
2419 AC_CONFIG_FILES([ kcheckpass/Makefile ])
2420 AC_CONFIG_FILES([ kcminit/Makefile ])
2421 AC_CONFIG_FILES([ kcontrol/Makefile ])
2422 AC_CONFIG_FILES([ kcontrol/access/Makefile ])
2423 AC_CONFIG_FILES([ kcontrol/accessibility/Makefile ])
2424 AC_CONFIG_FILES([ kcontrol/arts/Makefile ])
2425 AC_CONFIG_FILES([ kcontrol/background/Makefile ])
2426 AC_CONFIG_FILES([ kcontrol/background/pics/Makefile ])
2427 AC_CONFIG_FILES([ kcontrol/bell/Makefile ])
2428 AC_CONFIG_FILES([ kcontrol/clock/Makefile ])
2429 AC_CONFIG_FILES([ kcontrol/colors/Makefile ])
2430 AC_CONFIG_FILES([ kcontrol/componentchooser/Makefile ])
2431 AC_CONFIG_FILES([ kcontrol/componentchooser/componentservices/Makefile ])
2432 AC_CONFIG_FILES([ kcontrol/crypto/Makefile ])
2433 AC_CONFIG_FILES([ kcontrol/css/Makefile ])
2434 AC_CONFIG_FILES([ kcontrol/display/Makefile ])
2435 AC_CONFIG_FILES([ kcontrol/dnssd/Makefile ])
2436 AC_CONFIG_FILES([ kcontrol/ebrowsing/Makefile ])
2437 AC_CONFIG_FILES([ kcontrol/ebrowsing/plugins/Makefile ])
2438 AC_CONFIG_FILES([ kcontrol/ebrowsing/plugins/ikws/Makefile ])
2439 AC_CONFIG_FILES([ kcontrol/ebrowsing/plugins/ikws/searchproviders/Makefile ])
2440 AC_CONFIG_FILES([ kcontrol/ebrowsing/plugins/localdomain/Makefile ])
2441 AC_CONFIG_FILES([ kcontrol/ebrowsing/plugins/shorturi/Makefile ])
2442 AC_CONFIG_FILES([ kcontrol/energy/Makefile ])
2443 AC_CONFIG_FILES([ kcontrol/energy/pics/Makefile ])
2444 AC_CONFIG_FILES([ kcontrol/filetypes/Makefile ])
2445 AC_CONFIG_FILES([ kcontrol/fonts/Makefile ])
2446 AC_CONFIG_FILES([ kcontrol/icons/Makefile ])
2447 AC_CONFIG_FILES([ kcontrol/info/Makefile ])
2448 AC_CONFIG_FILES([ kcontrol/input/Makefile ])
2449 AC_CONFIG_FILES([ kcontrol/input/core/Makefile ])
2450 AC_CONFIG_FILES([ kcontrol/input/pics/Makefile ])
2451 AC_CONFIG_FILES([ kcontrol/input/xcursor/Makefile ])
2452 AC_CONFIG_FILES([ kcontrol/ioslaveinfo/Makefile ])
2453 AC_CONFIG_FILES([ kcontrol/joystick/Makefile ])
2454 AC_CONFIG_FILES([ kcontrol/kcontrol/Makefile ])
2455 AC_CONFIG_FILES([ kcontrol/kcontrol/about/Makefile ])
2456 AC_CONFIG_FILES([ kcontrol/kded/Makefile ])
2457 AC_CONFIG_FILES([ kcontrol/kdm/Makefile ])
2458 AC_CONFIG_FILES([ kcontrol/keys/Makefile ])
2459 AC_CONFIG_FILES([ kcontrol/kfontinst/Makefile ])
2460 AC_CONFIG_FILES([ kcontrol/kfontinst/kcmfontinst/Makefile ])
2461 AC_CONFIG_FILES([ kcontrol/kfontinst/kfile-plugin/Makefile ])
2462 AC_CONFIG_FILES([ kcontrol/kfontinst/kfontinst/Makefile ])
2463 AC_CONFIG_FILES([ kcontrol/kfontinst/kio/Makefile ])
2464 AC_CONFIG_FILES([ kcontrol/kfontinst/lib/Makefile ])
2465 AC_CONFIG_FILES([ kcontrol/kfontinst/thumbnail/Makefile ])
2466 AC_CONFIG_FILES([ kcontrol/kfontinst/viewpart/Makefile ])
2467 AC_CONFIG_FILES([ kcontrol/kicker/Makefile ])
2468 AC_CONFIG_FILES([ kcontrol/kio/Makefile ])
2469 AC_CONFIG_FILES([ kcontrol/kio/uasproviders/Makefile ])
2470 AC_CONFIG_FILES([ kcontrol/knotify/Makefile ])
2471 AC_CONFIG_FILES([ kcontrol/knotify/sounds/Makefile ])
2472 AC_CONFIG_FILES([ kcontrol/konq/Makefile ])
2473 AC_CONFIG_FILES([ kcontrol/konqhtml/Makefile ])
2474 AC_CONFIG_FILES([ kcontrol/konsole/Makefile ])
2475 AC_CONFIG_FILES([ kcontrol/krdb/Makefile ])
2476 AC_CONFIG_FILES([ kcontrol/krdb/ad/Makefile ])
2477 AC_CONFIG_FILES([ kcontrol/krdb/kcs/Makefile ])
2478 AC_CONFIG_FILES([ kcontrol/krdb/pics/Makefile ])
2479 AC_CONFIG_FILES([ kcontrol/krdb/themes/Makefile ])
2480 AC_CONFIG_FILES([ kcontrol/krdb/themes/HighContrastDark/Makefile ])
2481 AC_CONFIG_FILES([ kcontrol/krdb/themes/HighContrastDark-big/Makefile ])
2482 AC_CONFIG_FILES([ kcontrol/krdb/themes/HighContrastLight/Makefile ])
2483 AC_CONFIG_FILES([ kcontrol/krdb/themes/HighContrastLight-big/Makefile ])
2484 AC_CONFIG_FILES([ kcontrol/krdb/themes/KDE_Classic/Makefile ])
2485 AC_CONFIG_FILES([ kcontrol/krdb/themes/Keramik/Makefile ])
2486 AC_CONFIG_FILES([ kcontrol/krdb/themes/Plastik/Makefile ])
2487 AC_CONFIG_FILES([ kcontrol/krdb/themes/Platinum/Makefile ])
2488 AC_CONFIG_FILES([ kcontrol/krdb/themes/Redmond/Makefile ])
2489 AC_CONFIG_FILES([ kcontrol/krdb/themes/Sunshine/Makefile ])
2490 AC_CONFIG_FILES([ kcontrol/krdb/themes/YellowOnBlue/Makefile ])
2491 AC_CONFIG_FILES([ kcontrol/krdb/themes/YellowOnBlue-big/Makefile ])
2492 AC_CONFIG_FILES([ kcontrol/kthememanager/Makefile ])
2493 AC_CONFIG_FILES([ kcontrol/launch/Makefile ])
2494 AC_CONFIG_FILES([ kcontrol/locale/Makefile ])
2495 AC_CONFIG_FILES([ kcontrol/locale/default/Makefile ])
2496 AC_CONFIG_FILES([ kcontrol/locale/pics/Makefile ])
2497 AC_CONFIG_FILES([ kcontrol/nics/Makefile ])
2498 AC_CONFIG_FILES([ kcontrol/performance/Makefile ])
2499 AC_CONFIG_FILES([ kcontrol/pics/Makefile ])
2500 AC_CONFIG_FILES([ kcontrol/privacy/Makefile ])
2501 AC_CONFIG_FILES([ kcontrol/randr/Makefile ])
2502 AC_CONFIG_FILES([ kcontrol/samba/Makefile ])
2503 AC_CONFIG_FILES([ kcontrol/screensaver/Makefile ])
2504 AC_CONFIG_FILES([ kcontrol/smartcard/Makefile ])
2505 AC_CONFIG_FILES([ kcontrol/smserver/Makefile ])
2506 AC_CONFIG_FILES([ kcontrol/spellchecking/Makefile ])
2507 AC_CONFIG_FILES([ kcontrol/style/Makefile ])
2508 AC_CONFIG_FILES([ kcontrol/style/keramik/Makefile ])
2509 AC_CONFIG_FILES([ kcontrol/taskbar/Makefile ])
2510 AC_CONFIG_FILES([ kcontrol/usbview/Makefile ])
2511 AC_CONFIG_FILES([ kcontrol/view1394/Makefile ])
2512 AC_CONFIG_FILES([ kcontrol/xinerama/Makefile ])
2513 AC_CONFIG_FILES([ kdcop/Makefile ])
2514 AC_CONFIG_FILES([ kdebugdialog/Makefile ])
2515 AC_CONFIG_FILES([ kdeeject/Makefile ])
2516 AC_CONFIG_FILES([ kdepasswd/Makefile ])
2517 AC_CONFIG_FILES([ kdepasswd/kcm/Makefile ])
2518 AC_CONFIG_FILES([ kdepasswd/kcm/pics/Makefile ])
2519 AC_CONFIG_FILES([ kdeprint/Makefile ])
2520 AC_CONFIG_FILES([ kdeprint/descriptions/Makefile ])
2521 AC_CONFIG_FILES([ kdeprint/kdeprint_part/Makefile ])
2522 AC_CONFIG_FILES([ kdeprint/kdeprintfax/Makefile ])
2523 AC_CONFIG_FILES([ kdeprint/kjobviewer/Makefile ])
2524 AC_CONFIG_FILES([ kdeprint/kprinter/Makefile ])
2525 AC_CONFIG_FILES([ kdeprint/printmgr/Makefile ])
2526 AC_CONFIG_FILES([ kdeprint/slave/Makefile ])
2527 AC_CONFIG_FILES([ kdeprint/slave/mimetypes/Makefile ])
2528 AC_CONFIG_FILES([ kdeprint/slave/templates/Makefile ])
2529 AC_CONFIG_FILES([ kdesktop/Makefile ])
2530 AC_CONFIG_FILES([ kdesktop/init/Makefile ])
2531 AC_CONFIG_FILES([ kdesktop/init/Templates/Makefile ])
2532 AC_CONFIG_FILES([ kdesktop/kwebdesktop/Makefile ])
2533 AC_CONFIG_FILES([ kdesktop/lock/Makefile ])
2534 AC_CONFIG_FILES([ kdesktop/patterns/Makefile ])
2535 AC_CONFIG_FILES([ kdesktop/pics/Makefile ])
2536 AC_CONFIG_FILES([ kdesktop/programs/Makefile ])
2537 AC_CONFIG_FILES([ kdesu/Makefile ])
2538 AC_CONFIG_FILES([ kdesu/kdesu/Makefile ])
2539 AC_CONFIG_FILES([ kdesu/kdesud/Makefile ])
2540 AC_CONFIG_FILES([ kdialog/Makefile ])
2541 AC_CONFIG_FILES([ kdm/Makefile ])
2542 AC_CONFIG_FILES([ kdm/backend/Makefile ])
2543 AC_CONFIG_FILES([ kdm/kfrontend/Makefile ])
2544 AC_CONFIG_FILES([ kdm/kfrontend/pics/Makefile ])
2545 AC_CONFIG_FILES([ kdm/kfrontend/sessions/Makefile ])
2546 AC_CONFIG_FILES([ kdm/kfrontend/themer/Makefile ])
2547 AC_CONFIG_FILES([ kdm/kfrontend/themes/Makefile ])
2548 AC_CONFIG_FILES([ kdm/kfrontend/themes/circles/Makefile ])
2549 AC_CONFIG_FILES([ kdmlib/Makefile ])
2550 AC_CONFIG_FILES([ kfind/Makefile ])
2551 AC_CONFIG_FILES([ kfind/pics/Makefile ])
2552 AC_CONFIG_FILES([ khelpcenter/Makefile ])
2553 AC_CONFIG_FILES([ khelpcenter/htmlsearch/Makefile ])
2554 AC_CONFIG_FILES([ khelpcenter/pics/Makefile ])
2555 AC_CONFIG_FILES([ khelpcenter/plugins/Makefile ])
2556 AC_CONFIG_FILES([ khelpcenter/plugins/Applications/Makefile ])
2557 AC_CONFIG_FILES([ khelpcenter/plugins/Manpages/Makefile ])
2558 AC_CONFIG_FILES([ khelpcenter/plugins/Scrollkeeper/Makefile ])
2559 AC_CONFIG_FILES([ khelpcenter/plugins/Tutorials/Makefile ])
2560 AC_CONFIG_FILES([ khelpcenter/searchhandlers/Makefile ])
2561 AC_CONFIG_FILES([ khotkeys/Makefile ])
2562 AC_CONFIG_FILES([ khotkeys/app/Makefile ])
2563 AC_CONFIG_FILES([ khotkeys/arts/Makefile ])
2564 AC_CONFIG_FILES([ khotkeys/data/Makefile ])
2565 AC_CONFIG_FILES([ khotkeys/kcontrol/Makefile ])
2566 AC_CONFIG_FILES([ khotkeys/kcontrol/ui/Makefile ])
2567 AC_CONFIG_FILES([ khotkeys/shared/Makefile ])
2568 AC_CONFIG_FILES([ khotkeys/update/Makefile ])
2569 AC_CONFIG_FILES([ kicker/Makefile ])
2570 AC_CONFIG_FILES([ kicker/applets/Makefile ])
2571 AC_CONFIG_FILES([ kicker/applets/clock/Makefile ])
2572 AC_CONFIG_FILES([ kicker/applets/launcher/Makefile ])
2573 AC_CONFIG_FILES([ kicker/applets/lockout/Makefile ])
2574 AC_CONFIG_FILES([ kicker/applets/media/Makefile ])
2575 AC_CONFIG_FILES([ kicker/applets/menu/Makefile ])
2576 AC_CONFIG_FILES([ kicker/applets/minipager/Makefile ])
2577 AC_CONFIG_FILES([ kicker/applets/naughty/Makefile ])
2578 AC_CONFIG_FILES([ kicker/applets/run/Makefile ])
2579 AC_CONFIG_FILES([ kicker/applets/swallow/Makefile ])
2580 AC_CONFIG_FILES([ kicker/applets/systemtray/Makefile ])
2581 AC_CONFIG_FILES([ kicker/applets/taskbar/Makefile ])
2582 AC_CONFIG_FILES([ kicker/applets/trash/Makefile ])
2583 AC_CONFIG_FILES([ kicker/data/Makefile ])
2584 AC_CONFIG_FILES([ kicker/data/app_start_anim/Makefile ])
2585 AC_CONFIG_FILES([ kicker/data/icons/Makefile ])
2586 AC_CONFIG_FILES([ kicker/data/icons/actions/Makefile ])
2587 AC_CONFIG_FILES([ kicker/data/kmenu_side/Makefile ])
2588 AC_CONFIG_FILES([ kicker/data/tiles/Makefile ])
2589 AC_CONFIG_FILES([ kicker/data/wallpaper/Makefile ])
2590 AC_CONFIG_FILES([ kicker/extensions/Makefile ])
2591 AC_CONFIG_FILES([ kicker/extensions/dockbar/Makefile ])
2592 AC_CONFIG_FILES([ kicker/extensions/kasbar/Makefile ])
2593 AC_CONFIG_FILES([ kicker/extensions/sidebar/Makefile ])
2594 AC_CONFIG_FILES([ kicker/extensions/taskbar/Makefile ])
2595 AC_CONFIG_FILES([ kicker/kicker/Makefile ])
2596 AC_CONFIG_FILES([ kicker/kicker/buttons/Makefile ])
2597 AC_CONFIG_FILES([ kicker/kicker/core/Makefile ])
2598 AC_CONFIG_FILES([ kicker/kicker/interfaces/Makefile ])
2599 AC_CONFIG_FILES([ kicker/kicker/plugins/Makefile ])
2600 AC_CONFIG_FILES([ kicker/kicker/ui/Makefile ])
2601 AC_CONFIG_FILES([ kicker/libkicker/Makefile ])
2602 AC_CONFIG_FILES([ kicker/menuext/Makefile ])
2603 AC_CONFIG_FILES([ kicker/menuext/find/Makefile ])
2604 AC_CONFIG_FILES([ kicker/menuext/kate/Makefile ])
2605 AC_CONFIG_FILES([ kicker/menuext/kdeprint/Makefile ])
2606 AC_CONFIG_FILES([ kicker/menuext/konq-profiles/Makefile ])
2607 AC_CONFIG_FILES([ kicker/menuext/konsole/Makefile ])
2608 AC_CONFIG_FILES([ kicker/menuext/prefmenu/Makefile ])
2609 AC_CONFIG_FILES([ kicker/menuext/recentdocs/Makefile ])
2610 AC_CONFIG_FILES([ kicker/menuext/remote/Makefile ])
2611 AC_CONFIG_FILES([ kicker/menuext/system/Makefile ])
2612 AC_CONFIG_FILES([ kicker/menuext/tom/Makefile ])
2613 AC_CONFIG_FILES([ kicker/proxy/Makefile ])
2614 AC_CONFIG_FILES([ kicker/taskbar/Makefile ])
2615 AC_CONFIG_FILES([ kicker/taskmanager/Makefile ])
2616 AC_CONFIG_FILES([ kioslave/Makefile ])
2617 AC_CONFIG_FILES([ kioslave/about/Makefile ])
2618 AC_CONFIG_FILES([ kioslave/cgi/Makefile ])
2619 AC_CONFIG_FILES([ kioslave/cgi/kcmcgi/Makefile ])
2620 AC_CONFIG_FILES([ kioslave/filter/Makefile ])
2621 AC_CONFIG_FILES([ kioslave/finger/Makefile ])
2622 AC_CONFIG_FILES([ kioslave/fish/Makefile ])
2623 AC_CONFIG_FILES([ kioslave/floppy/Makefile ])
2624 AC_CONFIG_FILES([ kioslave/home/Makefile ])
2625 AC_CONFIG_FILES([ kioslave/home/kdedmodule/Makefile ])
2626 AC_CONFIG_FILES([ kioslave/info/Makefile ])
2627 AC_CONFIG_FILES([ kioslave/ldap/Makefile ])
2628 AC_CONFIG_FILES([ kioslave/mac/Makefile ])
2629 AC_CONFIG_FILES([ kioslave/man/Makefile ])
2630 AC_CONFIG_FILES([ kioslave/media/Makefile ])
2631 AC_CONFIG_FILES([ kioslave/media/kcmodule/Makefile ])
2632 AC_CONFIG_FILES([ kioslave/media/kfile-plugin/Makefile ])
2633 AC_CONFIG_FILES([ kioslave/media/libmediacommon/Makefile ])
2634 AC_CONFIG_FILES([ kioslave/media/mediamanager/Makefile ])
2635 AC_CONFIG_FILES([ kioslave/media/medianotifier/Makefile ])
2636 AC_CONFIG_FILES([ kioslave/media/mimetypes/Makefile ])
2637 AC_CONFIG_FILES([ kioslave/media/mounthelper/Makefile ])
2638 AC_CONFIG_FILES([ kioslave/media/propsdlgplugin/Makefile ])
2639 AC_CONFIG_FILES([ kioslave/media/services/Makefile ])
2640 AC_CONFIG_FILES([ kioslave/nfs/Makefile ])
2641 AC_CONFIG_FILES([ kioslave/nntp/Makefile ])
2642 AC_CONFIG_FILES([ kioslave/pop3/Makefile ])
2643 AC_CONFIG_FILES([ kioslave/remote/Makefile ])
2644 AC_CONFIG_FILES([ kioslave/remote/kdedmodule/Makefile ])
2645 AC_CONFIG_FILES([ kioslave/settings/Makefile ])
2646 AC_CONFIG_FILES([ kioslave/sftp/Makefile ])
2647 AC_CONFIG_FILES([ kioslave/smb/Makefile ])
2648 AC_CONFIG_FILES([ kioslave/smtp/Makefile ])
2649 AC_CONFIG_FILES([ kioslave/system/Makefile ])
2650 AC_CONFIG_FILES([ kioslave/system/entries/Makefile ])
2651 AC_CONFIG_FILES([ kioslave/system/kdedmodule/Makefile ])
2652 AC_CONFIG_FILES([ kioslave/system/mimetypes/Makefile ])
2653 AC_CONFIG_FILES([ kioslave/tar/Makefile ])
2654 AC_CONFIG_FILES([ kioslave/thumbnail/Makefile ])
2655 AC_CONFIG_FILES([ kioslave/trash/Makefile ])
2656 AC_CONFIG_FILES([ kioslave/trash/kfile-plugin/Makefile ])
2657 AC_CONFIG_FILES([ klipper/Makefile ])
2658 AC_CONFIG_FILES([ kmenuedit/Makefile ])
2659 AC_CONFIG_FILES([ kmenuedit/pixmaps/Makefile ])
2660 AC_CONFIG_FILES([ knetattach/Makefile ])
2661 AC_CONFIG_FILES([ konqueror/Makefile ])
2662 AC_CONFIG_FILES([ konqueror/about/Makefile ])
2663 AC_CONFIG_FILES([ konqueror/client/Makefile ])
2664 AC_CONFIG_FILES([ konqueror/iconview/Makefile ])
2665 AC_CONFIG_FILES([ konqueror/keditbookmarks/Makefile ])
2666 AC_CONFIG_FILES([ konqueror/kttsplugin/Makefile ])
2667 AC_CONFIG_FILES([ konqueror/listview/Makefile ])
2668 AC_CONFIG_FILES([ konqueror/pics/Makefile ])
2669 AC_CONFIG_FILES([ konqueror/pics/actions/Makefile ])
2670 AC_CONFIG_FILES([ konqueror/pics/indicators/Makefile ])
2671 AC_CONFIG_FILES([ konqueror/pics/tiles/Makefile ])
2672 AC_CONFIG_FILES([ konqueror/preloader/Makefile ])
2673 AC_CONFIG_FILES([ konqueror/quickprint/Makefile ])
2674 AC_CONFIG_FILES([ konqueror/remoteencodingplugin/Makefile ])
2675 AC_CONFIG_FILES([ konqueror/shellcmdplugin/Makefile ])
2676 AC_CONFIG_FILES([ konqueror/sidebar/Makefile ])
2677 AC_CONFIG_FILES([ konqueror/sidebar/test/Makefile ])
2678 AC_CONFIG_FILES([ konqueror/sidebar/trees/Makefile ])
2679 AC_CONFIG_FILES([ konqueror/sidebar/trees/bookmark_module/Makefile ])
2680 AC_CONFIG_FILES([ konqueror/sidebar/trees/dirtree_module/Makefile ])
2681 AC_CONFIG_FILES([ konqueror/sidebar/trees/history_module/Makefile ])
2682 AC_CONFIG_FILES([ konqueror/sidebar/trees/init/Makefile ])
2683 AC_CONFIG_FILES([ konqueror/sidebar/trees/init/remote/Makefile ])
2684 AC_CONFIG_FILES([ konqueror/sidebar/trees/init/remote/ftp/Makefile ])
2685 AC_CONFIG_FILES([ konqueror/sidebar/trees/init/remote/web/Makefile ])
2686 AC_CONFIG_FILES([ konqueror/sidebar/trees/init/services/Makefile ])
2687 AC_CONFIG_FILES([ konqueror/sidebar/web_module/Makefile ])
2688 AC_CONFIG_FILES([ konsole/Makefile ])
2689 AC_CONFIG_FILES([ konsole/doc/Makefile ])
2690 AC_CONFIG_FILES([ konsole/doc/VT100/Makefile ])
2691 AC_CONFIG_FILES([ konsole/fonts/Makefile ])
2692 AC_CONFIG_FILES([ konsole/konsole/Makefile ])
2693 AC_CONFIG_FILES([ konsole/other/Makefile ])
2694 AC_CONFIG_FILES([ konsole/other/icons/Makefile ])
2695 AC_CONFIG_FILES([ konsole/other/wallpapers/Makefile ])
2696 AC_CONFIG_FILES([ kpager/Makefile ])
2697 AC_CONFIG_FILES([ kreadconfig/Makefile ])
2698 AC_CONFIG_FILES([ kscreensaver/Makefile ])
2699 AC_CONFIG_FILES([ ksmserver/Makefile ])
2700 AC_CONFIG_FILES([ ksplashml/Makefile ])
2701 AC_CONFIG_FILES([ ksplashml/kcmksplash/Makefile ])
2702 AC_CONFIG_FILES([ ksplashml/kcmksplash/pics/Makefile ])
2703 AC_CONFIG_FILES([ ksplashml/pics/Makefile ])
2704 AC_CONFIG_FILES([ ksplashml/pics/themes/Makefile ])
2705 AC_CONFIG_FILES([ ksplashml/pics/themes/blue-bend/Makefile ])
2706 AC_CONFIG_FILES([ ksplashml/pics/themes/default/Makefile ])
2707 AC_CONFIG_FILES([ ksplashml/pics/themes/default/locolor/Makefile ])
2708 AC_CONFIG_FILES([ ksplashml/pics/themes/none/Makefile ])
2709 AC_CONFIG_FILES([ ksplashml/pics/themes/simple/Makefile ])
2710 AC_CONFIG_FILES([ ksplashml/themeengine/Makefile ])
2711 AC_CONFIG_FILES([ ksplashml/themeengine/default/Makefile ])
2712 AC_CONFIG_FILES([ ksplashml/themeengine/redmond/Makefile ])
2713 AC_CONFIG_FILES([ ksplashml/themeengine/redmond/pics/Makefile ])
2714 AC_CONFIG_FILES([ ksplashml/themeengine/simple/Makefile ])
2715 AC_CONFIG_FILES([ ksplashml/themeengine/standard/Makefile ])
2716 AC_CONFIG_FILES([ ksplashml/themeengine/standard/pics/Makefile ])
2717 AC_CONFIG_FILES([ kstart/Makefile ])
2718 AC_CONFIG_FILES([ ksysguard/Makefile ])
2719 AC_CONFIG_FILES([ ksysguard/CContLib/Makefile ])
2720 AC_CONFIG_FILES([ ksysguard/example/Makefile ])
2721 AC_CONFIG_FILES([ ksysguard/gui/Makefile ])
2722 AC_CONFIG_FILES([ ksysguard/gui/SensorDisplayLib/Makefile ])
2723 AC_CONFIG_FILES([ ksysguard/gui/ksgrd/Makefile ])
2724 AC_CONFIG_FILES([ ksysguard/ksysguardd/Makefile ])
2725 AC_CONFIG_FILES([ ksysguard/ksysguardd/FreeBSD/Makefile ])
2726 AC_CONFIG_FILES([ ksysguard/ksysguardd/Irix/Makefile ])
2727 AC_CONFIG_FILES([ ksysguard/ksysguardd/Linux/Makefile ])
2728 AC_CONFIG_FILES([ ksysguard/ksysguardd/NetBSD/Makefile ])
2729 AC_CONFIG_FILES([ ksysguard/ksysguardd/OpenBSD/Makefile ])
2730 AC_CONFIG_FILES([ ksysguard/ksysguardd/Solaris/Makefile ])
2731 AC_CONFIG_FILES([ ksysguard/ksysguardd/Tru64/Makefile ])
2732 AC_CONFIG_FILES([ ksysguard/pics/Makefile ])
2733 AC_CONFIG_FILES([ ksystraycmd/Makefile ])
2734 AC_CONFIG_FILES([ ktip/Makefile ])
2735 AC_CONFIG_FILES([ ktip/pics/Makefile ])
2736 AC_CONFIG_FILES([ kwin/Makefile ])
2737 AC_CONFIG_FILES([ kwin/clients/Makefile ])
2738 AC_CONFIG_FILES([ kwin/clients/b2/Makefile ])
2739 AC_CONFIG_FILES([ kwin/clients/b2/config/Makefile ])
2740 AC_CONFIG_FILES([ kwin/clients/default/Makefile ])
2741 AC_CONFIG_FILES([ kwin/clients/default/config/Makefile ])
2742 AC_CONFIG_FILES([ kwin/clients/keramik/Makefile ])
2743 AC_CONFIG_FILES([ kwin/clients/keramik/config/Makefile ])
2744 AC_CONFIG_FILES([ kwin/clients/kwmtheme/Makefile ])
2745 AC_CONFIG_FILES([ kwin/clients/kwmtheme/cli_installer/Makefile ])
2746 AC_CONFIG_FILES([ kwin/clients/laptop/Makefile ])
2747 AC_CONFIG_FILES([ kwin/clients/modernsystem/Makefile ])
2748 AC_CONFIG_FILES([ kwin/clients/modernsystem/config/Makefile ])
2749 AC_CONFIG_FILES([ kwin/clients/plastik/Makefile ])
2750 AC_CONFIG_FILES([ kwin/clients/plastik/config/Makefile ])
2751 AC_CONFIG_FILES([ kwin/clients/quartz/Makefile ])
2752 AC_CONFIG_FILES([ kwin/clients/quartz/config/Makefile ])
2753 AC_CONFIG_FILES([ kwin/clients/redmond/Makefile ])
2754 AC_CONFIG_FILES([ kwin/clients/test/Makefile ])
2755 AC_CONFIG_FILES([ kwin/clients/web/Makefile ])
2756 AC_CONFIG_FILES([ kwin/data/Makefile ])
2757 AC_CONFIG_FILES([ kwin/kcmkwin/Makefile ])
2758 AC_CONFIG_FILES([ kwin/kcmkwin/kwindecoration/Makefile ])
2759 AC_CONFIG_FILES([ kwin/kcmkwin/kwinoptions/Makefile ])
2760 AC_CONFIG_FILES([ kwin/kcmkwin/kwinrules/Makefile ])
2761 AC_CONFIG_FILES([ kwin/killer/Makefile ])
2762 AC_CONFIG_FILES([ kwin/kompmgr/Makefile ])
2763 AC_CONFIG_FILES([ kwin/lib/Makefile ])
2764 AC_CONFIG_FILES([ kwin/oldheaders/Makefile ])
2765 AC_CONFIG_FILES([ kwin/pics/Makefile ])
2766 AC_CONFIG_FILES([ kwin/tools/Makefile ])
2767 AC_CONFIG_FILES([ kwin/tools/decobenchmark/Makefile ])
2768 AC_CONFIG_FILES([ kxkb/Makefile ])
2769 AC_CONFIG_FILES([ kxkb/pics/Makefile ])
2770 AC_CONFIG_FILES([ l10n/Makefile ])
2771 AC_CONFIG_FILES([ libkonq/Makefile ])
2772 AC_CONFIG_FILES([ libkonq/favicons/Makefile ])
2773 AC_CONFIG_FILES([ libkonq/pics/Makefile ])
2774 AC_CONFIG_FILES([ libkonq/tests/Makefile ])
2775 AC_CONFIG_FILES([ moodin/Makefile ])
2776 AC_CONFIG_FILES([ nsplugins/Makefile ])
2777 AC_CONFIG_FILES([ nsplugins/test/Makefile ])
2778 AC_CONFIG_FILES([ nsplugins/viewer/Makefile ])
2779 AC_CONFIG_FILES([ nsplugins/wrapper/Makefile ])
2780 AC_CONFIG_FILES([ pics/Makefile ])
2781 AC_CONFIG_FILES([ pics/crystalsvg/Makefile ])
2782 AC_CONFIG_FILES([ pics/wallpapers/Makefile ])
2783 AC_CONFIG_FILES([ kdm/kfrontend/sessions/kde.desktop ])
2784 AC_CONFIG_FILES([ khelpcenter/searchhandlers/khc_docbookdig.pl ])
2785 AC_CONFIG_FILES([ khelpcenter/searchhandlers/khc_htdig.pl ])
2786 AC_OUTPUT
2787 if test x$have_gl = xno; then
2788   echo ""
2789   echo "You are missing"
2790   if test "$ac_cv_header_GL_gl_h" = "no"; then
2791     echo "    - OpenGL (mesa)"
2792   fi
2793   if test "$ac_cv_header_GL_glu_h" = "no"; then
2794     echo "    - GLU"
2795   fi
2796   echo "OpenGL information module has been disabled."
2797   echo ""
2798   all_tests=bad
2799 fi
2800 if test "x$with_libusb" = xcheck && test "x$have_libusb" = xno; then
2801   echo ""
2802   echo "Logitech mouse support is disabled. Provide libusb to enable it."
2803   echo ""
2804 fi
2805 dnl put here things which have to be done as very last part of configure
2806
2807 if test -z "$FONTINST_SUBDIR"; then
2808   echo ""
2809   echo "KFontInstall control module got disabled from compilation"
2810   echo "because of missing FreeType 2.x libraries/headers."
2811   echo "You can download the freetype library from http://www.freetype.org/."
2812   echo ""
2813   all_tests=bad
2814 fi
2815
2816
2817 if $kdm_no_Xau; then
2818   AC_MSG_WARN([Cannot build KDM! Make sure that libXau.a is installed!])
2819 fi
2820 if $kdm_no_Xdmcp; then
2821   AC_MSG_WARN([Cannot build KDM! Make sure that libXdmcp.a and Xdmcp.h 
2822 are installed or use --without-xdmcp to disable XDMCP support!])
2823 fi
2824
2825 if test -z "$SASL2_LIBS"; then
2826   echo ""
2827   echo "cyrus-sasl 2 library is missing. The pop3 and smtp ioslaves will lack of a lot of authentication methods."
2828   echo "See http://asg.web.cmu.edu/sasl/sasl-library.html or your distribution's packages."
2829   echo ""
2830   all_tests=bad
2831 fi
2832 if test "x$with_samba" = xcheck && test "x$have_libsmbclient" = xno; then
2833   echo ""
2834   echo "You're missing libsmbclient from samba 3.0"
2835   echo "KDE will not be able to browse windows shares without it,"
2836   echo "consider installing it."
2837   echo "Look at kioslave/smb/libsmbclient-HOWTO.txt"
2838   echo ""
2839   all_tests=bad
2840 fi
2841 dnl put here things which have to be done as very last part of configure
2842
2843 if test "d58a0606ed616820de291d594602665d" '!=' `echo fnord | $MD5SUM | cut -d ' ' $MD5SUM_CUT` ; then
2844   echo ""
2845   echo "Your md5 program ( $MD5SUM | cut -d ' ' $MD5SUM_CUT ) produces broken output."
2846   echo "The fish:// IOSlave may not function correctly."
2847   echo ""
2848 fi
2849
2850 if test "$EXRSTATUS" = "no"; then
2851   echo ""
2852   echo "No OpenEXR Libraries were found"
2853   echo "Install the OpenEXR package (from http://www.openexr.org)"
2854   echo "if you want EXR image format support"
2855   echo ""
2856 fi
2857
2858 if test "$EXRSTATUS" = "old"; then
2859   echo ""
2860   echo "OpenEXR libraries were found, but at least version 1.1.0 is required"
2861   echo "Install a newer OpenEXR package (from http://www.openexr.org)"
2862   echo "if you want EXR image format support"
2863   echo ""
2864 fi
2865
2866 # Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
2867 if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
2868   # And if so, warn when they don't match
2869   if test "$kde_libs_prefix" != "$given_prefix"; then
2870     # And if kde doesn't know about the prefix yet
2871     echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
2872     if test $? -ne 0; then
2873       echo ""
2874       echo "Warning: you chose to install this package in $given_prefix,"
2875       echo "but KDE was found in $kde_libs_prefix."
2876       echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
2877       echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
2878       echo "Then restart KDE."
2879       echo ""
2880     fi
2881   fi
2882 fi
2883
2884 if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
2885   echo ""
2886   echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
2887   echo "was not included. Therefore, GCC symbol visibility support remains disabled."
2888   echo ""
2889   echo "For better performance, consider including the Qt visibility supporting patch"
2890   echo "located at:"
2891   echo ""
2892   echo "http://bugs.kde.org/show_bug.cgi?id=109386"
2893   echo ""
2894   echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
2895   echo "everything will continue to work just fine without it."
2896   echo ""
2897 fi
2898
2899 if test "$all_tests" = "bad"; then
2900   if test ! "$cache_file" = "/dev/null"; then
2901     echo ""
2902     echo "Please remove the file $cache_file after changing your setup"
2903     echo "so that configure will find the changes next time."
2904     echo ""
2905   fi
2906 else
2907   echo ""
2908   echo "Good - your configure finished. Start make now"
2909   echo ""
2910 fi