Index: configure
===================================================================
--- configure	(revision 17145)
+++ configure	(working copy)
@@ -34,6 +34,7 @@
 aac="no"          # compile fails w/libfaad v2.0
 exif="yes"
 newexif="yes"
+fdlib="no"
 festival="no"     # no config detection/setup routine
 createdvd="yes"
 createarchive="yes"
@@ -81,7 +82,7 @@
   --enable-mythgallery     build the mythgallery plugin [$gallery]
   --enable-exif            enable reading of EXIF headers [$exif]
   --enable-new-exif        use libexif > version 0.6.9 [$newexif]
-
+  
 MythGame related options:
   --enable-mythgame        build the mythgame plugin [$game]
 
@@ -244,6 +245,10 @@
   ;;
   --disable-exif) exif="no"
   ;;
+  --enable-fdlib) fdlib="yes"
+  ;;
+  --disable-fdlib) fdlib="no"
+  ;;  
   --enable-festival) festival="yes"
   ;;
   --disable-festival) festival="no"
@@ -427,6 +432,15 @@
     fi
 fi
 
+if test "$fdlib" != "no" ; then
+    fdlib="no"
+    if has_library libfd ; then
+        if has_header fdlib.h ; then
+            fdlib="yes"
+        fi
+    fi
+fi
+
 if test "$music" != "no" ; then
     mad="no"
     if has_library libmad && has_header mad.h ; then
@@ -795,6 +809,16 @@
     if test "$exif" = "no" ; then
         echo "        EXIF           support will not be included in MythGallery"
     fi
+    
+    if test "$fdlib" = "yes" ; then
+        echo "        fdlib          support will be included in MythGallery"
+        echo "#define FDLIB_SUPPORT 1" >> ./mythgallery/mythgallery/config.h
+        echo "LIBS += -lfd" >> ./mythgallery/mythgallery/config.pro
+    fi
+
+    if test "$fdlib" = "no" ; then
+        echo "        fdlib          support will not be included in MythGallery"
+    fi
 fi
 
 ###########################################################
