Diff of /trunk/configure.in

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

revision 37 by harbaum, Fri Jul 31 11:17:08 2009 UTC revision 122 by harbaum, Mon Sep 21 13:15:25 2009 UTC
# Line 21  Line 21 
21  # along with GPXView.  If not, see <http://www.gnu.org/licenses/>.  # along with GPXView.  If not, see <http://www.gnu.org/licenses/>.
22    
23  AC_PREREQ(2.61)  AC_PREREQ(2.61)
24  AC_INIT([GPXView],[0.7.5],[till@harbaum.org])  AC_INIT([GPXView],[0.8.10],[till@harbaum.org])
25  AC_CONFIG_SRCDIR([src/main.c])  AC_CONFIG_SRCDIR([src/main.c])
26  # AC_CONFIG_HEADER([src/config.h])  # AC_CONFIG_HEADER([src/config.h])
27    
# Line 66  CFLAGS="$CFLAGS $libxml2_CFLAGS" Line 66  CFLAGS="$CFLAGS $libxml2_CFLAGS"
66  LIBS="$LIBS $libxml2_LIBS"  LIBS="$LIBS $libxml2_LIBS"
67  # check for libsoup  # check for libsoup
68  PKG_CHECK_MODULES([libsoup24], [libsoup-2.4], [  PKG_CHECK_MODULES([libsoup24], [libsoup-2.4], [
69    EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o"    EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"
70    CFLAGS="$CFLAGS $libsoup24_CFLAGS -DENABLE_OSM_GPS_MAP"    CFLAGS="$CFLAGS $libsoup24_CFLAGS -DENABLE_OSM_GPS_MAP"
71    LIBS="$LIBS $libsoup24_LIBS"    LIBS="$LIBS $libsoup24_LIBS"
72  ], [  ], [
73    PKG_CHECK_MODULES([libsoup22], [libsoup-2.2], [    PKG_CHECK_MODULES([libsoup22], [libsoup-2.2], [
74      EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o"      EXTRA_OBJS="$EXTRA_OBJS converter.o osm-gps-map.o map-tool.o osm-gps-map-osd-classic.o"
75      CFLAGS="$CFLAGS $libsoup22_CFLAGS -DLIBSOUP22 -DENABLE_OSM_GPS_MAP"      CFLAGS="$CFLAGS $libsoup22_CFLAGS -DLIBSOUP22 -DENABLE_OSM_GPS_MAP"
76      LIBS="$LIBS $libsoup22_LIBS"      LIBS="$LIBS $libsoup22_LIBS"
77    ], [    ], [
# Line 154  PKG_CHECK_EXISTS(maemo-version, [ Line 154  PKG_CHECK_EXISTS(maemo-version, [
154      AC_MSG_ERROR([maemo-version not found])      AC_MSG_ERROR([maemo-version not found])
155    ])    ])
156    
157      INSTALL_PLATTFORM="install-maemo"
158    
159      # fremantle uses icons of 48x48 pixels for the app installer,
160      # older versions used 26x26
161      if [[ "$MAJOR" == "5" ]]; then
162         ICONNAME=gpxview.48.png
163      else
164         ICONNAME=gpxview.26.png
165         AC_MSG_NOTICE([Enabling Maemo Mapper support])
166         CFLAGS="$CFLAGS -DENABLE_MAEMO_MAPPER"
167         EXTRA_OBJS="$EXTRA_OBJS mm_poi.o"
168      fi
169    
170    # maemo uses dbus for ipc with maemo mapper    # maemo uses dbus for ipc with maemo mapper
171    EXTRA_OBJS="$EXTRA_OBJS mm_poi.o dbus.o"    EXTRA_OBJS="$EXTRA_OBJS dbus.o"
172    
173    INSTALL_PLATTFORM="install-maemo"    AC_MSG_NOTICE([Using application installer icon "$ICONNAME"])
174    
175      # add icon entry to debian/control
176      ICON=" Maemo icon $ICONNAME
177    XB-Maemo-Icon-26:
178    "
179    
180      # generate base64 icon, remove first and last line
181      # and add a space before each line
182      ICON="$ICON`uuencode -m data/$ICONNAME $ICONNAME | sed '1d;$d;s/^/ /' -`"
183    
184  ], [  ], [
185    AC_MSG_RESULT(no)    AC_MSG_RESULT(no)
186    
# Line 173  PKG_CHECK_EXISTS(maemo-version, [ Line 195  PKG_CHECK_EXISTS(maemo-version, [
195    LIBS="$LIBS $gnome2_LIBS"    LIBS="$LIBS $gnome2_LIBS"
196    
197    INSTALL_PLATTFORM="install-debian"    INSTALL_PLATTFORM="install-debian"
198    
199      ICON=" No icon"
200  ])  ])
201    
202  AC_SUBST(EXTRA_OBJS)  AC_SUBST(EXTRA_OBJS)
203    AC_SUBST(ICON)
204  AC_SUBST(INSTALL_PLATTFORM)  AC_SUBST(INSTALL_PLATTFORM)
205  AC_CONFIG_FILES([Makefile src/Makefile data/Makefile])  AC_CONFIG_FILES([Makefile src/Makefile data/Makefile debian/control])
206    
207  AC_OUTPUT  AC_OUTPUT

Legend:
Removed from v.37  
changed lines
  Added in v.122