home *** CD-ROM | disk | FTP | other *** search
/ Geek 6 / Geek-006.iso / linux / video / xmovie-1.5.3.tar.gz / xmovie-1.5.3.tar / xmovie-1.5.3 / quicktime / configure < prev    next >
Text File  |  2000-11-29  |  1KB  |  86 lines

  1. #!/bin/sh
  2.  
  3. USE_FIREWIRE=1
  4. USE_MMX=1
  5.  
  6. for ac_option
  7. do
  8. case "$ac_option" in
  9.     --no-firewire)
  10.         USE_FIREWIRE=0
  11.         ;;
  12.  
  13.     --no-mmx)
  14.         USE_MMX=0
  15.         ;;
  16.  
  17.     -h | --help | -help)
  18.     cat << EOF
  19. Options:
  20.     --no-firewire      Compile quicktime with no firewire support
  21.     --no-mmx           Compile quicktime with no MMX support.
  22. EOF
  23.         exit 0
  24.         ;;
  25.  
  26.     *)
  27.         ;;
  28. esac
  29. done
  30.  
  31. echo "Configuring libquicktime"
  32.  
  33. cat > global_config << EOF
  34. # DO NOT EDIT.  EDIT ./configure INSTEAD AND RERUN IT.
  35. EOF
  36.  
  37. if test -z "$CFLAGS"; then
  38.     echo >> global_config "CFLAGS = -O2 -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -march=i486 -I/usr/local/include"
  39. fi
  40.  
  41. if [ ${USE_FIREWIRE} = 1 ]; then
  42.     echo >> global_config "CFLAGS += -DHAVE_FIREWIRE"
  43. fi
  44.  
  45. if [ ${USE_MMX} = 1 ]; then
  46.     echo >> global_config "CFLAGS += -DUSE_MMX"
  47. fi
  48.  
  49. cat >> global_config << EOF
  50. CFLAGS += -I. -Ijpeg -Ilibdv \$(shell glib-config --cflags)
  51. export CFLAGS
  52. CC = gcc
  53. EOF
  54.  
  55. if [ ${USE_MMX} = 1 ]; then
  56. cat >> global_config << EOF
  57. DVMMXOBJS = \
  58.     libdv/idct_block_mmx.o \
  59.     libdv/quant_x86.o
  60.  
  61. DVMMX_OBJS2 = idct_block_mmx.o \
  62.     quant_x86.o
  63. EOF
  64. fi
  65.  
  66. if [ ${USE_FIREWIRE} = 1 ]; then
  67. cat >> global_config << EOF
  68. FIREWIREOBJS = \
  69.     libraw1394/eventloop.o \
  70.     libraw1394/fcp.o \
  71.     libraw1394/iso.o \
  72.     libraw1394/main.o \
  73.     libraw1394/readwrite.o
  74.  
  75. FIREWIREOBJS2 = \
  76.     eventloop.o \
  77.     fcp.o \
  78.     iso.o \
  79.     main.o \
  80.     readwrite.o
  81.  
  82. EOF
  83. fi
  84.  
  85. echo "done"
  86.