summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure30
1 files changed, 28 insertions, 2 deletions
diff --git a/configure b/configure
index 2cb47d09..2fbb8946 100755
--- a/configure
+++ b/configure
@@ -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