Thu, 01 Jun 2000 19:13:00 +0000
[gaim-migrate @ 315]
12:10:45 EWarmenhoven: ok, the new method for chosing a font: it tries the requested font at the requested size. if it can't do that, it tries the requested font at any size. if it can't do that, it tries courier at any size, then helvetica at any size. if it can't do *that*, it tries the person's default outgoing font, if they have one. if it can't do that, it tries courier, helvetica, then times, all in their most boring form (no bold, italics, etc) at any size. if it *still* can't do that, then there's just no hope, and it segfaults. but at least there's a few more layers of protection and probability that you're going to get *something* right
12:11:43 EWarmenhoven: i don't even know that it'll segfault, but i'm pretty sure it will, since by the time you get down there, it returns NULL :-P
| 0 | 1 | dn3l Process this file with autoconf to produce a configure script. |
| 2 | AC_INIT(src/aim.c) | |
| 3 | ||
| 299 | 4 | AM_INIT_AUTOMAKE([gaim], [0.9.18]) |
| 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
64d4da4d3f09
[gaim-migrate @ 222]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
174
diff
changeset
|
19 | AC_CHECK_HEADERS(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not found ***])) |
|
64d4da4d3f09
[gaim-migrate @ 222]
Eric Warmenhoven <warmenhoven@yahoo.com>
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
9115192fc0f9
[gaim-migrate @ 40]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
29
diff
changeset
|
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
d8a4a163bfec
[gaim-migrate @ 226]
Eric Warmenhoven <warmenhoven@yahoo.com>
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 | |
|
283
dbf3342692e9
[gaim-migrate @ 293]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
222
diff
changeset
|
51 | GAIM_CFLAGS="$GAIM_CFLAGS -DUSE_OSCAR -I../libfaim/faim" |
| 0 | 52 | GAIM_LDADD="$GAIM_LDADD -L../libfaim -lfaim" |
| 53 | LIBFAIM_DO="libfaim.a" | |
| 54 | fi | |
| 55 | ||
|
216
d8a4a163bfec
[gaim-migrate @ 226]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
215
diff
changeset
|
56 | AM_PATH_GLIB(1.2.0) |
|
d8a4a163bfec
[gaim-migrate @ 226]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
215
diff
changeset
|
57 | AM_PATH_GTK(1.2.0,,,gthread) |
|
d8a4a163bfec
[gaim-migrate @ 226]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
215
diff
changeset
|
58 | GAIM_LIBS="$GAIM_LIBS $GTK_LIBS" |
|
d8a4a163bfec
[gaim-migrate @ 226]
Eric Warmenhoven <warmenhoven@yahoo.com>
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
d8a4a163bfec
[gaim-migrate @ 226]
Eric Warmenhoven <warmenhoven@yahoo.com>
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
755d8aa5b22c
[gaim-migrate @ 182]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
170
diff
changeset
|
99 | plugins/Makefile |
| 0 | 100 | pixmaps/Makefile |
| 101 | libfaim/Makefile | |
| 102 | doc/Makefile | |
| 103 | m4/Makefile | |
| 104 | ]) |