Fix solaris bootstrap.
authorTrent Nelson <trent.a.b.nelson@gmail.com>
Tue, 28 Jun 2011 06:17:52 +0000 (02:17 -0400)
committerTrent Nelson <trent.a.b.nelson@gmail.com>
Wed, 29 Jun 2011 18:15:23 +0000 (14:15 -0400)
Solaris automake doesn't have AM_COND_IF yet. It was introduced
in automake 1.10.2.

configure.ac

index 641635ab96e493d57ea2c8fbb51eb9aaacb1c10e..97e191f6b6c4940de19615a4f170aeb1d780ead5 100644 (file)
@@ -50,10 +50,10 @@ AC_ARG_ENABLE([examples],
                               [Build example programs])],
              [ENABLE_EXAMPLES=$enableval],
              [ENABLE_EXAMPLES="no"])
-AM_CONDITIONAL(EXAMPLES, [test x$ENABLE_EXAMPLES = xyes])
-AM_COND_IF(EXAMPLES,
-           [MAYBE_EXAMPLES="examples"]
-           [config_examples="examples/Makefile"])
+
+if test x$ENABLE_EXAMPLES = xyes; then
+  MAYBE_EXAMPLES="examples"
+fi
 AC_SUBST(MAYBE_EXAMPLES)
 
 #output