SHA512/224 and SHA512/256
[openssl.git] / test / generate_buildtest.pl
index 7921021e45e28e87ca0770ed8319c13ba09ce8c8..0a9d879eb12a9d307a176db7c6a4fcdb925a23c3 100644 (file)
@@ -11,6 +11,7 @@ use warnings;
 
 # First argument is name;
 my $name = shift @ARGV;
+my $name_uc = uc $name;
 # All other arguments are ignored for now
 
 print <<"_____";
@@ -18,7 +19,13 @@ print <<"_____";
  * Generated with test/generate_buildtest.pl, to check that such a simple
  * program builds.
  */
-#include <openssl/$name.h>
+#include <openssl/opensslconf.h>
+#ifndef OPENSSL_NO_STDIO
+# include <stdio.h>
+#endif
+#ifndef OPENSSL_NO_${name_uc}
+# include <openssl/$name.h>
+#endif
 
 int main()
 {