comparison configure.ac @ 30708:9a86ddd0914e

propagate from branch 'im.pidgin.pidgin' (head fc8a21d1f30004cf7a468e8ab79c0f922c6c4a3e) to branch 'im.pidgin.cpw.qulogic.msnp16' (head 338fa5f69bb7675fc80f890f27023b462eadb1fa)
author masca@cpw.pidgin.im
date Wed, 10 Mar 2010 17:58:21 +0000
parents d27d7b280bdb
children f7d03842b9c9
comparison
equal deleted inserted replaced
30707:994798816048 30708:9a86ddd0914e
70 will fail. Relocate this source tree to a path that does not contain 70 will fail. Relocate this source tree to a path that does not contain
71 spaces and run configure again. 71 spaces and run configure again.
72 ]) 72 ])
73 fi 73 fi
74 74
75 AC_CANONICAL_SYSTEM 75 AC_CANONICAL_HOST
76 AM_CONFIG_HEADER(config.h) 76 AC_CONFIG_HEADERS([config.h])
77 AM_INIT_AUTOMAKE([1.9 -Wno-portability dist-bzip2]) 77 AM_INIT_AUTOMAKE([1.9 -Wno-portability dist-bzip2])
78 78
79 PURPLE_MAJOR_VERSION=purple_major_version 79 PURPLE_MAJOR_VERSION=purple_major_version
80 PURPLE_MINOR_VERSION=purple_minor_version 80 PURPLE_MINOR_VERSION=purple_minor_version
81 PURPLE_MICRO_VERSION=purple_micro_version 81 PURPLE_MICRO_VERSION=purple_micro_version
150 dnl If we don't have msgfmt, then po/ is going to fail -- ensure that 150 dnl If we don't have msgfmt, then po/ is going to fail -- ensure that
151 dnl AM_GLIB_GNU_GETTEXT found it. 151 dnl AM_GLIB_GNU_GETTEXT found it.
152 152
153 if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT$INTLTOOL_MSGFMT = x 153 if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT$INTLTOOL_MSGFMT = x
154 then 154 then
155 AC_ERROR([ 155 AC_MSG_ERROR([
156 156
157 The msgfmt command is required to build libpurple. If it is installed 157 The msgfmt command is required to build libpurple. If it is installed
158 on your system, ensure that it is in your path. If it is not, install 158 on your system, ensure that it is in your path. If it is not, install
159 GNU gettext to continue. 159 GNU gettext to continue.
160 160
165 configure again, like this: 165 configure again, like this:
166 166
167 MSGFMT=/path/to/msgfmt ./configure ... 167 MSGFMT=/path/to/msgfmt ./configure ...
168 ]) 168 ])
169 fi 169 fi
170
171 dnl we don't use autobreak on cygwin!!
172 dnl AC_CYGWIN
173 170
174 dnl Checks for header files. 171 dnl Checks for header files.
175 AC_HEADER_STDC 172 AC_HEADER_STDC
176 AC_HEADER_SYS_WAIT 173 AC_HEADER_SYS_WAIT
177 AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h) 174 AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h)
196 AC_LIBOBJ(getopt1) 193 AC_LIBOBJ(getopt1)
197 ]) 194 ])
198 195
199 dnl Check for inet_aton 196 dnl Check for inet_aton
200 AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, , 197 AC_CHECK_FUNC(inet_aton, , [AC_CHECK_LIB(resolv, inet_aton, ,
201 [AC_ERROR(inet_aton not found)])]) 198 [AC_MSG_ERROR([inet_aton not found])])])
202 AC_CHECK_LIB(resolv, __res_query) 199 AC_CHECK_LIB(resolv, __res_query)
203 AC_CHECK_LIB(nsl, gethostent) 200 AC_CHECK_LIB(nsl, gethostent)
204 AC_CHECK_FUNC(socket, , 201 AC_CHECK_FUNC(socket, ,
205 [AC_CHECK_LIB(socket, socket, , [AC_ERROR([socket not found])])]) 202 [AC_CHECK_LIB(socket, socket, , [AC_MSG_ERROR([socket not found])])])
206 dnl If all goes well, by this point the previous two checks will have 203 dnl If all goes well, by this point the previous two checks will have
207 dnl pulled in -lsocket and -lnsl if we need them. 204 dnl pulled in -lsocket and -lnsl if we need them.
208 AC_CHECK_FUNC(getaddrinfo, 205 AC_CHECK_FUNC(getaddrinfo,
209 [AC_DEFINE([HAVE_GETADDRINFO], [1], 206 [AC_DEFINE([HAVE_GETADDRINFO], [1],
210 [Define to 1 if you have the getaddrinfo function.])], 207 [Define to 1 if you have the getaddrinfo function.])],
212 [AC_DEFINE([HAVE_GETADDRINFO]) LIBS="-lsocket -lsnl $LIBS"], , , -lnsl)]) 209 [AC_DEFINE([HAVE_GETADDRINFO]) LIBS="-lsocket -lsnl $LIBS"], , , -lnsl)])
213 AC_CHECK_FUNCS(inet_ntop) 210 AC_CHECK_FUNCS(inet_ntop)
214 AC_CHECK_FUNCS(getifaddrs) 211 AC_CHECK_FUNCS(getifaddrs)
215 dnl Check for socklen_t (in Unix98) 212 dnl Check for socklen_t (in Unix98)
216 AC_MSG_CHECKING(for socklen_t) 213 AC_MSG_CHECKING(for socklen_t)
217 AC_TRY_COMPILE([ 214 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
218 #include <sys/types.h> 215 #include <sys/types.h>
219 #include <sys/socket.h> 216 #include <sys/socket.h>
220 socklen_t x; 217 socklen_t x;
221 ], [], 218 ]], [[]])], [
222 [
223 AC_MSG_RESULT(yes) 219 AC_MSG_RESULT(yes)
224 ], [ 220 ], [
225 AC_TRY_COMPILE([ 221 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
226 #include <sys/types.h> 222 #include <sys/types.h>
227 #include <sys/socket.h> 223 #include <sys/socket.h>
228 int accept(int, struct sockaddr *, size_t *); 224 int accept(int, struct sockaddr *, size_t *);
229 ], [], [ 225 ]], [[]])], [
230 AC_MSG_RESULT(size_t) 226 AC_MSG_RESULT(size_t)
231 AC_DEFINE(socklen_t, size_t, [socklen_t size]) 227 AC_DEFINE(socklen_t, size_t, [socklen_t size])
232 ], [ 228 ], [
233 AC_MSG_RESULT(int) 229 AC_MSG_RESULT(int)
234 AC_DEFINE(socklen_t, int, [socklen_t size]) 230 AC_DEFINE(socklen_t, int, [socklen_t size])
247 243
248 dnl FreeBSD doesn't have libdl, dlopen is provided by libc 244 dnl FreeBSD doesn't have libdl, dlopen is provided by libc
249 AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")]) 245 AC_CHECK_FUNC(dlopen, LIBDL="", [AC_CHECK_LIB(dl, dlopen, LIBDL="-ldl")])
250 246
251 AC_MSG_CHECKING(for fileno()) 247 AC_MSG_CHECKING(for fileno())
252 AC_TRY_RUN([ 248 AC_RUN_IFELSE([AC_LANG_SOURCE([[
253 #include <stdio.h> 249 #include <stdio.h>
254 250
255 int main(int argc, char *argv[]) 251 int main(int argc, char *argv[])
256 { 252 {
257 int fd; 253 int fd;
258 254
259 fd = fileno(stdout); 255 fd = fileno(stdout);
260 256
261 return !(fd > 0); 257 return !(fd > 0);
262 } 258 }
263 ], [ 259 ]])], [
264 AC_MSG_RESULT(yes) 260 AC_MSG_RESULT(yes)
265 AC_DEFINE([HAVE_FILENO], [1], 261 AC_DEFINE([HAVE_FILENO], [1],
266 [Define to 1 if your stdio has int fileno(FILE *).]) 262 [Define to 1 if your stdio has int fileno(FILE *).])
267 ], [ 263 ], [
268 AC_MSG_RESULT(no) 264 AC_MSG_RESULT(no)
271 # This will enable the compatibility code. 267 # This will enable the compatibility code.
272 AC_MSG_RESULT(no) 268 AC_MSG_RESULT(no)
273 ]) 269 ])
274 270
275 AC_MSG_CHECKING(for the %z format string in strftime()) 271 AC_MSG_CHECKING(for the %z format string in strftime())
276 AC_TRY_RUN([ 272 AC_RUN_IFELSE([AC_LANG_SOURCE([[
277 #ifdef HAVE_SYS_TIME_H 273 #ifdef HAVE_SYS_TIME_H
278 #include <sys/time.h> 274 #include <sys/time.h>
279 #endif 275 #endif
280 #include <time.h> 276 #include <time.h>
281 #include <stdio.h> 277 #include <stdio.h>
295 (buf[2] >= '0' && buf[2] <= '9') && 291 (buf[2] >= '0' && buf[2] <= '9') &&
296 (buf[3] >= '0' && buf[3] <= '9') && 292 (buf[3] >= '0' && buf[3] <= '9') &&
297 (buf[4] >= '0' && buf[4] <= '9') 293 (buf[4] >= '0' && buf[4] <= '9')
298 ); 294 );
299 } 295 }
300 ], [ 296 ]])], [
301 AC_MSG_RESULT(yes) 297 AC_MSG_RESULT(yes)
302 AC_DEFINE([HAVE_STRFTIME_Z_FORMAT], [1], 298 AC_DEFINE([HAVE_STRFTIME_Z_FORMAT], [1],
303 [Define to 1 if you have a strftime() that supports the %z format string.]) 299 [Define to 1 if you have a strftime() that supports the %z format string.])
304 ], [ 300 ], [
305 AC_MSG_RESULT(no) 301 AC_MSG_RESULT(no)
306 ], [ 302 ], [
307 # Fallback for Cross Compiling... 303 # Fallback for Cross Compiling...
308 # This will enable the compatibility code. 304 # This will enable the compatibility code.
309 AC_MSG_RESULT(no) 305 AC_MSG_RESULT(no)
310 ] 306 ])
311 )
312 307
313 dnl ####################################################################### 308 dnl #######################################################################
314 dnl # Check for GLib 2.12 (required) 309 dnl # Check for GLib 2.12 (required)
315 dnl ####################################################################### 310 dnl #######################################################################
316 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.12.0 gobject-2.0 gmodule-2.0 gthread-2.0], , [ 311 PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.12.0 gobject-2.0 gmodule-2.0 gthread-2.0], , [
456 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"],[],[-lX11 -lXext -lm]) 451 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"],[],[-lX11 -lXext -lm])
457 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss"],[],[-lX11 -lXext -lm]) 452 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss"],[],[-lX11 -lXext -lm])
458 if test "x$XSS_LIBS" != "x"; then 453 if test "x$XSS_LIBS" != "x"; then
459 oldCPPFLAGS="$CPPFLAGS" 454 oldCPPFLAGS="$CPPFLAGS"
460 CPPFLAGS="$CPPFLAGS $x_incpath_add" 455 CPPFLAGS="$CPPFLAGS $x_incpath_add"
461 AC_TRY_COMPILE([ 456 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
462 #include <X11/Xlib.h> 457 #include <X11/Xlib.h>
463 #include <X11/extensions/scrnsaver.h> 458 #include <X11/extensions/scrnsaver.h>
464 ], [], [], [enable_screensaver=no]) 459 ]], [[]])], [], [enable_screensaver=no])
465 CPPFLAGS="$oldCPPFLAGS" 460 CPPFLAGS="$oldCPPFLAGS"
466 else 461 else
467 enable_screensaver=no 462 enable_screensaver=no
468 fi 463 fi
469 LIBS="$old_LIBS" 464 LIBS="$old_LIBS"
646 for location in $ac_ncurses_includes $NCURSES_HEADERS /usr/include/ncursesw /usr/include 641 for location in $ac_ncurses_includes $NCURSES_HEADERS /usr/include/ncursesw /usr/include
647 do 642 do
648 f="$location/ncurses.h" 643 f="$location/ncurses.h"
649 AC_CHECK_HEADER($f,[ 644 AC_CHECK_HEADER($f,[
650 AC_MSG_CHECKING([if $f supports wide characters]) 645 AC_MSG_CHECKING([if $f supports wide characters])
651 AC_TRY_COMPILE([ 646 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
652 #define _XOPEN_SOURCE_EXTENDED 647 #define _XOPEN_SOURCE_EXTENDED
653 #include <$f> 648 #include <$f>
654 ], [ 649 ]], [[
655 #ifndef get_wch 650 #ifndef get_wch
656 # error get_wch not found! 651 # error get_wch not found!
657 #endif 652 #endif
658 ], [ 653 ]])], [
659 dir=$location 654 dir=$location
660 if test x"$dir" != x"." ; then 655 if test x"$dir" != x"." ; then
661 GNT_CFLAGS="-I$dir/" 656 GNT_CFLAGS="-I$dir/"
662 else 657 else
663 GNT_CFLAGS="" 658 GNT_CFLAGS=""
995 AC_DEFINE(HAVE_SILCMIME_H, 1, [Define if we have silcmime.h]) 990 AC_DEFINE(HAVE_SILCMIME_H, 1, [Define if we have silcmime.h])
996 elif test "x$silc10client" = "xyes"; then 991 elif test "x$silc10client" = "xyes"; then
997 CPPFLAGS_save="$CPPFLAGS" 992 CPPFLAGS_save="$CPPFLAGS"
998 CPPFLAGS="$CPPFLAGS $SILC_CFLAGS" 993 CPPFLAGS="$CPPFLAGS $SILC_CFLAGS"
999 AC_MSG_CHECKING(for silcmime.h) 994 AC_MSG_CHECKING(for silcmime.h)
1000 AC_TRY_COMPILE([ 995 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1001 #include <silcincludes.h> 996 #include <silcincludes.h>
1002 #include <silcmime.h> 997 #include <silcmime.h>
1003 ], [], [ 998 ]], [[]])], [
1004 AC_MSG_RESULT(yes) 999 AC_MSG_RESULT(yes)
1005 AC_DEFINE(HAVE_SILCMIME_H, 1, [Define if we have silcmime.h]) 1000 AC_DEFINE(HAVE_SILCMIME_H, 1, [Define if we have silcmime.h])
1006 ], [ 1001 ], [
1007 AC_MSG_RESULT(no) 1002 AC_MSG_RESULT(no)
1008 ]) 1003 ])
1020 gadu_manual_check="yes" 1015 gadu_manual_check="yes"
1021 else 1016 else
1022 gadu_manual_check="no" 1017 gadu_manual_check="no"
1023 fi 1018 fi
1024 if test "x$gadu_manual_check" = "xno"; then 1019 if test "x$gadu_manual_check" = "xno"; then
1025 PKG_CHECK_MODULES(GADU, libgadu, [ 1020 PKG_CHECK_MODULES(GADU, [libgadu >= 1.9.0-rc2], [
1026 gadu_includes="yes" 1021 gadu_includes="yes"
1027 gadu_libs="yes" 1022 gadu_libs="yes"
1028 ], [ 1023 ], [
1029 gadu_includes="no" 1024 gadu_includes="no"
1030 ]) 1025 ])
1047 1042
1048 if test "x$gadu_libs" = "xyes"; then 1043 if test "x$gadu_libs" = "xyes"; then
1049 AC_MSG_CHECKING(for libgadu GPL compatibility) 1044 AC_MSG_CHECKING(for libgadu GPL compatibility)
1050 CPPFLAGS_save="$CPPFLAGS" 1045 CPPFLAGS_save="$CPPFLAGS"
1051 CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" 1046 CPPFLAGS="$CPPFLAGS $GADU_CFLAGS"
1052 AC_TRY_COMPILE([#include <libgadu.h>], [ 1047 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgadu.h>]], [[
1053 #if defined(__GG_LIBGADU_HAVE_OPENSSL) || defined(GG_CONFIG_HAVE_OPENSSL) 1048 #if defined(__GG_LIBGADU_HAVE_OPENSSL) || defined(GG_CONFIG_HAVE_OPENSSL)
1054 #error "libgadu is not compatible with the GPL when compiled with OpenSSL support." 1049 #error "libgadu is not compatible with the GPL when compiled with OpenSSL support."
1055 #endif 1050 #endif
1056 ], [ 1051 ]])], [
1057 AC_MSG_RESULT(yes) 1052 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <libgadu.h>]], [[
1058 AC_DEFINE([HAVE_LIBGADU], [1], 1053 #if GG_DEFAULT_PROTOCOL_VERSION < 0x2e
1059 [Define to 1 if you have libgadu.]) 1054 #error "Your libgadu version is too old. libpurple requires 1.9.0-rc2 or higher."
1055 #endif
1056 ]])], [
1057 AC_MSG_RESULT(yes)
1058 AC_DEFINE([HAVE_LIBGADU], [1],
1059 [Define to 1 if you have libgadu.])
1060 ], [
1061 AC_MSG_RESULT(no)
1062 echo
1063 echo
1064 echo "Your supplied copy of libgadu is too old."
1065 echo "Install version 1.9.0-rc2 or newer."
1066 echo "Then rerun this ./configure"
1067 echo
1068 echo "Falling back to using our own copy of libgadu"
1069 echo
1070 GADU_LIBS=""
1071 GADU_CFLAGS=""
1072 gadu_libs=no
1073 ])
1060 ], [ 1074 ], [
1061 AC_MSG_RESULT(no) 1075 AC_MSG_RESULT(no)
1062 echo 1076 echo
1063 echo 1077 echo
1064 echo "libgadu is not compatible with the GPL when compiled with OpenSSL support." 1078 echo "libgadu is not compatible with the GPL when compiled with OpenSSL support."
1075 CPPFLAGS="$CPPFLAGS_save" 1089 CPPFLAGS="$CPPFLAGS_save"
1076 fi 1090 fi
1077 1091
1078 AM_CONDITIONAL(USE_INTERNAL_LIBGADU, test "x$gadu_libs" != "xyes") 1092 AM_CONDITIONAL(USE_INTERNAL_LIBGADU, test "x$gadu_libs" != "xyes")
1079 1093
1094 if test "x$gadu_libs" = "x"; then
1095 gadu_libs=no
1096 fi
1097
1080 AC_SUBST(GADU_LIBS) 1098 AC_SUBST(GADU_LIBS)
1081 AC_SUBST(GADU_CFLAGS) 1099 AC_SUBST(GADU_CFLAGS)
1082
1083 # change the next line to not make MSNP15 the default (s/disable/enable/; s/yes/no/;)
1084 AC_ARG_ENABLE(msnp15,[AC_HELP_STRING([--disable-msnp15], [Disable the newer MSNP15 protocol])],enable_msnp15=$enableval,enable_msnp15=yes)
1085 1100
1086 AC_ARG_ENABLE(distrib,,,enable_distrib=no) 1101 AC_ARG_ENABLE(distrib,,,enable_distrib=no)
1087 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") 1102 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes")
1088 DYNAMIC_PRPLS=all 1103 DYNAMIC_PRPLS=all
1089 AC_ARG_WITH(static-prpls, [AC_HELP_STRING([--with-static-prpls], [Link to certain protocols statically])], [STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`], [STATIC_PRPLS=""]) 1104 AC_ARG_WITH(static-prpls, [AC_HELP_STRING([--with-static-prpls], [Link to certain protocols statically])], [STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`], [STATIC_PRPLS=""])
1097 if test "x$have_meanwhile" != "xyes" ; then 1112 if test "x$have_meanwhile" != "xyes" ; then
1098 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'` 1113 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'`
1099 fi 1114 fi
1100 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 1115 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
1101 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'` 1116 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'`
1102 fi
1103 if test "x$enable_msnp15" != "xyes" ; then
1104 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/msn/msnp9/'`
1105 fi 1117 fi
1106 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then 1118 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
1107 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc/silc10/'` 1119 STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc/silc10/'`
1108 fi 1120 fi
1109 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then 1121 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then
1131 else 1143 else
1132 if test "x$i" = "xsilc"; then 1144 if test "x$i" = "xsilc"; then
1133 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.la" 1145 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.la"
1134 elif test "x$i" = "xsilc10"; then 1146 elif test "x$i" = "xsilc10"; then
1135 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libsilcpurple.la" 1147 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libsilcpurple.la"
1136 elif test "x$i" = "xmsnp9"; then
1137 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libmsn.la"
1138 else 1148 else
1139 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib$i.la" 1149 STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib$i.la"
1140 fi 1150 fi
1141 extern_init="$extern_init extern gboolean purple_init_${i}_plugin();" 1151 extern_init="$extern_init extern gboolean purple_init_${i}_plugin();"
1142 load_proto="$load_proto purple_init_${i}_plugin();" 1152 load_proto="$load_proto purple_init_${i}_plugin();"
1145 bonjour) static_bonjour=yes ;; 1155 bonjour) static_bonjour=yes ;;
1146 gg) static_gg=yes ;; 1156 gg) static_gg=yes ;;
1147 irc) static_irc=yes ;; 1157 irc) static_irc=yes ;;
1148 jabber) static_jabber=yes ;; 1158 jabber) static_jabber=yes ;;
1149 msn) static_msn=yes ;; 1159 msn) static_msn=yes ;;
1150 msnp9) static_msn=yes ;;
1151 myspace) static_myspace=yes ;; 1160 myspace) static_myspace=yes ;;
1152 mxit) static_mxit=yes ;; 1161 mxit) static_mxit=yes ;;
1153 novell) static_novell=yes ;; 1162 novell) static_novell=yes ;;
1154 oscar) static_oscar=yes ;; 1163 oscar) static_oscar=yes ;;
1155 aim) static_oscar=yes ;; 1164 aim) static_oscar=yes ;;
1191 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'` 1200 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'`
1192 fi 1201 fi
1193 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then 1202 if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
1194 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'` 1203 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'`
1195 fi 1204 fi
1196 if test "x$enable_msnp15" != "xyes" ; then
1197 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/msn/msnp9/'`
1198 fi
1199 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then 1205 if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
1200 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc/silc10/'` 1206 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc/silc10/'`
1201 fi 1207 fi
1202 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then 1208 if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then
1203 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc10//'` 1209 DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc10//'`
1208 bonjour) dynamic_bonjour=yes ;; 1214 bonjour) dynamic_bonjour=yes ;;
1209 gg) dynamic_gg=yes ;; 1215 gg) dynamic_gg=yes ;;
1210 irc) dynamic_irc=yes ;; 1216 irc) dynamic_irc=yes ;;
1211 jabber) dynamic_jabber=yes ;; 1217 jabber) dynamic_jabber=yes ;;
1212 msn) dynamic_msn=yes ;; 1218 msn) dynamic_msn=yes ;;
1213 msnp9) dynamic_msn=yes ;;
1214 myspace) dynamic_myspace=yes ;; 1219 myspace) dynamic_myspace=yes ;;
1215 mxit) dynamic_mxit=yes ;; 1220 mxit) dynamic_mxit=yes ;;
1216 novell) dynamic_novell=yes ;; 1221 novell) dynamic_novell=yes ;;
1217 null) dynamic_null=yes ;; 1222 null) dynamic_null=yes ;;
1218 oscar) dynamic_oscar=yes ;; 1223 oscar) dynamic_oscar=yes ;;
1279 "-Wundef" \ 1284 "-Wundef" \
1280 ; do 1285 ; do
1281 orig_CFLAGS="$CFLAGS" 1286 orig_CFLAGS="$CFLAGS"
1282 CFLAGS="$CFLAGS $newflag" 1287 CFLAGS="$CFLAGS $newflag"
1283 AC_MSG_CHECKING(for $newflag option to gcc) 1288 AC_MSG_CHECKING(for $newflag option to gcc)
1284 AC_TRY_COMPILE([], [ 1289 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
1285 int main() {return 0;} 1290 int main() {return 0;}
1286 ], [ 1291 ]])], [
1287 AC_MSG_RESULT(yes) 1292 AC_MSG_RESULT(yes)
1288 CFLAGS="$orig_CFLAGS" 1293 CFLAGS="$orig_CFLAGS"
1289 DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag" 1294 DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag"
1290 ], [ 1295 ], [
1291 AC_MSG_RESULT(no) 1296 AC_MSG_RESULT(no)
1293 ]) 1298 ])
1294 done 1299 done
1295 1300
1296 if test "x$enable_fortify" = "xyes"; then 1301 if test "x$enable_fortify" = "xyes"; then
1297 AC_MSG_CHECKING(for FORTIFY_SOURCE support) 1302 AC_MSG_CHECKING(for FORTIFY_SOURCE support)
1298 AC_TRY_COMPILE([#include <features.h>], [ 1303 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <features.h>]], [[
1299 int main() { 1304 int main() {
1300 #if !(__GNUC_PREREQ (4, 1) \ 1305 #if !(__GNUC_PREREQ (4, 1) \
1301 || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)) \ 1306 || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)) \
1302 || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (3, 4) \ 1307 || (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (3, 4) \
1303 && __GNUC_MINOR__ == 4 \ 1308 && __GNUC_MINOR__ == 4 \
1305 || (__GNUC_PATCHLEVEL__ == 2 && __GNUC_RH_RELEASE__ >= 8)))) 1310 || (__GNUC_PATCHLEVEL__ == 2 && __GNUC_RH_RELEASE__ >= 8))))
1306 #error No FORTIFY_SOURCE support 1311 #error No FORTIFY_SOURCE support
1307 #endif 1312 #endif
1308 return 0; 1313 return 0;
1309 } 1314 }
1310 ], [ 1315 ]])], [
1311 AC_MSG_RESULT(yes) 1316 AC_MSG_RESULT(yes)
1312 DEBUG_CFLAGS="$DEBUG_CFLAGS -Wp,-D_FORTIFY_SOURCE=2" 1317 DEBUG_CFLAGS="$DEBUG_CFLAGS -Wp,-D_FORTIFY_SOURCE=2"
1313 ], [ 1318 ], [
1314 AC_MSG_RESULT(no) 1319 AC_MSG_RESULT(no)
1315 ]) 1320 ])
1479 changequote(<<, >>)dnl 1484 changequote(<<, >>)dnl
1480 PY_VERSION=`$pythonpath -c 'import sys ; print sys.version[0:3]'` 1485 PY_VERSION=`$pythonpath -c 'import sys ; print sys.version[0:3]'`
1481 PY_MAJOR=`$pythonpath -c 'import sys ; print sys.version[0:2]'` 1486 PY_MAJOR=`$pythonpath -c 'import sys ; print sys.version[0:2]'`
1482 changequote([, ])dnl 1487 changequote([, ])dnl
1483 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then 1488 if test -f $PY_PREFIX/include/python$PY_VERSION/Python.h -a "$PY_MAJOR" = "2."; then
1489 AC_MSG_RESULT()
1484 AC_CHECK_LIB(pthread, pthread_create, ) 1490 AC_CHECK_LIB(pthread, pthread_create, )
1485 AC_CHECK_LIB(util, openpty, ) 1491 AC_CHECK_LIB(util, openpty, )
1486 AC_CHECK_LIB(db, dbopen, ) 1492 AC_CHECK_LIB(db, dbopen, )
1487 PY_LIBS="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config -lpython$PY_VERSION" 1493 PY_LIBS="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config -lpython$PY_VERSION"
1488 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION" 1494 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
1489 AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.]) 1495 AC_DEFINE(USE_PYTHON, [1], [Define if python headers are available.])
1496 dnl Because the above AC_CHECK_LIB get in the way...
1497 AC_MSG_CHECKING(for Python compile flags)
1490 AC_MSG_RESULT(ok) 1498 AC_MSG_RESULT(ok)
1491 else 1499 else
1492 AC_MSG_RESULT([Can't find Python.h]) 1500 AC_MSG_RESULT([Can't find Python.h])
1493 PY_LIBS="" 1501 PY_LIBS=""
1494 PY_CFLAGS="" 1502 PY_CFLAGS=""
2142 /usr/local/lib" 2150 /usr/local/lib"
2143 for dir in $with_tclconfig $TCLCONFIGDIRS; do 2151 for dir in $with_tclconfig $TCLCONFIGDIRS; do
2144 if test -f $dir/tclConfig.sh; then 2152 if test -f $dir/tclConfig.sh; then
2145 TCLCONFIG=$dir/tclConfig.sh 2153 TCLCONFIG=$dir/tclConfig.sh
2146 AC_MSG_RESULT([yes ($TCLCONFIG)]) 2154 AC_MSG_RESULT([yes ($TCLCONFIG)])
2155 break
2147 fi 2156 fi
2148 done 2157 done
2149 if test "$TCLCONFIG" = "no"; then 2158 if test "$TCLCONFIG" = "no"; then
2150 AC_MSG_RESULT([no]) 2159 AC_MSG_RESULT([no])
2151 enable_tcl=no 2160 enable_tcl=no
2167 AC_MSG_CHECKING([for Tcl linkability]) 2176 AC_MSG_CHECKING([for Tcl linkability])
2168 oldCPPFLAGS=$CPPFLAGS 2177 oldCPPFLAGS=$CPPFLAGS
2169 CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC -I$TCL_PREFIX/include" 2178 CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC -I$TCL_PREFIX/include"
2170 oldLIBS=$LIBS 2179 oldLIBS=$LIBS
2171 LIBS="$LIBS $TCL_LIB_SPEC" 2180 LIBS="$LIBS $TCL_LIB_SPEC"
2172 AC_TRY_LINK([#include <tcl.h>], 2181 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <tcl.h>]],
2173 [Tcl_Interp *interp=NULL; Tcl_Init(interp)], 2182 [[Tcl_Interp *interp=NULL; Tcl_Init(interp)]])],
2174 [AC_MSG_RESULT([yes]);enable_tcl=yes], 2183 [AC_MSG_RESULT([yes]);enable_tcl=yes],
2175 [AC_MSG_RESULT([no]);enable_tcl=no]) 2184 [AC_MSG_RESULT([no]);enable_tcl=no])
2176 CPPFLAGS="$oldCPPFLAGS" 2185 CPPFLAGS="$oldCPPFLAGS"
2177 LIBS="$oldLIBS" 2186 LIBS="$oldLIBS"
2178 fi 2187 fi
2212 /usr/local/lib" 2221 /usr/local/lib"
2213 for dir in $with_tkconfig $TKCONFIGDIRS; do 2222 for dir in $with_tkconfig $TKCONFIGDIRS; do
2214 if test -f $dir/tkConfig.sh; then 2223 if test -f $dir/tkConfig.sh; then
2215 TKCONFIG=$dir/tkConfig.sh 2224 TKCONFIG=$dir/tkConfig.sh
2216 AC_MSG_RESULT([yes ($TKCONFIG)]) 2225 AC_MSG_RESULT([yes ($TKCONFIG)])
2226 break
2217 fi 2227 fi
2218 done 2228 done
2219 if test "$TKCONFIG" = "no"; then 2229 if test "$TKCONFIG" = "no"; then
2220 AC_MSG_RESULT([no]) 2230 AC_MSG_RESULT([no])
2221 enable_tk=no 2231 enable_tk=no
2231 AC_MSG_CHECKING([for Tk linkability]) 2241 AC_MSG_CHECKING([for Tk linkability])
2232 oldCPPFLAGS=$CPPFLAGS 2242 oldCPPFLAGS=$CPPFLAGS
2233 CPPFLAGS="$CPPFLAGS $TCL_CFLAGS" 2243 CPPFLAGS="$CPPFLAGS $TCL_CFLAGS"
2234 oldLIBS=$LIBS 2244 oldLIBS=$LIBS
2235 LIBS="$LIBS $TCL_LIB_SPEC $TK_LIB_SPEC" 2245 LIBS="$LIBS $TCL_LIB_SPEC $TK_LIB_SPEC"
2236 AC_TRY_LINK([#include <tk.h>], 2246 AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <tk.h>]],
2237 [Tcl_Interp *interp=NULL; Tcl_Init(interp); Tk_Init(interp);], 2247 [[Tcl_Interp *interp=NULL; Tcl_Init(interp); Tk_Init(interp);]])],
2238 [AC_MSG_RESULT([yes]);enable_tk=yes], 2248 [AC_MSG_RESULT([yes]);enable_tk=yes],
2239 [AC_MSG_RESULT([no]);enable_tk=no]) 2249 [AC_MSG_RESULT([no]);enable_tk=no])
2240 CPPFLAGS="$oldCPPFLAGS" 2250 CPPFLAGS="$oldCPPFLAGS"
2241 LIBS="$oldLIBS" 2251 LIBS="$oldLIBS"
2242 fi 2252 fi
2284 AM_CONDITIONAL(USE_CYRUS_SASL, true) 2294 AM_CONDITIONAL(USE_CYRUS_SASL, true)
2285 AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present]) 2295 AC_DEFINE(HAVE_CYRUS_SASL, [1], [Define to 1 if Cyrus SASL is present])
2286 SASL_LIBS=-"lsasl2" 2296 SASL_LIBS=-"lsasl2"
2287 ], [ 2297 ], [
2288 AM_CONDITIONAL(USE_CYRUS_SASL, false) 2298 AM_CONDITIONAL(USE_CYRUS_SASL, false)
2289 AC_ERROR(Cyrus SASL library not found) 2299 AC_MSG_ERROR([Cyrus SASL library not found])
2290 ]) 2300 ])
2291 else 2301 else
2292 AM_CONDITIONAL(USE_CYRUS_SASL, false) 2302 AM_CONDITIONAL(USE_CYRUS_SASL, false)
2293 fi 2303 fi
2294 2304
2317 LDFLAGS="$LDFLAGS $KRB4_LDFLAGS" 2327 LDFLAGS="$LDFLAGS $KRB4_LDFLAGS"
2318 AC_CHECK_LIB(krb4, krb_rd_req, 2328 AC_CHECK_LIB(krb4, krb_rd_req,
2319 [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"], 2329 [KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"],
2320 [AC_CHECK_LIB(krb, krb_rd_req, 2330 [AC_CHECK_LIB(krb, krb_rd_req,
2321 [KRB4_LIBS="-lkrb -ldes"], 2331 [KRB4_LIBS="-lkrb -ldes"],
2322 [AC_ERROR(Kerberos 4 libraries not found)], 2332 [AC_MSG_ERROR([Kerberos 4 libraries not found])],
2323 -ldes)], 2333 -ldes)],
2324 -ldes425 -lkrb5 -lk5crypto -lcom_err) 2334 -ldes425 -lkrb5 -lk5crypto -lcom_err)
2325 orig_LIBS="$LIBS" 2335 orig_LIBS="$LIBS"
2326 LIBS="$LIBS $KRB4_LIBS" 2336 LIBS="$LIBS $KRB4_LIBS"
2327 AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm) 2337 AC_CHECK_FUNCS(krb_set_key krb_rd_req krb_get_lrealm)
2351 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") 2361 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno")
2352 orig_LDFLAGS="$LDFLAGS" 2362 orig_LDFLAGS="$LDFLAGS"
2353 LDFLAGS="$LDFLAGS $ZEPHYR_LDFLAGS" 2363 LDFLAGS="$LDFLAGS $ZEPHYR_LDFLAGS"
2354 AC_CHECK_LIB(zephyr, ZInitialize, 2364 AC_CHECK_LIB(zephyr, ZInitialize,
2355 [ZEPHYR_LIBS="-lzephyr"], 2365 [ZEPHYR_LIBS="-lzephyr"],
2356 [AC_ERROR(Zephyr libraries not found)], 2366 [AC_MSG_ERROR([Zephyr libraries not found])],
2357 -lzephyr) 2367 -lzephyr)
2358 orig_LIBS="$LIBS" 2368 orig_LIBS="$LIBS"
2359 LIBS="$orig_LIBS" 2369 LIBS="$orig_LIBS"
2360 LDFLAGS="$orig_LDFLAGS" 2370 LDFLAGS="$orig_LDFLAGS"
2361 fi 2371 fi
2382 2392
2383 AC_CHECK_HEADERS(sys/socket.h) 2393 AC_CHECK_HEADERS(sys/socket.h)
2384 AC_VAR_TIMEZONE_EXTERNALS 2394 AC_VAR_TIMEZONE_EXTERNALS
2385 2395
2386 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff, 2396 AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
2387 AC_TRY_COMPILE([ 2397 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2388 #include <time.h> 2398 #include <time.h>
2389 ], [ 2399 ]], [[
2390 struct tm tm; 2400 struct tm tm;
2391 tm.tm_gmtoff = 1; 2401 tm.tm_gmtoff = 1;
2392 ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)) 2402 ]])], [ac_cv_struct_tm_gmtoff=yes], [ac_cv_struct_tm_gmtoff=no]))
2393 if test $ac_cv_struct_tm_gmtoff = yes; then 2403 if test $ac_cv_struct_tm_gmtoff = yes; then
2394 AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm]) 2404 AC_DEFINE(HAVE_TM_GMTOFF, 1, [Define if you have a tm_gmtoff member in struct tm])
2405 fi
2406
2407 AC_CACHE_CHECK([whether va_lists can be copied by value], ac_cv_va_val_copy,[
2408 AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdarg.h>
2409 #include <stdlib.h>
2410 void f (int i, ...) {
2411 va_list args1, args2;
2412 va_start (args1, i);
2413 args2 = args1;
2414 if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
2415 exit (1);
2416 va_end (args1); va_end (args2);
2417 }
2418 int main() {
2419 f (0, 42);
2420 return 0;
2421 }]])],
2422 [ac_cv_va_val_copy=yes],
2423 [ac_cv_va_val_copy=no],
2424 [ac_cv_va_val_copy=yes])
2425 ])
2426
2427 if test "x$ac_cv_va_val_copy" = "xno"; then
2428 AC_DEFINE(VA_COPY_AS_ARRAY, 1, ['va_lists' cannot be copied as values])
2395 fi 2429 fi
2396 2430
2397 dnl ####################################################################### 2431 dnl #######################################################################
2398 dnl # Check for check 2432 dnl # Check for check
2399 dnl ####################################################################### 2433 dnl #######################################################################
2480 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) 2514 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
2481 fi 2515 fi
2482 2516
2483 AM_CONDITIONAL(PURPLE_AVAILABLE, true) 2517 AM_CONDITIONAL(PURPLE_AVAILABLE, true)
2484 2518
2485 AC_OUTPUT([Makefile 2519 AC_CONFIG_FILES([Makefile
2486 Doxyfile 2520 Doxyfile
2487 doc/Makefile 2521 doc/Makefile
2488 doc/pidgin.1 2522 doc/pidgin.1
2489 doc/finch.1 2523 doc/finch.1
2490 m4macros/Makefile 2524 m4macros/Makefile
2526 libpurple/protocols/bonjour/Makefile 2560 libpurple/protocols/bonjour/Makefile
2527 libpurple/protocols/gg/Makefile 2561 libpurple/protocols/gg/Makefile
2528 libpurple/protocols/irc/Makefile 2562 libpurple/protocols/irc/Makefile
2529 libpurple/protocols/jabber/Makefile 2563 libpurple/protocols/jabber/Makefile
2530 libpurple/protocols/msn/Makefile 2564 libpurple/protocols/msn/Makefile
2531 libpurple/protocols/msnp9/Makefile
2532 libpurple/protocols/myspace/Makefile 2565 libpurple/protocols/myspace/Makefile
2533 libpurple/protocols/mxit/Makefile 2566 libpurple/protocols/mxit/Makefile
2534 libpurple/protocols/novell/Makefile 2567 libpurple/protocols/novell/Makefile
2535 libpurple/protocols/null/Makefile 2568 libpurple/protocols/null/Makefile
2536 libpurple/protocols/oscar/Makefile 2569 libpurple/protocols/oscar/Makefile
2553 finch/libgnt/wms/Makefile 2586 finch/libgnt/wms/Makefile
2554 finch/plugins/Makefile 2587 finch/plugins/Makefile
2555 po/Makefile.in 2588 po/Makefile.in
2556 pidgin.spec 2589 pidgin.spec
2557 ]) 2590 ])
2591 AC_OUTPUT
2558 2592
2559 echo 2593 echo
2560 echo $PACKAGE $VERSION 2594 echo $PACKAGE $VERSION
2561 2595
2562 echo 2596 echo
2581 eval eval echo SSL CA certificates directory. : $SSL_CERTIFICATES_DIR 2615 eval eval echo SSL CA certificates directory. : $SSL_CERTIFICATES_DIR
2582 fi 2616 fi
2583 echo Build with Cyrus SASL support. : $enable_cyrus_sasl 2617 echo Build with Cyrus SASL support. : $enable_cyrus_sasl
2584 echo Use kerberos 4 with zephyr.... : $kerberos 2618 echo Use kerberos 4 with zephyr.... : $kerberos
2585 echo Use external libzephyr........ : $zephyr 2619 echo Use external libzephyr........ : $zephyr
2620 echo Use external libgadu.......... : $gadu_libs
2586 echo Install pixmaps............... : $enable_pixmaps 2621 echo Install pixmaps............... : $enable_pixmaps
2587 echo Install translations.......... : $enable_i18n 2622 echo Install translations.......... : $enable_i18n
2588 echo Has you....................... : yes 2623 echo Has you....................... : yes
2589 echo 2624 echo
2590 echo Use XScreenSaver Extension.... : $enable_screensaver 2625 echo Use XScreenSaver Extension.... : $enable_screensaver