Ticket #4750: configure.diff

File configure.diff, 4.0 KB (added by dekarl@…, 12 years ago)
  • configure

     
    11#!/bin/sh
    22#
    3 # FFmpeg configure script
     3# MythTV configure script, based on the FFmpeg configure script
    44#
    55# Copyright (c) 2000, 2001, 2002 Fabrice Bellard
    66# Copyright (c) 2005-2006 Diego Biurrun
     
    15551555    oss_muxer_extralibs="-lossaudio"
    15561556    ;;
    15571557  openbsd)
    1558     CCONFIG = "$CCONFIG openbsd"
     1558    append CCONFIG "openbsd"
    15591559    disable need_memalign
    15601560    LIBOBJFLAGS='$(PIC)'
    15611561    LDCONFIG='ldconfig -m $(SHLIBDIR)'
     
    15671567    oss_muxer_extralibs="-lossaudio"
    15681568    ;;
    15691569  freebsd)
    1570     CCONFIG = "$CCONFIG freebsd"
     1570    append CCONFIG "freebsd"
    15711571    disable need_memalign
    15721572    backend="yes"
    15731573    ;;
     
    16501650    SHFLAGS='-shared -Wl,--enable-auto-image-base'
    16511651    ;;
    16521652  linux)
    1653     CCONFIG="$CCONFIG linux"
     1653    append CCONFIG "linux"
    16541654    backend="yes"
    16551655    ! disabled joystick_menu && enable joystick_menu
    16561656    LDLATEFLAGS="-Wl,--as-needed $LDLATEFLAGS"
     
    17151715    expr $HAS_IT : "yes" > /dev/null
    17161716}
    17171717
    1718 CCONFIG="$CCONFIG $compile_type"
     1718append CCONFIG "$compile_type"
    17191719if test x$compile_type = x"profile" ; then
    17201720    PROFILEFLAGS="-DNDEBUG"
    17211721    enable debug
     
    25942594if enabled symbol_visibility; then
    25952595    if test x"$GCC_MAJOR" = x"4" ; then
    25962596        check_cppflags -fvisibility-inlines-hidden
    2597         CCONFIG="$CCONFIG use_hidesyms"
     2597        append CCONFIG "use_hidesyms"
    25982598    else
    25992599        echo "Warning: --enable-symbol-visibility requires gcc 4.x"
    26002600    fi
     
    31233123echo "" >>$MYTH_CONFIG_MAK
    31243124
    31253125if enabled audio_oss; then
    3126     CCONFIG="$CCONFIG using_oss"
     3126    append CCONFIG "using_oss"
    31273127fi
    31283128if enabled audio_alsa; then
    3129     CCONFIG="$CCONFIG using_alsa"
     3129    append CCONFIG "using_alsa"
    31303130  echo "CONFIG_AUDIO_ALSA_LIBS=$audio_alsa_libs" >> $MYTH_CONFIG_MAK
    31313131fi
    31323132
    31333133if enabled audio_arts; then
    3134     CCONFIG="$CCONFIG using_arts"
     3134    append CCONFIG "using_arts"
    31353135  echo "CONFIG_AUDIO_ARTS_LIBS=$audio_arts_libs" >> $MYTH_CONFIG_MAK
    31363136  echo "CONFIG_AUDIO_ARTS_CFLAGS=$audio_arts_cflags" >> $MYTH_CONFIG_MAK
    31373137fi
    31383138
    31393139if enabled audio_jack; then
    3140     CCONFIG="$CCONFIG using_jack"
     3140    append CCONFIG "using_jack"
    31413141  echo "CONFIG_AUDIO_JACK_LIBS=$audio_jack_libs" >> $MYTH_CONFIG_MAK
    31423142fi
    31433143
    31443144if enabled darwin_da; then
    3145   CCONFIG="$CCONFIG darwin_da"
     3145  append CCONFIG "darwin_da"
    31463146  echo "SLIB_UNINSTALL_EXTRA_CMD=${SLIB_UNINSTALL_EXTRA_CMD}" >> $MYTH_CONFIG_MAK
    31473147fi
    31483148
    31493149if enabled mac_bundle; then
    3150   CCONFIG="$CCONFIG mac_bundle"
     3150  append CCONFIG "mac_bundle"
    31513151fi
    31523152
    31533153if enabled mac_corevideo; then
    3154   CCONFIG="$CCONFIG using_corevideo"
     3154  append CCONFIG "using_corevideo"
    31553155fi
    31563156
    31573157if test x"$targetos" = x"cygwin" ; then
     
    32873287  else
    32883288      echo "CONFIG_FIREWIRE_LIBS=-lraw1394 -liec61883 -lavc1394 -lrom1394" >>  $MYTH_CONFIG_MAK
    32893289      if enabled libavc_5_3; then
    3290         CCONFIG="$CCONFIG using_libavc_5_3"
     3290        append CCONFIG "using_libavc_5_3"
    32913291      fi
    32923292  fi
    32933293fi
    32943294
    32953295if enabled iptv; then
    3296     CCONFIG="$CCONFIG using_live"
     3296    append CCONFIG "using_live"
    32973297fi
    32983298
    32993299if enabled lirc; then
     
    33013301fi
    33023302
    33033303if enabled appleremote; then
    3304   CONFIG_DEFINES="$CONFIG_DEFINES USING_APPLEREMOTE"
     3304  append CONFIG_DEFINES "USING_APPLEREMOTE"
    33053305fi
    33063306
    33073307if enabled dvb; then
    3308   CONFIG_INCLUDEPATH="$CONFIG_INCLUDEPATH $dvb_path"
     3308  append CONFIG_INCLUDEPATH "$dvb_path"
    33093309fi
    33103310
    33113311if enabled x11; then
    33123312  if [ -d $x11_include_path ] ; then
    3313     CONFIG_INCLUDEPATH="$CONFIG_INCLUDEPATH $x11_include_path"
     3313    append CONFIG_INCLUDEPATH "$x11_include_path"
    33143314  fi
    33153315fi
    33163316
     
    33253325if enabled xvmc; then
    33263326  echo "CONFIG_XVMC_LIBS=$VENDOR_XVMC_LIBS -lXvMC" >> $MYTH_CONFIG_MAK
    33273327  if test x"$VENDOR_XVMC_LIBS" = x"-lXvMCNVIDIA" ; then
    3328       CCONFIG="$CCONFIG using_xvmc_pbuffer"
     3328      append CCONFIG "using_xvmc_pbuffer"
    33293329  fi
    33303330fi
    33313331
     
    33353335fi
    33363336
    33373337if enabled directx; then
    3338   CONFIG_DEFINES="$CONFIG_DEFINES USING_DIRECTX"
     3338  append CONFIG_DEFINES "USING_DIRECTX"
    33393339fi
    33403340
    33413341if enabled opengl; then