Reuben Thomas wrote: > gcc -DHAVE_CONFIG_H -I. -I.. --include configmake.h --include config.h > ... enchant.c
If you #include these two files from the .c file, rather than from the command line, you will have a location where to put '#undef DATADIR'. Alternatively, you could swap the two --include options. This would be in line with the comment I added in 2008: https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=commitdiff;h=4d45d1e67873d2988c923aa182c26e4d6cfe0d0e configmake.h should be included *after* all system include files. What you are currently doing is to include it *before* all system include files. Bruno