+2005-08-26 Stepan Kasal <kasal@ucw.cz>
+
+ * doc/autoconf.texi (Programming in M4sh) <AS_TR_CPP>: Fix m4 quoting
+ in the example. Reported by Bruno Haible.
+ <AS_TR_SH>: Likewise. Also modify the example to be more convincing:
+ "if $undefined_var;" succeeds with my shell.
+
2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
* lib/m4sugar/m4sh.m4 (_AS_VERSION_COMPARE_PREPARE):
@example
$ type="char *"
-$ echo "#define AS_TR_CPP(HAVE_$type) 1"
+$ echo "#define AS_TR_CPP([HAVE_$type]) 1"
#define HAVE_CHAR_P 1
@end example
@end defmac
@example
$ header="sys/some file.h"
-$ AS_TR_SH(HAVE_$header)=:
-$ if $HAVE_sys_some_file_h; then echo "Have it!"; fi
+$ AS_TR_SH([HAVE_$header])=yes
+$ if test "$HAVE_sys_some_file_h" = yes; then echo "Have it!"; fi
Have it!
@end example
@end defmac