]> git.armaanb.net Git - opendoas.git/blobdiff - configure
remove version.h and define VERSION in configure script
[opendoas.git] / configure
index 5f896c478aa58a7642a3ca7f2283f09a317c33c4..2039151545ca8388d5b25ad4d652cc40b70bcb75 100755 (executable)
--- a/configure
+++ b/configure
@@ -56,6 +56,7 @@ CONFIG_MK=config.mk
 rm -f "$CONFIG_MK"
 
 : ${VERSION:="$(git describe --dirty --tags --long --always)"}
+# : ${VERSION:="0.1"}
 
 cat <<EOF >>$CONFIG_MK
 PREFIX   ?=    ${PREFIX:="/usr"}
@@ -91,11 +92,11 @@ if [ -z "$OS" ]; then
        KERNEL=${REST%%-*}
 fi
 
-OS_FLAGS="-D__${OS}__"
+OS_CFLAGS="-D__${OS}__"
 
 case "$OS" in
        linux)
-               OS_CFLAGS+=" -D_DEFAULT_SOURCE -D_GNU_SOURCE -DUID_MAX=60000 -DGID_MAX=60000"
+               OS_CFLAGS="$OS_CFLAGS -D_DEFAULT_SOURCE -D_GNU_SOURCE -DUID_MAX=60000 -DGID_MAX=60000"
                printf 'CURDIR   :=     .\n' >>$CONFIG_MK
                printf 'PAM_DOAS  =     pam.d__doas__linux\n' >>$CONFIG_MK
                ;;