]> Dogcows Code - chaz/openbox/commitdiff
just some fixes to the autoconf stuff
authorMikael Magnusson <mikachu@comhem.se>
Sun, 7 Nov 2004 18:22:05 +0000 (18:22 +0000)
committerMikael Magnusson <mikachu@comhem.se>
Sun, 7 Nov 2004 18:22:05 +0000 (18:22 +0000)
configure.ac
m4/openbox.m4
m4/x11.m4

index 45db7eb3b30933250c0013fb884f89d0ac669d64..0da4293044daeff70efb8a88af8cd8e1db7d9440 100644 (file)
@@ -67,7 +67,7 @@ AC_CHECK_HEADERS(unistd.h sys/stat.h sys/select.h sys/time.h sys/wait.h)
 
 AC_PATH_PROG([SED], [sed], [no])
 if test "$SED" = "no"; then
-  AC_MSG_ERROR([The program "sed" is not avaiable. This program is required to build Openbox.])
+  AC_MSG_ERROR([The program "sed" is not available. This program is required to build Openbox.])
 fi
 
 PKG_CHECK_MODULES([GLIB], [glib-2.0])
@@ -75,17 +75,28 @@ AC_SUBST(GLIB_CFLAGS)
 AC_SUBST(GLIB_LIBS)
 
 AC_ARG_ENABLE(pango,
-              AC_HELP_STRING([--enable-pango],
-                             [enable the pango library for better display of international fonts. (default=no)]),
-              [enable_pango=yes], [enable_pango=no])
+  AC_HELP_STRING(
+    [--enable-pango],
+    [enable the pango library for better display of international fonts. [[default=no]]]
+  ),
+  [enable_pango=yes],
+  [enable_pango=no]
+)
 
 if test "$enable_pango" = yes; then
-PKG_CHECK_MODULES([PANGO], [pango pangoxft])
-AC_SUBST(PANGO_CFLAGS)
-AC_SUBST(PANGO_LIBS)
-DEFS="$DEFS -DUSE_PANGO"
+PKG_CHECK_MODULES([PANGO], [pango pangoxft],
+  [
+    AC_DEFINE(USE_PANGO, [1], [Use Pango])
+    AC_SUBST(PANGO_CFLAGS)
+    AC_SUBST(PANGO_LIBS)
+    pango_found=yes
+  ],
+    pango_found=no
+)
+else
+  pango_found=no
 fi
-       
+
 PKG_CHECK_MODULES(XFT, [xft])
 AC_SUBST(XFT_CFLAGS)
 AC_SUBST(XFT_LIBS)
@@ -94,16 +105,30 @@ PKG_CHECK_MODULES(XML, [libxml-2.0])
 AC_SUBST(XML_CFLAGS)
 AC_SUBST(XML_LIBS)
 
+AC_ARG_ENABLE(startup-notification,
+  AC_HELP_STRING(
+    [--disable-startup-notification],
+    [disable the startup notification library. [[default=yes]]]
+  ),
+  [enable_sn=no],
+  [enable_sn=yes]
+)
+
+if test "$enable_sn" = yes; then
 PKG_CHECK_MODULES(LIBSN, [libstartup-notification-1.0],
   [
     AC_DEFINE(USE_LIBSN, [1], [Use startup-notification])
     AC_SUBST(LIBSN_CFLAGS)
     AC_SUBST(LIBSN_LIBS)
+    sn_found=yes
   ],
   [
-    no_such_luck=yes
+    sn_found=no
   ]
 )
+else
+  sn_found=no
+fi
 
 dnl Check for session management
 X11_SM
@@ -130,4 +155,9 @@ AC_CONFIG_FILES([
 AC_OUTPUT
 
 AC_MSG_RESULT
-AC_MSG_RESULT([configure complete, now type \"make\"])
+AC_MSG_RESULT([Compiling with these options:
+               Pango... $pango_found
+               Startup Notification... $sn_found
+               Session Management... $SM
+               ])
+AC_MSG_RESULT([configure complete, now type "make"])
index db592e91e6b472eb701fb3f6f4d30992d8c2f862..dcc5927a25eee7268afd50daeb98fef3be072d4f 100644 (file)
@@ -8,14 +8,14 @@ AC_DEFUN([OB_DEBUG],
     AC_MSG_CHECKING([build type])
 
     AC_ARG_ENABLE([strict-ansi],
-    [  --enable-strict-ansi    Enable strict ANSI compliance build default=no],
+    AC_HELP_STRING([--enable-strict-ansi],[Enable strict ANSI compliance build [[default=no]]]),
     [STRICT=$enableval], [STRICT="no"])
     if test "$GCC" = "yes" && test "$STRICT" = "yes"; then
        CFLAGS="$CFLAGS -ansi -pedantic -D_XOPEN_SOURCE"
     fi
 
     AC_ARG_ENABLE([debug],
-    [  --enable-debug          build a debug version default=no],
+    AC_HELP_STRING([--enable-debug],[build a debug version [[default=no]]]),
     [DEBUG=$enableval], [DEBUG="no"])
 
     # these special builds are always debug
@@ -90,7 +90,7 @@ AC_DEFUN([OB_COMPILER_FLAGS],
 AC_DEFUN([OB_NLS],
 [
     AC_ARG_ENABLE([nls],
-    [  --enable-nls            Enable NLS translations  default=yes],
+    AC_HELP_STRING([--enable-nls],[Enable NLS translations [[default=yes]]]),
     [NLS=$enableval], [NLS="yes"])
 
     if test "$NLS" = yes; then
index 56b39b21bf81076557d0f9f037ce69ce77262ab5..e57efa390b06643b5d31e2c6a4a855f0423a0a0f 100644 (file)
--- a/m4/x11.m4
+++ b/m4/x11.m4
@@ -462,7 +462,8 @@ AC_DEFUN([X11_SM],
   AC_REQUIRE([X11_DEVEL])
 
   AC_ARG_ENABLE([session-management],
-  [  --disable-session-management  build without support for session managers],
+  AC_HELP_STRING(
+  [--disable-session-management], [build without support for session managers [[default=yes]]]),
   [SM=$enableval], [SM="yes"])
   
   if test "$SM" = "yes"; then
This page took 0.030031 seconds and 4 git commands to generate.