From ebeb9d5b2757fd6cd238aa8e67c309929366d232 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 28 Feb 2026 14:51:00 +0200 Subject: configure: fix -DMACRO --- configure | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'configure') diff --git a/configure b/configure index 6c21732..149e3cd 100755 --- a/configure +++ b/configure @@ -75,15 +75,14 @@ case ${DPP_LEVEL:-} in '') # # '--prefix=/usr' -> 'export prefix=/usr' # 'prefix=/usr' -> 'export prefix=/usr' - # '-DWORD' -> 'export WORD' 'CFLAGS+=-DWORD' + # '-DWORD' -> 'export WORD' '#undef WORD\n#define WORD' # '-DWORD=val' -> 'export WORD' '#undef WORD\n#define WORD val' # '-UWORD' -> 'unset WORD' 'CFLAGS+=-UWORD' # for a do case $a in --help) cat "$0"; exit 0 ;; - -D*=*) mo="${mo:-}$a + -D*) mo="${mo:-}$a " _a=${a#-D}; export "${_a%%=*}=" ;; - -D*) cc_flags="$cc_flags $a"; export "${a#-D}=" ;; -U*) cc_flags="$cc_flags $a"; unset "${a#-U}" ;; *?=?*) export "${a#--}" ;; esac done -- cgit v1.2.3