NateOn - 네이트온 프로토콜 플러그인 프로젝트

root/trunk/configure.ac

리비전 136, 6.1 kB (haze11에 의해 체크인됨, 7 달 전)

prs 터널링, trunk 적용

Line 
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ([2.50])
3
4 m4_define([purple_lt_current], [4])
5 m4_define([purple_major_version], [2])
6 m4_define([purple_minor_version], [4])
7 m4_define([purple_micro_version], [2])
8 m4_define([purple_version_suffix], [])
9 m4_define([purple_version],
10           [purple_major_version.purple_minor_version.purple_micro_version])
11 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix]))
12
13 AC_INIT(pidgin-nateon, [purple_display_version], [hansun.lee@gmail.com])
14
15 AC_CANONICAL_SYSTEM
16 AM_CONFIG_HEADER(config.h)
17 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
18
19 PURPLE_MAJOR_VERSION=purple_major_version
20 PURPLE_MINOR_VERSION=purple_minor_version
21 PURPLE_MICRO_VERSION=purple_micro_version
22 PURPLE_VERSION=[purple_display_version]
23 AC_SUBST(PURPLE_MAJOR_VERSION)
24 AC_SUBST(PURPLE_MINOR_VERSION)
25 AC_SUBST(PURPLE_MICRO_VERSION)
26 AC_SUBST(PURPLE_VERSION)
27
28 PURPLE_LT_VERSION_INFO="purple_lt_current:purple_micro_version:purple_minor_version"
29 AC_SUBST(PURPLE_LT_VERSION_INFO)
30
31 AC_PATH_PROG(sedpath, sed)
32
33 dnl Checks for programs.
34 AC_PROG_CC
35 AM_PROG_CC_C_O
36 AC_DISABLE_STATIC
37 AC_PROG_LIBTOOL
38 LIBTOOL="$LIBTOOL --silent"
39 AC_PROG_INSTALL
40 AC_PROG_INTLTOOL
41 PKG_PROG_PKG_CONFIG
42
43 GETTEXT_PACKAGE=pidgin-nateon
44 AC_SUBST(GETTEXT_PACKAGE)
45
46 ALL_LINGUAS="ko"
47 AM_GLIB_GNU_GETTEXT
48
49 dnl Checks for header files.
50 AC_HEADER_STDC
51 AC_HEADER_SYS_WAIT
52 AC_CHECK_HEADERS(arpa/nameser_compat.h fcntl.h sys/time.h unistd.h locale.h signal.h stdint.h regex.h)
53
54 dnl Checks for typedefs, structures, and compiler characteristics.
55 AC_C_CONST
56 AC_STRUCT_TM
57 AC_CHECK_SIZEOF(time_t, ,[
58 #include <stdio.h>
59 #include <time.h>])
60
61 AC_C_BIGENDIAN
62
63 dnl Checks for library functions.
64 AC_TYPE_SIGNAL
65 AC_FUNC_STRFTIME
66 AC_CHECK_FUNCS(strdup strstr atexit setlocale)
67 dnl Checks for getopt in standard library
68 AC_CHECK_FUNCS(getopt_long,,
69 [
70         AC_LIBOBJ(getopt)
71         AC_LIBOBJ(getopt1)
72 ])
73 AC_CHECK_LIB(resolv, __res_query)
74 AC_CHECK_LIB(nsl, gethostent)
75
76 dnl #######################################################################
77 dnl # Check for GLib 2.0 (required)
78 dnl #######################################################################
79 PKG_CHECK_MODULES(GLIB, [purple >= 2.0.0 glib-2.0 >= 2.0.0 gobject-2.0 gmodule-2.0 gthread-2.0], , [
80         AC_MSG_RESULT(no)
81         AC_MSG_ERROR([
82
83 You must have the GLib 2.0 development headers installed to build.
84 ])])
85 AC_SUBST(GLIB_CFLAGS)
86 AC_SUBST(GLIB_LIBS)
87
88 AC_ARG_WITH([extraversion],
89                         AC_HELP_STRING([--with-extraversion=STRING],
90                                                    [extra version number to be displayed in Help->About and --help (for packagers)]),
91                                                    EXTRA_VERSION=$withval)
92
93 if test x"$EXTRA_VERSION" != "x" ; then
94         AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION-$EXTRA_VERSION", [display version info])
95 else
96         AC_DEFINE_UNQUOTED(DISPLAY_VERSION, "$VERSION", [display version info])
97 fi
98
99 AM_CONDITIONAL(STATIC_NATEON, test "x$static_nateon" = "xyes")
100
101 AC_ARG_ENABLE(plugins, [AC_HELP_STRING([--disable-plugins], [compile without plugin support])], , enable_plugins=yes)
102
103 ##if test "x$enable_debug" = "xyes" ; then
104 ##        AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
105 ##fi
106 ##
107 ##if test "x$enable_fatal_asserts" = "xyes" ; then
108 ##        AC_DEFINE(PURPLE_FATAL_ASSERTS, 1, [Define to make assertions fatal (useful for debugging).])
109 ##fi
110 ##
111 ##if test "x$enable_deprecated" = "xno"; then
112 ##        DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
113 ##fi
114
115 if test "x$enable_plugins" = "xyes" ; then
116         AC_DEFINE(PURPLE_PLUGINS, 1, [Define if plugins are enabled.])
117         AM_CONDITIONAL(PLUGINS, true)
118 else
119         AM_CONDITIONAL(PLUGINS, false)
120 fi
121
122 ##AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes)
123                                
124 extern_init=
125 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init() { $load_proto },
126         [Loads static protocol plugin module initialization functions.])
127
128 if test "x$GCC" = "xyes"; then
129         dnl We enable -Wall later.
130         dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags.
131         dnl This leads to warnings we don't want.
132         CFLAGS=`echo $CFLAGS |$sedpath 's/-Wall//'`
133
134         dnl ENABLE WARNINGS SUPPORTED BY THE VERSION OF GCC IN USE
135         dnl
136         dnl Future Possibilities
137         dnl
138         dnl Consider adding -Wbad-function-cast.
139         dnl     This leads to spurious warnings using GPOINTER_TO_INT(), et al. directly on a function call.
140         dnl             We'd need an intermediate variable.
141         dnl
142         dnl Consider adding -Wfloat-equal.
143         dnl     This leads to warnings with Perl.
144         dnl             Perhaps we could write ugly configure magic and pass -Wno-float-equal down to that subdirectory.
145         dnl             On the other hand, it's probably actually broken, so maybe the Perl folks should fix that?
146         dnl
147         dnl Consider removing -Wno-sign-compare (from the -Wextra set) and fixing all those cases.
148         dnl     This is likely non-trivial.
149         dnl
150         for newflag in \
151                         "-Waggregate-return" \
152                         "-Wcast-align" \
153                         "-Wdeclaration-after-statement" \
154                         "-Werror-implicit-function-declaration" \
155                         "-Wextra -Wno-sign-compare -Wno-unused-parameter" \
156                         "-Winit-self" \
157                         "-Wmissing-declarations" \
158                         "-Wmissing-prototypes" \
159                         "-Wnested-externs" \
160                         "-Wpointer-arith" \
161                         "-Wundef" \
162         ; do
163                 orig_CFLAGS="$CFLAGS"
164                 CFLAGS="$CFLAGS $newflag"
165                 AC_MSG_CHECKING(for $newflag option to gcc)
166                 AC_TRY_COMPILE([], [
167                         int main() {return 0;}
168                 ], [
169                         AC_MSG_RESULT(yes)
170                         CFLAGS="$orig_CFLAGS"
171                         DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag"
172                 ], [
173                         AC_MSG_RESULT(no)
174                         CFLAGS="$orig_CFLAGS"
175                 ])
176         done
177
178         DEBUG_CFLAGS="-Wall $DEBUG_CFLAGS"
179         CFLAGS="-g $CFLAGS"
180 fi
181 AC_SUBST(CFLAGS)
182 AC_SUBST(DEBUG_CFLAGS)
183
184 AC_PATH_PROG(pidginpath, pidgin)
185
186 AC_OUTPUT([Makefile
187                 src/Makefile
188                 pixmaps/Makefile
189                 pixmaps/protocols/Makefile
190                 pixmaps/protocols/16/Makefile
191                 pixmaps/protocols/16/scalable/Makefile
192                 pixmaps/protocols/22/Makefile
193                 pixmaps/protocols/22/scalable/Makefile
194                 pixmaps/protocols/48/Makefile
195                 pixmaps/protocols/48/scalable/Makefile
196                 po/Makefile.in
197                 ])
참고: 소스 브라우저를 사용하면서 도움이 필요하다면, TracBrowser를 참고하십시오.