Mercurial > pidgin
annotate configure.in @ 252:4a41f8323022
[gaim-migrate @ 262]
Small changes. some things work better.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 22 May 2000 23:58:03 +0000 |
parents | 12a39dcb681c |
children | 0f14e6d8a51b |
rev | line source |
---|---|
0 | 1 dn3l Process this file with autoconf to produce a configure script. |
2 AC_INIT(src/aim.c) | |
3 | |
222 | 4 AM_INIT_AUTOMAKE([gaim], [0.9.16]) |
0 | 5 |
6 dnl Checks for programs. | |
7 AM_PROG_LIBTOOL | |
8 AC_PROG_CC | |
9 AC_PROG_INSTALL | |
10 | |
11 | |
12 AC_CYGWIN | |
13 | |
14 | |
15 dnl Checks for header files. | |
16 AC_HEADER_STDC | |
17 AC_HEADER_SYS_WAIT | |
18 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h) | |
212
89c9334d3484
[gaim-migrate @ 222]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
174
diff
changeset
|
19 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
|
20 |
0 | 21 dnl Checks for typedefs, structures, and compiler characteristics. |
22 AC_C_CONST | |
23 AC_STRUCT_TM | |
24 | |
25 dnl Checks for library functions. | |
26 AC_TYPE_SIGNAL | |
27 AC_FUNC_STRFTIME | |
28 AC_CHECK_FUNCS(socket strdup strstr atexit) | |
29 | |
30 dnl This is a bad, bad hack. I am a bad, bad man. | |
31 CFLAGS="$CFLAGS -I/usr/local/include -I/opt/include" | |
32 | |
33 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],enable_debug=yes,) | |
34 AC_ARG_ENABLE(gnome, [ --enable-gnome compile as a GNOME applet],enable_gnome=yes,) | |
31 | 35 AM_CONDITIONAL(GNOMEAPPLET, test x$enable_gnome = xyes) |
0 | 36 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],enable_esd=no,enable_esd=yes) |
37 AC_ARG_ENABLE(oscar, [ --enable-oscar Enable Oscar support (experimental)],enable_oscar=yes,) | |
38 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],enable_nas=yes,) | |
174 | 39 AC_ARG_ENABLE(plugins, [ --disable-plugins compile with out plugin support],enable_plugins=no,enable_plugins=yes) |
0 | 40 |
41 GAIM_CFLAGS="$CFLAGS -I../" | |
216
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
42 GAIM_LIBS="$LIBS" |
0 | 43 GAIM_LDADD="$LDADD" |
44 LIBFAIM_DO="" | |
45 | |
46 if test "$enable_debug" = yes ; then | |
47 GAIM_CFLAGS="$GAIM_CFLAGS -Wall -d -g -DDEBUG" | |
48 fi | |
49 | |
50 if test "$enable_oscar" = yes ; then | |
51 GAIM_CFLAGS="$GAIM_CFLAGS -DUSE_OSCAR -I../libfaim" | |
52 GAIM_LDADD="$GAIM_LDADD -L../libfaim -lfaim" | |
53 LIBFAIM_DO="libfaim.a" | |
54 fi | |
55 | |
216
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
56 AM_PATH_GLIB(1.2.0) |
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
57 AM_PATH_GTK(1.2.0,,,gthread) |
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
58 GAIM_LIBS="$GAIM_LIBS $GTK_LIBS" |
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
59 |
0 | 60 if test "$enable_gnome" = yes ; then |
61 GNOME_INIT(applets) | |
62 GNOME_X_CHECKS | |
63 GAIM_CFLAGS="$GNOME_INCLUDEDIR $GAIM_CFLAGS -DUSE_APPLET" | |
216
f7e17fb767eb
[gaim-migrate @ 226]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
215
diff
changeset
|
64 GAIM_LIBS="$GAIM_LIBS $GNOME_LIBDIR $GNOME_APPLETS_LIBS" |
0 | 65 fi |
66 | |
67 GAIM_CFLAGS="$GAIM_CFLAGS $GTK_CFLAGS" | |
68 | |
69 if test "$enable_plugins" = yes ; then | |
70 GAIM_CFLAGS="$GAIM_CFLAGS -DGAIM_PLUGINS" | |
71 fi | |
72 | |
73 if test "$enable_nas" = yes ; then | |
74 GAIM_CFLAGS="$GAIM_CFLAGS -DNAS_SOUND" | |
75 GAIM_LIBS="$GAIM_LIBS -laudio" | |
76 fi | |
77 | |
78 if test "$enable_esd" = yes ; then | |
79 AM_PATH_GESD | |
80 if test "$no_esd" != yes ; then | |
81 GAIM_CFLAGS="$GAIM_CFLAGS $ESD_CFLAGS -DESD_SOUND" | |
82 GAIM_LIBS="$GAIM_LIBS $ESD_LIBS" | |
83 fi | |
84 fi | |
85 | |
86 if test "$ac_cv_cygwin" = yes ; then | |
87 GAIM_LDADD="$GAIM_LDADD -static" | |
88 GAIM_CFLAGS="$GAIM_CFLAGS -Wall -g -DDEBUG" | |
89 fi | |
90 | |
91 AC_SUBST(GAIM_CFLAGS) | |
92 AC_SUBST(GAIM_LIBS) | |
93 AC_SUBST(GAIM_LDADD) | |
94 AC_SUBST(LIBFAIM_DO) | |
95 | |
96 AC_OUTPUT([Makefile | |
97 src/Makefile | |
98 sounds/Makefile | |
172
450d62d40185
[gaim-migrate @ 182]
Eric Warmenhoven <eric@warmenhoven.org>
parents:
170
diff
changeset
|
99 plugins/Makefile |
0 | 100 pixmaps/Makefile |
101 libfaim/Makefile | |
102 doc/Makefile | |
103 m4/Makefile | |
104 ]) |