/[bubblemon]/bubblemon/configure.in
ViewVC logotype

Diff of /bubblemon/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.81 by walles, Sat Oct 12 19:50:18 2002 UTC revision 1.82 by rael, Wed Nov 13 12:51:42 2002 UTC
# Line 1  Line 1 
1  # -*-m4-*- Process this file with autoconf to produce a configure script.  # -*-m4-*- Process this file with autoconf to produce a configure script.
2    
3    
4    ######################################################################
5    #
6    # General system tests required for building platform independent
7    # stuff.
8    #
9    #
10  AC_INIT(src/bubblemon.h)  AC_INIT(src/bubblemon.h)
11  AM_INIT_AUTOMAKE(bubblemon, 1.2.8)  AM_INIT_AUTOMAKE(bubblemon, 2.0.0)
12  AM_CONFIG_HEADER(config.h)  AM_CONFIG_HEADER(config.h)
13    
14  AC_PROG_CC  AC_PROG_CC
15  AM_PROG_CC_STDC  AM_PROG_CC_STDC
 AC_HEADER_STDC  
16  AC_ISC_POSIX  AC_ISC_POSIX
17    AC_HEADER_STDC
18    
19  # Pick up the Gnome macros.  # Find some more or less non-standard data types
20  #AM_ACLOCAL_INCLUDE(macros)  AC_CHECK_TYPE(u_int32_t, unsigned int)
21    AC_CHECK_TYPE(u_int16_t, unsigned short int)
22  # Find GLIB  AC_CHECK_TYPE(u_int8_t, unsigned char)
 AM_PATH_GLIB()  
 CFLAGS="$CFLAGS $GLIB_CFLAGS"  
 LDFLAGS="$LDFLAGS $GLIB_CFLAGS"  
   
 # Find GNOME and its applet making flags  
 GNOME_INIT(applets)  
   
 GNOME_INIT_LIBGTOP(1.0.0, fail)  
 GNOME_COMPILE_WARNINGS  
 GNOME_X_CHECKS  
   
 # Find out if the GNOME panel is resizable  
 AC_MSG_CHECKING(whether panel resizing is supported)  
 AC_EGREP_HEADER(  
   change_pixel_size,  
   applet-widget.h,  
   have_change_pixel_size=yes,  
   have_change_pixel_size=no)  
   
 if test "x$have_change_pixel_size" = "xyes"; then  
   AC_MSG_RESULT(yes)  
   AC_DEFINE(HAVE_CHANGE_PIXEL_SIZE)  
 else  
   AC_MSG_RESULT(no)  
 fi  
23    
24  # Check for headers  # Find out whether we are on a big-endian system
25  AC_CHECK_HEADERS(sys/sysinfo.h)  AC_C_BIGENDIAN
26    
27  # For i18n and l10n  # For i18n and l10n
28  ALL_LINGUAS="sv fr pl de ko fi da sh pt ro es no hu it is"  ALL_LINGUAS="sv fr pl de ko fi da sh pt ro es no hu it is"
# Line 58  fi Line 40  fi
40  AC_MSG_CHECKING(what languages to include)  AC_MSG_CHECKING(what languages to include)
41  AC_MSG_RESULT($LINGUAS)  AC_MSG_RESULT($LINGUAS)
42    
43  # For i18n and l10n (continued)  GETTEXT_PACKAGE=bubblemon
44  AM_GNU_GETTEXT  AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE")
45    AC_SUBST(GETTEXT_PACKAGE)
 # Find some more or less non-standard data types  
 AC_CHECK_TYPE(u_int32_t, unsigned int)  
 AC_CHECK_TYPE(u_int16_t, unsigned short int)  
 AC_CHECK_TYPE(u_int8_t, unsigned char)  
   
 # Find GNOME's sysconf dir  
 AC_MSG_CHECKING(for GNOME's sysconf dir)  
 GNOME_SYSCONFDIR=`$GNOME_CONFIG --sysconfdir`  
 AC_SUBST(GNOME_SYSCONFDIR)  
 AC_MSG_RESULT($GNOME_SYSCONFDIR)  
   
 # Find GNOME's data dir  
 AC_MSG_CHECKING(for GNOME's data dir)  
 GNOME_DATADIR=`$GNOME_CONFIG --datadir`  
 AC_SUBST(GNOME_DATADIR)  
 AC_MSG_RESULT($GNOME_DATADIR)  
   
 # Subst PACKAGE_PIXMAPS_DIR.  
 PACKAGE_PIXMAPS_DIR="`gnome-config --datadir`/pixmaps/${PACKAGE}"  
 AC_SUBST(PACKAGE_PIXMAPS_DIR)  
   
 # Check if the user wants to enable ripples  
 AC_ARG_ENABLE(  
   ripples,  
   [  --enable-ripples[=amount]  Makes surface ripple whith bubbles.  Amount defaults to 0.2])  
46    
47  # Set rippling to 0.2 if no value is given  # For i18n and l10n (continued)
48  if test -z "$enableval"; then  AM_GLIB_GNU_GETTEXT
   enableval="0.2"  
 fi  
49    
50  # Set rippling to 0.2 if no value is given  # Where do we put locale information?
51  if test "$enableval" = "yes"; then  if test "x$prefix" = "xNONE"; then
52    enableval="0.2"    LOCALEDIR=$ac_default_prefix/share/locale
53    else
54      LOCALEDIR=$prefix/share/locale
55  fi  fi
56    AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR")
57    
 AC_MSG_CHECKING(how much the bubbles should make the surface ripple)  
58    
 AC_DEFINE_UNQUOTED(RIPPLES, $enableval, How much the bubbles make the surface ripple (0.0 - 1.0))  
59    
60  AC_MSG_RESULT($enableval)  ######################################################################
61    #
62    # Bubblemon specific tests
63    #
64    #
65    
66  # Check if the user wants to enable profiling  # Check if the user wants to enable profiling
67  AC_ARG_ENABLE(  AC_ARG_ENABLE(
# Line 127  if test "x$profiling" = "xyes"; then Line 87  if test "x$profiling" = "xyes"; then
87    AC_MSG_WARN()    AC_MSG_WARN()
88  fi  fi
89    
90    
91    ##############################
92    # GNOME 2.x specific tests
93    
94    # Versions required
95    LIBPANEL_REQUIRED=2.0.0
96    LIBGTOP_REQUIRED=2.0.0
97    
98    # We need the panel for the applets
99    build_gpanel=false;
100    PKG_CHECK_MODULES(GNOME_APPLETS,
101            [libpanelapplet-2.0 >= $LIBPANEL_REQUIRED],
102            build_gpanel=true,
103            AC_MSG_WARN([GNOME2 panel not found.]))
104    AC_SUBST(GNOME_APPLETS_CFLAGS)
105    AC_SUBST(GNOME_APPLETS_LIBS)
106    
107    # Check for gtop2 libs
108    build_gtop_applets=false
109    PKG_CHECK_MODULES(GTOP_APPLETS,
110            [libgtop-2.0 >= $LIBGTOP_REQUIRED],
111            build_gtop_applets=true,
112            AC_MSG_WARN([libgtop not found.]))
113    AC_SUBST(GTOP_APPLETS_CFLAGS)
114    AC_SUBST(GTOP_APPLETS_LIBS)
115    AM_CONDITIONAL(BUILD_GTOP_APPLETS, $build_gtop_applets)
116    
117    # The gnome2 panel is resizable
118    AC_DEFINE(HAVE_CHANGE_PIXEL_SIZE)
119    
120    
121    ######################################################################
122    #
123    # Output our test results
124    #
125    #
126  AC_OUTPUT([  AC_OUTPUT([
127  Makefile  Makefile
 macros/Makefile  
 macros/gnome/Makefile  
128  src/Makefile  src/Makefile
129  gnome/Makefile  gnome/Makefile
130  pixmaps/Makefile  pixmaps/Makefile
131  packaging/Makefile  packaging/Makefile
132  packaging/bubblemon.spec  packaging/bubblemon.spec
 debian/Makefile  
 debian/VERSION  
 intl/Makefile  
133  po/Makefile.in  po/Makefile.in
134  po/Makefile  po/Makefile
135  man/Makefile  man/Makefile
136  man/bubblemon-gnome1.1  man/bubblemon-gnome2.1
137  man/hu/Makefile  man/hu/Makefile
138  man/hu/bubblemon-gnome1.1  man/hu/bubblemon-gnome2.1
139  man/sv/Makefile  man/sv/Makefile
140  man/sv/bubblemon-gnome1.1  man/sv/bubblemon-gnome2.1
141  ])  ])

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26