Skip to content
This repository
Browse code

窗口按钮完成。(关闭,最大化,最小化)

通过图片改变按钮外观的办法。
1.主要处理动作在expose事件处理函数中。在画完之后,返回值必需是[
TRUE!否则,按钮原始的expose处理函数会继续绘制按钮,覆盖先前
绘制的图片。
2.由于绘制图片需要设定其实坐标,而且,所有的坐标都是相对于窗口的。
因此,必需获得当前按钮的位置才能正确的绘制图片到相应的位置。
通过函数gtk_widget_get_allocation函数,可以获得widget的Allocation
信息,其中包含按钮的位置坐标和大小。
  • Loading branch information...
commit c6f2bde30d42e7ecafd8dd61fb7aa353ebd53ffe 1 parent 5b0d639
HuangCongyu authored January 25, 2011

Showing 93 changed files with 68,056 additions and 745 deletions. Show diff stats Hide diff stats

  1. 26  Makefile.in
  2. 193  aclocal.m4
  3. 2,311  autom4te.cache/output.1
  4. 13,580  autom4te.cache/output.3
  5. 19,094  autom4te.cache/output.4
  6. 15,711  autom4te.cache/output.5
  7. 726  autom4te.cache/requests
  8. 1,330  autom4te.cache/traces.1
  9. 2,360  autom4te.cache/traces.3
  10. 6,238  autom4te.cache/traces.4
  11. 2,707  autom4te.cache/traces.5
  12. 143  build-aux/compile
  13. 0  build-aux/config.rpath
  14. 111  config.h.in
  15. 2,339  configure
  16. 207  configure.ac
  17. 210  configure.opfetion
  18. 2  src/Makefile.am
  19. 25  src/Makefile.in
  20. 23  src/cli/Makefile.in
  21. 23  src/comm/Makefile.in
  22. 7  src/gui/Makefile.am
  23. 271  src/gui/Makefile.in
  24. 34  src/gui/constval.h
  25. 33  src/gui/qq.c
  26. 238  src/gui/qqbutton.c
  27. 74  src/gui/qqbutton.h
  28. 27  src/gui/qqwindow.c
  29. 3  src/libqq/Makefile.am
  30. 58  src/libqq/Makefile.in
  31. BIN  src/misc/All_window_sizeGripFile.bmp
  32. BIN  src/misc/Button_close_highlightBackground.bmp
  33. BIN  src/misc/Button_close_pushedBackground.bmp
  34. BIN  src/misc/Button_colse_normal.bmp
  35. BIN  src/misc/Button_max_highlightBackground.bmp
  36. BIN  src/misc/Button_max_normalBackground.bmp
  37. BIN  src/misc/Button_max_pushedBackground.bmp
  38. BIN  src/misc/Button_min_highlightBackground.bmp
  39. BIN  src/misc/Button_min_normalBackground.bmp
  40. BIN  src/misc/Button_min_pushedBackground.bmp
  41. BIN  src/misc/Button_restore_highlightBackground.bmp
  42. BIN  src/misc/Button_restore_normal.bmp
  43. BIN  src/misc/Button_restore_pushedBackground.bmp
  44. BIN  src/misc/LoginPanel/LogoFile/2052/Logining.gif
  45. BIN  src/misc/LoginPanel/LogoFile/2052/Logining.gif.keep
  46. BIN  src/misc/LoginPanel/LogoFile/2052/Logining_Vip.gif
  47. BIN  src/misc/LoginPanel/LogoFile/2052/Logining_Vip.gif.keep
  48. BIN  src/misc/LoginPanel/MainPanel_MainFrameTitle_file.png
  49. BIN  src/misc/LoginPanel/keep/All_window_sizeGripFile.bmp.keep
  50. BIN  src/misc/LoginPanel/keep/Button_close_highlightBackground.bmp.keep
  51. BIN  src/misc/LoginPanel/keep/Button_close_pushedBackground.bmp.keep
  52. BIN  src/misc/LoginPanel/keep/Button_colse_normal.bmp.keep
  53. BIN  src/misc/LoginPanel/keep/Button_max_highlightBackground.bmp.keep
  54. BIN  src/misc/LoginPanel/keep/Button_max_normalBackground.bmp.keep
  55. BIN  src/misc/LoginPanel/keep/Button_max_pushedBackground.bmp.keep
  56. BIN  src/misc/LoginPanel/keep/Button_min_highlightBackground.bmp.keep
  57. BIN  src/misc/LoginPanel/keep/Button_min_normalBackground.bmp.keep
  58. BIN  src/misc/LoginPanel/keep/Button_min_pushedBackground.bmp.keep
  59. BIN  src/misc/LoginPanel/keep/Button_restore_highlightBackground.bmp.keep
  60. BIN  src/misc/LoginPanel/keep/Button_restore_normal.bmp.keep
  61. BIN  src/misc/LoginPanel/keep/Button_restore_pushedBackground.bmp.keep
  62. BIN  src/misc/LoginPanel/keep/LoginPanel_LoginButton_background_background.bmp.keep
  63. BIN  src/misc/LoginPanel/keep/LoginPanel_LoginButton_background_foreground.bmp.keep
  64. BIN  src/misc/LoginPanel/keep/LoginPanel_LoginButton_pushedAction_sb1_background_T0.bmp.keep
  65. BIN  src/misc/LoginPanel/keep/LoginPanel_window_windowBkg.bmp.keep
  66. BIN  src/misc/LoginPanel/keep/MainPanel_MainFrameTitle_file.png.keep
  67. BIN  src/misc/LoginPanel_LoginButton_background_background.bmp
  68. BIN  src/misc/LoginPanel_LoginButton_background_foreground.bmp
  69. BIN  src/misc/LoginPanel_LoginButton_pushedAction_sb1_background_T0.bmp
  70. BIN  src/misc/LoginPanel_window_windowBkg.bmp
  71. BIN  src/misc/Logining.gif
  72. BIN  src/misc/MainPanel_Support_DownBackground.bmp
  73. BIN  src/misc/MainPanel_Support_NormalBackground.bmp
  74. BIN  src/misc/MainPanel_Support_highlightBackground.bmp
  75. 23  src/misc/Makefile.am
  76. 445  src/misc/Makefile.in
  77. BIN  src/misc/sound/Classic/Audio.wav
  78. BIN  src/misc/sound/Classic/Global.wav
  79. BIN  src/misc/sound/Classic/msg.wav
  80. BIN  src/misc/sound/Classic/shake.wav
  81. BIN  src/misc/sound/Classic/system.wav
  82. 0  src/misc/sound/Makefile.am
  83. BIN  src/misc/sound/Office/Audio.wav
  84. BIN  src/misc/sound/Office/Global.wav
  85. BIN  src/misc/sound/Office/msg.wav
  86. BIN  src/misc/sound/Office/shake.wav
  87. BIN  src/misc/sound/Office/system.wav
  88. 15  src/test/Makefile.am
  89. 83  src/test/Makefile.in
  90. BIN  src/test/testqqwin
  91. 13  src/test/testqqwin.c
  92. 4  src/tool/Makefile.am
  93. 114  src/tool/Makefile.in
26  Makefile.in
@@ -36,7 +36,8 @@ host_triplet = @host@
36 36
 subdir = .
37 37
 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38 38
 	$(srcdir)/Makefile.in $(srcdir)/config.h.in \
39  
-	$(top_srcdir)/configure build-aux/config.guess \
  39
+	$(top_srcdir)/configure build-aux/compile \
  40
+	build-aux/config.guess build-aux/config.rpath \
40 41
 	build-aux/config.sub build-aux/depcomp build-aux/install-sh \
41 42
 	build-aux/ltmain.sh build-aux/missing
42 43
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -128,7 +129,19 @@ ECHO_T = @ECHO_T@
128 129
 EGREP = @EGREP@
129 130
 EXEEXT = @EXEEXT@
130 131
 FGREP = @FGREP@
  132
+GLIB2_CFLAGS = @GLIB2_CFLAGS@
  133
+GLIB2_LIBS = @GLIB2_LIBS@
  134
+GLIB_CFLAGS = @GLIB_CFLAGS@
  135
+GLIB_LIBS = @GLIB_LIBS@
  136
+GOBJECT2_CFLAGS = @GOBJECT2_CFLAGS@
  137
+GOBJECT2_LIBS = @GOBJECT2_LIBS@
131 138
 GREP = @GREP@
  139
+GSTREAMER_CFLAGS = @GSTREAMER_CFLAGS@
  140
+GSTREAMER_LIBS = @GSTREAMER_LIBS@
  141
+GTHREAD_CFLAGS = @GTHREAD_CFLAGS@
  142
+GTHREAD_LIBS = @GTHREAD_LIBS@
  143
+GTK_CFLAGS = @GTK_CFLAGS@
  144
+GTK_LIBS = @GTK_LIBS@
132 145
 INSTALL = @INSTALL@
133 146
 INSTALL_DATA = @INSTALL_DATA@
134 147
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -136,9 +149,17 @@ INSTALL_SCRIPT = @INSTALL_SCRIPT@
136 149
 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
137 150
 LD = @LD@
138 151
 LDFLAGS = @LDFLAGS@
  152
+LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@
  153
+LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@
139 154
 LIBOBJS = @LIBOBJS@
140 155
 LIBS = @LIBS@
  156
+LIBSSL_CFLAGS = @LIBSSL_CFLAGS@
  157
+LIBSSL_LIBS = @LIBSSL_LIBS@
141 158
 LIBTOOL = @LIBTOOL@
  159
+LIBXML_CFLAGS = @LIBXML_CFLAGS@
  160
+LIBXML_LIBS = @LIBXML_LIBS@
  161
+LIBXSS_CFLAGS = @LIBXSS_CFLAGS@
  162
+LIBXSS_LIBS = @LIBXSS_LIBS@
142 163
 LIPO = @LIPO@
143 164
 LN_S = @LN_S@
144 165
 LTLIBOBJS = @LTLIBOBJS@
@@ -158,6 +179,9 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@
158 179
 PACKAGE_URL = @PACKAGE_URL@
159 180
 PACKAGE_VERSION = @PACKAGE_VERSION@
160 181
 PATH_SEPARATOR = @PATH_SEPARATOR@
  182
+PKG_CONFIG = @PKG_CONFIG@
  183
+PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
  184
+PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
161 185
 RANLIB = @RANLIB@
162 186
 SED = @SED@
163 187
 SET_MAKE = @SET_MAKE@
193  aclocal.m4
@@ -19,6 +19,164 @@ You have another version of autoconf.  It may work, but is not guaranteed to.
19 19
 If you have problems, you may need to regenerate the build system entirely.
20 20
 To do so, use the procedure documented by the package, typically `autoreconf'.])])
21 21
 
  22
+# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
  23
+# serial 1 (pkg-config-0.24)
  24
+# 
  25
+# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  26
+#
  27
+# This program is free software; you can redistribute it and/or modify
  28
+# it under the terms of the GNU General Public License as published by
  29
+# the Free Software Foundation; either version 2 of the License, or
  30
+# (at your option) any later version.
  31
+#
  32
+# This program is distributed in the hope that it will be useful, but
  33
+# WITHOUT ANY WARRANTY; without even the implied warranty of
  34
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  35
+# General Public License for more details.
  36
+#
  37
+# You should have received a copy of the GNU General Public License
  38
+# along with this program; if not, write to the Free Software
  39
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  40
+#
  41
+# As a special exception to the GNU General Public License, if you
  42
+# distribute this file as part of a program that contains a
  43
+# configuration script generated by Autoconf, you may include it under
  44
+# the same distribution terms that you use for the rest of that program.
  45
+
  46
+# PKG_PROG_PKG_CONFIG([MIN-VERSION])
  47
+# ----------------------------------
  48
+AC_DEFUN([PKG_PROG_PKG_CONFIG],
  49
+[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
  50
+m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
  51
+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
  52
+AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
  53
+AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
  54
+
  55
+if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  56
+	AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
  57
+fi
  58
+if test -n "$PKG_CONFIG"; then
  59
+	_pkg_min_version=m4_default([$1], [0.9.0])
  60
+	AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
  61
+	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  62
+		AC_MSG_RESULT([yes])
  63
+	else
  64
+		AC_MSG_RESULT([no])
  65
+		PKG_CONFIG=""
  66
+	fi
  67
+fi[]dnl
  68
+])# PKG_PROG_PKG_CONFIG
  69
+
  70
+# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
  71
+#
  72
+# Check to see whether a particular set of modules exists.  Similar
  73
+# to PKG_CHECK_MODULES(), but does not set variables or print errors.
  74
+#
  75
+# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  76
+# only at the first occurence in configure.ac, so if the first place
  77
+# it's called might be skipped (such as if it is within an "if", you
  78
+# have to call PKG_CHECK_EXISTS manually
  79
+# --------------------------------------------------------------
  80
+AC_DEFUN([PKG_CHECK_EXISTS],
  81
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  82
+if test -n "$PKG_CONFIG" && \
  83
+    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
  84
+  m4_default([$2], [:])
  85
+m4_ifvaln([$3], [else
  86
+  $3])dnl
  87
+fi])
  88
+
  89
+# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
  90
+# ---------------------------------------------
  91
+m4_define([_PKG_CONFIG],
  92
+[if test -n "$$1"; then
  93
+    pkg_cv_[]$1="$$1"
  94
+ elif test -n "$PKG_CONFIG"; then
  95
+    PKG_CHECK_EXISTS([$3],
  96
+                     [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
  97
+		     [pkg_failed=yes])
  98
+ else
  99
+    pkg_failed=untried
  100
+fi[]dnl
  101
+])# _PKG_CONFIG
  102
+
  103
+# _PKG_SHORT_ERRORS_SUPPORTED
  104
+# -----------------------------
  105
+AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
  106
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
  107
+if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  108
+        _pkg_short_errors_supported=yes
  109
+else
  110
+        _pkg_short_errors_supported=no
  111
+fi[]dnl
  112
+])# _PKG_SHORT_ERRORS_SUPPORTED
  113
+
  114
+
  115
+# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
  116
+# [ACTION-IF-NOT-FOUND])
  117
+#
  118
+#
  119
+# Note that if there is a possibility the first call to
  120
+# PKG_CHECK_MODULES might not happen, you should be sure to include an
  121
+# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
  122
+#
  123
+#
  124
+# --------------------------------------------------------------
  125
+AC_DEFUN([PKG_CHECK_MODULES],
  126
+[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
  127
+AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
  128
+AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
  129
+
  130
+pkg_failed=no
  131
+AC_MSG_CHECKING([for $1])
  132
+
  133
+_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
  134
+_PKG_CONFIG([$1][_LIBS], [libs], [$2])
  135
+
  136
+m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
  137
+and $1[]_LIBS to avoid the need to call pkg-config.
  138
+See the pkg-config man page for more details.])
  139
+
  140
+if test $pkg_failed = yes; then
  141
+   	AC_MSG_RESULT([no])
  142
+        _PKG_SHORT_ERRORS_SUPPORTED
  143
+        if test $_pkg_short_errors_supported = yes; then
  144
+	        $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
  145
+        else 
  146
+	        $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
  147
+        fi
  148
+	# Put the nasty error message in config.log where it belongs
  149
+	echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
  150
+
  151
+	m4_default([$4], [AC_MSG_ERROR(
  152
+[Package requirements ($2) were not met:
  153
+
  154
+$$1_PKG_ERRORS
  155
+
  156
+Consider adjusting the PKG_CONFIG_PATH environment variable if you
  157
+installed software in a non-standard prefix.
  158
+
  159
+_PKG_TEXT])[]dnl
  160
+        ])
  161
+elif test $pkg_failed = untried; then
  162
+     	AC_MSG_RESULT([no])
  163
+	m4_default([$4], [AC_MSG_FAILURE(
  164
+[The pkg-config script could not be found or is too old.  Make sure it
  165
+is in your PATH or set the PKG_CONFIG environment variable to the full
  166
+path to pkg-config.
  167
+
  168
+_PKG_TEXT
  169
+
  170
+To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
  171
+        ])
  172
+else
  173
+	$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
  174
+	$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
  175
+        AC_MSG_RESULT([yes])
  176
+	$3
  177
+fi[]dnl
  178
+])# PKG_CHECK_MODULES
  179
+
22 180
 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008  Free Software Foundation, Inc.
23 181
 #
24 182
 # This file is free software; the Free Software Foundation
@@ -639,6 +797,41 @@ AC_MSG_RESULT([$_am_result])
639 797
 rm -f confinc confmf
640 798
 ])
641 799
 
  800
+# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
  801
+# Free Software Foundation, Inc.
  802
+#
  803
+# This file is free software; the Free Software Foundation
  804
+# gives unlimited permission to copy and/or distribute it,
  805
+# with or without modifications, as long as this notice is preserved.
  806
+
  807
+# serial 6
  808
+
  809
+# AM_PROG_CC_C_O
  810
+# --------------
  811
+# Like AC_PROG_CC_C_O, but changed for automake.
  812
+AC_DEFUN([AM_PROG_CC_C_O],
  813
+[AC_REQUIRE([AC_PROG_CC_C_O])dnl
  814
+AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  815
+AC_REQUIRE_AUX_FILE([compile])dnl
  816
+# FIXME: we rely on the cache variable name because
  817
+# there is no other way.
  818
+set dummy $CC
  819
+am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
  820
+eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  821
+if test "$am_t" != yes; then
  822
+   # Losing compiler, so override with the script.
  823
+   # FIXME: It is wrong to rewrite CC.
  824
+   # But if we don't then we get into trouble of one sort or another.
  825
+   # A longer-term fix would be to have automake use am__CC in this case,
  826
+   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  827
+   CC="$am_aux_dir/compile $CC"
  828
+fi
  829
+dnl Make sure AC_PROG_CC is never called again, or it will override our
  830
+dnl setting of CC.
  831
+m4_define([AC_PROG_CC],
  832
+          [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
  833
+])
  834
+
642 835
 # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
643 836
 
644 837
 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
2,311  autom4te.cache/output.1
... ...
@@ -1,6 +1,6 @@
1 1
 @%:@! /bin/sh
2 2
 @%:@ Guess values for system-dependent variables and create Makefiles.
3  
-@%:@ Generated by GNU Autoconf 2.67 for gtkqq 0.1.
  3
+@%:@ Generated by GNU Autoconf 2.67 for GtkQQ 0.1.
4 4
 @%:@
5 5
 @%:@ Report bugs to <huangcongyu2006@gmail.com>.
6 6
 @%:@ 
@@ -699,10 +699,10 @@ MFLAGS=
699 699
 MAKEFLAGS=
700 700
 
701 701
 # Identity of this package.
702  
-PACKAGE_NAME='gtkqq'
  702
+PACKAGE_NAME='GtkQQ'
703 703
 PACKAGE_TARNAME='gtkqq'
704 704
 PACKAGE_VERSION='0.1'
705  
-PACKAGE_STRING='gtkqq 0.1'
  705
+PACKAGE_STRING='GtkQQ 0.1'
706 706
 PACKAGE_BUGREPORT='huangcongyu2006@gmail.com'
707 707
 PACKAGE_URL=''
708 708
 
@@ -746,6 +746,29 @@ ac_subst_vars='am__EXEEXT_FALSE
746 746
 am__EXEEXT_TRUE
747 747
 LTLIBOBJS
748 748
 LIB@&t@OBJS
  749
+GOBJECT2_LIBS
  750
+GOBJECT2_CFLAGS
  751
+GLIB2_LIBS
  752
+GLIB2_CFLAGS
  753
+LIBSSL_LIBS
  754
+LIBSSL_CFLAGS
  755
+GSTREAMER_LIBS
  756
+GSTREAMER_CFLAGS
  757
+LIBNOTIFY_LIBS
  758
+LIBNOTIFY_CFLAGS
  759
+LIBXSS_LIBS
  760
+LIBXSS_CFLAGS
  761
+LIBXML_LIBS
  762
+LIBXML_CFLAGS
  763
+GTHREAD_LIBS
  764
+GTHREAD_CFLAGS
  765
+GLIB_LIBS
  766
+GLIB_CFLAGS
  767
+GTK_LIBS
  768
+GTK_CFLAGS
  769
+PKG_CONFIG_LIBDIR
  770
+PKG_CONFIG_PATH
  771
+PKG_CONFIG
749 772
 CPP
750 773
 OTOOL64
751 774
 OTOOL
@@ -861,6 +884,8 @@ enable_fast_install
861 884
 enable_dependency_tracking
862 885
 with_gnu_ld
863 886
 enable_libtool_lock
  887
+enable_libnotify
  888
+enable_gst
864 889
 enable_debug
865 890
 '
866 891
       ac_precious_vars='build_alias
@@ -871,7 +896,28 @@ CFLAGS
871 896
 LDFLAGS
872 897
 LIBS
873 898
 CPPFLAGS
874  
-CPP'
  899
+CPP
  900
+PKG_CONFIG
  901
+PKG_CONFIG_PATH
  902
+PKG_CONFIG_LIBDIR
  903
+GTK_CFLAGS
  904
+GTK_LIBS
  905
+GTHREAD_CFLAGS
  906
+GTHREAD_LIBS
  907
+LIBXML_CFLAGS
  908
+LIBXML_LIBS
  909
+LIBXSS_CFLAGS
  910
+LIBXSS_LIBS
  911
+LIBNOTIFY_CFLAGS
  912
+LIBNOTIFY_LIBS
  913
+GSTREAMER_CFLAGS
  914
+GSTREAMER_LIBS
  915
+LIBSSL_CFLAGS
  916
+LIBSSL_LIBS
  917
+GLIB2_CFLAGS
  918
+GLIB2_LIBS
  919
+GOBJECT2_CFLAGS
  920
+GOBJECT2_LIBS'
875 921
 
876 922
 
877 923
 # Initialize some variables set by options.
@@ -1414,7 +1460,7 @@ if test "$ac_init_help" = "long"; then
1414 1460
   # Omit some internal or obsolete options to make the list less imposing.
1415 1461
   # This message is too long to be a string in the A/UX 3.1 sh.
1416 1462
   cat <<_ACEOF
1417  
-\`configure' configures gtkqq 0.1 to adapt to many kinds of systems.
  1463
+\`configure' configures GtkQQ 0.1 to adapt to many kinds of systems.
1418 1464
 
1419 1465
 Usage: $0 [OPTION]... [VAR=VALUE]...
1420 1466
 
@@ -1484,7 +1530,7 @@ fi
1484 1530
 
1485 1531
 if test -n "$ac_init_help"; then
1486 1532
   case $ac_init_help in
1487  
-     short | recursive ) echo "Configuration of gtkqq 0.1:";;
  1533
+     short | recursive ) echo "Configuration of GtkQQ 0.1:";;
1488 1534
    esac
1489 1535
   cat <<\_ACEOF
1490 1536
 
@@ -1499,7 +1545,11 @@ Optional Features:
1499 1545
   --disable-dependency-tracking  speeds up one-time build
1500 1546
   --enable-dependency-tracking   do not reject slow dependency extractors
1501 1547
   --disable-libtool-lock  avoid locking (might break parallel builds)
1502  
---enable-debug turn on debug
  1548
+  --enable-libnotify      Enable libnotify support (used to show message
  1549
+                          notifications) @<:@default=yes@:>@
  1550
+  --enable-gst            Enable gstreamer support (used to play alert sounds)
  1551
+                          @<:@default=yes@:>@
  1552
+ --enable-debug turn on debug
1503 1553
 
1504 1554
 Optional Packages:
1505 1555
   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
@@ -1517,6 +1567,41 @@ Some influential environment variables:
1517 1567
   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1518 1568
               you have headers in a nonstandard directory <include dir>
1519 1569
   CPP         C preprocessor
  1570
+  PKG_CONFIG  path to pkg-config utility
  1571
+  PKG_CONFIG_PATH 
  1572
+              directories to add to pkg-config's search path
  1573
+  PKG_CONFIG_LIBDIR 
  1574
+              path overriding pkg-config's built-in search path
  1575
+  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  1576
+  GTK_LIBS    linker flags for GTK, overriding pkg-config
  1577
+  GTHREAD_CFLAGS 
  1578
+              C compiler flags for GTHREAD, overriding pkg-config
  1579
+  GTHREAD_LIBS 
  1580
+              linker flags for GTHREAD, overriding pkg-config
  1581
+  LIBXML_CFLAGS 
  1582
+              C compiler flags for LIBXML, overriding pkg-config
  1583
+  LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
  1584
+  LIBXSS_CFLAGS 
  1585
+              C compiler flags for LIBXSS, overriding pkg-config
  1586
+  LIBXSS_LIBS linker flags for LIBXSS, overriding pkg-config
  1587
+  LIBNOTIFY_CFLAGS 
  1588
+              C compiler flags for LIBNOTIFY, overriding pkg-config
  1589
+  LIBNOTIFY_LIBS 
  1590
+              linker flags for LIBNOTIFY, overriding pkg-config
  1591
+  GSTREAMER_CFLAGS 
  1592
+              C compiler flags for GSTREAMER, overriding pkg-config
  1593
+  GSTREAMER_LIBS 
  1594
+              linker flags for GSTREAMER, overriding pkg-config
  1595
+  LIBSSL_CFLAGS 
  1596
+              C compiler flags for LIBSSL, overriding pkg-config
  1597
+  LIBSSL_LIBS linker flags for LIBSSL, overriding pkg-config
  1598
+  GLIB2_CFLAGS 
  1599
+              C compiler flags for GLIB2, overriding pkg-config
  1600
+  GLIB2_LIBS  linker flags for GLIB2, overriding pkg-config
  1601
+  GOBJECT2_CFLAGS 
  1602
+              C compiler flags for GOBJECT2, overriding pkg-config
  1603
+  GOBJECT2_LIBS 
  1604
+              linker flags for GOBJECT2, overriding pkg-config
1520 1605
 
1521 1606
 Use these variables to override the choices made by `configure' or to help
1522 1607
 it to find libraries and programs with nonstandard names/locations.
@@ -1584,7 +1669,7 @@ fi
1584 1669
 test -n "$ac_init_help" && exit $ac_status
1585 1670
 if $ac_init_version; then
1586 1671
   cat <<\_ACEOF
1587  
-gtkqq configure 0.1
  1672
+GtkQQ configure 0.1
1588 1673
 generated by GNU Autoconf 2.67
1589 1674
 
1590 1675
 Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1949,11 +2034,65 @@ fi
1949 2034
   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1950 2035
 
1951 2036
 } @%:@ ac_fn_c_check_header_mongrel
  2037
+
  2038
+@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  2039
+@%:@ -------------------------------------------
  2040
+@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
  2041
+@%:@ variable VAR accordingly.
  2042
+ac_fn_c_check_type ()
  2043
+{
  2044
+  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2045
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2046
+$as_echo_n "checking for $2... " >&6; }
  2047
+if eval "test \"\${$3+set}\"" = set; then :
  2048
+  $as_echo_n "(cached) " >&6
  2049
+else
  2050
+  eval "$3=no"
  2051
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2052
+/* end confdefs.h.  */
  2053
+$4
  2054
+int
  2055
+main ()
  2056
+{
  2057
+if (sizeof ($2))
  2058
+	 return 0;
  2059
+  ;
  2060
+  return 0;
  2061
+}
  2062
+_ACEOF
  2063
+if ac_fn_c_try_compile "$LINENO"; then :
  2064
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2065
+/* end confdefs.h.  */
  2066
+$4
  2067
+int
  2068
+main ()
  2069
+{
  2070
+if (sizeof (($2)))
  2071
+	    return 0;
  2072
+  ;
  2073
+  return 0;
  2074
+}
  2075
+_ACEOF
  2076
+if ac_fn_c_try_compile "$LINENO"; then :
  2077
+  
  2078
+else
  2079
+  eval "$3=yes"
  2080
+fi
  2081
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2082
+fi
  2083
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2084
+fi
  2085
+eval ac_res=\$$3
  2086
+	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2087
+$as_echo "$ac_res" >&6; }
  2088
+  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2089
+
  2090
+} @%:@ ac_fn_c_check_type
1952 2091
 cat >config.log <<_ACEOF
1953 2092
 This file contains any messages produced by compilers while
1954 2093
 running configure, to aid debugging if configure makes a mistake.
1955 2094
 
1956  
-It was created by gtkqq $as_me 0.1, which was
  2095
+It was created by GtkQQ $as_me 0.1, which was
1957 2096
 generated by GNU Autoconf 2.67.  Invocation command line was
1958 2097
 
1959 2098
   $ $0 $@
@@ -2809,8 +2948,8 @@ am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2809 2948
 
2810 2949
 
2811 2950
 
2812  
-CFLAGS+=`pkg-config --libs --cflags gtk+-2.0` 
2813  
-CFLAGS+='-Wall -O2'
  2951
+ac_config_headers="$ac_config_headers config.h"
  2952
+
2814 2953
 case `pwd` in
2815 2954
   *\ * | *\	*)
2816 2955
     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
@@ -10416,6 +10555,198 @@ CC="$lt_save_CC"
10416 10555
 # Only expand once:
10417 10556
 
10418 10557
 
  10558
+
  10559
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
  10560
+  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  10561
+  # is not polluted with repeated "-I."
  10562
+  am__isrc=' -I$(srcdir)'
  10563
+  # test to see if srcdir already configured
  10564
+  if test -f $srcdir/config.status; then
  10565
+    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 
  10566
+  fi
  10567
+fi
  10568
+
  10569
+# test whether we have cygpath
  10570
+if test -z "$CYGPATH_W"; then
  10571
+  if (cygpath --version) >/dev/null 2>/dev/null; then
  10572
+    CYGPATH_W='cygpath -w'
  10573
+  else
  10574
+    CYGPATH_W=echo
  10575
+  fi
  10576
+fi
  10577
+
  10578
+
  10579
+# Define the identity of the package.
  10580
+ PACKAGE='gtkqq'
  10581
+ VERSION='0.1'
  10582
+
  10583
+
  10584
+cat >>confdefs.h <<_ACEOF
  10585
+@%:@define PACKAGE "$PACKAGE"
  10586
+_ACEOF
  10587
+
  10588
+ 
  10589
+cat >>confdefs.h <<_ACEOF
  10590
+@%:@define VERSION "$VERSION"
  10591
+_ACEOF
  10592
+
  10593
+# Some tools Automake needs.
  10594
+
  10595
+ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  10596
+
  10597
+
  10598
+AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  10599
+
  10600
+
  10601
+AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  10602
+
  10603
+
  10604
+AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  10605
+
  10606
+
  10607
+MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  10608
+
  10609
+# We need awk for the "check" target.  The system "awk" is bad on
  10610
+# some platforms.
  10611
+# Always define AMTAR for backward compatibility.
  10612
+
  10613
+AMTAR=${AMTAR-"${am_missing_run}tar"}
  10614
+
  10615
+am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  10616
+
  10617
+
  10618
+
  10619
+
  10620
+depcc="$CC"   am_compiler_list=
  10621
+
  10622
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  10623
+$as_echo_n "checking dependency style of $depcc... " >&6; }
  10624
+if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  10625
+  $as_echo_n "(cached) " >&6
  10626
+else
  10627
+  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  10628
+  # We make a subdir and do the tests there.  Otherwise we can end up
  10629
+  # making bogus files that we don't know about and never remove.  For
  10630
+  # instance it was reported that on HP-UX the gcc test will end up
  10631
+  # making a dummy file named `D' -- because `-MD' means `put the output
  10632
+  # in D'.
  10633
+  mkdir conftest.dir
  10634
+  # Copy depcomp to subdir because otherwise we won't find it if we're
  10635
+  # using a relative directory.
  10636
+  cp "$am_depcomp" conftest.dir
  10637
+  cd conftest.dir
  10638
+  # We will build objects and dependencies in a subdirectory because
  10639
+  # it helps to detect inapplicable dependency modes.  For instance
  10640
+  # both Tru64's cc and ICC support -MD to output dependencies as a
  10641
+  # side effect of compilation, but ICC will put the dependencies in
  10642
+  # the current directory while Tru64 will put them in the object
  10643
+  # directory.
  10644
+  mkdir sub
  10645
+
  10646
+  am_cv_CC_dependencies_compiler_type=none
  10647
+  if test "$am_compiler_list" = ""; then
  10648
+     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  10649
+  fi
  10650
+  am__universal=false
  10651
+  case " $depcc " in #(
  10652
+     *\ -arch\ *\ -arch\ *) am__universal=true ;;
  10653
+     esac
  10654
+
  10655
+  for depmode in $am_compiler_list; do
  10656
+    # Setup a source with many dependencies, because some compilers
  10657
+    # like to wrap large dependency lists on column 80 (with \), and
  10658
+    # we should not choose a depcomp mode which is confused by this.
  10659
+    #
  10660
+    # We need to recreate these files for each test, as the compiler may
  10661
+    # overwrite some of them when testing with obscure command lines.
  10662
+    # This happens at least with the AIX C compiler.
  10663
+    : > sub/conftest.c
  10664
+    for i in 1 2 3 4 5 6; do
  10665
+      echo '#include "conftst'$i'.h"' >> sub/conftest.c
  10666
+      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  10667
+      # Solaris 8's {/usr,}/bin/sh.
  10668
+      touch sub/conftst$i.h
  10669
+    done
  10670
+    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  10671
+
  10672
+    # We check with `-c' and `-o' for the sake of the "dashmstdout"
  10673
+    # mode.  It turns out that the SunPro C++ compiler does not properly
  10674
+    # handle `-M -o', and we need to detect this.  Also, some Intel
  10675
+    # versions had trouble with output in subdirs
  10676
+    am__obj=sub/conftest.${OBJEXT-o}
  10677
+    am__minus_obj="-o $am__obj"
  10678
+    case $depmode in
  10679
+    gcc)
  10680
+      # This depmode causes a compiler race in universal mode.
  10681
+      test "$am__universal" = false || continue
  10682
+      ;;
  10683
+    nosideeffect)
  10684
+      # after this tag, mechanisms are not by side-effect, so they'll
  10685
+      # only be used when explicitly requested
  10686
+      if test "x$enable_dependency_tracking" = xyes; then
  10687
+	continue
  10688
+      else
  10689
+	break
  10690
+      fi
  10691
+      ;;
  10692
+    msvisualcpp | msvcmsys)
  10693
+      # This compiler won't grok `-c -o', but also, the minuso test has
  10694
+      # not run yet.  These depmodes are late enough in the game, and
  10695
+      # so weak that their functioning should not be impacted.
  10696
+      am__obj=conftest.${OBJEXT-o}
  10697
+      am__minus_obj=
  10698
+      ;;
  10699
+    none) break ;;
  10700
+    esac
  10701
+    if depmode=$depmode \
  10702
+       source=sub/conftest.c object=$am__obj \
  10703
+       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  10704
+       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  10705
+         >/dev/null 2>conftest.err &&
  10706
+       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  10707
+       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  10708
+       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  10709
+       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  10710
+      # icc doesn't choke on unknown options, it will just issue warnings
  10711
+      # or remarks (even with -Werror).  So we grep stderr for any message
  10712
+      # that says an option was ignored or not supported.
  10713
+      # When given -MP, icc 7.0 and 7.1 complain thusly:
  10714
+      #   icc: Command line warning: ignoring option '-M'; no argument required
  10715
+      # The diagnosis changed in icc 8.0:
  10716
+      #   icc: Command line remark: option '-MP' not supported
  10717
+      if (grep 'ignoring option' conftest.err ||
  10718
+          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  10719
+        am_cv_CC_dependencies_compiler_type=$depmode
  10720
+        break
  10721
+      fi
  10722
+    fi
  10723
+  done
  10724
+
  10725
+  cd ..
  10726
+  rm -rf conftest.dir
  10727
+else
  10728
+  am_cv_CC_dependencies_compiler_type=none
  10729
+fi
  10730
+
  10731
+fi
  10732
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  10733
+$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  10734
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  10735
+
  10736
+ if 
  10737
+  test "x$enable_dependency_tracking" != xno \
  10738
+  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  10739
+  am__fastdepCC_TRUE=
  10740
+  am__fastdepCC_FALSE='#'
  10741
+else
  10742
+  am__fastdepCC_TRUE='#'
  10743
+  am__fastdepCC_FALSE=
  10744
+fi
  10745
+
  10746
+
  10747
+
  10748
+
  10749
+# Checks for programs.
10419 10750
 ac_ext=c
10420 10751
 ac_cpp='$CPP $CPPFLAGS'
10421 10752
 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -11083,27 +11414,1933 @@ else
11083 11414
 fi
11084 11415
 
11085 11416
 
11086  
-@%:@ Check whether --enable-debug was given.
11087  
-if test "${enable_debug+set}" = set; then :
11088  
-  enableval=$enable_debug; CFLAGS="$CFLAGS -ggdb"
  11417
+if test "x$CC" != xcc; then
  11418
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  11419
+$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  11420
+else
  11421
+  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  11422
+$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11089 11423
 fi
  11424
+set dummy $CC; ac_cc=`$as_echo "$2" |
  11425
+		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  11426
+if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
  11427
+  $as_echo_n "(cached) " >&6
  11428
+else
  11429
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11430
+/* end confdefs.h.  */
11090 11431
 
11091  
-ac_config_headers="$ac_config_headers config.h"
  11432
+int
  11433
+main ()
  11434
+{
11092 11435
 
11093  
-for ac_header in glib.h stdarg.h
11094  
-do :
11095  
-  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11096  
-ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11097  
-if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11098  
-  cat >>confdefs.h <<_ACEOF
11099  
-@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11100  
-_ACEOF
  11436
+  ;
  11437
+  return 0;
  11438
+}
  11439
+_ACEOF
  11440
+# Make sure it works both with $CC and with simple cc.
  11441
+# We do the test twice because some compilers refuse to overwrite an
  11442
+# existing .o file with -o, though they will create one.
  11443
+ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  11444
+rm -f conftest2.*
  11445
+if { { case "(($ac_try" in
  11446
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11447
+  *) ac_try_echo=$ac_try;;
  11448
+esac
  11449
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11450
+$as_echo "$ac_try_echo"; } >&5
  11451
+  (eval "$ac_try") 2>&5
  11452
+  ac_status=$?
  11453
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11454
+  test $ac_status = 0; } &&
  11455
+   test -f conftest2.$ac_objext && { { case "(($ac_try" in
  11456
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11457
+  *) ac_try_echo=$ac_try;;
  11458
+esac
  11459
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11460
+$as_echo "$ac_try_echo"; } >&5
  11461
+  (eval "$ac_try") 2>&5
  11462
+  ac_status=$?
  11463
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11464
+  test $ac_status = 0; };
  11465
+then
  11466
+  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  11467
+  if test "x$CC" != xcc; then
  11468
+    # Test first that cc exists at all.
  11469
+    if { ac_try='cc -c conftest.$ac_ext >&5'
  11470
+  { { case "(($ac_try" in
  11471
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11472
+  *) ac_try_echo=$ac_try;;
  11473
+esac
  11474
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11475
+$as_echo "$ac_try_echo"; } >&5
  11476
+  (eval "$ac_try") 2>&5
  11477
+  ac_status=$?
  11478
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11479
+  test $ac_status = 0; }; }; then
  11480
+      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  11481
+      rm -f conftest2.*
  11482
+      if { { case "(($ac_try" in
  11483
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11484
+  *) ac_try_echo=$ac_try;;
  11485
+esac
  11486
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11487
+$as_echo "$ac_try_echo"; } >&5
  11488
+  (eval "$ac_try") 2>&5
  11489
+  ac_status=$?
  11490
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11491
+  test $ac_status = 0; } &&
  11492
+	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
  11493
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11494
+  *) ac_try_echo=$ac_try;;
  11495
+esac
  11496
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  11497
+$as_echo "$ac_try_echo"; } >&5
  11498
+  (eval "$ac_try") 2>&5
  11499
+  ac_status=$?
  11500
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11501
+  test $ac_status = 0; };
  11502
+      then
  11503
+	# cc works too.
  11504
+	:
  11505
+      else
  11506
+	# cc exists but doesn't like -o.
  11507
+	eval ac_cv_prog_cc_${ac_cc}_c_o=no
  11508
+      fi
  11509
+    fi
  11510
+  fi
  11511
+else
  11512
+  eval ac_cv_prog_cc_${ac_cc}_c_o=no
  11513
+fi
  11514
+rm -f core conftest*
  11515
+
  11516
+fi
  11517
+if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  11518
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11519
+$as_echo "yes" >&6; }
  11520
+else
  11521
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11522
+$as_echo "no" >&6; }
  11523
+  
  11524
+$as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  11525
+
  11526
+fi
  11527
+
  11528
+# FIXME: we rely on the cache variable name because
  11529
+# there is no other way.
  11530
+set dummy $CC
  11531
+am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  11532
+eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  11533
+if test "$am_t" != yes; then
  11534
+   # Losing compiler, so override with the script.
  11535
+   # FIXME: It is wrong to rewrite CC.
  11536
+   # But if we don't then we get into trouble of one sort or another.
  11537
+   # A longer-term fix would be to have automake use am__CC in this case,
  11538
+   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  11539
+   CC="$am_aux_dir/compile $CC"
  11540
+fi
  11541
+
  11542
+
  11543
+
  11544
+
  11545
+# libtools
  11546
+if test -n "$ac_tool_prefix"; then
  11547
+  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  11548
+set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  11549
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11550
+$as_echo_n "checking for $ac_word... " >&6; }
  11551
+if test "${ac_cv_prog_RANLIB+set}" = set; then :
  11552
+  $as_echo_n "(cached) " >&6
  11553
+else
  11554
+  if test -n "$RANLIB"; then
  11555
+  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  11556
+else
  11557
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11558
+for as_dir in $PATH
  11559
+do
  11560
+  IFS=$as_save_IFS
  11561
+  test -z "$as_dir" && as_dir=.
  11562
+    for ac_exec_ext in '' $ac_executable_extensions; do
  11563
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11564
+    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  11565
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11566
+    break 2
  11567
+  fi
  11568
+done
  11569
+  done
  11570
+IFS=$as_save_IFS
  11571
+
  11572
+fi
  11573
+fi
  11574
+RANLIB=$ac_cv_prog_RANLIB
  11575
+if test -n "$RANLIB"; then
  11576
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  11577
+$as_echo "$RANLIB" >&6; }
  11578
+else
  11579
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11580
+$as_echo "no" >&6; }
  11581
+fi
  11582
+
  11583
+
  11584
+fi
  11585
+if test -z "$ac_cv_prog_RANLIB"; then
  11586
+  ac_ct_RANLIB=$RANLIB
  11587
+  # Extract the first word of "ranlib", so it can be a program name with args.
  11588
+set dummy ranlib; ac_word=$2
  11589
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11590
+$as_echo_n "checking for $ac_word... " >&6; }
  11591
+if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  11592
+  $as_echo_n "(cached) " >&6
  11593
+else
  11594
+  if test -n "$ac_ct_RANLIB"; then
  11595
+  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  11596
+else
  11597
+as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11598
+for as_dir in $PATH
  11599
+do
  11600
+  IFS=$as_save_IFS
  11601
+  test -z "$as_dir" && as_dir=.
  11602
+    for ac_exec_ext in '' $ac_executable_extensions; do
  11603
+  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11604
+    ac_cv_prog_ac_ct_RANLIB="ranlib"
  11605
+    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11606
+    break 2
  11607
+  fi
  11608
+done
  11609
+  done
  11610
+IFS=$as_save_IFS
  11611
+
  11612
+fi
  11613
+fi
  11614
+ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  11615
+if test -n "$ac_ct_RANLIB"; then
  11616
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  11617
+$as_echo "$ac_ct_RANLIB" >&6; }
  11618
+else
  11619
+  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11620
+$as_echo "no" >&6; }
  11621
+fi
  11622
+
  11623
+  if test "x$ac_ct_RANLIB" = x; then
  11624
+    RANLIB=":"
  11625
+  else
  11626
+    case $cross_compiling:$ac_tool_warned in
  11627
+yes:)
  11628
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11629
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11630
+ac_tool_warned=yes ;;
  11631
+esac
  11632
+    RANLIB=$ac_ct_RANLIB
  11633
+  fi
  11634
+else
  11635
+  RANLIB="$ac_cv_prog_RANLIB"
  11636
+fi
  11637
+
  11638
+
  11639
+
  11640
+#gettext
  11641
+#IT_PROG_INTLTOOL([0.40.0])
  11642
+#AC_SUBST([GETTEXT_PACKAGE], [GtkQQ])
  11643
+#AM_GNU_GETTEXT_VERSION([0.17])
  11644
+#AM_GLIB_GNU_GETTEXT
  11645
+#AM_GNU_GETTEXT([external])
  11646
+#AC_DEFINE([GETTEXT_PACKAGE], [PACKAGE_TARNAME], [Define to the gettext\
  11647
+#package name.])
  11648
+
  11649
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for notify_init in -lnotify" >&5
  11650
+$as_echo_n "checking for notify_init in -lnotify... " >&6; }
  11651
+if test "${ac_cv_lib_notify_notify_init+set}" = set; then :
  11652
+  $as_echo_n "(cached) " >&6
  11653
+else
  11654
+  ac_check_lib_save_LIBS=$LIBS
  11655
+LIBS="-lnotify  $LIBS"
  11656
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11657
+/* end confdefs.h.  */
  11658
+
  11659
+/* Override any GCC internal prototype to avoid an error.
  11660
+   Use char because int might match the return type of a GCC
  11661
+   builtin and then its argument prototype would still apply.  */
  11662
+#ifdef __cplusplus
  11663
+extern "C"
  11664
+#endif
  11665
+char notify_init ();
  11666
+int
  11667
+main ()
  11668
+{
  11669
+return notify_init ();
  11670
+  ;
  11671
+  return 0;
  11672
+}
  11673
+_ACEOF
  11674
+if ac_fn_c_try_link "$LINENO"; then :
  11675
+  ac_cv_lib_notify_notify_init=yes
  11676
+else
  11677
+  ac_cv_lib_notify_notify_init=no
  11678
+fi
  11679
+rm -f core conftest.err conftest.$ac_objext \
  11680
+    conftest$ac_exeext conftest.$ac_ext
  11681
+LIBS=$ac_check_lib_save_LIBS
  11682
+fi
  11683
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_notify_notify_init" >&5
  11684
+$as_echo "$ac_cv_lib_notify_notify_init" >&6; }
  11685
+if test "x$ac_cv_lib_notify_notify_init" = x""yes; then :
  11686
+  cat >>confdefs.h <<_ACEOF
  11687
+@%:@define HAVE_LIBNOTIFY 1
  11688
+_ACEOF
  11689
+
  11690
+  LIBS="-lnotify $LIBS"
  11691
+
  11692
+fi
  11693
+
  11694
+
  11695
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
  11696
+$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
  11697
+if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then :
  11698
+  $as_echo_n "(cached) " >&6
  11699
+else
  11700
+  ac_check_lib_save_LIBS=$LIBS
  11701
+LIBS="-lssl  $LIBS"
  11702
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11703
+/* end confdefs.h.  */
  11704
+
  11705
+/* Override any GCC internal prototype to avoid an error.
  11706
+   Use char because int might match the return type of a GCC
  11707
+   builtin and then its argument prototype would still apply.  */
  11708
+#ifdef __cplusplus
  11709
+extern "C"
  11710
+#endif
  11711
+char SSL_library_init ();
  11712
+int
  11713
+main ()
  11714
+{
  11715
+return SSL_library_init ();
  11716
+  ;
  11717
+  return 0;
  11718
+}
  11719
+_ACEOF
  11720
+if ac_fn_c_try_link "$LINENO"; then :
  11721
+  ac_cv_lib_ssl_SSL_library_init=yes
  11722
+else
  11723
+  ac_cv_lib_ssl_SSL_library_init=no
  11724
+fi
  11725
+rm -f core conftest.err conftest.$ac_objext \
  11726
+    conftest$ac_exeext conftest.$ac_ext
  11727
+LIBS=$ac_check_lib_save_LIBS
  11728
+fi
  11729
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  11730
+$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
  11731
+if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then :
  11732
+  cat >>confdefs.h <<_ACEOF
  11733
+@%:@define HAVE_LIBSSL 1
  11734
+_ACEOF
  11735
+
  11736
+  LIBS="-lssl $LIBS"
  11737
+
  11738
+fi
  11739
+
  11740
+
  11741
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_new in -lcrypto" >&5
  11742
+$as_echo_n "checking for RSA_new in -lcrypto... " >&6; }
  11743
+if test "${ac_cv_lib_crypto_RSA_new+set}" = set; then :
  11744
+  $as_echo_n "(cached) " >&6
  11745
+else
  11746
+  ac_check_lib_save_LIBS=$LIBS
  11747
+LIBS="-lcrypto  $LIBS"
  11748
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11749
+/* end confdefs.h.  */
  11750
+
  11751
+/* Override any GCC internal prototype to avoid an error.
  11752
+   Use char because int might match the return type of a GCC
  11753
+   builtin and then its argument prototype would still apply.  */
  11754
+#ifdef __cplusplus
  11755
+extern "C"
  11756
+#endif
  11757
+char RSA_new ();
  11758
+int
  11759
+main ()
  11760
+{
  11761
+return RSA_new ();
  11762
+  ;
  11763
+  return 0;
  11764
+}
  11765
+_ACEOF
  11766
+if ac_fn_c_try_link "$LINENO"; then :
  11767
+  ac_cv_lib_crypto_RSA_new=yes
  11768
+else
  11769
+  ac_cv_lib_crypto_RSA_new=no
  11770
+fi
  11771
+rm -f core conftest.err conftest.$ac_objext \
  11772
+    conftest$ac_exeext conftest.$ac_ext
  11773
+LIBS=$ac_check_lib_save_LIBS
  11774
+fi
  11775
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_new" >&5
  11776
+$as_echo "$ac_cv_lib_crypto_RSA_new" >&6; }
  11777
+if test "x$ac_cv_lib_crypto_RSA_new" = x""yes; then :
  11778
+  cat >>confdefs.h <<_ACEOF
  11779
+@%:@define HAVE_LIBCRYPTO 1
  11780
+_ACEOF
  11781
+
  11782
+  LIBS="-lcrypto $LIBS"
  11783
+
  11784
+fi
  11785
+
  11786
+
  11787
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
  11788
+$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  11789
+if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
  11790
+  $as_echo_n "(cached) " >&6
  11791
+else
  11792
+  ac_check_lib_save_LIBS=$LIBS
  11793
+LIBS="-lpthread  $LIBS"
  11794
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11795
+/* end confdefs.h.  */
  11796
+
  11797
+/* Override any GCC internal prototype to avoid an error.
  11798
+   Use char because int might match the return type of a GCC
  11799
+   builtin and then its argument prototype would still apply.  */
  11800
+#ifdef __cplusplus
  11801
+extern "C"
  11802
+#endif
  11803
+char pthread_create ();
  11804
+int
  11805
+main ()
  11806
+{
  11807
+return pthread_create ();
  11808
+  ;
  11809
+  return 0;
  11810
+}
  11811
+_ACEOF
  11812
+if ac_fn_c_try_link "$LINENO"; then :
  11813
+  ac_cv_lib_pthread_pthread_create=yes
  11814
+else
  11815
+  ac_cv_lib_pthread_pthread_create=no
  11816
+fi
  11817
+rm -f core conftest.err conftest.$ac_objext \
  11818
+    conftest$ac_exeext conftest.$ac_ext
  11819
+LIBS=$ac_check_lib_save_LIBS
  11820
+fi
  118