Changeset 0a69d7b
- Timestamp:
- 2006-05-25T09:53:53Z (19 years ago)
- Branches:
- master
- Children:
- 5d9b792, b1bd100
- Parents:
- 1c8a7a2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
configure
r1c8a7a2 r0a69d7b 163 163 fi 164 164 165 GLIB=0 166 165 167 if $PKG_CONFIG --version > /dev/null 2>/dev/null && $PKG_CONFIG glib-2.0; then 166 168 cat<<EOF>>Makefile.settings … … 169 171 EOF 170 172 echo '#define GLIB2' >> config.h 173 GLIB=2 171 174 elif type glib-config > /dev/null 2> /dev/null; then 172 175 cat<<EOF>>Makefile.settings … … 175 178 EOF 176 179 echo '#define GLIB1' >> config.h 180 GLIB=1 177 181 else 178 182 echo 'Cannot find glib development libraries, aborting. (Install libglib-dev?)' … … 180 184 fi 181 185 182 if [ -r /usr/include/iconv.h ]; then186 if [ GLIB = 1 -o -r /usr/include/iconv.h ]; then 183 187 :; 184 188 elif [ -r /usr/local/include/iconv.h ]; then -
util.c
r1c8a7a2 r0a69d7b 39 39 #include <glib.h> 40 40 #include <time.h> 41 #ifdef GLIB2 42 #define iconv_t GIConv 43 #define iconv_open g_iconv_open 44 #define iconv_close g_iconv_close 45 #define iconv g_iconv 46 #else 41 47 #include <iconv.h> 48 #endif 42 49 43 50 void strip_linefeed(gchar *text)
Note: See TracChangeset
for help on using the changeset viewer.