2 ===================================================================
3 --- configure (revision 736)
4 +++ configure (working copy)
6 # autodetect options that weren't forced nor disabled
10 if test "$pthread" = "auto" ; then
17 - if cc_check pthread.h -lpthread "pthread_create(0,0,0,0);" ; then
18 + if cc_check pthread.h -lpthread "pthread_create(0,0,0,0); pthread_num_processors_np();" ; then
20 libpthread="-lpthread"
21 - elif cc_check pthread.h -lpthreadGC2 "pthread_create(0,0,0,0);" ; then
22 + elif cc_check pthread.h -lpthreadGC2 "pthread_create(0,0,0,0); pthread_num_processors_np();" ; then
24 libpthread="-lpthreadGC2"
25 - elif cc_check pthread.h "-lpthreadGC2 -lwsock32 -DPTW32_STATIC_LIB" "pthread_create(0,0,0,0);" ; then
26 + elif cc_check pthread.h "-lpthreadGC2 -lwsock32 -DPTW32_STATIC_LIB" "pthread_create(0,0,0,0); pthread_num_processors_np();" ; then
28 libpthread="-lpthreadGC2 -lwsock32"
29 CFLAGS="$CFLAGS -DPTW32_STATIC_LIB"
30 + extradef="-DPTW32_STATIC_LIB"
44 HAVE_GETOPT_LONG=$HAVE_GETOPT_LONG
47 Description: H.264 (MPEG4 AVC) encoder library
48 Version: $(grep POINTVER < config.h | sed -e 's/.* "//; s/".*//')
50 -Cflags: -I$includedir
51 +Cflags: -I$includedir $extradef
56 ===================================================================
57 --- Makefile (revision 736)
58 +++ Makefile (working copy)
60 default: $(DEP) x264$(EXE)
62 libx264.a: .depend $(OBJS) $(OBJASM)
63 - ar rc libx264.a $(OBJS) $(OBJASM)
65 + $(AR) rc libx264.a $(OBJS) $(OBJASM)
68 $(SONAME): .depend $(OBJS) $(OBJASM)
69 $(CC) -shared -o $@ $(OBJS) $(OBJASM) -Wl,-soname,$(SONAME) $(LDFLAGS)
72 $(AS) $(ASFLAGS) -o $@ $<
73 # delete local/anonymous symbols, so they don't show up in oprofile
81 $(MAKE) -C gtk distclean
83 -install: x264 $(SONAME)
85 install -d $(DESTDIR)$(bindir) $(DESTDIR)$(includedir)
86 install -d $(DESTDIR)$(libdir) $(DESTDIR)$(libdir)/pkgconfig
87 install -m 644 x264.h $(DESTDIR)$(includedir)
88 install -m 644 libx264.a $(DESTDIR)$(libdir)
89 install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
90 - install x264 $(DESTDIR)$(bindir)
91 - ranlib $(DESTDIR)$(libdir)/libx264.a
92 + install x264$(EXE) $(DESTDIR)$(bindir)
93 + $(RANLIB) $(DESTDIR)$(libdir)/libx264.a
94 $(if $(SONAME), ln -sf $(SONAME) $(DESTDIR)$(libdir)/libx264.so)
95 $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir))