Changeset 15702 for titan/minidlna-1.0.22/genconfig.sh
- Timestamp:
- 05/13/12 00:24:21 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/minidlna-1.0.22/genconfig.sh
r13567 r15702 40 40 ${RM} ${CONFIGFILE} 41 41 42 # Detect if there are missing headers43 # NOTE: This check only works with a normal distro44 [ ! -e "/usr/include/sqlite3.h" ] && MISSING="libsqlite3 $MISSING"45 [ ! -e "/usr/include/jpeglib.h" ] && MISSING="libjpeg $MISSING"46 [ ! -e "/usr/include/libexif/exif-loader.h" ] && MISSING="libexif $MISSING"47 [ ! -e "/usr/include/id3tag.h" ] && MISSING="libid3tag $MISSING"48 [ ! -e "/usr/include/ogg/ogg.h" ] && MISSING="libogg $MISSING"49 [ ! -e "/usr/include/vorbis/codec.h" ] && MISSING="libvorbis $MISSING"50 [ ! -e "/usr/include/FLAC/metadata.h" ] && MISSING="libflac $MISSING"51 [ ! -e "/usr/include/ffmpeg/avutil.h" -a \52 ! -e "/usr/include/libavutil/avutil.h" -a \53 ! -e "/usr/include/ffmpeg/libavutil/avutil.h" ] && MISSING="libavutil $MISSING"54 [ ! -e "/usr/include/ffmpeg/avformat.h" -a \55 ! -e "/usr/include/libavformat/avformat.h" -a \56 ! -e "/usr/include/ffmpeg/libavformat/avformat.h" ] && MISSING="libavformat $MISSING"57 [ ! -e "/usr/include/ffmpeg/avcodec.h" -a \58 ! -e "/usr/include/libavcodec/avcodec.h" -a \59 ! -e "/usr/include/ffmpeg/libavcodec/avcodec.h" ] && MISSING="libavcodec $MISSING"60 if [ -n "$MISSING" ]; then61 echo -e "\nERROR! Cannot continue."62 echo -e "The following required libraries are either missing, or are missing development headers:\n"63 echo -e "$MISSING\n"64 exit 165 fi42 ## Detect if there are missing headers 43 ## NOTE: This check only works with a normal distro 44 #[ ! -e "/usr/include/sqlite3.h" ] && MISSING="libsqlite3 $MISSING" 45 #[ ! -e "/usr/include/jpeglib.h" ] && MISSING="libjpeg $MISSING" 46 #[ ! -e "/usr/include/libexif/exif-loader.h" ] && MISSING="libexif $MISSING" 47 #[ ! -e "/usr/include/id3tag.h" ] && MISSING="libid3tag $MISSING" 48 #[ ! -e "/usr/include/ogg/ogg.h" ] && MISSING="libogg $MISSING" 49 #[ ! -e "/usr/include/vorbis/codec.h" ] && MISSING="libvorbis $MISSING" 50 #[ ! -e "/usr/include/FLAC/metadata.h" ] && MISSING="libflac $MISSING" 51 #[ ! -e "/usr/include/ffmpeg/avutil.h" -a \ 52 # ! -e "/usr/include/libavutil/avutil.h" -a \ 53 # ! -e "/usr/include/ffmpeg/libavutil/avutil.h" ] && MISSING="libavutil $MISSING" 54 #[ ! -e "/usr/include/ffmpeg/avformat.h" -a \ 55 # ! -e "/usr/include/libavformat/avformat.h" -a \ 56 # ! -e "/usr/include/ffmpeg/libavformat/avformat.h" ] && MISSING="libavformat $MISSING" 57 #[ ! -e "/usr/include/ffmpeg/avcodec.h" -a \ 58 # ! -e "/usr/include/libavcodec/avcodec.h" -a \ 59 # ! -e "/usr/include/ffmpeg/libavcodec/avcodec.h" ] && MISSING="libavcodec $MISSING" 60 #if [ -n "$MISSING" ]; then 61 # echo -e "\nERROR! Cannot continue." 62 # echo -e "The following required libraries are either missing, or are missing development headers:\n" 63 # echo -e "$MISSING\n" 64 # exit 1 65 #fi 66 66 67 67 echo "/* MiniDLNA Project" >> ${CONFIGFILE}
Note: See TracChangeset
for help on using the changeset viewer.