Mercurial > pidgin.yaz
annotate configure.in @ 1637:ce8efad14c77
[gaim-migrate @ 1647]
Yay!
committer: Tailor Script <tailor@pidgin.im>
author | Rob Flynn <gaim@robflynn.com> |
---|---|
date | Fri, 23 Mar 2001 17:34:03 +0000 |
parents | aa69b15d9403 |
children | f2645224b30a |
rev | line source |
---|---|
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
1 dnl Process this file with autoconf to produce a configure script. |
0 | 2 AC_INIT(src/aim.c) |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
3 AM_CONFIG_HEADER(config.h) |
1551
497a074fa1c8
[gaim-migrate @ 1561]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1538
diff
changeset
|
4 AM_INIT_AUTOMAKE([gaim], [0.11.0pre7]) |
0 | 5 |
6 dnl Checks for programs. | |
1564
aa69b15d9403
[gaim-migrate @ 1574]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1556
diff
changeset
|
7 AC_ENABLE_STATIC(no) |
0 | 8 AM_PROG_LIBTOOL |
1556
22532a7e5fbf
[gaim-migrate @ 1566]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1551
diff
changeset
|
9 LIBTOOL="$LIBTOOL --silent" |
0 | 10 AC_PROG_CC |
11 AC_PROG_INSTALL | |
12 | |
932
13bdc97d433e
[gaim-migrate @ 942]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
923
diff
changeset
|
13 |
419 | 14 ALL_LINGUAS="de fr es zh_CN ko" |
347
d64101dc5c7e
[gaim-migrate @ 357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
15 AM_GNU_GETTEXT |
0 | 16 |
17 AC_CYGWIN | |
18 | |
19 | |
20 dnl Checks for header files. | |
21 AC_HEADER_STDC | |
22 AC_HEADER_SYS_WAIT | |
614
a3e32af35b30
[gaim-migrate @ 624]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
606
diff
changeset
|
23 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h locale.h signal.h) |
212
89c9334d3484
[gaim-migrate @ 222]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
174
diff
changeset
|
24 AC_CHECK_HEADERS(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not found ***])) |
89c9334d3484
[gaim-migrate @ 222]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
174
diff
changeset
|
25 |
0 | 26 dnl Checks for typedefs, structures, and compiler characteristics. |
27 AC_C_CONST | |
28 AC_STRUCT_TM | |
29 | |
30 dnl Checks for library functions. | |
31 AC_TYPE_SIGNAL | |
32 AC_FUNC_STRFTIME | |
640
2c0a7d245bd2
[gaim-migrate @ 650]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
614
diff
changeset
|
33 AC_CHECK_FUNCS(socket strdup strstr atexit getaddrinfo) |
932
13bdc97d433e
[gaim-migrate @ 942]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
923
diff
changeset
|
34 AC_TRY_COMPILE(sys/socket.h, typedef unsigned int socklen_t;, AC_DEFINE(NEED_SOCKLEN_T),) |
0 | 35 |
991
3dbc2cd326e2
[gaim-migrate @ 1001]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
36 dnl Checks for getopt in standard library |
3dbc2cd326e2
[gaim-migrate @ 1001]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
37 AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"] ) |
3dbc2cd326e2
[gaim-migrate @ 1001]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
38 AC_SUBST(LIBOBJS) |
3dbc2cd326e2
[gaim-migrate @ 1001]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
981
diff
changeset
|
39 |
0 | 40 dnl This is a bad, bad hack. I am a bad, bad man. |
1094
3deadbe50737
[gaim-migrate @ 1104]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1054
diff
changeset
|
41 CFLAGS="$CFLAGS -I/usr/local/include -I/opt/include -I\$(top_srcdir)" |
0 | 42 |
547
8086ed233742
[gaim-migrate @ 557]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
529
diff
changeset
|
43 AC_ARG_ENABLE(distrib,,,enable_distrib=no) |
8086ed233742
[gaim-migrate @ 557]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
529
diff
changeset
|
44 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") |
1024
66481301d972
[gaim-migrate @ 1034]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
991
diff
changeset
|
45 AC_ARG_ENABLE(multi, [ --disable-multi disable multiple connections],,enable_multi=yes) |
1418
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
46 AC_ARG_ENABLE(prpls, [ --disable-prpls don't build protocol plugins],,enable_prpls=yes) |
1024
66481301d972
[gaim-migrate @ 1034]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
991
diff
changeset
|
47 AC_ARG_ENABLE(gnome, [ --disable-gnome compile without Gnome bits],,enable_gnome=yes) |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
48 AC_ARG_ENABLE(panel, [ --enable-panel compile as a GNOME applet],,enable_panel=$enable_distrib) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
49 AM_CONDITIONAL(GNOMEAPPLET, test "x$enable_panel" = "xyes") |
1024
66481301d972
[gaim-migrate @ 1034]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
991
diff
changeset
|
50 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],,enable_esd=yes) |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
51 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no) |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
52 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) |
1024
66481301d972
[gaim-migrate @ 1034]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
991
diff
changeset
|
53 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
54 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) |
1154
938d9cd76148
[gaim-migrate @ 1164]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1152
diff
changeset
|
55 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) |
547
8086ed233742
[gaim-migrate @ 557]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
529
diff
changeset
|
56 AC_ARG_ENABLE(,,,) |
0 | 57 |
58 if test "$enable_debug" = yes ; then | |
402
943248245f32
[gaim-migrate @ 412]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
386
diff
changeset
|
59 CFLAGS="$CFLAGS -Wall -g" |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
60 AC_DEFINE(DEBUG) |
0 | 61 fi |
62 | |
529
e6ba7ab7c349
[gaim-migrate @ 539]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
510
diff
changeset
|
63 if test "x$enable_gnome" = "xyes" ; then |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
64 if test "x$enable_panel" = "xyes" ; then |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
65 GNOME_INIT(gnomeui applets) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
66 GNOME_X_CHECKS |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
67 CFLAGS="$CFLAGS $GNOME_INCLUDEDIR" |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
68 AC_DEFINE(USE_APPLET) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
69 AC_DEFINE(USE_GNOME) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
70 LIBS="$LIBS $GTK_LIBS $GNOME_LIBDIR $GNOME_APPLETS_LIBS $GNOMEUI_LIBS" |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
71 AC_PATH_PROG(gaimpath, gaim_applet) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
72 else |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
73 AC_PATH_PROG(gnomepath, gnome-config) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
74 AC_MSG_CHECKING(for Gnome compile flags) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
75 GNOME_CFLAGS=`$gnomepath gnomeui --cflags 2>/dev/null` |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
76 if test "x$GNOME_CFLAGS" = "x" ; then |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
77 enable_gnome=no |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
78 AC_MSG_RESULT([Gnome not found, building without it.]) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
79 else |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
80 GNOME_VER=`$gnomepath --version |$sedpath 's/gnome-libs //' 2>/dev/null` |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
81 GNOME_MAJOR=`echo $GNOME_VER |$sedpath 's/\([[0-9]*]*\).\([[0-9]*]*\).\([[0-9]*]*\)/\1/' 2>/dev/null` |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
82 if test "x$GNOME_MAJOR" = "x0" ; then |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
83 enable_gnome = no |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
84 AC_MSG_RESULT([old Gnome found, building without it.]) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
85 else |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
86 AC_MSG_RESULT(ok) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
87 CFLAGS="$CFLAGS $GNOME_CFLAGS" |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
88 LIBS="$LIBS `$gnomepath gnomeui --libs 2>/dev/null`" |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
89 AC_DEFINE(USE_GNOME) |
606
eaab8abda2c0
[gaim-migrate @ 616]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
598
diff
changeset
|
90 GNOME_CONFIG="$gnomepath" |
eaab8abda2c0
[gaim-migrate @ 616]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
598
diff
changeset
|
91 AC_SUBST(GNOME_CONFIG) |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
92 AC_PATH_PROG(gaimpath, gaim) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
93 fi |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
94 fi |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
95 fi |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
96 fi |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
97 |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
98 if test "x$enable_gnome" != "xyes" ; then |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
99 AM_PATH_GLIB(1.2.0) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
100 AM_PATH_GTK(1.2.0,,,gthread) |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
101 LIBS="$LIBS $GTK_LIBS" |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
102 AC_PATH_PROG(gaimpath, gaim) |
0 | 103 fi |
1120
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
104 CFLAGS="$CFLAGS $GTK_CFLAGS" |
0 | 105 |
1026 | 106 dnl Check for XScreenSaver |
107 if test "x$enable_xss" = "xyes" ; then | |
1328
49d2eb2baf02
[gaim-migrate @ 1338]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1319
diff
changeset
|
108 XSS_LIBS="no" |
1120
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
109 XSS_HEADERS="no" |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
110 AC_CHECK_LIB(Xext, XScreenSaverRegister,[XSS_LIBS=""],[],[-lX11 -lXext -lm]) |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
111 AC_CHECK_LIB(Xss, XScreenSaverRegister,[XSS_LIBS="-lXss"],[],[-lX11 -lXext -lm]) |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
112 if test \! "$XSS_LIBS" = "no"; then |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
113 AC_TRY_COMPILE([ |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
114 #include <X11/extensions/scrnsaver.h> |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
115 ],[],[],[ |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
116 AC_DEFINE(USE_SCREENSAVER) |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
117 AC_SUBST(XSS_LIBS) |
1120
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
118 ]) |
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
119 else |
1319
ff50d396c2bc
[gaim-migrate @ 1329]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1314
diff
changeset
|
120 XSS_LIBS="" |
1120
124e9f0b9af5
[gaim-migrate @ 1130]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1094
diff
changeset
|
121 fi |
1026 | 122 else |
1319
ff50d396c2bc
[gaim-migrate @ 1329]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1314
diff
changeset
|
123 XSS_LIBS="" |
1026 | 124 fi |
125 | |
126 | |
127 | |
128 | |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
129 dnl This was taken straight from X-Chat. |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
130 dnl X-Chat is the greatest application ever, not only |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
131 dnl because it's a rocking IRC client but also because |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
132 dnl it's very easy to learn from. |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
133 if test "$enable_perl" = yes ; then |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
134 AC_PATH_PROG(sedpath, sed) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
135 AC_PATH_PROG(perlpath, perl) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
136 AC_MSG_CHECKING(for Perl compile flags) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
137 PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null` |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
138 if test "_$PERL_CFLAGS" = _ ; then |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
139 AC_MSG_RESULT([not found, building without perl.]) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
140 enable_perl = no |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
141 else |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
142 PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'` |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
143 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'` |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
144 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'` |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
145 if test "$system" = "Linux"; then |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
146 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lnsl //'` |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
147 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lposix //'` |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
148 fi |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
149 PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lc //'` |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
150 AC_MSG_RESULT(ok) |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
151 AC_SUBST(PERL_CFLAGS) |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
152 AC_SUBST(PERL_LIBS) |
553
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
153 AC_DEFINE(USE_PERL) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
154 AC_CHECK_FUNCS(Perl_eval_pv) |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
155 fi |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
156 fi |
8cff36d54643
[gaim-migrate @ 563]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
547
diff
changeset
|
157 |
0 | 158 if test "$enable_nas" = yes ; then |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
159 AC_DEFINE(NAS_SOUND) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
160 LIBS="$LIBS -laudio" |
0 | 161 fi |
162 | |
163 if test "$enable_esd" = yes ; then | |
164 AM_PATH_GESD | |
165 if test "$no_esd" != yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
166 CFLAGS="$CFLAGS $ESD_CFLAGS" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
167 AC_DEFINE(ESD_SOUND) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
168 LDADD="$LDADD $ESD_LIBS" |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
169 else |
981
7e231bc0018a
[gaim-migrate @ 991]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
972
diff
changeset
|
170 enable_esd=no |
0 | 171 fi |
172 fi | |
173 | |
174 if test "$ac_cv_cygwin" = yes ; then | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
175 LDADD="$LDADD -static" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
176 CFLAGS="$CFLAGS -Wall -g" |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
177 AC_DEFINE(DEBUG) |
0 | 178 fi |
179 | |
349
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
180 AC_SUBST(CFLAGS) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
181 AC_SUBST(LDADD) |
b402a23f35df
[gaim-migrate @ 359]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
347
diff
changeset
|
182 AC_SUBST(LIBS) |
0 | 183 |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
184 if test "x$enable_multi" != "xyes" ; then |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
185 AC_DEFINE(NO_MULTI) |
1418
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
186 enable_multi=no |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
187 fi |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
188 |
1418
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
189 if test "x$enable_plugins" = "xyes" ; then |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
190 AC_DEFINE(GAIM_PLUGINS) |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
191 AM_CONDITIONAL(PLUGINS, test "x$enable_plugins" = "xyes") |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
192 else |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
193 enable_plugins=no |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
194 enable_prpls=no |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
195 fi |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
196 |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
197 if test "x$enable_prpls" = "xyes" ; then |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
198 dnl checks for icqlib |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
199 AC_CHECK_HEADERS(asm/byteorder.h byteswap.h endian.h machine/endian.h arpa/nameser_compat.h) |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
200 AC_CHECK_FUNCS(bswap_32 bswap_16) |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
201 |
1347
afa63ac2fd84
[gaim-migrate @ 1357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1328
diff
changeset
|
202 dnl checks for jabber |
afa63ac2fd84
[gaim-migrate @ 1357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1328
diff
changeset
|
203 dnl AC_CHECK_SIZEOF(short) |
afa63ac2fd84
[gaim-migrate @ 1357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1328
diff
changeset
|
204 AC_CHECK_FUNCS(snprintf connect) |
afa63ac2fd84
[gaim-migrate @ 1357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1328
diff
changeset
|
205 AC_CHECK_LIB(nsl, gethostent) |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
206 |
1418
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
207 AM_CONDITIONAL(PRPLS, test "x$enable_plugins" = "xyes") |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
208 else |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
209 enable_prpls=no |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
210 fi |
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
211 |
0 | 212 AC_OUTPUT([Makefile |
213 src/Makefile | |
347
d64101dc5c7e
[gaim-migrate @ 357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
214 intl/Makefile |
0 | 215 sounds/Makefile |
172
450d62d40185
[gaim-migrate @ 182]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
170
diff
changeset
|
216 plugins/Makefile |
1054
0b0b4cb53c17
[gaim-migrate @ 1064]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1047
diff
changeset
|
217 plugins/yay/Makefile |
1152
201ec77f3a60
[gaim-migrate @ 1162]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1120
diff
changeset
|
218 plugins/icq/Makefile |
1259 | 219 plugins/msn/Makefile |
1311
338b8ac6bdab
[gaim-migrate @ 1321]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1289
diff
changeset
|
220 plugins/jabber/Makefile |
0 | 221 pixmaps/Makefile |
222 libfaim/Makefile | |
347
d64101dc5c7e
[gaim-migrate @ 357]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
338
diff
changeset
|
223 po/Makefile.in |
0 | 224 doc/Makefile |
225 m4/Makefile | |
322
8ed366802f2e
[gaim-migrate @ 332]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
299
diff
changeset
|
226 gaim.spec |
0 | 227 ]) |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
228 |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
229 echo |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
230 echo $PACKAGE $VERSION |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
231 |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
232 echo |
1418
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
233 echo Allow Multiple Connections. : $enable_multi |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
234 echo Build Protocol Plugins..... : $enable_prpls |
baef6e30f3a7
[gaim-migrate @ 1428]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
1386
diff
changeset
|
235 echo |
598
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
236 echo Build with GNOME bits...... : $enable_gnome |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
237 echo Build as GNOME applet...... : $enable_panel |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
238 echo |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
239 echo Build with Plugin support.. : $enable_plugins |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
240 echo Build with Perl support.... : $enable_perl |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
241 echo |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
242 echo Build with ESD............. : $enable_esd |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
243 echo Build with NAS............. : $enable_nas |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
244 echo |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
245 echo Print debugging messages... : $enable_debug |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
246 echo |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
247 echo Gaim will be installed in $prefix/bin. |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
248 if test "x$gaimpath" != "x" ; then |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
249 echo Warning: You have an old copy of gaim at $gaimpath. |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
250 fi |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
251 echo |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
252 echo configure complete, now type \'make\' |
c763eeec336f
[gaim-migrate @ 608]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
565
diff
changeset
|
253 echo |