]> git.armaanb.net Git - opendoas.git/blobdiff - configure
Change the way insults are enabled
[opendoas.git] / configure
index 43a76e91f93c41a125f40e95d51f09746ff14283..b337e6a832f060c1ce0bd55a0965ecf0f806e48b 100755 (executable)
--- a/configure
+++ b/configure
@@ -28,7 +28,7 @@ usage: configure [options]
 
   --with-timestamp       enable timestamp support
 
-  --without-kiss-insults disable kiss insults
+  --without-insults      disable insults
 
   --uid-max=NUM          set UID_MAX (default 65535)
   --gid-max=NUM          set GID_MAX (default 65535)
@@ -40,7 +40,6 @@ EOF
 
 # defaults
 WITHOUT_TIMESTAMP=yes
-WITHOUT_KISS_INSULTS=""
 UID_MAX=65535
 GID_MAX=65535
 
@@ -63,7 +62,7 @@ for x; do
        --with-shadow) WITHOUT_SHADOW=; WITHOUT_PAM=yes ;;
        --without-pam) WITHOUT_PAM=yes ;;
        --without-shadow) WITHOUT_SHADOW=yes ;;
-       --without-kiss-insults) WITHOUT_KISS_INSULTS=yes ;;
+       --without-insults) WITHOUT_INSULTS=yes ;;
        --with-timestamp) WITHOUT_TIMESTAMP= ;;
        --without-timestamp) WITHOUT_TIMESTAMP=yes ;;
        --uid-max) UID_MAX=$var ;;
@@ -227,10 +226,10 @@ int main(void) {
 
 definsults() {
        printf 'SRCS    += insults.c\n' >>$CONFIG_MK
-       [ "$WITHOUT_KISS_INSULTS" ] && {
-               printf 'Not using KISS insults'
-               return 0
+       [ -z "$WITHOUT_INSULTS" ] && {
+               printf '#define DOAS_INSULTS\n' >>$CONFIG_H
        }
+       return 0
 }