1 diff -ruN asterisk-1.0.7-orig/Makefile asterisk-1.0.7-2/Makefile
2 --- asterisk-1.0.7-orig/Makefile 2005-03-10 09:15:05.000000000 +0100
3 +++ asterisk-1.0.7-2/Makefile 2005-03-19 17:38:06.000000000 +0100
7 #Tell gcc to optimize the asterisk's code
11 #Include debug symbols in the executables (-g) and profiling info (-pg)
15 # If you are running a radio application, define RADIO_RELAX so that the DTMF
16 # will be received more reliably
19 # If you don't have a lot of memory (e.g. embedded Asterisk), uncomment the
20 # following to reduce the size of certain static buffers
21 -#OPTIONS += -DLOW_MEMORY
22 +OPTIONS += -DLOW_MEMORY
24 # Optional debugging parameters
25 DEBUG_THREADS = #-DDEBUG_THREADS #-DDO_CRASH
27 BUSYDETECT+= #-DBUSYDETECT_COMPARE_TONE_AND_SILENCE
29 ASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
30 -ASTVARLIBDIR=$(INSTALL_PREFIX)/var/lib/asterisk
31 +ASTVARLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk
32 ASTETCDIR=$(INSTALL_PREFIX)/etc/asterisk
33 ASTSPOOLDIR=$(INSTALL_PREFIX)/var/spool/asterisk
34 ASTLOGDIR=$(INSTALL_PREFIX)/var/log/asterisk
37 INCLUDE=-Iinclude -I../include
38 CFLAGS=-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE #-DMAKE_VALGRIND_HAPPY
40 +CFLAGS+=$(OPTIMIZE) $(CFLAGS_EXTRA)
42 ifneq ($(PROC),ultrasparc)
43 CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi)
45 CFLAGS+=# -fomit-frame-pointer
46 SUBDIRS=res channels pbx apps codecs formats agi cdr astman stdtime
47 ifeq (${OSARCH},Linux)
49 +LIBS=$(LDFLAGS_EXTRA) -ldl -lpthread
52 ifeq (${OSARCH},Linux)
54 ifeq (${OSARCH},OpenBSD)
55 LIBS=-lcrypto -lpthread -lm -lncurses
58 +LIBS+=-Wl,-Bstatic -lssl -Wl,-Bdynamic
59 OBJS=io.o sched.o logger.o frame.o loader.o config.o channel.o \
60 translate.o file.o say.o pbx.o cli.o md5.o term.o \
61 ulaw.o alaw.o callerid.o fskmodem.o image.o app.o \
63 cd editline && unset CFLAGS LIBS && ./configure ; \
65 editline/libedit.a: FORCE
66 - cd editline && unset CFLAGS LIBS && test -f config.h || ./configure
67 - $(MAKE) -C editline libedit.a
68 + cd editline && unset CFLAGS LIBS && test -f config.h || CFLAGS="$(OPTIMIZE) $(CFLAGS_EXTRA)" LDFLAGS="$(LDFLAGS_EXTRA)" ./configure
69 + $(MAKE) PROC=$(PROC) CFLAGS="$(OPTIMIZE)" -C editline libedit.a
71 db1-ast/libdb1.a: FORCE
72 @if [ -d db1-ast ]; then \
73 - $(MAKE) -C db1-ast libdb1.a ; \
74 + $(MAKE) PROC=$(PROC) OORG="$(OPTIMIZE)" -C db1-ast libdb1.a ; \
76 echo "You need to do a cvs update -d not just cvs update"; \
80 stdtime/libtime.a: FORCE
81 @if [ -d stdtime ]; then \
82 - $(MAKE) -C stdtime libtime.a ; \
83 + $(MAKE) PROC=$(PROC) -C stdtime libtime.a ; \
85 echo "You need to do a cvs update -d not just cvs update"; \
88 if [ ! -f $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ]; then \
89 install -m 755 contrib/scripts/safe_asterisk $(DESTDIR)$(ASTSBINDIR)/ ;\
91 - for x in $(SUBDIRS); do $(MAKE) -C $$x install || exit 1 ; done
92 + for x in $(SUBDIRS); do $(MAKE) PROC=$(PROC) -C $$x install || exit 1 ; done
93 install -d $(DESTDIR)$(ASTHEADERDIR)
94 install -m 644 include/asterisk/*.h $(DESTDIR)$(ASTHEADERDIR)
95 rm -f $(DESTDIR)$(ASTVARLIBDIR)/sounds/vm
98 rm -rf /tmp/asterisk ; \
99 mkdir -p /tmp/asterisk/redhat/RPMS/i386 ; \
100 - $(MAKE) DESTDIR=/tmp/asterisk install ; \
101 - $(MAKE) DESTDIR=/tmp/asterisk samples ; \
102 + $(MAKE) PROC=$(PROC) DESTDIR=/tmp/asterisk install ; \
103 + $(MAKE) PROC=$(PROC) DESTDIR=/tmp/asterisk samples ; \
104 mkdir -p /tmp/asterisk/etc/rc.d/init.d ; \
105 cp -f redhat/asterisk /tmp/asterisk/etc/rc.d/init.d/ ; \
106 sed "s/^Version:.*/Version: $(RPMVERSION)/g" redhat/asterisk.spec > asterisk.spec ; \
107 @@ -544,12 +544,12 @@
111 - $(MAKE) OPTIMIZE= K6OPT= install
112 + $(MAKE) PROC=$(PROC) OPTIMIZE= K6OPT= install
114 valgrind: dont-optimize
117 - for x in $(SUBDIRS); do $(MAKE) -C $$x depend || exit 1 ; done
118 + for x in $(SUBDIRS); do $(MAKE) PROC=$(PROC) -C $$x depend || exit 1 ; done
121 @if ! which mpg123 &>/dev/null ; then \
122 diff -ruN asterisk-1.0.7-orig/apps/Makefile asterisk-1.0.7-2/apps/Makefile
123 --- asterisk-1.0.7-orig/apps/Makefile 2004-09-24 23:32:56.000000000 +0200
124 +++ asterisk-1.0.7-2/apps/Makefile 2005-03-19 17:38:06.000000000 +0100
126 APPS+=app_intercom.so
129 -#APPS+=app_sql_postgres.so
132 #APPS+=app_sql_odbc.so
135 -APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
136 -APPS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
137 -APPS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi)
138 +#APPS+=$(shell if [ -f /usr/include/linux/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
139 +#APPS+=$(shell if [ -f /usr/local/include/zaptel.h ]; then echo "app_zapras.so app_meetme.so app_flash.so app_zapbarge.so app_zapscan.so" ; fi)
140 +#APPS+=$(shell if [ -f /usr/include/osp/osp.h ]; then echo "app_osplookup.so" ; fi)
144 diff -ruN asterisk-1.0.7-orig/cdr/Makefile asterisk-1.0.7-2/cdr/Makefile
145 --- asterisk-1.0.7-orig/cdr/Makefile 2004-08-31 18:33:00.000000000 +0200
146 +++ asterisk-1.0.7-2/cdr/Makefile 2005-03-19 17:38:06.000000000 +0100
150 #ADD cdr_pgsql.so to MODS= to include PostgreSQL support: REQUIRES PostgreSQL libs
151 -MODS=cdr_csv.so cdr_manager.so
152 +MODS=cdr_csv.so cdr_manager.so $(EXTRA_MODS)
156 diff -ruN asterisk-1.0.7-orig/channels/Makefile asterisk-1.0.7-2/channels/Makefile
157 --- asterisk-1.0.7-orig/channels/Makefile 2004-08-31 18:33:00.000000000 +0200
158 +++ asterisk-1.0.7-2/channels/Makefile 2005-03-19 17:38:06.000000000 +0100
160 CHANNEL_LIBS+=chan_oss.so
163 -CHANNEL_LIBS+=$(shell [ -f /usr/include/linux/ixjuser.h ] && echo chan_phone.so)
164 -CHANNEL_LIBS+=$(shell [ -f /usr/local/include/ixjuser.h ] && echo chan_phone.so)
165 -CHANNEL_LIBS+=$(shell [ -f h323/libchanh323.a ] && echo chan_h323.so)
167 -CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations
168 -CFLAGS+=$(shell [ ! -f /usr/include/linux/if_wanpipe.h ] && echo " -DOLD_SANGOMA_API")
169 -CHANNEL_LIBS+=$(shell [ -f /usr/include/alsa/asoundlib.h ] && echo "chan_alsa.so")
170 -CFLAGS+=$(shell [ -f /usr/lib/libpri.so.1 ] && echo " -DZAPATA_PRI")
171 -CFLAGS+=$(shell [ -f /usr/lib/libmfcr2.so.1 ] && echo " -DZAPATA_R2")
172 -CFLAGS+=$(shell [ -f alsa-monitor.h ] && echo " -DALSA_MONITOR")
173 -ZAPPRI=$(shell [ -f /usr/lib/libpri.so.1 ] && echo "-lpri")
174 -ZAPR2=$(shell [ -f /usr/lib/libmfcr2.so.1 ] && echo "-lmfcr2")
175 -CFLAGS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo "-DIAX_TRUNKING")
176 -CFLAGS+=$(shell [ -f /usr/local/include/zaptel.h ] && echo "-DIAX_TRUNKING")
177 -CHANNEL_LIBS+=$(shell [ -f /usr/include/vpbapi.h ] && echo "chan_vpb.so" )
178 -CFLAGS+=$(shell [ -f /usr/include/vpbapi.h ] && echo " -DLINUX")
179 +#CHANNEL_LIBS+=$(shell [ -f /usr/include/linux/ixjuser.h ] && echo chan_phone.so)
180 +#CHANNEL_LIBS+=$(shell [ -f /usr/local/include/ixjuser.h ] && echo chan_phone.so)
181 +#CHANNEL_LIBS+=$(shell [ -f h323/libchanh323.a ] && echo chan_h323.so)
183 +#CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations
184 +#CFLAGS+=$(shell [ ! -f /usr/include/linux/if_wanpipe.h ] && echo " -DOLD_SANGOMA_API")
185 +#CHANNEL_LIBS+=$(shell [ -f /usr/include/alsa/asoundlib.h ] && echo "chan_alsa.so")
186 +#CFLAGS+=$(shell [ -f /usr/lib/libpri.so.1 ] && echo " -DZAPATA_PRI")
187 +#CFLAGS+=$(shell [ -f /usr/lib/libmfcr2.so.1 ] && echo " -DZAPATA_R2")
188 +#CFLAGS+=$(shell [ -f alsa-monitor.h ] && echo " -DALSA_MONITOR")
189 +#ZAPPRI=$(shell [ -f /usr/lib/libpri.so.1 ] && echo "-lpri")
190 +#ZAPR2=$(shell [ -f /usr/lib/libmfcr2.so.1 ] && echo "-lmfcr2")
191 +#CFLAGS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo "-DIAX_TRUNKING")
192 +#CFLAGS+=$(shell [ -f /usr/local/include/zaptel.h ] && echo "-DIAX_TRUNKING")
193 +#CHANNEL_LIBS+=$(shell [ -f /usr/include/vpbapi.h ] && echo "chan_vpb.so" )
194 +#CFLAGS+=$(shell [ -f /usr/include/vpbapi.h ] && echo " -DLINUX")
196 -ALSA_SRC=chan_alsa.c
197 -ALSA_SRC+=$(shell [ -f alsa-monitor.h ] && echo "alsa-monitor.h")
198 +#ALSA_SRC=chan_alsa.c
199 +#ALSA_SRC+=$(shell [ -f alsa-monitor.h ] && echo "alsa-monitor.h")
203 @@ -106,10 +106,10 @@
207 -CHANNEL_LIBS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo "chan_zap.so")
208 -CHANNEL_LIBS+=$(shell [ -f /usr/local/include/zaptel.h ] && echo "chan_zap.so")
209 +#CHANNEL_LIBS+=$(shell [ -f /usr/include/linux/zaptel.h ] && echo "chan_zap.so")
210 +#CHANNEL_LIBS+=$(shell [ -f /usr/local/include/zaptel.h ] && echo "chan_zap.so")
212 -CHANNEL_LIBS+=$(shell [ -f /usr/include/nbs.h ] && echo "chan_nbs.so" )
213 +#CHANNEL_LIBS+=$(shell [ -f /usr/include/nbs.h ] && echo "chan_nbs.so" )
216 OPENH323DIR=$(HOME)/openh323
217 diff -ruN asterisk-1.0.7-orig/channels/h323/Makefile asterisk-1.0.7-2/channels/h323/Makefile
218 --- asterisk-1.0.7-orig/channels/h323/Makefile 2004-11-15 03:35:35.000000000 +0100
219 +++ asterisk-1.0.7-2/channels/h323/Makefile 2005-03-19 17:38:06.000000000 +0100
221 OSARCH=$(shell uname -s)
222 ifneq (${OSARCH},FreeBSD)
223 ifneq (${OSARCH},NetBSD)
224 +ifneq ($(PROC),mipsel)
225 CFLAGS += -march=$(shell uname -m)
229 CFLAGS += -DPBYTE_ORDER=PLITTLE_ENDIAN
231 ifeq (${OSARCH},Linux)
234 # Pre Janus release directives
235 CFLAGS += -DNDEBUG -DDO_CRASH -DDEBUG_THREADS
236 -CFLAGS += -pipe -Wall -fPIC
237 +CFLAGS += -pipe -Wall -fPIC $(OPTIMIZE)
238 ifeq (${OSARCH},Linux)
244 libchanh323.a: ast_h323.o
245 - ar cr libchanh323.a ast_h323.o
246 + $(AR) cr libchanh323.a ast_h323.o
248 ast_h323.o: ast_h323.cpp
249 $(CXX) -g -c -fno-rtti -o $@ $(CFLAGS) $<
250 diff -ruN asterisk-1.0.7-orig/codecs/Makefile asterisk-1.0.7-2/codecs/Makefile
251 --- asterisk-1.0.7-orig/codecs/Makefile 2005-03-17 15:43:51.000000000 +0100
252 +++ asterisk-1.0.7-2/codecs/Makefile 2005-03-22 23:26:20.000000000 +0100
256 #MODG723=codec_g723_1.so codec_g723_1b.so
257 -MODG723=$(shell [ -f g723.1/coder.c ] && echo "codec_g723_1.so")
258 -MODG723+=$(shell [ -f g723.1b/coder2.c ] && echo "codec_g723_1b.so")
259 -MODSPEEX=$(shell [ -f /usr/include/speex.h ] || [ -f /usr/include/speex/speex.h ] || [ -f /usr/local/include/speex.h ] || [ -f /usr/local/include/speex/speex.h ] && echo "codec_speex.so")
260 +#MODG723=$(shell [ -f g723.1/coder.c ] && echo "codec_g723_1.so")
261 +#MODG723+=$(shell [ -f g723.1b/coder2.c ] && echo "codec_g723_1b.so")
262 +MODSPEEX=codec_speex.so
263 MODILBC=$(shell [ -f ilbc/iLBC_decode.h ] && echo "codec_ilbc.so")
265 -CFLAGS+=$(shell [ -f /usr/local/include/speex.h ] && echo "-I/usr/local/include")
266 -CFLAGS+=$(shell [ -f /usr/local/include/speex/speex.h ] && echo "-I/usr/local/include/speex")
267 -CFLAGS+=$(shell [ -f /usr/include/speex/speex.h ] && echo "-I/usr/include/speex")
268 +#CFLAGS+=$(shell [ -f /usr/local/include/speex.h ] && echo "-I/usr/local/include")
269 +#CFLAGS+=$(shell [ -f /usr/local/include/speex/speex.h ] && echo "-I/usr/local/include/speex")
270 +#CFLAGS+=$(shell [ -f /usr/include/speex/speex.h ] && echo "-I/usr/include/speex")
272 LIBG723=g723.1/libg723.a
273 LIBG723B=g723.1b/libg723b.a
274 LIBGSM=gsm/lib/libgsm.a
275 LIBGSMT=gsm/lib/libgsm.a
276 LIBLPC10=lpc10/liblpc10.a
277 -LIBSPEEX=$(shell [ -f /usr/local/lib/libspeex.a ] && echo "-L/usr/local/lib")
278 +LIBSPEEX=$(LDFLAGS_EXTRA)
279 LIBSPEEX+=-lspeex -lm
280 LIBILBC=ilbc/libilbc.a
285 rm -f *.so *.o .depend
286 - ! [ -d g723.1 ] || $(MAKE) -C g723.1 clean
287 - ! [ -d g723.1b ] || $(MAKE) -C g723.1b clean
288 - $(MAKE) -C gsm clean
289 - $(MAKE) -C lpc10 clean
290 - $(MAKE) -C ilbc clean
291 + ! [ -d g723.1 ] || $(MAKE) PROC=$(PROC) -C g723.1 clean
292 + ! [ -d g723.1b ] || $(MAKE) PROC=$(PROC) -C g723.1b clean
293 + $(MAKE) PROC=$(PROC) -C gsm clean
294 + $(MAKE) PROC=$(PROC) -C lpc10 clean
295 + $(MAKE) PROC=$(PROC) -C ilbc clean
298 - $(MAKE) -C g723.1 all
299 + $(MAKE) PROC=$(PROC) -C g723.1 all
302 - $(MAKE) -C gsm lib/libgsm.a
303 + $(MAKE) PROC=$(PROC) -C gsm lib/libgsm.a
306 - $(MAKE) -C g723.1b all
307 + $(MAKE) PROC=$(PROC) -C g723.1b all
310 - $(MAKE) -C lpc10 all
311 + $(MAKE) PROC=$(PROC) -C lpc10 all
314 - $(MAKE) -C ilbc all
315 + $(MAKE) PROC=$(PROC) -C ilbc all
317 codec_ilbc.so: codec_ilbc.o $(LIBILBC)
318 $(CC) $(SOLINK) -o $@ $< $(LIBILBC)
319 diff -ruN asterisk-1.0.7-orig/codecs/gsm/Makefile asterisk-1.0.7-2/codecs/gsm/Makefile
320 --- asterisk-1.0.7-orig/codecs/gsm/Makefile 2004-12-21 21:49:24.000000000 +0100
321 +++ asterisk-1.0.7-2/codecs/gsm/Makefile 2005-03-19 17:38:06.000000000 +0100
323 ifneq (${OSARCH},Darwin)
324 ifneq (${PROC},x86_64)
325 ifneq (${PROC},ultrasparc)
326 -ifneq ($(shell uname -m),ppc)
327 -ifneq ($(shell uname -m),alpha)
329 +ifneq ($(PROC),alpha)
330 ifneq (${PROC},sparc64)
331 +ifneq ($(PROC),mipsel)
332 OPTIMIZE+=-march=$(PROC)
341 #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
342 #This works for even old (2.96) versions of gcc and provides a small boost either way.
347 -CCFLAGS += -c -DNeedFunctionPrototypes=1 -funroll-loops -fPIC $(OPTIMIZE) -fomit-frame-pointer
348 +CCFLAGS += -c -DNeedFunctionPrototypes=1 -fPIC $(OPTIMIZE)
352 @@ -213,16 +215,18 @@
353 $(SRC)/short_term.c \
355 ifeq (${OSARCH},Linux)
356 -ifneq ($(shell uname -m),x86_64)
357 -ifneq ($(shell uname -m),ppc)
358 -ifneq ($(shell uname -m),alpha)
359 -ifneq ($(shell uname -m),sparc64)
360 +ifneq ($(PROC),x86_64)
362 +ifneq ($(PROC),alpha)
363 +ifneq ($(PROC),sparc64)
364 +ifneq ($(PROC),mipsel)
365 GSM_SOURCES+= $(SRC)/k6opt.s
373 TOAST_SOURCES = $(SRC)/toast.c \
375 @@ -269,16 +273,18 @@
378 ifeq (${OSARCH},Linux)
379 -ifneq ($(shell uname -m), x86_64)
380 -ifneq ($(shell uname -m), ppc)
381 -ifneq ($(shell uname -m), alpha)
382 -ifneq ($(shell uname -m), sparc64)
383 +ifneq ($(PROC), x86_64)
384 +ifneq ($(PROC), ppc)
385 +ifneq ($(PROC), alpha)
386 +ifneq ($(PROC), sparc64)
387 +ifneq ($(PROC), mipsel)
388 GSM_OBJECTS+= $(SRC)/k6opt.o
396 TOAST_OBJECTS = $(SRC)/toast.o \
398 diff -ruN asterisk-1.0.7-orig/codecs/ilbc/Makefile asterisk-1.0.7-2/codecs/ilbc/Makefile
399 --- asterisk-1.0.7-orig/codecs/ilbc/Makefile 2004-08-29 19:40:58.000000000 +0200
400 +++ asterisk-1.0.7-2/codecs/ilbc/Makefile 2005-03-19 17:38:06.000000000 +0100
403 -CFLAGS+=-Wall -fPIC -O3 -funroll-loops -fomit-frame-pointer
404 +CFLAGS+=-Wall -fPIC $(OPTIMIZE)
407 OBJS= anaFilter.o iCBSearch.o packing.o \
412 - ar cr $(LIB) $(OBJS)
414 + $(AR) cr $(LIB) $(OBJS)
419 diff -ruN asterisk-1.0.7-orig/codecs/lpc10/Makefile asterisk-1.0.7-2/codecs/lpc10/Makefile
420 --- asterisk-1.0.7-orig/codecs/lpc10/Makefile 2004-08-31 18:33:00.000000000 +0200
421 +++ asterisk-1.0.7-2/codecs/lpc10/Makefile 2005-03-19 17:38:06.000000000 +0100
424 ifneq ($(PROC),x86_64)
425 ifneq ($(PROC),alpha)
426 +ifneq ($(PROC),mipsel)
427 #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only.
428 #This works for even old (2.96) versions of gcc and provides a small boost either way.
429 #A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn.t support it.
436 LIB = $(LIB_TARGET_DIR)/liblpc10.a
447 diff -ruN asterisk-1.0.7-orig/configs/modules.conf.sample asterisk-1.0.7-2/configs/modules.conf.sample
448 --- asterisk-1.0.7-orig/configs/modules.conf.sample 2003-06-26 20:57:54.000000000 +0200
449 +++ asterisk-1.0.7-2/configs/modules.conf.sample 2005-03-19 17:38:06.000000000 +0100
451 ; Explicitly load the chan_modem.so early on to be sure
452 ; it loads before any of the chan_modem_* 's afte rit
454 -load => chan_modem.so
455 -load => res_musiconhold.so
456 +noload => chan_modem.so
457 +noload => res_musiconhold.so
459 ; Load either OSS or ALSA, not both
460 ; By default, load OSS only (automatically) and do not load ALSA
462 ; exported to modules loaded after them.
467 +noload => app_adsiprog.so
469 +noload => app_hasnewvoicemail.so
470 +noload => app_voicemail.so
471 +noload => chan_skinny.so
472 +noload => cdr_csv.so
473 +noload => res_adsi.so
474 +noload => res_agi.so
475 diff -ruN asterisk-1.0.7-orig/db1-ast/Makefile asterisk-1.0.7-2/db1-ast/Makefile
476 --- asterisk-1.0.7-orig/db1-ast/Makefile 2004-08-31 18:33:00.000000000 +0200
477 +++ asterisk-1.0.7-2/db1-ast/Makefile 2005-03-19 17:38:06.000000000 +0100
484 + $(AR) cq $@ $(OBJS)
487 $(LIBDBSO): $(SHOBJS)
488 $(CC) -Wl,-O1 -Wl,--version-script=libdb.map -Wl,-soname=$(LIBDBSO) -shared -o $@ $^
489 diff -ruN asterisk-1.0.7-orig/dns.c asterisk-1.0.7-2/dns.c
490 --- asterisk-1.0.7-orig/dns.c 2004-06-22 22:11:15.000000000 +0200
491 +++ asterisk-1.0.7-2/dns.c 2005-03-19 17:38:06.000000000 +0100
494 #if defined(res_ninit)
495 #define HAS_RES_NINIT
500 +#undef HAS_RES_NINIT
503 +#ifndef HAS_RES_NINIT
504 AST_MUTEX_DEFINE_STATIC(res_lock);
506 #warning "Warning, res_ninit is missing... Could have reentrancy issues"
507 diff -ruN asterisk-1.0.7-orig/res/Makefile asterisk-1.0.7-2/res/Makefile
508 --- asterisk-1.0.7-orig/res/Makefile 2004-07-17 22:58:01.000000000 +0200
509 +++ asterisk-1.0.7-2/res/Makefile 2005-03-19 17:58:17.000000000 +0100
512 MODS=res_adsi.so res_features.so res_crypto.so res_musiconhold.so res_indications.so res_monitor.so \
514 -MODS+=$(shell if [ -f "/usr/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi)
515 -MODS+=$(shell if [ -f "/usr/local/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi)
516 -MODS+=$(shell if [ -f "/usr/include/osp/osp.h" ]; then echo "res_osp.so"; fi)
517 +#MODS+=$(shell if [ -f "/usr/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi)
518 +#MODS+=$(shell if [ -f "/usr/local/include/odbcinst.h" ]; then echo "res_odbc.so res_config_odbc.so"; fi)
519 +#MODS+=$(shell if [ -f "/usr/include/osp/osp.h" ]; then echo "res_osp.so"; fi)
521 CRYPTO_LIBS=-lssl -lcrypto
523 diff -ruN asterisk-1.0.7-orig/stdtime/Makefile asterisk-1.0.7-2/stdtime/Makefile
524 --- asterisk-1.0.7-orig/stdtime/Makefile 2003-11-05 07:19:41.000000000 +0100
525 +++ asterisk-1.0.7-2/stdtime/Makefile 2005-03-19 17:38:06.000000000 +0100
532 + $(AR) rv $@ $(OBJS)
537 diff -urN asterisk-1.0.7.old/codecs/Makefile asterisk-1.0.7/codecs/Makefile
538 --- asterisk-1.0.7.old/codecs/Makefile 2005-04-10 19:40:28.000000000 +0200
539 +++ asterisk-1.0.7/codecs/Makefile 2005-04-10 19:51:15.000000000 +0200
541 #MODG723=codec_g723_1.so codec_g723_1b.so
542 #MODG723=$(shell [ -f g723.1/coder.c ] && echo "codec_g723_1.so")
543 #MODG723+=$(shell [ -f g723.1b/coder2.c ] && echo "codec_g723_1b.so")
544 -MODSPEEX=codec_speex.so
545 MODILBC=$(shell [ -f ilbc/iLBC_decode.h ] && echo "codec_ilbc.so")
547 #CFLAGS+=$(shell [ -f /usr/local/include/speex.h ] && echo "-I/usr/local/include")