* guile-snarf.in: Never generate an empty file. (Thanks to
authorJim Blandy <jimb@red-bean.com>
Sat, 24 Oct 1998 20:55:15 +0000 (20:55 +0000)
committerJim Blandy <jimb@red-bean.com>
Sat, 24 Oct 1998 20:55:15 +0000 (20:55 +0000)
Richard Polton.)
Bug reports from Russ McManus:
* guile-snarf.in: If the CPP environment variable is set, use that
as the C preprocessor, instead of the preprocessor autoconf
found.
* snarf.h (SCM_PROC): Cast the function pointer passed to
scm_make_gsubr, to satisfy C++.

libguile/guile-snarf.in

index 351f1f4..b9a9a0c 100644 (file)
@@ -1,4 +1,10 @@
 #!/bin/sh
 # Extract the initialization actions for builtin things.
 
-@CPP@ -DSCM_MAGIC_SNARFER "$@" | grep "^ *% *% *%" | sed -e "s/^ *% *% *%//"
+## Let the user override the preprocessor autoconf found.
+test -n "${CPP+set}" || CPP="@CPP@"
+${CPP} -DSCM_MAGIC_SNARFER "$@" | grep "^ *% *% *%" | sed -e "s/^ *% *% *%//"
+
+## Apparently, AIX's preprocessor is unhappy if you try to #include an
+## empty file.
+echo