Hacker GitHub

← All repos

wahern/autoguess

View on GitHub ↗ ★ 6 M4

Preprocessor-based feature detection config.h substitute

6 mentions on Hacker News by 1 person: 0 stories, 6 comments · first 2017-03-31 · latest 2025-06-30

Mentions per year 6 mentions · busiest year 2017 (3)
20082026
  1. …tested that sort of thing. It's also possible __typeof had slightly different semantics. [1] See https://github.com/wahern/autoguess/blob/b44556e4/config.h.g... (that's the 2015 revision, but HEAD has the same code).
  2. …a significant amount of time trying to implement pretty much exactly what PHK is advocating: https://github.com/wahern/autoguess I don't reach out for autoconf reflexively, but I fully appreciate why people do make use of it.
    comment by wahern · 2021-03-31 · in GNU Autotools: A Tutorial [pdf]
  3. You can implement conditionals semi-portably. See https://github.com/wahern/autoguess/blob/master/Makefile.gue... , which works with GNU Make, NetBSD/FreeBSD make, OpenBSD make, and Solaris make. Alas, it doesn't work with AIX's native…
    comment by wahern · 2020-05-15 · in Polyglot Makefiles
  4. …expand to the empty string.[1] Here's a simplified example from my proof-of-concept library from https://github.com/wahern/autoguess/blob/config-guess/config... BOOL,true = true BOOL,1 = true BOOL,false = false BOOL,0 = false BOOL, = false…
    comment by wahern · 2017-08-21 · in A Tutorial on Portable Makefiles
  5. …both. To see what I'm talking about, see my proof of concept library that I've put together. https://github.com/wahern/autoguess/blob/config-guess/config...
    comment by wahern · 2017-08-21 · in A Tutorial on Portable Makefiles
  6. …ridiculous number of feature checks. I broke those out into a separate project I called autoguess. https://github.com/wahern/autoguess Autoguess is a config.h file that exclusively uses preprocessor-based feature checks. It's very…