summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2011-06-18 15:29:19 +0200
committerSamuel Lidén Borell <samuel@slbdata.se>2011-06-18 15:29:19 +0200
commit792be50a05be70c19c0e33772dd0a0ade66780bb (patch)
treeea1edb770604c423965a80fd333591ef40c42028 /configure
parent818400cd7662635afe7cd93ac706fb218d4c3b92 (diff)
downloadfribid-792be50a05be70c19c0e33772dd0a0ade66780bb.tar.gz
fribid-792be50a05be70c19c0e33772dd0a0ade66780bb.tar.bz2
fribid-792be50a05be70c19c0e33772dd0a0ade66780bb.zip
Check if config.h is outdated
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index 17370f6..0e14a33 100755
--- a/configure
+++ b/configure
@@ -134,7 +134,7 @@ Options:
;;
--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/" "//g' | tr -d '\"'
+ printf '#define CALLED_FROM_CONFIGURE\n#include "%s"\n%s\n' "$basedir/common/defines.h" "$name" | cpp - | sed 's/#[^\n]*//g' | tr -d '\n' | sed 's/" "//g' | tr -d '\"'
exit 0
;;
--internal--remove-link)
@@ -272,6 +272,8 @@ cat <<EOT >"$CONFFILE"
/* This file is automatically generated.
Run the configure script to change the configuration. */
+#define CONFIGVERSION 1
+
#define PREFIX "$prefixPath"
#define EPREFIX "$execPath"