This is nice: I just came across it from working on FontForge, which uses it.
Would you consider making it a gnulib module? That would make it easier for autotools users to find it, along with all the other autotools magic goodness packed into gnulib!