Re: [dev] slconfigure

From: Josuah Demangeon <mail_AT_josuah.net>
Date: Mon, 29 May 2017 22:56:57 +0200

I am not disappointed when I see a simple ./configure script that generate a clean config.mk. Would something like this be acceptable to for a suckless project ?

case "$(uname -a)" in
*Linux* )
    XXXINC=/...
    ;;
*OpenBSD* )
    XXXINC=/...
    ;;
*FreeBSD* )
    XXXINC=/...
    ;;
esac

tee config.mk << EOF
XXXINC = $XXXINC
EOF

I just read this post about portability:
http://nullprogram.com/blog/2017/03/30/
"How to Write Portable C Without Complicating Your Build"
Received on Mon May 29 2017 - 22:56:57 CEST

This archive was generated by hypermail 2.3.0 : Mon May 29 2017 - 23:00:15 CEST