Update configure to generate config.h
[yaz-moved-to-github.git] / util / yaz-asncomp
index 721551e..2c32c00 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/tclsh
 #
 # yaz-comp: ASN.1 Compiler for YAZ
-# (c) Index Data 1996-2007
+# (c) Index Data 1996-2010
 # See the file LICENSE for details.
 #
 
@@ -1092,6 +1092,11 @@ proc asnModules {} {
            puts $file(outc) ""
            puts $file(outc) "    ${greeting} ${yc_version}"
            puts $file(outc) "*/"
+
+           puts $file(outc) "\#if HAVE_CONFIG_H"
+           puts $file(outc) "\#include <config.h>"
+           puts $file(outc) "\#endif"
+
            puts $file(outc) {}
 
            puts $file(outh) "/** \\file $inf(h-file)"