2 KDE_ENABLE_HIDDEN_VISIBILITY
4 DO_NOT_COMPILE="$DO_NOT_COMPILE kopete"
6 dnl Checks for header files.
7 AC_CHECK_HEADERS(linux/tcp.h linux/if_ppp.h)
8 AC_CHECK_HEADERS(net/errno.h net/if_ppp.h)
9 AC_CHECK_HEADERS(asm/param.h)
10 AC_CHECK_HEADERS(sys/file.h sys/stat.h sys/time.h sys/cdefs.h sys/sockio.h)
11 AC_CHECK_HEADERS(fcntl.h unistd.h fnmatch.h sysent.h strings.h paths.h)
12 AC_CHECK_HEADERS(utmp.h re_comp.h getopt.h byteswap.h)
13 AC_CHECK_HEADER([resolv.h],,,[#include <netinet/in.h>])
17 if test "$ac_cv_sys_file_offset_bits" != no; then
18 CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
21 if test "x$ac_cv_sys_large_files" != "xno"; then
22 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=1"
28 dnl Checks for library functions.
29 AC_CHECK_FUNCS(socket fabsl strdup vsnprintf tzset)
32 AC_CHECK_GETDOMAINNAME
36 AC_CHECK_FUNC(res_init)
37 if test "$ac_cv_func_res_init" = no; then
38 AC_CHECK_LIB(resolv, res_init, LIBRESOLV="-lresolv $LIBSOCKET", , $LIBSOCKET)
42 AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone,
47 ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no))
48 if test $ac_cv_var_timezone = yes; then
49 AC_DEFINE(HAVE_TIMEZONE, 1, [define if you have a timezone variable])
51 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
57 ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no))
58 if test $ac_cv_struct_tm_gmtoff = yes; then
59 AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm])
63 dnl define the configure option that disables slp
64 AC_ARG_ENABLE(slp, [ --disable-slp don't require libslp (Browsing in krfb and krdc not possible) ], with_slp=$enableval, with_slp=yes)
65 if test "$with_slp" = "yes"; then
66 AC_MSG_CHECKING(for SLP support)
67 save_slptest_LIBS="$LIBS"
68 save_slptest_LDFLAGS="$LDFLAGS"
69 save_slptest_CPPFLAGS="$CPPFLAGS"
70 LDFLAGS="$all_libraries $LDFLAGS"
71 CPPFLAGS="$CPPFLAGS $all_includes"
76 SLPOpen(0, SLP_FALSE, (SLPHandle*) 0);
78 AC_DEFINE(HAVE_SLP,1,[Define if SLP is available])
85 CPPFLAGS=$save_slptest_CPPFLAGS
86 LDFLAGS=$save_slptest_LDFLAGS
87 LIBS=$save_slptest_LIBS
93 dnl For apps that NEED threads
94 if test -z "$LIBPTHREAD" && test -z "$USE_THREADS"; then
95 DO_NOT_COMPILE="$DO_NOT_COMPILE kdict krfb krdc"
97 CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
99 AH_VERBATIM(_osf_config_h,
102 /* From Tom Leitner */
109 #ifndef __OSF_INCLUDED__
110 #define __OSF_INCLUDED__
111 #define MSG_NOSIGNAL 0
113 #define AF_LOCAL 1 /* is the same as AF_UNIX */
116 #define herror(a) printf(a)
119 #include <sys/types.h>
121 extern "C" int sethostname (char *name, int name_len );
122 extern "C" int flock(int filedes, int operation );
124 int sethostname (char *name, int name_len );
125 int flock(int filedes, int operation );