diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -7,9 +7,12 @@ # See the main source file 'xineliboutput.c' for copyright information and # how to reach the author. # +# * $Id: configure,v 1.2 2008-10-31 20:50:24 phintuka Exp $ +# PKG_CONFIG="pkg-config" makefile="config.mak" +header="features.h" logfile="configure.log" debug=no @@ -26,7 +29,7 @@ toupper(){ } die(){ - echo "$1" + log "$@" exit -1 } @@ -293,12 +296,35 @@ done log # +# create features.h +# + +log "Creating $header ..." + +cat <<EOF >$header +/* Automatically generated by configure - do not modify! */ + +#ifndef XINELIBOUTPUT_FEATURES_H +#define XINELIBOUTPUT_FEATURES_H + +EOF + +for feature in $FEATURES; do + enabled $feature && + echo "#define HAVE_$(toupper $feature) 1">>$header || \ + echo "#undef HAVE_$(toupper $feature)">>$header +done + +echo "" >> $header +echo "#endif /* XINELIBOUTPUT_FEATURES_H */" >> $header + +# # create features.mak # log "Creating $makefile ..." -echo "# Automatically generated by configure.sh - do not modify!" > $makefile +echo "# Automatically generated by configure - do not modify!" > $makefile echo >> $makefile # subsystems |