summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2009-06-12 00:55:43 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-02 22:30:06 +0100
commitd52391fee07e13b2a9e015d4a5a57135d0356d10 (patch)
tree6a7486f250cb3d77c861c87dc8d91a5846eb5f3a /configure
parent24d49a7cdd93a6cb8633cff062201e6b1ea6f164 (diff)
downloadfribid-d52391fee07e13b2a9e015d4a5a57135d0356d10.tar.gz
fribid-d52391fee07e13b2a9e015d4a5a57135d0356d10.tar.bz2
fribid-d52391fee07e13b2a9e015d4a5a57135d0356d10.zip
Added install/uninstall targets to the makefiles
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index bf575da..9bbc76b 100755
--- a/configure
+++ b/configure
@@ -21,6 +21,18 @@ while [ "$#" != "0" ]; do
--exec-prefix=*)
execprefix=${flag#--exec-prefix=}
;;
+ --internal--get-define=*)
+ name=${flag#--internal--get-define=}
+ printf '#include "%s"\n%s\n' "$basedir/common/defines.h" "$name" | cpp - | sed 's/#[^\n]*//g' | tr -d '\n' | sed 's/"\s"//g' | tr -d '\"'
+ exit 0
+ ;;
+ --internal--remove-link)
+ link="$1"
+ target="$2"
+ shift 2
+ [ ! -h "$link" ] || [ "`readlink "$link"`" != "$target" ] || rm -f "$link"
+ exit 0
+ ;;
*)
echo "Invalid option: $flag"
error=1