Mercurial > pidgin.yaz
comparison configure.in @ 1906:42aa9434800a
[gaim-migrate @ 1916]
gah.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 28 May 2001 20:37:58 +0000 |
parents | 7af8b0fb931a |
children | e92b4bada176 |
comparison
equal
deleted
inserted
replaced
1905:17ae421bb214 | 1906:42aa9434800a |
---|---|
19 | 19 |
20 dnl Checks for header files. | 20 dnl Checks for header files. |
21 AC_HEADER_STDC | 21 AC_HEADER_STDC |
22 AC_HEADER_SYS_WAIT | 22 AC_HEADER_SYS_WAIT |
23 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h locale.h signal.h) | 23 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h locale.h signal.h) |
24 AC_CHECK_HEADERS(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not found ***])) | |
25 | 24 |
26 dnl Checks for typedefs, structures, and compiler characteristics. | 25 dnl Checks for typedefs, structures, and compiler characteristics. |
27 AC_C_CONST | 26 AC_C_CONST |
28 AC_STRUCT_TM | 27 AC_STRUCT_TM |
29 | 28 |
43 AC_ARG_ENABLE(distrib,,,enable_distrib=no) | 42 AC_ARG_ENABLE(distrib,,,enable_distrib=no) |
44 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") | 43 AM_CONDITIONAL(DISTRIB, test "x$enable_distrib" = "xyes") |
45 AC_ARG_ENABLE(multi, [ --disable-multi disable multiple connections],,enable_multi=yes) | 44 AC_ARG_ENABLE(multi, [ --disable-multi disable multiple connections],,enable_multi=yes) |
46 AC_ARG_ENABLE(prpls, [ --disable-prpls don't build protocol plugins],,enable_prpls=yes) | 45 AC_ARG_ENABLE(prpls, [ --disable-prpls don't build protocol plugins],,enable_prpls=yes) |
47 AC_ARG_ENABLE(gnome, [ --disable-gnome compile without Gnome bits],,enable_gnome=yes) | 46 AC_ARG_ENABLE(gnome, [ --disable-gnome compile without Gnome bits],,enable_gnome=yes) |
47 AC_ARG_ENABLE(pixbuf, [ --disable-pixbuf compile without GdkPixbuf (needed for Buddy Icons)],,enable_pixbuf=yes) | |
48 AC_ARG_ENABLE(panel, [ --enable-panel compile as a GNOME applet],,enable_panel=$enable_distrib) | 48 AC_ARG_ENABLE(panel, [ --enable-panel compile as a GNOME applet],,enable_panel=$enable_distrib) |
49 AM_CONDITIONAL(GNOMEAPPLET, test "x$enable_panel" = "xyes") | 49 AM_CONDITIONAL(GNOMEAPPLET, test "x$enable_panel" = "xyes") |
50 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],,enable_esd=yes) | 50 AC_ARG_ENABLE(esd, [ --disable-esd Turn off ESD (default=auto)],,enable_esd=yes) |
51 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no) | 51 AC_ARG_ENABLE(nas, [ --enable-nas Enable NAS (Network Audio System) support],,enable_nas=no) |
52 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) | 52 AC_ARG_ENABLE(plugins, [ --disable-plugins compile without plugin support],,enable_plugins=yes) |
53 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) | 53 AC_ARG_ENABLE(perl, [ --disable-perl compile without perl scripting],,enable_perl=yes) |
54 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) | 54 AC_ARG_ENABLE(debug, [ --enable-debug compile with debugging support],,enable_debug=no) |
55 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) | 55 AC_ARG_ENABLE(screensaver, [ --disable-screensaver compile without X screensaver extension],,enable_xss=yes) |
56 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") | 56 AC_ARG_WITH(krb4, [ --with-krb4=PREFIX Compile Zephyr plugin with Kerberos 4 support],kerberos="$withval",kerberos="no") |
57 AC_ARG_ENABLE(,,,) | |
58 | 57 |
59 if test "$enable_debug" = yes ; then | 58 if test "$enable_debug" = yes ; then |
60 CFLAGS="$CFLAGS -Wall -g" | 59 CFLAGS="$CFLAGS -Wall -g" |
61 AC_DEFINE(DEBUG) | 60 AC_DEFINE(DEBUG) |
62 fi | 61 fi |
66 GNOME_INIT(applets) | 65 GNOME_INIT(applets) |
67 GNOME_X_CHECKS | 66 GNOME_X_CHECKS |
68 CFLAGS="$CFLAGS $GNOME_INCLUDEDIR" | 67 CFLAGS="$CFLAGS $GNOME_INCLUDEDIR" |
69 AC_DEFINE(USE_APPLET) | 68 AC_DEFINE(USE_APPLET) |
70 AC_DEFINE(USE_GNOME) | 69 AC_DEFINE(USE_GNOME) |
71 GDK_PIXBUF_LIBS=`$GNOME_CONFIG --libs gdk_pixbuf` | 70 LIBS="$LIBS $GTK_LIBS $GNOME_LIBDIR $GNOME_APPLETS_LIBS $GNOMEUI_LIBS" |
72 LIBS="$LIBS $GTK_LIBS $GNOME_LIBDIR $GNOME_APPLETS_LIBS $GNOMEUI_LIBS $GDK_PIXBUF_LIBS" | |
73 AC_PATH_PROG(gaimpath, gaim_applet) | 71 AC_PATH_PROG(gaimpath, gaim_applet) |
74 else | 72 else |
75 AC_PATH_PROG(gnomepath, gnome-config) | 73 AC_PATH_PROG(gnomepath, gnome-config) |
76 AC_MSG_CHECKING(for Gnome compile flags) | 74 AC_MSG_CHECKING(for Gnome compile flags) |
77 GNOME_CFLAGS=`$gnomepath gnomeui gdk_pixbuf --cflags 2>/dev/null` | 75 GNOME_CFLAGS=`$gnomepath gnomeui --cflags 2>/dev/null` |
78 if test "x$GNOME_CFLAGS" = "x" ; then | 76 if test "x$GNOME_CFLAGS" = "x" ; then |
79 enable_gnome=no | 77 enable_gnome=no |
80 AC_MSG_RESULT([Gnome not found, building without it.]) | 78 AC_MSG_RESULT([Gnome not found, building without it.]) |
81 else | 79 else |
82 GNOME_VER=`$gnomepath --version |$sedpath 's/gnome-libs //' 2>/dev/null` | 80 GNOME_VER=`$gnomepath --version |$sedpath 's/gnome-libs //' 2>/dev/null` |
85 enable_gnome = no | 83 enable_gnome = no |
86 AC_MSG_RESULT([old Gnome found, building without it.]) | 84 AC_MSG_RESULT([old Gnome found, building without it.]) |
87 else | 85 else |
88 AC_MSG_RESULT(ok) | 86 AC_MSG_RESULT(ok) |
89 CFLAGS="$CFLAGS $GNOME_CFLAGS" | 87 CFLAGS="$CFLAGS $GNOME_CFLAGS" |
90 LIBS="$LIBS `$gnomepath gnomeui gdk_pixbuf --libs 2>/dev/null`" | 88 LIBS="$LIBS `$gnomepath gnomeui --libs 2>/dev/null`" |
91 AC_DEFINE(USE_GNOME) | 89 AC_DEFINE(USE_GNOME) |
92 GNOME_CONFIG="$gnomepath" | 90 GNOME_CONFIG="$gnomepath" |
93 AC_SUBST(GNOME_CONFIG) | 91 AC_SUBST(GNOME_CONFIG) |
94 AC_PATH_PROG(gaimpath, gaim) | 92 AC_PATH_PROG(gaimpath, gaim) |
95 fi | 93 fi |
108 *** always available at http://www.gtk.org/.]),gthread) | 106 *** always available at http://www.gtk.org/.]),gthread) |
109 LIBS="$LIBS $GTK_LIBS" | 107 LIBS="$LIBS $GTK_LIBS" |
110 AC_PATH_PROG(gaimpath, gaim) | 108 AC_PATH_PROG(gaimpath, gaim) |
111 fi | 109 fi |
112 CFLAGS="$CFLAGS $GTK_CFLAGS" | 110 CFLAGS="$CFLAGS $GTK_CFLAGS" |
111 | |
112 use_pixbuf=no | |
113 if test "x$enable_pixbuf" = "xyes" ; then | |
114 AC_PATH_PROG(pixbufcfg, gdk-pixbuf-config) | |
115 if test "x$pixbufcfg" != "x" ; then | |
116 GDK_PIXBUF_CFLAGS=`$pixbufcfg --cflags` | |
117 GDK_PIXBUF_LIBS=`$pixbufcfg --libs` | |
118 GDK_PIXBUF_CONFIG="$pixbufcfg" | |
119 AC_SUBST(GDK_PIXBUF_CONFIG) | |
120 AC_SUBST(GDK_PIXBUF_CFLAGS) | |
121 AC_SUBST(GDK_PIXBUF_LIBS) | |
122 CFLAGS="$CFLAGS $GDK_PIXBUF_CFLAGS" | |
123 LIBS="$LIBS $GDK_PIXBUF_LIBS" | |
124 dnl We should be doing checks to see that the header files and functions exist. eh. | |
125 AC_DEFINE(USE_PIXBUF) | |
126 use_pixbuf=yes | |
127 fi | |
128 fi | |
113 | 129 |
114 dnl Check for XScreenSaver | 130 dnl Check for XScreenSaver |
115 if test "x$enable_xss" = "xyes" ; then | 131 if test "x$enable_xss" = "xyes" ; then |
116 XSS_LIBS="no" | 132 XSS_LIBS="no" |
117 XSS_HEADERS="no" | 133 XSS_HEADERS="no" |
283 echo | 299 echo |
284 echo Allow Multiple Connections. : $enable_multi | 300 echo Allow Multiple Connections. : $enable_multi |
285 echo Build Protocol Plugins..... : $enable_prpls | 301 echo Build Protocol Plugins..... : $enable_prpls |
286 echo | 302 echo |
287 echo Build with GNOME bits...... : $enable_gnome | 303 echo Build with GNOME bits...... : $enable_gnome |
304 echo Use GdkPixbuf for Icons.... : $use_pixbuf | |
288 echo Build as GNOME applet...... : $enable_panel | 305 echo Build as GNOME applet...... : $enable_panel |
289 echo | 306 echo |
290 echo Build with Plugin support.. : $enable_plugins | 307 echo Build with Plugin support.. : $enable_plugins |
291 echo Build with Perl support.... : $enable_perl | 308 echo Build with Perl support.... : $enable_perl |
292 echo | 309 echo |