Re: configure error with autoconf-2.64
Peter Ross <[email protected]> Thu, 1 Oct 2009 09:32:55 +1000
| Newsgroups | gmane.comp.video.xvid.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Sep 30, 2009 at 07:39:33PM +0200, acrux wrote: > > hi there, > > it seems there is a problem using autoconf-2.64: > > checking assert.h usability... yes > checking assert.h presence... yes > checking for assert.h... yes > checking math.h usability... yes > checking math.h presence... yes > checking for math.h... yes > checking for pthread.h... no > ./configure: line 4507: syntax error near unexpected token `else' > ./configure: line 4507: `else' > > indeed it works fine using autoconf-2.63 Thanks for reporting this. Removing the inner nested AC_CHECK_LIB resolves this. Not really sure why it was neccessary to test for pthread_join. ==== diff -u -r1.31 configure.in --- configure.in 9 Jun 2009 07:48:57 -0000 1.31 +++ configure.in 30 Sep 2009 23:29:17 -0000 @@ -591,12 +591,8 @@ AC_CHECK_LIB( pthread, pthread_create, - AC_CHECK_LIB( - pthread, - pthread_join, SPECIFIC_CFLAGS="$SPECIFIC_CFLAGS -DHAVE_PTHREAD" SPECIFIC_LDFLAGS="$SPECIFIC_LDFLAGS -lpthread", - AC_MSG_WARN(Pthread not supported. No SMP support)), AC_MSG_WARN(Pthread not supported. No SMP support)), AC_MSG_WARN(Pthread not supported. No SMP support)) ==== -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)