Changeset 554
- Timestamp:
- Mar 8, 2006, 9:03:24 PM (15 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/caca/Makefile.am
r539 r554 18 18 driver_win32.c \ 19 19 driver_x11.c \ 20 driver_network.c \ 20 21 $(NULL) 21 22 libcaca_la_CPPFLAGS = -I$(top_srcdir)/cucul -
libcaca/trunk/caca/caca.c
r553 r554 147 147 else 148 148 #endif 149 #if defined(USE_NETWORK) 150 if(!strcasecmp(var, "network")) 151 network_init_driver(kk); 152 else 153 #endif 149 154 return -1; 150 155 … … 187 192 return 0; 188 193 #endif 194 #if defined(USE_NETWORK) 195 network_init_driver(kk); 196 return 0; 197 #endif 189 198 190 199 return -1; -
libcaca/trunk/caca/caca_internals.h
r553 r554 55 55 CACA_DRIVER_GL = 6, 56 56 #endif 57 #if defined(USE_NETWORK) 58 CACA_DRIVER_NETWORK = 7, 59 #endif 57 60 CACA_DRIVER_NONE = 0 58 61 }; … … 77 80 void x11_init_driver(caca_t *); 78 81 #endif 79 82 #if defined(USE_NETWORK) 83 void network_init_driver(caca_t *); 84 #endif 80 85 /* Timer structure */ 81 86 struct caca_timer -
libcaca/trunk/configure.ac
r545 r554 37 37 AC_ARG_ENABLE(gl, 38 38 [ --enable-gl OpenGL support (autodetected)]) 39 AC_ARG_ENABLE(network, 40 [ --enable-network Network support (autodetected)]) 39 41 40 42 dnl example programs features … … 138 140 fi 139 141 142 if test "${enable_network}" != "no"; then 143 ac_cv_my_have_network="no" 144 AC_CHECK_HEADERS(sys/socket.h, 145 [ac_cv_my_have_network="yes" 146 AC_DEFINE(USE_NETWORK, 1, Define to activate the network backend driver) 147 CACA_DRIVERS="${CACA_DRIVERS} network"]) 148 if test "${ac_cv_my_have_network}" = "no" -a "${enable_network}" = "yes"; then 149 AC_MSG_ERROR([cannot find standard networking socket files]) 150 fi 151 fi 152 140 153 if test "${enable_ncurses}" != "no"; then 141 154 ac_cv_my_have_ncurses="no"
Note: See TracChangeset
for help on using the changeset viewer.