[svn] / branches / release-1_3-branch / xvidcore / build / generic / configure.in Repository:
ViewVC logotype

Diff of /branches/release-1_3-branch/xvidcore/build/generic/configure.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1412, Mon Apr 5 20:36:37 2004 UTC revision 1609, Mon Apr 4 23:49:37 2005 UTC
# Line 2  Line 2 
2  dnl  dnl
3  dnl Autoconf script for XviD  dnl Autoconf script for XviD
4  dnl  dnl
5  dnl Copyright(C) 2003 Edouard Gomez <ed.gomez@free.fr>  dnl Copyright(C) 2003-2004 Edouard Gomez <ed.gomez@free.fr>
6  dnl  dnl
7  dnl ==========================================================================  dnl ==========================================================================
8    
9  AC_INIT([XviD], [1.0.0 rc4], [xvid-devel@xvid.org])  AC_PREREQ([2.50])
10    
11    AC_INIT([XviD], [1.1.0-beta2], [xvid-devel@xvid.org])
12  AC_CONFIG_SRCDIR(configure.in)  AC_CONFIG_SRCDIR(configure.in)
13    
14  dnl Do not forget to increase that when needed.  dnl Do not forget to increase that when needed.
15  API_MAJOR="4"  API_MAJOR="4"
16  API_MINOR="0"  API_MINOR="1"
17    
18  dnl NASM version requirement  dnl NASM version requirement
19  minimum_nasm_patch_version=34  minimum_nasm_patch_version=34
20  nasm_prog="nasm"  nasm_prog="nasm"
21    yasm_prog="yasm"
22    
23  dnl Default CFLAGS -- Big impact on overall speed  dnl Default CFLAGS -- Big impact on overall speed
24  our_cflags_defaults="-Wall"  our_cflags_defaults="-Wall"
# Line 160  Line 163 
163            AC_MSG_RESULT(ia32)            AC_MSG_RESULT(ia32)
164                  ARCHITECTURE="IA32"                  ARCHITECTURE="IA32"
165                  ;;                  ;;
166              x86_64)
167                    AC_MSG_RESULT(x86_64)
168                    ARCHITECTURE="X86_64"
169                    ;;
170                  powerpc)                  powerpc)
171                  AC_MSG_RESULT(PowerPC)                  AC_MSG_RESULT(PowerPC)
172                  ARCHITECTURE="PPC"                  ARCHITECTURE="PPC"
# Line 323  Line 330 
330  dnl IA32  dnl IA32
331  dnl  dnl
332    
333  if test "$ARCHITECTURE" = "IA32" ; then  if test "$ARCHITECTURE" = "IA32" -o "$ARCHITECTURE" = "X86_64" ; then
334    
335     dnl     dnl
336     dnl Checking nasm existence     dnl Checking for nasm compatible programs
337       dnl yasm is preferred over nasm, because... i can use it
338       dnl to profile assembly code ;-)
339     dnl     dnl
340    
341       found_nasm_comp_prog="no"
342       chosen_asm_prog=""
343    
344       dnl Check for yasm first
345       AC_CHECK_PROG([ac_yasm], [$yasm_prog], [yes], [no], , [yes])
346       if test "$ac_yasm" = "yes" ; then
347         found_nasm_comp_prog="yes"
348         chosen_asm_prog="$yasm_prog"
349       fi
350    
351       dnl if yasm hasn't been found, then check for nasm (not buggy version)
352       if test "$found_nasm_comp_prog" = "no" -a "$ARCHITECTURE" != "X86_64" ; then
353     AC_CHECK_PROG([ac_nasm], [$nasm_prog], [yes], [no], , [yes])     AC_CHECK_PROG([ac_nasm], [$nasm_prog], [yes], [no], , [yes])
354     if test "$ac_nasm" = "yes" ; then     if test "$ac_nasm" = "yes" ; then
   
355        dnl        dnl
356        dnl Checking nasm patch version        dnl Checking nasm patch version
357        dnl        dnl
358        AC_MSG_CHECKING([for nasm patch version])        AC_MSG_CHECKING([for nasm patch version])
359        nasm_patch=`nasm -r | cut -d '.' -f 3 | cut -d ' ' -f 1`             nasm_patch=`$nasm_prog -r | cut -d '.' -f 3 | cut -d ' ' -f 1`
360        if test -z $nasm_patch ; then        if test -z $nasm_patch ; then
361          nasm_patch=-1          nasm_patch=-1
362        fi        fi
# Line 343  Line 364 
364    
365    
366        if test "$nasm_patch" -lt "$minimum_nasm_patch_version" ; then        if test "$nasm_patch" -lt "$minimum_nasm_patch_version" ; then
367          AC_MSG_WARN([nasm patch version too old - Compiling generic sources only])                 AC_MSG_WARN([nasm patch version is too old])
         ARCHITECTURE="GENERIC"  
368        else        else
369                   found_nasm_comp_prog="yes"
370                           chosen_asm_prog="$nasm_prog"
371               fi
372           fi
373       fi
374    
375           dnl           dnl
376           dnl Checking nasm format - win32 or elf     dnl Ok now sort what object format we must use
377           dnl           dnl
378           AC_MSG_CHECKING([for nasm object format])     if test "$found_nasm_comp_prog" = "yes" ; then
379           AC_MSG_CHECKING([for asm object format])
380           case "$target_os" in           case "$target_os" in
381                *bsd*|linux*|beos|irix*|solaris*)                *bsd*|linux*|beos|irix*|solaris*)
382                    AC_MSG_RESULT([elf])                    AC_MSG_RESULT([elf])
383                    NASM_FORMAT="elf"                    NASM_FORMAT="elf"
384                   MARK_FUNCS="-DMARK_FUNCS"
385                    PREFIX=""                    PREFIX=""
386                    ;;                    ;;
387                [[cC]][[yY]][[gG]][[wW]][[iI]][[nN]]*|mingw32*|mks*)                [[cC]][[yY]][[gG]][[wW]][[iI]][[nN]]*|mingw32*|mks*)
388                    AC_MSG_RESULT([win32])                    AC_MSG_RESULT([win32])
389                    NASM_FORMAT="win32"                    NASM_FORMAT="win32"
390                    PREFIX="-DPREFIX"                    PREFIX="-DPREFIX"
391                   MARK_FUNCS=""
392                    ;;                    ;;
393            esac            esac
394    
395            AS=nasm         AS="$chosen_asm_prog"
           AFLAGS="-I\$(<D)/ -f $NASM_FORMAT $PREFIX"  
396            ASSEMBLY_EXTENSION="asm"            ASSEMBLY_EXTENSION="asm"
397            ASSEMBLY_SOURCES="SRC_IA32"         AFLAGS="-I\$(<D)/ -f $NASM_FORMAT $PREFIX $MARK_FUNCS"
398           ASSEMBLY_SOURCES="SRC_${ARCHITECTURE}"
399           if test "$ARCHITECTURE" = "X86_64" ; then
400                   AFLAGS=${AFLAGS}" -m amd64"
401         fi         fi
   
402     else     else
403          AC_MSG_WARN([nasm not found - Compiling generic sources only])         AC_MSG_WARN([no correct assembler was found - Compiling generic sources only])
404          ARCHITECTURE="GENERIC"          ARCHITECTURE="GENERIC"
405     fi     fi
   
406  fi  fi
407    
408  dnl  dnl
# Line 502  Line 530 
530  AC_CHECK_HEADERS(  AC_CHECK_HEADERS(
531          stdio.h \          stdio.h \
532          signal.h \          signal.h \
533            stdlib.h \
534            string.h \
535            assert.h \
536            math.h \
537          , , AC_MSG_ERROR(Missing header file))          , , AC_MSG_ERROR(Missing header file))
538    
539  dnl ==========================================================================  dnl ==========================================================================

Legend:
Removed from v.1412  
changed lines
  Added in v.1609

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4