~ubuntu-branches/ubuntu/precise/mythtv/precise

« back to all changes in this revision

Viewing changes to mythplugins/configure

  • Committer: Package Import Robot
  • Author(s): Mario Limonciello
  • Date: 2012-03-05 21:49:35 UTC
  • mfrom: (1.1.78)
  • Revision ID: package-import@ubuntu.com-20120305214935-vxn0sv24s35dl1sw
Tags: 2:0.25.0~master.20120305.6519666-0ubuntu1
* Drop mythtv-themes metapackage and childish theme.  Should be installed
  exclusively through theme chooser now.
* Update Mythbuntu theme git links to still create that theme package.
* Update configure without install patch.
* Tweak default max_connections for mysql to be 100 per requests from
  mythtv mailing lists.
* Update to a checkout post mythtv 0.25 beta release.
* New upstream checkout (6519666)
* >>Upstream changes since last upload (532cee8):
* [6519666] Use deleteLater() when deleting server sockets in
  ServerPool.
* [b08b41b] Silence unused variable warning
* [5112e25] Silence unused variable warning
* [40c69e1] AvFormatDecoder: add FORCE_DTS_TIMESTAMPS environment
  variable
* [dbb5ffb] Merge branches 'master' and 'master' of
  github.com:MythTV/mythtv
* [57687c8] Subtitles: Initialize the SRT error count to avoid bogus
  diagnostics.
* [6c3a799] Increase kMaxUIWaitTime to 10 seconds. The theory is that
  this timeout was to prevent a very delayed response to an
  availability check causing playlists to resume playing long after
  the user had moved on. The present timeout was very short though and
  didn't account for delays caused by disks needing to be spun up or
  just the latency of checking multiple storage groups for a file.
  Almost certainly fixes #8316
* [dd9a92a] Subtitles: Fix a null pointer dereference when splitting
  long lines.
* [5f98ce1] Fixes #10367. Adds new Motorolla DCX-3200 vendor and
  device id.
* [7347bf5] Fix for WSDL generation.
* [a454b79] Allow the processing of uncompressed data from Schedules
  Direct.
* [f19c9c2] Minor changes to allow compilation using VS2010
* [0607b58] Fix build after [6a200130eff4]
* [6a20013] Handle more ISO-639 codes
* [d1a6cc8] Fix universal package build with new osx-builder
* [20f2c45] Fix UPnP for Sony BluRay players
* [638192e] mythtranscode: --fifoinfo reports aspect ratio of first
  uncut frame
* [18fdd67] Look in more than one location for libdvdcss on mac.
* [871a1cd] Giving up on Qt, doing it with an external command.
* [4392c16] Delay first call to QTextCodec until after main
  QApplication has been created
* [da7626e] Do not disable mythmusic dependencies when using --
  disable-all
* [ca996e0] Updated Norwegian Bokmal MythFrontend and all plugins
  translation from Rune Evjen.
* [18ab21a] Rearrange code in AddRangeList to defeat compile warnings
* [2422b6f] Miscellaneous string fixes
* [5e898a1] Fix HLS AddVideoLiveStream with files in subdirectories.
* [f834940] MythArchive: Remove the Cancel options from the menus
* [366d96d] Correct issue passing python library name for dependency
  checking.
* [c09418f] MythBrowser: Remove the Cancel options from the menus
* [002d7c5] MythMusic: Remove the Cancel options from the menus
* [bb3d1a8] MythMusic: Add some context menus on the playlist editor
  screen
* [bf4ff78] Per 2075458f5 Remove deprecated attribute from
  dispatchNow(), we know it's deprecated but it's not going away any
  time soon
* [12bbcf0] Fix a warning about an unused variable in httpconfig.cpp
* [43dcfce] Fix a warning about an unused variable in videolist.cpp
* [4edcda6] Move the Recording Profiles editor into mythtv-setup where
  it belongs. This constantly gets overlooked because it's not in the
  right place, especially by users who chose to use a third party
  frontend.
* [d7c8dfb] Better default device (when MediaMonitor disabled) on OS
  X. Refs #10370
* [7b526c4] Rework AudioReencodeBuffer further to fix HLS audio
  buffering
* [a130e74] Bump ABI version.
* [5e976b4] Rename util.h into mythmiscutil.h
* [efe385c] Fix dcraw detection on FreeBSD (old sh, not bash)
* [f5aa5e8] Use QNetworkAddressEntry to get proper broadcast address
  for udplistener
* [b6f9e1d] Revert "Rename util.h into mythutil.h"
* [84275f1] Revert "util.h rename itself didn't get committed"
* [8ef8c0b] Merge branch 'master' of github.com:MythTV/mythtv
* [0fe6e14] Totally rework the AudioReencodeBuffer part in transcode
* [fb8004a] util.h rename itself didn't get committed
* [ef771da] Rename util.h into mythutil.h
* [ba9b5d3] Rewrite configure for mythplugins
* [a5557a3] Fix MythZoneMinder on mac; the proper way..
* [30ed8f0] DeleteMap tracker: Fix an error in 94d27c67f.
* [6ae9f66] Rewrite configure for mythplugins
* [0fc9853] Fix MythZoneMinder on mac; the proper way..
* [79f5133] Updated US English MythFrontend and all plugins
  translation from the US English Language Translation Team.
* [6952dc4] Miscellaneous typo and case fixes.
* [b85f5bb] MythArchive: various minor mythburn.py script improvements
* [7e9cd56] Missed a change from cda7871f - I forgot to make install
  when testing and missed the breakage.
* [9d83307] Remove an errant <value> tag from the mythgallery default
  theme. This was causing some confusion for translators.
* [cda7871] Fix the channel icon not loading in the OSD on remote
  frontends by switching to using the channel icon storage group. This
  bug has been around for years so it's nice to finally have a fix.
* [e0e321f] Additional case and spacing fixes.
* [47c7c48] Add a few missing spaces...
* [736524b] Various case and punctuation fixes.
* [eba28f4] MythMusic: Only abort ripping upon confirmation
* [81acf24] Tweak the space available for the channel number so that
  it remains hidden behind the poster.
* [fbba2ae] Show coverart in the Terra OSD, falling back to channel
  icon if the artwork isn't available and channel number if the
  channel icon isn't available.
* [ff4d601] DVD navigation: Reenable skipping past the last chapter of
  a title, and skipping previous to the first chapter of a title.  The
  limitation may have been left over from an older version of
  libdvdnav.
* [8ea557a] Fix 'depends'. I'm surprised I didn't notice this earlier,
  perhaps because I was using <group> a lot I missed that depends
  behaviour didn't work for immediate children of <window>.
* [eb87f9e] Fix 'depends' for inherited and copied screens.
* [38221b8] Only show poster in the default-wide OSD when we're not
  displaying the channum/icon/callsign. Also center the poster better
  in the available space.
* [69cae58] Merge commit 'e965387441ff189bb2c096f8ed5bdbf2b2a473e6'
* [e965387] Add setup script and readme
* [905e8e5] Split 'mythtv/bindings/python/MythTV/tmdb3/' into commit
  '565041dddf9d4937c31c0d57475c548e56882e89'
* [565041d] Enable search paging for TMDB v3 API.
* [367b05d] Enable search paging for TMDB v3 API.
* [6113151] Add proper language support to TMDB v3 API.
* [6410395] Add proper language support to TMDB v3 API.
* [c65d8eb] Remove TMDB API key from request.py
* [6c4c60a] Remove TMDB API key from request.py
* [b38f901] Fix some null strings in SQL inserts on NOT NULL columns.
* [55fd3bf] MythUI: Make ascent/descent/bearing adjustment a little
  easier to follow, by using moveTop/moveLeft instead of setX/setY
* [d16575c] MythUI: fix a typo in MythUIText::DrawSelf that could
  result in an incorrect canvas size.
* [64383c5] Fix a compiler warning.
* [ecea05d] Added ENO to an error log in avformatdecoder
* [03e2387] Services API: Fix cut and paste error.
* [99abdfe] Update xml schema declaration for 0.25
* [6e2f231] Fix typo
* [05e5cf7] Updated Spanish/Spain MythFrontend, MythArchive,
  MythBrowser, MythGallery, MythGame, MythMusic, MythNetvision,
  MythNews, MythWeather transation from the Spanish Language
  Translation Team
* [2f895cb] Fix mythzoneminder on mac part #3
* [e34c8d7] Fix universal architecture compilation of myth on mac.
* [a513779] Fix MythZoneMinder part #2
* [700a58d] Remove stray include, same as <Qt>
* [d84d5c9] Add basic dead key support to mythuitextedit. Implemented
  from scratch because I couldn't see a way of getting QT to handle
  it. 
* [c3544ed] Fix mac compilation
* [6bfda0c] Fix mythoneminder compilation when using mysql universal
  libraries.
* [21ad34b] Add --firewire-sdk configuration switch to configure
* [3196c2c] Fix FireWire compilation on mac when compiling in 64 bits
  mode.
* [5dccbd5] Fix mac compilation when Qt Frameworks are in use.
* [20d6852] Fix libcec configure to work with v1.5
* [f16048b] Finish the db upgrade to 1299 (perl bindings)
* [d486b8a] Make artwork edit UI elements optional on video metadata
  edit screen.
* [38dfa89] Updated British English MythFrontend, MythArchive,
  MythGame and MythMusic translation from Nick Morrott
* [7e4740e] Refs #8941. Make sure we set the channum when switching to
  a new card with either a specific chanid or inputid.
* [05bc5e1] plugins configure: Remove some debugging left by mistake
* [ff593fa] Clean up the mappings for network control jump points.
* [146ee76] Fixes #8744. Fixes crash in DVB-x channel scanning.
* [6f24f3b] Subtitles: Rename the OSDSubFont setting to
  DefaultSubtitleFont.
* [6202c0d] Revert "Subtitles: Remove the OSDSubFont setting."
* [4a2420e] MythZoneMinder: Add support for the deep filesystem
  hierarchy for events.
* [a6b1e3a] Program editor: don't seek too far when stepping to the
  next keyframe.
* [97da8c8] Fix a doxygen comment
* [144c8bb] MythMusic: Do a full reload of the tracks and playlists
  after doing a scan
* [f78f999] Change delete behaviour so that we always use the deleted
  recording group allowing all recordings to be undeleted. By default
  we will only keep recordings for a minimum of 5 minutes (max ~20m)
  after their deletion, enough time to recover from a mistake but
  still free up space quickly. As before the user can specify to keep
  deleted recordings for a fixed number of days or until the space is
  needed for a new recording instead. Post 0.25 this change will allow
  us to strip out the old deletion code and simplify configuration
  process, the functional change is being made now to fix a couple of
  bugs caused by external processes such as MythPreviewGen blocking
  deletes from the UI. Fixes #9536
* [cfd3fc0] MythMusic: Fix the sending of the MUSIC_SETTINGS_CHANGED
  event
* [5932419] Merge branch 'compartist'
* [5206271] Subtitles: Apply OSDCC708TextZoom to CEA-608 captions as
  well.
* [99512fb] Refs #10386.  Don't sent EXIT_TO_MAIN event to Live TV
  jump point.
* [dfd909f] Fix crash on mac when no audio device exists.
* [bd68156] MythMusic: Fix the BLANKSCR keybinding not working
* [9016890] MythMusic: Check for some additional cdio headers
* [3570a99] MythMusic: Fix a memory leak in the playlist editor
* [7e6f5fa] Fixes #10386. Segfault fix. Check for null.
* [510da69] As noted in SHA1:9551bce2, MainServer doesn't know the
  actual recording status because it defaults to rsRecorded when the
  recordinginfo is initialized from the recorded table.  MainServer
  doesn't account for this and tries to make any needed state change
  which always ends up staying rsRecorded.  MainServer then passes
  this bad status to the scheduler.  If the recording had already
  failed, the rsFailed status gets overwritten.
* [3740d7d] Spelling consistency fixes
* [47d7c77] Fixes #9233. Refs #7408. Re-enables WindowResized().
* [a5447f1] MythMusic: Add a Compilations branch to the playlist
  editor
* [1824969] Fixes #10153. Guess at DVB-S vs DVB-S2 when not explicitly
  set.
* [21784ce] Fixes #10377. Prevent getting "stuck on a mux".
* [593d24b] Refs #10377. Some logging fixes. (VB_PLAYBACK-
  >VB_CHANNEL).
* [14ec737] Change the rsTuning UI state equivalent from 'tuning' to
  'running'. The UI states for the 'status' statetype are limited to 5
  generic values (normal, running, warning, error, disabled) to allow
  some portability to scenarios other than recording. (This was
  supposed to save themers some time and effort although it also binds
  their hands and doesn't allow as much creativity with how various
  recording states are represented. For this reason it may be re-
  visited post-0.25)
* [4d68d5e] Updated Russian MythFrontend, MythArchive, MythBrowser,
  MythGallery, MythGame, MythMusic, MythNews, MythWeather and
  MythZoneminder.
* [34c8767] Subtitles: fix an incorrect CEA-708 font mapping.
* [b967448] Fix the faulty exit code 139 issue in Ubuntu systems
* [723d798] Subtitles: improve vertical alignment for CEA-608
  captions.
* [1af1aec] Fixes display of position in the Program Lister.
  MythUIButtonList is zero indexed, to get a position for display we
  must add one.
* [967208b] Fix the last, hopefully, remaining places where
  livetvorder isn't honored.
* [0a301c0] Fix the scheduler to not write incorrect oldrecorded
  entries.
* [5d5aef3] Subtitles: improve the layout.
* [878d5eb] String consistency updated
* [456bb42] Updated Estonian MythFrontend and all plugins translation
  from Marko Punnar
* [e719d54] Replace tabs with spaces in Terra's schedule filter editor
  window xml
* [a3d9891] Use proper capitalization for some common words and
  prefixes.
* [5b19c4d] Populate the infomap from both RecordingRule and
  RecordingInfo if available. This fixes recording rule specific
  information not being available in the sub screens of the schedule
  editor.
* [f77d001] Fix minor problems editing in-progress recordings.
* [006ded1] Fix recording status strings being set to 'Not scheduled'
  when the reason for that is they were in the past and should have
  been marked as Recorded/Aborted/Failed/Cancelled/etc instead
* [6bedf81] Correct handling of unrelated argument after arg-less
  keyword.
* [7adbd54] Delay String processing until after QApplication has been
  initialized.
* [f613a43] Fix LiveTV switching by videosource to honor livetvorder.
* [9b5b7b5] Exit cutlist edit mode cleanly when executing a jump
  point.
* [c2a0b85] Updated British English translation MythFrontend
  translation from Nick Morrott.
* [307dac8] Make jump points work during playback when the OSD is
  present.
* [d59f4f4] Change dynamic cast to static. This is troubling because
  we rely on dynamic casts in so many places but for at least one
  person this cast was failing and causing popup menus in MythMusic to
  no longer have any effect. Maybe a buggy version of gcc?
* [3de87c3] Subtitles: Fix a logic error.
* [23d5167] Make host checks in Video Library scanner case
  insensitive.
* [5d7c01d] Cutlist editor: Update the edit bar for in-progress
  recordings.
* [1ce3d21] Cutlist editor: Adjust "Cut to End" behavior for an in-
  progress recording.
* [4a8546d] Merge branch 'master' of github.com:MythTV/mythtv
* [1d6485d] MythArchive consistency fixes.
* [89c34ef] Fix seeking backwards into a cut region.
* [6c3b564] Updated British English translation MythFrontend
  translation from Nick Morrott.
* [5501fff] Fix long-standing bug that always cleared
  record.next_record instead of updating it.
* [0c5de8e] Add missing menu closed event when closing the menu via
  the mouse. Fixes the menu dialog not working in some screens after
  being dismissed using a right click.
* [93c228d] Prevent crash when invoking the menu dialog via the right
  mouse button in Watch Recordings. ShowMenu() is a virtual method in
  MythScreenType, it's intended purpose is to load/display the context
  menu but here it is displaying a menu loaded elsewhere with no
  guards against duplicate popups being created. Move the menu display
  code to DisplayPopupMenu(), restore ShowMenu() to behave the same as
  the MENU key binding and re-instate the guards against multiple menu
  dialogs being created. Also fixes #10248 - 'Cannot delete recording
  if file is missing'
* [b755eca] Attempt to prevent a QString segfault if MythMenu changes
  while a dialog is open.
* [f3efafe] Fix segfault in MythUIButtonTree when list is empty and we
  attempt to navigate it. Refs #9101
* [b3e44a2] Rule type was missed from the RecordingRule text map.
  Added so that it appears twice in the map, once under the correct
  title of ruletype but also as rectype to be consistent with the
  ProgramInfo map until after 0.25 when we can rename that instance.
* [2075458] Remove deprecated attribute from dispatchNow(), we know
  it's deprecated but it's not going anywhere soon.
* [82fc1af] Add Collection support to developmental tmdb3 grabber.
* [0f0b0a7] Better backend metaclass, and people search support.
* [c47940a] Clean up and document background machinery
* [850fbc2] Replacement PagedList to temporarily work around bug in
  search API
* [d13addf] Add caching to tmdbv3 requests.
* [fe97f23] In progress TMDB v3 grabber script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#
5
5
 
6
6
###
7
 
# functions from ffmpeg'sconfigure
 
7
# functions from ffmpeg's configure
8
8
 
9
9
log(){
10
10
    echo "$@" >> $logfile
92
92
    exit 1
93
93
}
94
94
 
 
95
die(){
 
96
    echolog "$@"
 
97
    cat <<EOF
 
98
 
 
99
If you think configure made a mistake, make sure that you are using the latest
 
100
version of MythTV from git.  If the latest version fails, report the problem to the
 
101
mythtv-dev@mythtv.org mailing list or IRC #mythtv on irc.freenode.net
 
102
EOF
 
103
cat <<EOF
 
104
Include the log file "$logfile" produced by configure as this will help
 
105
solving the problem.
 
106
EOF
 
107
    exit 1
 
108
}
 
109
 
 
110
append(){
 
111
    var=$1
 
112
    shift
 
113
    eval "$var=\"\$$var $*\""
 
114
}
 
115
 
 
116
prepend(){
 
117
    var=$1
 
118
    shift
 
119
    eval "$var=\"$* \$$var\""
 
120
}
 
121
 
 
122
check_cmd(){
 
123
    log "$@"
 
124
    "$@" >> $logfile 2>&1
 
125
}
 
126
 
 
127
filter_cflags=echo
 
128
filter_cppflags=echo
 
129
filter_cxxflags=echo
 
130
filter_cxxppflags=echo
 
131
 
 
132
check_cc(){
 
133
    log check_cc "$@"
 
134
    cat > $TMPC
 
135
    log_file $TMPC
 
136
    check_cmd $CC $CPPFLAGS $CFLAGS "$@" -c -o $TMPO $TMPC
 
137
}
 
138
 
 
139
check_cpp(){
 
140
    log check_cpp "$@"
 
141
    cat > $TMPC
 
142
    log_file $TMPC
 
143
    check_cmd $CC $CPPFLAGS $CFLAGS "$@" -E -o $TMPO $TMPC
 
144
}
 
145
 
 
146
check_ld(){
 
147
    log check_ld "$@"
 
148
    flags=''
 
149
    libs=''
 
150
    for f; do
 
151
        test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f"
 
152
    done
 
153
    check_cc $($filter_cflags $flags) || return
 
154
    check_cmd $LD $LDFLAGS $flags -o $TMPE $TMPO $libs
 
155
}
 
156
 
 
157
check_header(){
 
158
    log check_header "$@"
 
159
    header=$1
 
160
    shift
 
161
    check_cpp "$@" <<EOF
 
162
#include <$header>
 
163
int x;
 
164
EOF
 
165
}
 
166
 
 
167
check_func(){
 
168
    log check_func "$@"
 
169
    func=$1
 
170
    shift
 
171
    check_ld "$@" <<EOF
 
172
extern int $func();
 
173
int main(void){ $func(); }
 
174
EOF
 
175
}
 
176
 
 
177
check_func_headers(){
 
178
    log check_func_headers "$@"
 
179
    headers=$1
 
180
    func=$2
 
181
    shift 2
 
182
    incs=""
 
183
    for hdr in $headers; do
 
184
        incs="$incs
 
185
#include <$hdr>"
 
186
    done
 
187
    check_ld "$@" <<EOF
 
188
$incs
 
189
int main(int argc, char **argv){
 
190
    return (long) $func;
 
191
}
 
192
EOF
 
193
}
 
194
 
 
195
check_lib(){
 
196
    log check_lib "$@"
 
197
    header="$1"
 
198
    func="$2"
 
199
    shift 2
 
200
    check_header $header && check_func $func "$@"
 
201
}
 
202
 
 
203
check_lib2(){
 
204
    log check_lib2 "$@"
 
205
    headers="$1"
 
206
    func="$2"
 
207
    shift 2
 
208
    check_func_headers "$headers" $func "$@"
 
209
}
 
210
 
 
211
#CXX related tests
 
212
check_header_cxx(){
 
213
    log check_header_cxx "$@"
 
214
    header=$1
 
215
    shift
 
216
    check_cxx "$@" <<EOF
 
217
#include <$header>
 
218
int x;
 
219
EOF
 
220
}
 
221
 
 
222
add_ldflags(){
 
223
    append LDFLAGS "$@"
 
224
}
 
225
 
 
226
add_cxxflags(){
 
227
    append ECXXFLAGS "$@"
 
228
}
 
229
 
 
230
check_cxx(){
 
231
    log check_cxx "$@"
 
232
    cat > $TMPCXX
 
233
    log_file $TMPCXX
 
234
    check_cmd $CXX $CXXPPFLAGS $ECXXFLAGS "$@" -c -o $TMPO $TMPCXX
 
235
}
 
236
 
 
237
check_ld_cxx(){
 
238
    log check_ld_cxx "$@"
 
239
    flags=''
 
240
    libs=''
 
241
    for f; do
 
242
        test "${f}" = "${f#-l}" && flags="$flags $f" || libs="$libs $f"
 
243
    done
 
244
    check_cxx $($filter_cxxflags $flags) || return
 
245
    check_cmd $CXX $LDFLAGS $flags -o $TMPE $TMPO $libs
 
246
}
 
247
 
 
248
check_func_cxx(){
 
249
    log check_func_cxx "$@"
 
250
    func=$1
 
251
    header=$2
 
252
    shift 2
 
253
    disable $(echo $func | sed -e 's/:://g')
 
254
    check_ld_cxx "$@" <<EOF
 
255
#include <$header>
 
256
int main(void){ $func(); }
 
257
EOF
 
258
}
 
259
 
 
260
check_lib_cxx(){
 
261
    log check_lib_cxx "$@"
 
262
    header="$1"
 
263
    func="$2"
 
264
    shift 2
 
265
    check_header_cxx $header && check_func_cxx $func $header "$@"
 
266
}
 
267
 
95
268
#
96
269
#    default parameters for all plugins
97
270
#
118
291
cdio
119
292
"
120
293
 
121
 
enable $PLUGIN_LIST $CONFIG_LIST
 
294
DEPEND_LIST="
 
295
vorbis
 
296
flac
 
297
mp3lame
 
298
taglib
 
299
"
122
300
 
 
301
enable $PLUGIN_LIST $CONFIG_LIST $DEPEND_LIST
123
302
 
124
303
prefix="/usr/local"
125
304
libdir_name="lib"
279
458
  esac
280
459
done
281
460
 
282
 
# set temporary file name
283
 
if test ! -z "$TMPDIR" ; then
284
 
    TMPDIR1="${TMPDIR}"
285
 
elif test ! -z "$TEMPDIR" ; then
286
 
    TMPDIR1="${TEMPDIR}"
287
 
else
288
 
    TMPDIR1="/tmp"
289
 
fi
290
 
 
291
 
TMPC="${TMPDIR1}/myth-comp-${RANDOM}-$$-${RANDOM}.c"
292
 
TMPE="${TMPDIR1}/myth-conf-${RANDOM}-$$-${RANDOM}"
293
 
 
294
 
 
295
 
has_library()
296
 
{
297
 
    if test -f /etc/ld.so.conf ; then
298
 
        LIBPATHS=`cat /etc/ld.so.conf | grep -v "#" | grep -v "include"`
299
 
    else
300
 
        LIBPATHS=''
301
 
    fi
302
 
 
303
 
    LIBPATHS="$LIBPATHS `echo $LD_LIBRARY_PATH | sed s/':'/' '/g` "
304
 
    # Mac OS X has a different variable for this:
305
 
    LIBPATHS="$LIBPATHS `echo $DYLD_LIBRARY_PATH | sed s/':'/' '/g` "
306
 
 
307
 
    # recurse down just one level, should be enough in most cases
308
 
    if test -f /etc/ld.so.conf ; then
309
 
        INCL=`cat /etc/ld.so.conf | grep -v "#" | grep  "^include"`
310
 
        SRCH=`echo "$INCL" | sed '{ s/^include \//\//; s/^include /\/etc\//}'`
311
 
        for x in $SRCH ; do
312
 
            LP_APPEND=`cat $x | grep -v "#" | grep -v "^include"`
313
 
            LIBPATHS="$LIBPATHS $LP_APPEND"
314
 
        done
315
 
    fi
316
 
 
317
 
    LIBPATHS="`echo $LIBPATHS $prefix/$libdir_name $sysroot/$libdir_name $sysroot/usr/$libdir_name $sysroot/usr/local/$libdir_name $sysroot/usr/X11R6/$libdir_name | sed s/'\/ '/' '/g` "
318
 
 
319
 
    HAS_IT="no"
320
 
    for LIBPATH in $LIBPATHS ; do
321
 
        if test x`ls $LIBPATH/$1* 2> /dev/null | head -n 1` != x"" ; then
322
 
            HAS_IT="yes"
323
 
        fi
324
 
    done
325
 
    expr $HAS_IT : "yes" > /dev/null
326
 
}
327
 
 
328
 
has_header()
329
 
{
330
 
    HPATHS="$prefix/include $sysroot/usr/local/include $sysroot/usr/include $sysroot/usr/include/g++-v3 $sysroot/usr/X11R6/include $sysroot/"
331
 
    INCL=`echo $DYLD_LIBRARY_PATH $LD_LIBRARY_PATH | sed s/':'/' '/g`
332
 
    HPATHS="$HPATHS `echo $INCL | sed s/$libdir_name/include/g` "
333
 
 
334
 
    HAS_IT="no"
335
 
    for HPATH in $HPATHS ; do
336
 
        if test x`ls $HPATH/$1* 2> /dev/null | head -n 1` != x"" ; then
337
 
            HAS_IT="yes"
338
 
        fi
339
 
    done
340
 
    expr $HAS_IT : "yes" > /dev/null
341
 
}
342
 
 
343
461
check_py_lib(){
344
462
    log check_py_lib "$@"
 
463
    lib=${1}
345
464
    check_cmd $python <<EOF
346
465
from distutils.sysconfig import get_python_lib
347
466
import sys
348
467
sys.path.append(get_python_lib(prefix='${prefix}'))
349
468
#sys.path.append('debian/libmyth-python/usr/lib/python2.6/dist-packages')
350
469
try:
351
 
    import ${1}
 
470
    import $lib
352
471
except:
353
472
    sys.exit(1)
354
473
sys.exit(0)
355
474
EOF
356
475
}
357
476
 
 
477
# set temporary file name
 
478
: ${TMPDIR:=$TEMPDIR}
 
479
: ${TMPDIR:=$TMP}
 
480
: ${TMPDIR:=/tmp}
 
481
 
 
482
if ! check_cmd type mktemp; then
 
483
    # simple replacement for missing mktemp
 
484
    # NOT SAFE FOR GENERAL USE
 
485
    mktemp(){
 
486
        echo "${2%XXX*}.${HOSTNAME}.${UID}.$$"
 
487
    }
 
488
fi
 
489
 
 
490
tmpfile(){
 
491
    tmp=$(mktemp -u "${TMPDIR}/mythplugins_conf.XXXXXXXX")$2 &&
 
492
    (set -C; exec > $tmp) 2>/dev/null ||
 
493
    die "Unable to create temporary file in $TMPDIR."
 
494
    append TMPFILES $tmp
 
495
    eval $1=$tmp
 
496
}
 
497
 
 
498
trap 'rm -f -- $TMPFILES' EXIT
 
499
trap exit HUP INT TERM
 
500
 
 
501
tmpfile TMPC  .c
 
502
tmpfile TMPE  $EXESUF
 
503
tmpfile TMPH  .h
 
504
tmpfile TMPO  .o
 
505
tmpfile TMPS  .S
 
506
tmpfile TMPV  .ver
 
507
tmpfile TMPSH .sh
 
508
tmpfile TMPCXX .cpp
 
509
tmpfile TMPASM .asm
 
510
tmpfile TMPMAK .mak
 
511
 
 
512
unset -f mktemp
 
513
 
 
514
# make sure we can execute files in $TMPDIR
 
515
cat > $TMPSH 2>> $logfile <<EOF
 
516
#! /bin/sh
 
517
EOF
 
518
chmod +x $TMPSH >> $logfile 2>&1
 
519
if ! $TMPSH >> $logfile 2>&1; then
 
520
    cat <<EOF
 
521
Unable to create and execute files in $TMPDIR.  Set the TMPDIR environment
 
522
variable to another directory and make sure that it is not mounted noexec.
 
523
EOF
 
524
    die "Sanity test failed."
 
525
fi
 
526
 
358
527
is_qmake4(){
359
528
    $1 --version 2>&1 | egrep -q -e "Qt version 4\.[5-9]\.[0-9]"
360
529
}
361
530
 
 
531
# bring in mythtv config
 
532
if [ -e $mythroot$prefix/include/mythtv/mythconfig.mak ] ; then
 
533
    rm mythconfig.mak 2> /dev/null
 
534
    cp $mythroot$prefix/include/mythtv/mythconfig.mak mythconfig.mak
 
535
    sed -i -e "s,^SYSROOT\=.*,SYSROOT=$mythroot,g" mythconfig.mak
 
536
elif [ -e $prefix/include/mythtv/mythconfig.mak ] ; then
 
537
    rm mythconfig.mak 2> /dev/null
 
538
    ${ln_s} $prefix/include/mythtv/mythconfig.mak mythconfig.mak
 
539
else
 
540
    echo "ERROR: mythconfig.mak not found at $prefix/include/mythtv/mythconfig.mak"
 
541
    echo "Did you make AND install MythTV first?"
 
542
    echo "Are you using the correct prefix ($prefix)?"
 
543
    echo "Bailing out!!"
 
544
    exit
 
545
fi
 
546
 
 
547
#Set build env variables according to mythconfig.mak
 
548
LD=$(cat mythconfig.mak | grep -e "^LD=")
 
549
LD=${LD#LD=}
 
550
CC=$(cat mythconfig.mak | grep -e "^CC=")
 
551
CC=${CC#CC=}
 
552
CFLAGS=$(cat mythconfig.mak | grep -e "^CFLAGS=")
 
553
CFLAGS=${CFLAGS#CFLAGS=}
 
554
CPPFLAGS=$(cat mythconfig.mak | grep -e "^CPPFLAGS=")
 
555
CPPFLAGS=${CPPFLAGS#CPPFLAGS=}
 
556
LDFLAGS=$(cat mythconfig.mak | grep -e "^LDFLAGS=")
 
557
LDFLAGS=${LDFLAGS#LDFLAGS=}
 
558
CXX=$(cat mythconfig.mak | grep -e "^QMAKE_CXX=")
 
559
CXX=${CXX#QMAKE_CXX=}
 
560
ECXXFLAGS=$(cat mythconfig.mak | grep -e "^ECXXFLAGS=")
 
561
ECXXFLAGS=${ECXXFLAGS#ECXXFLAGS=}
 
562
CXXPPFLAGS=$(cat mythconfig.mak | grep -e "^CXXPPFLAGS=")
 
563
CXXPPFLAGS=${CXXPPFLAGS#CXXPPFLAGS=}
 
564
OPENGLV=$(cat mythconfig.mak | grep -e "^CONFIG_OPENGL_VIDEO=yes")
 
565
 
362
566
if ! is_qmake4 $qmake; then
363
 
    is_qmake4 qmake-qt4 && qmake=qmake-qt4 || die "qmake for Qt4.5 or newer not found.\nPlease specify the correct qmake with --qmake="
364
 
fi
365
 
 
366
 
if ! expr $($qmake -query QT_VERSION) : "4\.[5-9]\.[0-9]" >/dev/null; then
367
 
    die "Qt4.5 or newer is required to build MythTV."
368
 
fi
369
 
 
370
 
if test "$opengl" != "no" ; then
371
 
    opengl="no"
372
 
    if has_library libGL ; then
373
 
        opengl="yes"
374
 
    fi
375
 
    if test -f $sysroot/System/Library/Frameworks/AGL.framework/Versions/A/AGL ; then
376
 
        opengl="yes"
377
 
    fi
378
 
    if test "`echo ${targetos} | cut -c1-5`" = "MINGW" ; then
379
 
        opengl="yes"
380
 
    fi
381
 
fi
382
 
 
383
 
if ! disabled fftw; then
384
 
    disable fftw_lib3
385
 
    if has_library libfftw3_threads ; then
386
 
        if has_header fftw3.h ; then
387
 
            enable fftw_lib3
388
 
        fi
389
 
    fi
390
 
fi
391
 
 
392
 
if test "$exif" != "no" ; then
393
 
    exif="no"
394
 
    if has_library libexif ; then
395
 
        if has_header libexif/exif-data.h ; then
396
 
            exif="yes"
397
 
        fi
398
 
    fi
399
 
fi
400
 
 
401
 
if ! disabled netvision; then
 
567
    is_qmake4 qmake-qt4 && qmake=qmake-qt4 || die "qmake for Qt4.6 or newer not found.\nPlease specify the correct qmake with --qmake="
 
568
fi
 
569
 
 
570
if ! expr $($qmake -query QT_VERSION) : "4\.[6-9]\.[0-9]" >/dev/null; then
 
571
    die "Qt4.6 or newer is required to build MythTV."
 
572
fi
 
573
 
 
574
# rely on what was discover during MythTV configure
 
575
if enabled opengl && test "$OPENGLV" != "CONFIG_OPENGL_VIDEO=yes"; then
 
576
    disable opengl
 
577
fi
 
578
 
 
579
#Test if fftw_lib3 is available
 
580
if enabled fftw &&! check_lib2 fftw3.h fftw_init_threads -lfftw3_threads -lfftw3f -lfftw3 ; then
 
581
    disable fftw
 
582
fi
 
583
 
 
584
if ! check_lib libexif/exif-data.h exif_loader_new -lexif ; then
 
585
    disable exif
 
586
fi
 
587
 
 
588
if enabled netvision; then
402
589
    disable_netvision(){
403
590
        msg="$1"
404
591
        echo "MythNetvision requires the $msg"
416
603
    disabled netvision && echo "Disabling MythNetvision due to missing dependencies."
417
604
fi
418
605
 
419
 
if ! disabled weather; then
 
606
if enabled weather; then
420
607
    check_pl_lib(){
421
608
        log check_pl_lib "$@"
422
609
        check_cmd perl -e "use ${1};"
423
610
    }
424
611
 
425
612
    disable_weather(){
426
 
        echo "WARNING: disabling MythWeather; missing $1"
 
613
        echo "MythWeather requires $1"
427
614
        disable weather
428
615
    }
429
616
 
435
622
        disable_weather "DateTime::Format::ISO8601"
436
623
    check_pl_lib "SOAP::Lite"  || disable_weather "SOAP::Lite"
437
624
    check_pl_lib "JSON"  || disable_weather "JSON"
438
 
fi
439
 
 
440
 
if test "$dcraw" != "no" ; then
441
 
    dcraw="no"
442
 
    if test x`which dcraw 2>/dev/null` != x ; then
443
 
        dcraw="yes"
444
 
    fi
445
 
fi
 
625
 
 
626
    disabled weather && echo "Disabling MythWeather due to missing dependencies."
 
627
fi
 
628
 
 
629
# Test for dcraw utility
 
630
enabled dcraw && command -v dcraw 2>/dev/null > /dev/null || disable dcraw
446
631
 
447
632
if test x"$icc" != x ; then
448
633
    # Assume relative paths are for files in the standard icc directory.
458
643
    fi
459
644
fi
460
645
 
461
 
if test "$music" != "no" ; then
462
 
    vorbis="no"
463
 
    if has_header ogg/ogg.h && has_header vorbis/vorbisenc.h && has_header vorbis/vorbisfile.h && has_header vorbis/codec.h && has_library libogg && has_library libvorbisfile && has_library libvorbisenc && has_library libvorbis ; then
464
 
        vorbis="yes"
465
 
    else
 
646
if enabled music ; then
 
647
    if ! check_lib vorbis/codec.h vorbis_info_init -lvorbis || ! check_lib vorbis/vorbisenc.h vorbis_encode_setup_vbr -lvorbisenc -lvorbis -logg ; then
 
648
        disable vorbis
466
649
        echo "MythMusic requires vorbis."
467
650
    fi
468
651
 
469
 
    flac="no"
470
 
    if has_header FLAC/all.h && has_library libFLAC ; then
471
 
        flac="yes"
472
 
    else
 
652
    if ! check_lib FLAC/all.h FLAC__stream_decoder_new -lFLAC ;then
 
653
        disable flac
473
654
        echo "MythMusic requires FLAC."
474
655
    fi
475
656
 
476
 
    if test "$cdio" != "no" ; then
477
 
        cdio="no"
478
 
        if has_header cdio/cdio.h && has_library libcdio && has_library libcdio_cdda && has_library libcdio_paranoia ; then
479
 
            cdio="yes"
480
 
        fi
 
657
    if ! check_lib cdio/cdio.h cdio_open -lcdio || ! check_lib cdio/cdda.h cdio_cddap_open -lcdio_cdda || ! check_lib cdio/paranoia.h cdio_paranoia_init -lcdio_paranoia ; then
 
658
        disable cdio
481
659
    fi
482
660
 
483
 
    mp3lame="no"
484
 
    if has_header lame/lame.h && has_library libmp3lame ; then
485
 
        mp3lame="yes"
486
 
    else
 
661
    if ! check_lib lame/lame.h lame_init -lmp3lame ; then
 
662
        disable mp3lame
487
663
        echo "MythMusic requires the LAME mp3 encoder."
488
664
    fi
489
665
 
490
 
    taglib="no"
 
666
    taglib_minor="0"
491
667
    if test x`which taglib-config` != x"" ; then
492
668
        taglib_minor=`taglib-config --version | cut -d. -f2`
493
669
        if test x"$taglib_minor" = x"" ; then
494
670
            echo "Can't find taglib-config. Assuming 1.6 or later."
495
671
            taglib_minor="6"
496
672
        fi
 
673
        tagprefix=`taglib-config --prefix`
 
674
        add_cxxflags "-I${tagprefix}/include"
 
675
        add_ldflags "-L${tagprefix}/lib"
497
676
    fi
498
677
 
499
 
    if has_library libtag && has_header taglib/fileref.h && test $taglib_minor -ge 6 ; then
500
 
        taglib="yes"
501
 
    else
 
678
    if test $taglib_minor -lt 6 || ! check_lib_cxx taglib/fileref.h TagLib::FileRef -ltag -lz ; then
 
679
        disable taglib
502
680
        echo "MythMusic requires taglib 1.6 or later."
503
681
    fi
504
682
 
505
 
    if test "$vorbis" = "no" -o "$flac" = "no" -o "$mp3lame" = "no" -o "$taglib" = "no" ; then
 
683
    if disabled vorbis || disabled flac || disabled mp3lame || disabled taglib ; then
506
684
        echo "Disabling MythMusic due to missing dependencies."
507
 
        music="no"
 
685
        disable music
508
686
    fi
509
687
fi
510
688
 
511
 
if test "$zoneminder" != "no" ; then
512
 
    if has_header mysql/mysql.h ; then
513
 
         zoneminder="yes"
514
 
    else
 
689
if enabled zoneminder ; then
 
690
    if ! check_header mysql/mysql.h ; then
515
691
        echo "Disabling MythZoneMinder. Requires mysql/mysql.h header"
516
 
        zoneminder="no"
 
692
        disable zoneminder
517
693
    fi
518
694
fi
519
695
 
522
698
int main( void ) { return 0; }
523
699
EOF
524
700
 
525
 
_stdint_h=no
 
701
disable _stdint_h
526
702
if $cc -o $TMPE $TMPC 2> /dev/null ; then
527
 
  _stdint_h=yes
 
703
  enable _stdint_h
528
704
fi
529
705
 
530
 
rm -f $TMPC $TMPE
531
 
 
532
706
###########################################################
533
707
#                                                         #
534
708
#  Top level mythplugin.pro file creation                 #
536
710
#                                                         #
537
711
###########################################################
538
712
 
539
 
# bring in mythtv config
540
 
if [ -e $mythroot$prefix/include/mythtv/mythconfig.mak ] ; then
541
 
  rm mythconfig.mak 2> /dev/null
542
 
  cp $mythroot$prefix/include/mythtv/mythconfig.mak mythconfig.mak
543
 
  sed -i -e "s,^SYSROOT\=.*,SYSROOT=$mythroot,g" mythconfig.mak
544
 
elif [ -e $prefix/include/mythtv/mythconfig.mak ] ; then
545
 
  rm mythconfig.mak 2> /dev/null
546
 
  ${ln_s} $prefix/include/mythtv/mythconfig.mak mythconfig.mak
547
 
else
548
 
  echo "ERROR: mythconfig.mak not found at $prefix/include/mythtv/mythconfig.mak"
549
 
  echo "Did you make AND install MythTV first?"
550
 
  echo "Are you using the correct prefix ($prefix)?"
551
 
  echo "Bailing out!!"
552
 
  exit
553
 
fi
554
 
 
555
713
echo ""
556
714
echo "Configuration settings: "
557
715
echo " "
563
721
echo "#    (manual modifications will be overwritten)" >> ./config.pro
564
722
echo "#" >> ./config.pro
565
723
 
566
 
if test "$archive" = "yes" ; then
 
724
if enabled archive ; then
567
725
  echo "        MythArchive    plugin will be built"
568
726
  echo "SUBDIRS += mytharchive" >> ./config.pro
569
727
else
570
728
  echo "        MythArchive    plugin will not be built"
571
729
fi
572
730
 
573
 
if test "$browser" = "yes" ; then
 
731
if enabled browser ; then
574
732
  echo "        MythBrowser    plugin will be built"
575
733
  echo "SUBDIRS += mythbrowser" >> ./config.pro
576
734
else
577
735
  echo "        MythBrowser    plugin will not be built"
578
736
fi
579
737
 
580
 
if test "$gallery" = "yes" ; then
 
738
if enabled gallery ; then
581
739
  echo "        MythGallery    plugin will be built"
582
740
  echo "SUBDIRS += mythgallery" >> ./config.pro
583
741
else
584
742
  echo "        MythGallery    plugin will not be built"
585
743
fi
586
744
 
587
 
if test "$game" = "yes" ; then
 
745
if enabled game ; then
588
746
  echo "        MythGame       plugin will be built"
589
747
  echo "SUBDIRS += mythgame" >> ./config.pro
590
748
else
591
749
  echo "        MythGame       plugin will not be built"
592
750
fi
593
751
 
594
 
if test "$music" = "yes" ; then
 
752
if enabled music ; then
595
753
  echo "        MythMusic      plugin will be built"
596
754
  echo "SUBDIRS += mythmusic" >> ./config.pro
597
755
else
598
756
  echo "        MythMusic      plugin will not be built"
599
757
fi
600
758
 
601
 
if test "$netvision" = "yes" ; then
 
759
if enabled netvision ; then
602
760
  echo "        MythNetvision  plugin will be built"
603
761
  echo "SUBDIRS += mythnetvision" >> ./config.pro
604
762
else
605
763
  echo "        MythNetvision  plugin will not be built"
606
764
fi
607
765
 
608
 
if test "$news" = "yes" ; then
 
766
if enabled news ; then
609
767
  echo "        MythNews       plugin will be built"
610
768
  echo "SUBDIRS += mythnews" >> ./config.pro
611
769
else
612
770
  echo "        MythNews       plugin will not be built"
613
771
fi
614
772
 
615
 
if test "$weather" = "yes" ; then
 
773
if enabled weather ; then
616
774
  echo "        MythWeather    plugin will be built"
617
775
  echo "SUBDIRS += mythweather" >> ./config.pro
618
776
else
619
777
  echo "        MythWeather    plugin will not be built"
620
778
fi
621
779
 
622
 
if test "$zoneminder" = "yes" ; then
 
780
if enabled zoneminder ; then
623
781
  echo "        MythZoneMinder plugin will be built"
624
782
  echo "SUBDIRS += mythzoneminder" >> ./config.pro
625
783
else
632
790
#                                                         #
633
791
###########################################################
634
792
 
635
 
if test "$gallery" = "yes" ; then
 
793
if enabled gallery ; then
636
794
 
637
795
    echo "/*" >  ./mythgallery/mythgallery/config.h
638
796
    echo "    Automatically generated by configure - do not modify" >> ./mythgallery/mythgallery/config.h
646
804
    echo "#    Automatically generated by configure - modify only under penalty of death" >> ./mythgallery/mythgallery/config.pro
647
805
    echo "#" >> ./mythgallery/mythgallery/config.pro
648
806
 
649
 
    if test "$opengl" = "yes" ; then
 
807
    if enabled opengl ; then
650
808
        echo "        OpenGL         support will be included in MythGallery"
651
809
        echo "#define OPENGL_SUPPORT 1" >> ./mythgallery/mythgallery/config.h
652
810
        echo "CONFIG += opengl" >> ./mythgallery/mythgallery/config.pro
653
811
        echo "HEADERS += glsingleview.h" >> ./mythgallery/mythgallery/config.pro
654
812
        echo "SOURCES += glsingleview.cpp" >> ./mythgallery/mythgallery/config.pro
655
 
    fi
656
 
 
657
 
    if test "$opengl" = "no" ; then
 
813
    else
658
814
        echo "        OpenGL         support will not be included in MythGallery"
659
815
    fi
660
816
 
661
 
    if test "$exif" = "yes" ; then
 
817
    if enabled exif ; then
662
818
        echo "        EXIF           support will be included in MythGallery"
663
819
        echo "#define EXIF_SUPPORT 1" >> ./mythgallery/mythgallery/config.h
664
820
        echo "LIBS += -lexif" >> ./mythgallery/mythgallery/config.pro
680
836
                echo
681
837
            fi
682
838
        fi
683
 
    fi
684
 
 
685
 
    if test "$exif" = "no" ; then
 
839
    else
686
840
        echo "        EXIF           support will not be included in MythGallery"
687
841
    fi
688
842
 
689
 
    if test "$dcraw" = "yes" ; then
 
843
    if enabled dcraw ; then
690
844
        echo "        Dcraw          support will be included in MythGallery"
691
845
        echo "SUBDIRS += dcrawplugin" >> ./mythgallery/config.pro
692
846
        echo "#define DCRAW_SUPPORT 1" >> ./mythgallery/mythgallery/config.h
697
851
        echo "    Automatically generated by configure - do not modify" >> ./mythgallery/dcrawplugin/config.h
698
852
        echo "*/" >> ./mythgallery/dcrawplugin/config.h
699
853
 
700
 
        if test "$exif" = "yes" ; then
 
854
        if enabled exif ; then
701
855
            echo "#define EXIF_SUPPORT 1" >> ./mythgallery/dcrawplugin/config.h
702
856
 
703
857
        fi
708
862
            quoted_icc=`echo "$icc" | sed 's/\\([\\\\"?]\\)/\\\\\\1/g;\$!{s/\$/\\\\/}'`
709
863
            echo "#define ICC_PROFILE \"$quoted_icc\"" >> ./mythgallery/dcrawplugin/config.h
710
864
        fi
711
 
 
712
 
    fi
713
 
 
714
 
    if test "$dcraw" = "no" ; then
 
865
    else
715
866
        echo "        Dcraw          support will not be included in MythGallery"
716
867
    fi
717
 
 
718
868
fi
719
869
 
720
870
###########################################################
723
873
#                                                         #
724
874
###########################################################
725
875
 
726
 
if test "$music" = "yes" ; then
 
876
if enabled music ; then
727
877
 
728
878
    echo "/*" >  ./mythmusic/mythmusic/config.h
729
879
    echo "    Automatically generated by configure - do not modify" >> ./mythmusic/mythmusic/config.h
733
883
    echo "#    Automatically generated by configure - modify only under penalty of death" >> ./mythmusic/mythmusic/config.pro
734
884
    echo "#" >> ./mythmusic/mythmusic/config.pro
735
885
 
736
 
    if test "$_stdint_h" = "yes" ; then
 
886
    if enabled _stdint_h ; then
737
887
      echo "#define HAVE_STDINT_H 1" >> ./mythmusic/mythmusic/config.h
738
888
    else
739
889
      echo "#undef  HAVE_STDINT_H" >> ./mythmusic/mythmusic/config.h
740
890
    fi
741
891
 
742
 
    if test "$cdio" = "yes" ; then
 
892
    if enabled cdio ; then
743
893
      echo "#define HAVE_CDIO 1" >> ./mythmusic/mythmusic/config.h
744
894
      echo "CONFIG += cdio" >> ./mythmusic/mythmusic/config.pro
745
895
      echo "        libcdio        support will be included in MythMusic"
748
898
      echo "        libcdio        support will not be included in MythMusic"
749
899
    fi
750
900
 
751
 
    if enabled fftw_lib3; then
 
901
    if enabled fftw; then
752
902
        echo "        FFTW v.3       support will be included in MythMusic"
753
903
        echo "#define FFTW3_SUPPORT 1" >> ./mythmusic/mythmusic/config.h
754
904
        echo "LIBS += -lfftw3 -lm" >> \
757
907
        echo "        FFTW           support will not be included in MythMusic"
758
908
    fi
759
909
 
760
 
    if test "$taglib" = "yes" ; then
 
910
    if enabled taglib ; then
761
911
        echo "INCLUDEPATH += `taglib-config --prefix`/include/taglib" >> ./mythmusic/mythmusic/config.pro
762
912
    fi
763
913
fi