Code

configure.ac: Use AC_MSG_RESULT() to display summary. master
authorSebastian Harl <sh@tokkee.org>
Tue, 24 Apr 2012 13:30:53 +0000 (15:30 +0200)
committerSebastian Harl <sh@tokkee.org>
Tue, 24 Apr 2012 13:30:53 +0000 (15:30 +0200)
This makes sure the summary ends up in config.log as well.

configure.ac

index dfc30d69fc0c97b137d715314b76821c7b39abd6..4dba234be16cb30df7c5f9df39a6e0f2356194a4 100644 (file)
@@ -216,27 +216,27 @@ AM_CONDITIONAL([BUILD_DOCUMENTATION], test "x$build_documentation" = "xyes")
 AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile])
 AC_OUTPUT
 
-cat <<EOF;
-
-$PACKAGE_NAME has been configured successfully.
-
-Run 'make' to compile the software and use 'make install' to
-install the package into $prefix.
-
-Configuration summary:
-
-  package version: $PACKAGE_VERSION
-  build date: `date --utc '+%F %T'` (UTC)
-
-  Tools:
-    AsciiDoc (a2x): . . . . . . $have_a2x
-    xsltproc: . . . . . . . . . $have_xsltproc
-
-  Features:
-    documentation:  . . . . . . $build_documentation
-
-This package is maintained by $PACKAGE_MAINTAINER.
-Please report bugs to $PACKAGE_BUGREPORT.
-
-EOF
+BUILD_DATE="`date --utc '+%F %T'` (UTC)"
+
+AC_MSG_RESULT()
+AC_MSG_RESULT([$PACKAGE_NAME has been configured successfully.])
+AC_MSG_RESULT()
+AC_MSG_RESULT([Run 'make' to compile the software and use 'make install' to])
+AC_MSG_RESULT([install the package into $prefix.])
+AC_MSG_RESULT()
+AC_MSG_RESULT([Configuration summary:])
+AC_MSG_RESULT()
+AC_MSG_RESULT([  package version: $PACKAGE_VERSION])
+AC_MSG_RESULT([  build date: $BUILD_DATE])
+AC_MSG_RESULT()
+AC_MSG_RESULT([  Tools:])
+AC_MSG_RESULT([    AsciiDoc (a2x): . . . . . . $have_a2x])
+AC_MSG_RESULT([    xsltproc: . . . . . . . . . $have_xsltproc])
+AC_MSG_RESULT()
+AC_MSG_RESULT([  Features:])
+AC_MSG_RESULT([    documentation:  . . . . . . $build_documentation])
+AC_MSG_RESULT()
+AC_MSG_RESULT([This package is maintained by $PACKAGE_MAINTAINER.])
+AC_MSG_RESULT([Please report bugs to $PACKAGE_BUGREPORT.])
+AC_MSG_RESULT()