Mercurial > pidgin
comparison configure.ac @ 20409:7c0a2ef88018
propagate from branch 'im.pidgin.pidgin' (head cf7db89f6020ededb2d5c948c11c3fd0ef30bba5)
to branch 'im.pidgin.cpw.khc.msnp14' (head 6875bbea39f4f9d8251516b02893429d347e3d82)
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Wed, 02 May 2007 06:12:13 +0000 |
parents | bc9219a40623 |
children | 97586aa395db |
comparison
equal
deleted
inserted
replaced
20408:14b8fb8d27b3 | 20409:7c0a2ef88018 |
---|---|
1 dnl Process this file with autoconf to produce a configure script. | 1 dnl Process this file with autoconf to produce a configure script. |
2 AC_INIT([pidgin], [2.0.0beta7devel], [devel@pidgin.im]) | 2 AC_PREREQ([2.50]) |
3 | |
4 # UPDATING VERSION NUMBERS FOR RELEASES | |
5 # | |
6 # purple_micro_version += 1 | |
7 # | |
8 # If any functions have been added to libpurple, Pidgin, or Finch: | |
9 # purple_micro_version = 0 | |
10 # purple_minor_version += 1 | |
11 # purple_lt_current += 1 | |
12 # | |
13 # If backwards compatibility has been broken in libpurple, Pidgin, or Finch: | |
14 # purple_micro_version = 0 | |
15 # purple_minor_version = 0 | |
16 # purple_major_version += 1; | |
17 # purple_lt_current += 1 | |
18 # | |
19 # purple_version_suffix should be similar to one of the following: | |
20 # For beta releases: [beta2] | |
21 # For code under development: [devel] | |
22 # For production releases: [] | |
23 # | |
24 # | |
25 # If any code has changed in libgnt: | |
26 # gnt_micro_version += 1 | |
27 # | |
28 # If any functions have been added to libgnt: | |
29 # gnt_micro_version = 0 | |
30 # gnt_minor_version += 1 | |
31 # gnt_lt_current += 1 | |
32 # | |
33 # If backwards compatibility has been broken in libgnt: | |
34 # gnt_micro_version = 0 | |
35 # gnt_minor_version = 0 | |
36 # gnt_major_version += 1; | |
37 # gnt_lt_current += 1 | |
38 # | |
39 # gnt_version_suffix should be similar to one of the following: | |
40 # For beta releases: [beta2] | |
41 # For code under development: [devel] | |
42 # For production releases: [] | |
43 # | |
44 # Make sure to update finch/libgnt/configure.ac with libgnt version changes. | |
45 # | |
46 m4_define([purple_lt_current], [0]) | |
47 m4_define([purple_major_version], [2]) | |
48 m4_define([purple_minor_version], [0]) | |
49 m4_define([purple_micro_version], [0]) | |
50 m4_define([purple_version_suffix], [beta7]) | |
51 m4_define([purple_version], | |
52 [purple_major_version.purple_minor_version.purple_micro_version]) | |
53 m4_define([purple_display_version], purple_version[]m4_ifdef([purple_version_suffix],[purple_version_suffix])) | |
54 | |
55 m4_define([gnt_lt_current], [0]) | |
56 m4_define([gnt_major_version], [1]) | |
57 m4_define([gnt_minor_version], [0]) | |
58 m4_define([gnt_micro_version], [0]) | |
59 m4_define([gnt_version_suffix], [beta7]) | |
60 m4_define([gnt_version], | |
61 [gnt_major_version.gnt_minor_version.gnt_micro_version]) | |
62 m4_define([gnt_display_version], gnt_version[]m4_ifdef([gnt_version_suffix],[gnt_version_suffix])) | |
63 | |
64 | |
65 AC_INIT([pidgin], [purple_display_version], [devel@pidgin.im]) | |
66 | |
3 AC_CANONICAL_SYSTEM | 67 AC_CANONICAL_SYSTEM |
4 AM_CONFIG_HEADER(config.h) | 68 AM_CONFIG_HEADER(config.h) |
5 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) | 69 AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |
6 #AM_INIT_AUTOMAKE([foreign dist-bzip2]) | 70 #AM_INIT_AUTOMAKE([foreign dist-bzip2]) |
7 | 71 |
8 AC_PREREQ([2.50]) | 72 PURPLE_MAJOR_VERSION=purple_major_version |
73 PURPLE_MINOR_VERSION=purple_minor_version | |
74 PURPLE_MICRO_VERSION=purple_micro_version | |
75 PURPLE_VERSION=[purple_display_version] | |
76 AC_SUBST(PURPLE_MAJOR_VERSION) | |
77 AC_SUBST(PURPLE_MINOR_VERSION) | |
78 AC_SUBST(PURPLE_MICRO_VERSION) | |
79 AC_SUBST(PURPLE_VERSION) | |
80 | |
81 PURPLE_LT_VERSION_INFO="purple_lt_current:purple_micro_version:purple_minor_version" | |
82 AC_SUBST(PURPLE_LT_VERSION_INFO) | |
83 | |
84 GNT_MAJOR_VERSION=gnt_major_version | |
85 GNT_MINOR_VERSION=gnt_minor_version | |
86 GNT_MICRO_VERSION=gnt_micro_version | |
87 GNT_VERSION=[gnt_display_version] | |
88 AC_SUBST(GNT_MAJOR_VERSION) | |
89 AC_SUBST(GNT_MINOR_VERSION) | |
90 AC_SUBST(GNT_MICRO_VERSION) | |
91 AC_SUBST(GNT_VERSION) | |
92 | |
93 GNT_LT_VERSION_INFO="gnt_lt_current:gnt_micro_version:gnt_minor_version" | |
94 AC_SUBST(GNT_LT_VERSION_INFO) | |
9 | 95 |
10 AC_DEFINE(PIDGIN_NAME, "Pidgin", [The user-visible application name]) | 96 AC_DEFINE(PIDGIN_NAME, "Pidgin", [The user-visible application name]) |
11 | 97 |
12 AC_PATH_PROG(sedpath, sed) | 98 AC_PATH_PROG(sedpath, sed) |
13 | 99 |
640 GADU_LIBS="-L$ac_gadu_libs" | 726 GADU_LIBS="-L$ac_gadu_libs" |
641 fi | 727 fi |
642 GADU_LIBS="$GADU_LIBS -lgadu" | 728 GADU_LIBS="$GADU_LIBS -lgadu" |
643 AC_CHECK_LIB(gadu, gg_libgadu_version, [gadu_libs=yes], , $GADU_LIBS) | 729 AC_CHECK_LIB(gadu, gg_libgadu_version, [gadu_libs=yes], , $GADU_LIBS) |
644 fi | 730 fi |
731 GADU_CFLAGS=`echo $GADU_CFLAGS |$sedpath 's/-Wall//'` | |
645 | 732 |
646 if test "x$gadu_libs" = "xyes"; then | 733 if test "x$gadu_libs" = "xyes"; then |
647 AC_MSG_CHECKING(for libgadu GPL compatibility) | 734 AC_MSG_CHECKING(for libgadu GPL compatibility) |
648 CPPFLAGS_save="$CPPFLAGS" | 735 CPPFLAGS_save="$CPPFLAGS" |
649 CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" | 736 CPPFLAGS="$CPPFLAGS $GADU_CFLAGS" |
805 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") | 892 AM_CONDITIONAL(EXTERNAL_LIBZEPHYR, test "x$zephyr" != "xno") |
806 | 893 |
807 AC_CHECK_HEADER(sys/utsname.h) | 894 AC_CHECK_HEADER(sys/utsname.h) |
808 AC_CHECK_FUNC(uname) | 895 AC_CHECK_FUNC(uname) |
809 | 896 |
810 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], , enable_fortify=yes) | 897 AC_ARG_ENABLE(fortify, [AC_HELP_STRING([--disable-fortify], [compile without FORTIFY_SOURCE support])], enable_fortify="$enableval", enable_fortify=yes) |
898 | |
899 AC_ARG_ENABLE(mcheck, [AC_HELP_STRING([--enable-mcheck], [compile with mcheck (malloc debugging) support])], enable_mcheck="$enableval", enable_mcheck="$enable_debug") | |
900 if test "x$enable_mcheck" = "xyes" ; then | |
901 orig_LIBS="$LIBS" | |
902 LIBS="$LIBS -lmcheck" | |
903 AC_MSG_CHECKING(for mcheck support) | |
904 AC_TRY_COMPILE([], [ | |
905 int main() {return 0;} | |
906 ], [ | |
907 AC_MSG_RESULT(yes) | |
908 ], [ | |
909 AC_MSG_RESULT(no) | |
910 LIBS="$orig_LIBS" | |
911 ]) | |
912 fi | |
811 | 913 |
812 if test "x$GCC" = "xyes"; then | 914 if test "x$GCC" = "xyes"; then |
813 dnl We enable -Wall later. | 915 dnl We enable -Wall later. |
814 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags. | 916 dnl If it's set after the warning CFLAGS in the compiler invocation, it counteracts the -Wno... flags. |
815 dnl This leads to warnings we don't want. | 917 dnl This leads to warnings we don't want. |
833 dnl | 935 dnl |
834 for newflag in \ | 936 for newflag in \ |
835 "-Waggregate-return" \ | 937 "-Waggregate-return" \ |
836 "-Wcast-align" \ | 938 "-Wcast-align" \ |
837 "-Wdeclaration-after-statement" \ | 939 "-Wdeclaration-after-statement" \ |
940 "-Wendif-labels" \ | |
838 "-Werror-implicit-function-declaration" \ | 941 "-Werror-implicit-function-declaration" \ |
839 "-Wextra -Wno-sign-compare -Wno-unused-parameter" \ | 942 "-Wextra -Wno-sign-compare -Wno-unused-parameter" \ |
840 "-Winit-self" \ | 943 "-Winit-self" \ |
841 "-Wmissing-declarations" \ | 944 "-Wmissing-declarations" \ |
945 "-Wmissing-noreturn" \ | |
842 "-Wmissing-prototypes" \ | 946 "-Wmissing-prototypes" \ |
843 "-Wnested-externs" \ | 947 "-Wnested-externs" \ |
844 "-Wpointer-arith" \ | 948 "-Wpointer-arith" \ |
845 "-Wundef" \ | 949 "-Wundef" \ |
846 ; do | 950 ; do |
873 #endif | 977 #endif |
874 return 0; | 978 return 0; |
875 } | 979 } |
876 ], [ | 980 ], [ |
877 AC_MSG_RESULT(yes) | 981 AC_MSG_RESULT(yes) |
878 DEBUG_CFLAGS="$DEBUG_CFLAGS -D_FORTIFY_SOURCE=2" | 982 DEBUG_CFLAGS="$DEBUG_CFLAGS -Wp,-D_FORTIFY_SOURCE=2" |
879 ], [ | 983 ], [ |
880 AC_MSG_RESULT(no) | 984 AC_MSG_RESULT(no) |
881 ]) | 985 ]) |
882 fi | 986 fi |
883 | 987 |
1955 pidgin/pixmaps/toolbar/16/scalable/Makefile | 2059 pidgin/pixmaps/toolbar/16/scalable/Makefile |
1956 pidgin/pixmaps/toolbar/22/Makefile | 2060 pidgin/pixmaps/toolbar/22/Makefile |
1957 pidgin/pixmaps/toolbar/22/scalable/Makefile | 2061 pidgin/pixmaps/toolbar/22/scalable/Makefile |
1958 pidgin/pixmaps/tray/Makefile | 2062 pidgin/pixmaps/tray/Makefile |
1959 pidgin/pixmaps/tray/16/Makefile | 2063 pidgin/pixmaps/tray/16/Makefile |
2064 pidgin/pixmaps/tray/16/scalable/Makefile | |
1960 pidgin/pixmaps/tray/22/Makefile | 2065 pidgin/pixmaps/tray/22/Makefile |
2066 pidgin/pixmaps/tray/22/scalable/Makefile | |
1961 pidgin/plugins/Makefile | 2067 pidgin/plugins/Makefile |
1962 pidgin/plugins/cap/Makefile | 2068 pidgin/plugins/cap/Makefile |
1963 pidgin/plugins/gestures/Makefile | 2069 pidgin/plugins/gestures/Makefile |
1964 pidgin/plugins/gevolution/Makefile | 2070 pidgin/plugins/gevolution/Makefile |
1965 pidgin/plugins/musicmessaging/Makefile | 2071 pidgin/plugins/musicmessaging/Makefile |
1994 libpurple/protocols/simple/Makefile | 2100 libpurple/protocols/simple/Makefile |
1995 libpurple/protocols/toc/Makefile | 2101 libpurple/protocols/toc/Makefile |
1996 libpurple/protocols/yahoo/Makefile | 2102 libpurple/protocols/yahoo/Makefile |
1997 libpurple/protocols/zephyr/Makefile | 2103 libpurple/protocols/zephyr/Makefile |
1998 libpurple/tests/Makefile | 2104 libpurple/tests/Makefile |
2105 libpurple/version.h | |
1999 finch/Makefile | 2106 finch/Makefile |
2000 finch/libgnt/Makefile | 2107 finch/libgnt/Makefile |
2001 finch/libgnt/gnt.pc | 2108 finch/libgnt/gnt.pc |
2002 finch/libgnt/wms/Makefile | 2109 finch/libgnt/wms/Makefile |
2003 finch/plugins/Makefile | 2110 finch/plugins/Makefile |