comparison configure.in @ 0:a5ace2e037bc

Tailorization Import of the upstream sources from Repository: https://svn.sourceforge.net/svnroot/gaim Kind: svn Module: /trunk Revision: 9
author Tailor Script <tailor@pidgin.im>
date Thu, 23 Mar 2000 03:09:51 +0000
parents
children a2e36e80c832
comparison
equal deleted inserted replaced
-1:000000000000 0:a5ace2e037bc
1 dn3l Process this file with autoconf to produce a configure script.
2 AC_INIT(src/aim.c)
3
4 AM_INIT_AUTOMAKE([gaim], [0.9.11])
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)
19
20 dnl Checks for typedefs, structures, and compiler characteristics.
21 AC_C_CONST
22 AC_STRUCT_TM
23
24 dnl Checks for library functions.
25 AC_TYPE_SIGNAL
26 AC_FUNC_STRFTIME
27 AC_CHECK_FUNCS(socket strdup strstr atexit)
28
29 dnl This is a bad, bad hack. I am a bad, bad man.
30 CFLAGS="$CFLAGS -I/usr/local/include -I/opt/include"
31
32 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],enable_debug=yes,)
33 AC_ARG_ENABLE(gnome, [ --enable-gnome compile as a GNOME applet],enable_gnome=yes,)
34 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],enable_esd=no,enable_esd=yes)
35 AC_ARG_ENABLE(oscar, [ --enable-oscar Enable Oscar support (experimental)],enable_oscar=yes,)
36 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],enable_nas=yes,)
37 dnl AC_ARG_ENABLE(plugins, [ --enable-plugins compile with plugin support],enable_plugins=yes,)
38
39 GAIM_CFLAGS="$CFLAGS -I../"
40 GAIM_LIBS="$LIBS"
41 GAIM_LDADD="$LDADD"
42 LIBFAIM_DO=""
43
44 if test "$enable_debug" = yes ; then
45 GAIM_CFLAGS="$GAIM_CFLAGS -Wall -d -g -DDEBUG"
46 fi
47
48 if test "$enable_oscar" = yes ; then
49 GAIM_CFLAGS="$GAIM_CFLAGS -DUSE_OSCAR -I../libfaim"
50 GAIM_LDADD="$GAIM_LDADD -L../libfaim -lfaim"
51 LIBFAIM_DO="libfaim.a"
52 fi
53
54 if test "$enable_gnome" = yes ; then
55 GNOME_INIT(applets)
56 GNOME_X_CHECKS
57 GAIM_CFLAGS="$GNOME_INCLUDEDIR $GAIM_CFLAGS -DUSE_APPLET"
58 GAIM_LIBS="$GAIM_LIBS $GNOME_LIBDIR $GTK_LIBS $GNOME_APPLETS_LIBS"
59 else
60 AM_PATH_GLIB(1.2.0)
61 AM_PATH_GTK(1.2.0)
62 GAIM_LIBS="$GAIM_LIBS $GTK_LIBS"
63
64 fi
65
66 GAIM_CFLAGS="$GAIM_CFLAGS $GTK_CFLAGS"
67
68 if test "$enable_plugins" = yes ; then
69 GAIM_CFLAGS="$GAIM_CFLAGS -DGAIM_PLUGINS"
70 fi
71
72 if test "$enable_nas" = yes ; then
73 GAIM_CFLAGS="$GAIM_CFLAGS -DNAS_SOUND"
74 GAIM_LIBS="$GAIM_LIBS -laudio"
75 fi
76
77 if test "$enable_esd" = yes ; then
78 AM_PATH_GESD
79 if test "$no_esd" != yes ; then
80 GAIM_CFLAGS="$GAIM_CFLAGS $ESD_CFLAGS -DESD_SOUND"
81 GAIM_LIBS="$GAIM_LIBS $ESD_LIBS"
82 fi
83 fi
84
85 if test "$ac_cv_cygwin" = yes ; then
86 GAIM_LDADD="$GAIM_LDADD -static"
87 GAIM_CFLAGS="$GAIM_CFLAGS -Wall -g -DDEBUG"
88 fi
89
90 AC_SUBST(GAIM_CFLAGS)
91 AC_SUBST(GAIM_LIBS)
92 AC_SUBST(GAIM_LDADD)
93 AC_SUBST(LIBFAIM_DO)
94
95 AC_OUTPUT([Makefile
96 src/Makefile
97 sounds/Makefile
98 pixmaps/Makefile
99 libfaim/Makefile
100 doc/Makefile
101 m4/Makefile
102 ])